]> ruin.nu Git - eonsl.git/commitdiff
The initial release of the skill class. This is just a simple class declaration....
authorMichael Andreen <harv@ruin.nu>
Sun, 31 Dec 2000 22:53:07 +0000 (22:53 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 31 Dec 2000 22:53:07 +0000 (22:53 +0000)
eonsl/cskill.h [new file with mode: 0644]

diff --git a/eonsl/cskill.h b/eonsl/cskill.h
new file mode 100644 (file)
index 0000000..2076c63
--- /dev/null
@@ -0,0 +1,47 @@
+/***************************************************************************
+                          cskill.h  -  description
+                             -------------------
+    begin     : Tue Dec 31 2000
+    copyright : (C) 2000 by Michael Andreen
+    email     : whale@linux.nu
+    changes   :
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef CCREATURE_H
+#define CCREATURE_H
+
+//QT includes
+#include <qobject.h>
+/* This class holds information about a typical skill in Eon. this information is a list of specializations, if it is checked, if it is easily learnd and so on.
+  *@author Michael Andreen
+  *@short A skill class, holds the most generic stuff for eon skills.
+  */
+class CSkill : public QObject
+{
+Q_OBJECT
+public:
+       /** Create an empty CSkill object */
+       CSkill();
+       /** Load a creature from file.
+        *
+        */
+       CSkill(int skillValue, QString);
+       /** Delete the CSkill object */
+       ~CSkill();
+protected:
+       int m_SkillValue;
+       bool m_EasyLearned;
+       bool m_Checked;
+       //I don't really know how to save the speclist, got to have a stl reference..
+};
+
+#endif