]> ruin.nu Git - eonsl.git/blob - eonsl/ccreature.h
One of the constructors took a QString pointer as an argument. Probably a thought...
[eonsl.git] / eonsl / ccreature.h
1 /***************************************************************************
2                           ccreature.h  -  description
3                              -------------------
4     begin     : Tue Oct 31 2000
5     copyright : (C) 2000 by Michael Andreen
6     email     : whale@linux.nu
7     changes   :
8  ***************************************************************************/
9
10 /***************************************************************************
11  *                                                                         *
12  *   This program is free software; you can redistribute it and/or modify  *
13  *   it under the terms of the GNU General Public License as published by  *
14  *   the Free Software Foundation; either version 2 of the License, or     *
15  *   (at your option) any later version.                                   *
16  *                                                                         *
17  ***************************************************************************/
18
19 #ifndef CCREATURE_H
20 #define CCREATURE_H
21
22 //QT includes
23 #include <qobject.h>
24 #include <qfile.h>
25 /**This class is the base class for every creature; living, undead and so on.
26         This will probably be the only class for creaturs in the end.
27   *@author Michael Andreen
28   *@short Class for creatures; Humans, monsters and so on.
29   */
30 class CCreature : public QObject
31 {
32 Q_OBJECT
33 public:
34         /** Create an empty CCreature object */
35         CCreature();
36         /** Load a creature from file. The only thing it does is calling
37                         the memberfunction load(QString *filename)
38           @param filename The path to the file that holds the creature
39          */
40         CCreature(QString filename);
41         /**Create a creature (probably a npc) with randomized attributes
42            @param race i.e: Human, Elf
43            @param profession e.g: Warrior, thief
44            @param level defines how good the creature are, e.g: 0=not good at all.
45          */
46         CCreature(QString race, QString profession, int level);
47         /** Delete the CCreature object */
48         ~CCreature();
49 protected:
50         /*
51          * This is the pointer to the first closecombat weapon.
52          */
53 //      CCloseWeapon*   m_firstCWeapon;
54         /*
55          * This is the pointer to the first range weapon.
56          */
57 //      CRangeWeapon*   m_firstRWeapon;
58         /*
59          * This is the pointer to the first container. This hold a linked list with a lot of items.
60          */
61 //      CContainer*             m_firstContainer;
62
63 };
64
65 #endif