From 447380c0224f2725b548d5c3826f880e565b2752 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 4 Jan 2001 19:26:44 +0000 Subject: [PATCH] Added all .h .cpp and .ui files to the kdevprj.. Fixed a simple interface for my skill class.. --- eonsl/cskill.cpp | 28 ++++++++++++++++++++++++++++ eonsl/cskill.h | 35 ++++++++++++++--------------------- 2 files changed, 42 insertions(+), 21 deletions(-) create mode 100644 eonsl/cskill.cpp diff --git a/eonsl/cskill.cpp b/eonsl/cskill.cpp new file mode 100644 index 0000000..c37a525 --- /dev/null +++ b/eonsl/cskill.cpp @@ -0,0 +1,28 @@ +/*************************************************************************** + cskill.cpp - description + ------------------- + begin : Thu Jan 4 2001 + copyright : (C) 2001 by Michael Andreen + email : whale@linux.nu + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + + +#include "cskill.h" + +CSkill::CSkill(){ +} +/** Create a skill with some initial values.. */ +CSkill::CSkill(int value, bool easy = false, bool checked = false){ +} + +CSkill::~CSkill(){ +} diff --git a/eonsl/cskill.h b/eonsl/cskill.h index 2076c63..c361eb4 100644 --- a/eonsl/cskill.h +++ b/eonsl/cskill.h @@ -1,10 +1,9 @@ /*************************************************************************** cskill.h - description ------------------- - begin : Tue Dec 31 2000 - copyright : (C) 2000 by Michael Andreen - email : whale@linux.nu - changes : + begin : Thu Jan 4 2001 + copyright : (C) 2001 by Michael Andreen + email : whale@linux.nu ***************************************************************************/ /*************************************************************************** @@ -16,32 +15,26 @@ * * ***************************************************************************/ -#ifndef CCREATURE_H -#define CCREATURE_H -//QT includes +#ifndef CSKILL_H +#define CSKILL_H + #include -/* 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. + +/**This class is made for basic skills.. *@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 */ +public: CSkill(); - /** Load a creature from file. - * - */ - CSkill(int skillValue, QString); - /** Delete the CSkill object */ + /** Create a skill with some initial values.. */ + CSkill(int value, bool easy = false, bool checked = false); + ~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 -- 2.39.2