Added some typedefs for clarity, and also added a cAttack class.
git-svn-id: http://openexile.googlecode.com/svn/trunk@77 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -123,3 +123,12 @@ cCreature& cCreature::operator = (legacy::creature_data_type old){
|
||||
facial_pic = old.monst_start.facial_pic;
|
||||
return *this;
|
||||
}
|
||||
|
||||
cMonster::cAttack::operator int(){
|
||||
return dice * 100 + sides;
|
||||
}
|
||||
|
||||
cMonster::cAttack& cMonster::cAttack::operator=(int n){
|
||||
dice = n / 100;
|
||||
sides = n % 100;
|
||||
}
|
||||
|
Reference in New Issue
Block a user