mirror of
https://github.com/wu736139669/OzgGameRPG.git
synced 2026-08-05 06:24:38 +00:00
战斗画面完成道具部分
This commit is contained in:
@@ -80,6 +80,8 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
CCArray* m_existingItems; //已有道具
|
||||
|
||||
RPGBattleSceneLayer();
|
||||
virtual ~RPGBattleSceneLayer();
|
||||
virtual bool init();
|
||||
@@ -103,10 +105,15 @@ public:
|
||||
void enabledTouched(bool enabled); //是否打开可点击状态(主要可点击player或怪物)
|
||||
void cancelAllSelected(); //取消全部选中的对象
|
||||
|
||||
//攻击
|
||||
void attack(CCObject* attackObjData, CCObject* targetObjData); //player或怪物执行攻击
|
||||
void attackResults(CCNode* sender, void* data); //回调,计算攻击后的结果
|
||||
void attackWithTargetEffectLabEnd(CCNode* sender, void* data); //回调,攻击流程完毕后执行,这个sender是被攻击的对象中显示的伤害值CCLabelTTF
|
||||
|
||||
//道具
|
||||
void useItem(CCObject* useItemObjData, CCObject* targetObjData); //player执行使用道具
|
||||
void useItemResults(CCNode* sender, void* data); //回调,计算使用道具后的结果
|
||||
|
||||
void actionWithTargetEffectLabEnd(CCNode* sender, void* data); //回调,攻击、技能、道具流程完毕后执行,这个sender是目标对象中显示的效果值CCLabelTTF
|
||||
};
|
||||
|
||||
#endif /* defined(__OzgGameRPG__RPGBattleSceneLayer__) */
|
||||
|
||||
Reference in New Issue
Block a user