24 lines
489 B
C++
24 lines
489 B
C++
#pragma once
|
|
|
|
class Weapon;
|
|
class Creature;
|
|
class Skill;
|
|
class Trigger
|
|
{
|
|
public:
|
|
|
|
Trigger(Creature* owner) { owner_ = owner; };
|
|
void Init();
|
|
void UnInit();
|
|
Creature* GetOwner() { return owner_; };
|
|
void TakeonWeapon(Weapon* old_weapon, Weapon* new_weapon);
|
|
void Shot(Weapon* weapon);
|
|
void Kill(Creature* target);
|
|
void UseItemAction();
|
|
void UseSkill(Skill* skill);
|
|
void HpChg(float old_hp, float new_hp);
|
|
|
|
private:
|
|
Creature* owner_ = nullptr;
|
|
};
|