diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-05-23 13:51:42 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-05-23 13:51:42 +0000 |
commit | eec7111f5cb5a3785b1e2b67bbcd96e26680f18e (patch) | |
tree | 468ddb42fffac2028ed070ff883a6424ad9074b2 /src/object.h | |
parent | 7594437a36acbdc7fb0c1a0e56b0954910c2543c (diff) | |
download | manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.gz manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.bz2 manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.xz manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.zip |
Updated Storage class (added extra table to database).
Misc.
Diffstat (limited to 'src/object.h')
-rw-r--r-- | src/object.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/object.h b/src/object.h index 8a8a4d2a..88c7f515 100644 --- a/src/object.h +++ b/src/object.h @@ -90,24 +90,21 @@ class Being : public Object Script *script; #endif + // disable default constructor (we don't want uninitialized Being's) + public: + Being() { }; + + Being(const std::string &bName, unsigned int bGender, + unsigned int bLevel, unsigned int bMoney, + unsigned int bStrength, unsigned int bAgility, + unsigned int bVitality, unsigned int bDexterity, + unsigned int bLuck); + virtual ~Being() { } //empty definition //update - void update() { - //Generate statistics - stats.health = 20 + (20 * vitality); - stats.attack = 10 + strength; - stats.defense = 10 + strength; - stats.magic = 10 + intelligence; - stats.accuracy = 50 + dexterity; - stats.speed = dexterity; - - //Update scipt -#ifdef SCRIPT_SUPPORT - script->update(); -#endif - } + void update(); //accessors const std::string& getName() { return name; } |