⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spellcaster.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
/***************************************************************************                          spellcaster.h  -  description                             -------------------    begin                : Sat May 3 2003    copyright            : (C) 2003 by Gabor Torok    email                : cctorok@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#ifndef SPELL_CASTER_H#define SPELL_CASTER_H#include <iostream>#include <string>#include <vector>#include "constants.h"#include "scourge.h"#include "map.h"#include "creature.h"#include "item.h"#include "rpg/character.h"#include "rpg/monster.h"#include "effect.h"#include "projectile.h"#include "battle.h"#include "calendar.h"#include "events/statemodexpirationevent.h"using namespace std;/**  *@author Gabor Torok  */class Scourge;class Creature;class Item;class Projectile;class Battle;class SpellCaster { private:  Battle *battle;  Spell *spell;  bool projectileHit;  float power; public:  SpellCaster(Battle *battle, Spell *spell, bool projectileHit);  virtual ~SpellCaster();    void spellFailed();  void spellSucceeded(); protected:  float getPower();  void increaseHP();  void increaseAC();  // count==0 means that count depends on level  void launchProjectile(int count, bool stopOnImpact=true);  void causeDamage();  void setStateMod(int mod);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -