您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

28 行
495 B

#ifndef SPELL_WARZ_SPELL_CPP
#define SPELL_WARZ_SPELL_CPP 1
class Spell
{
protected:
char name[64];
int type;
int power;
int cost;
public:
static const int NAME_LENGTH = 15;
static const int TYPE_RESTORATION = 1;
static const int TYPE_DESTRUCTION = 2;
Spell(const char *spellName,
const int spellType,
int spellPower,
int spellCost);
const char *getName();
int getType();
int getPower();
int getCost();
};
#endif