add OnBattleStart
This commit is contained in:
parent
01803f1290
commit
a36ebcb0a5
@ -2757,3 +2757,8 @@ Weapon* Creature::ChooseNextSpecWeapon(int curr_weapon_slot_id)
|
|||||||
}
|
}
|
||||||
return next_weapon;
|
return next_weapon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Creature::OnBattleStart(Room* room)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -89,6 +89,7 @@ class Creature : public MoveableEntity
|
|||||||
virtual bool Attackable(Room* room) override;
|
virtual bool Attackable(Room* room) override;
|
||||||
virtual bool ReceiveExplosionDmg(Explosion* explosion) override;
|
virtual bool ReceiveExplosionDmg(Explosion* explosion) override;
|
||||||
virtual bool IsCreature(Room* room) override { return true;};
|
virtual bool IsCreature(Room* room) override { return true;};
|
||||||
|
virtual void OnBattleStart(Room* room) override;
|
||||||
bool HasBuffEffect(int buff_effect_id);
|
bool HasBuffEffect(int buff_effect_id);
|
||||||
Buff* GetBuffByEffectId(int effect_id);
|
Buff* GetBuffByEffectId(int effect_id);
|
||||||
Buff* GetBuffById(int buff_id);
|
Buff* GetBuffById(int buff_id);
|
||||||
|
@ -40,6 +40,7 @@ class Entity
|
|||||||
virtual void OnExplosionHit(Explosion* explosion) {};
|
virtual void OnExplosionHit(Explosion* explosion) {};
|
||||||
virtual void OnAddToTargetPartObject(Entity* target) {};
|
virtual void OnAddToTargetPartObject(Entity* target) {};
|
||||||
virtual void OnRemoveFromTargetPartObject(Entity* target) {};
|
virtual void OnRemoveFromTargetPartObject(Entity* target) {};
|
||||||
|
virtual void OnBattleStart(Room* room) {};
|
||||||
virtual bool CanSeeMe(Human* hum) { return true; };
|
virtual bool CanSeeMe(Human* hum) { return true; };
|
||||||
virtual bool Attackable(Room* room) { return false; };
|
virtual bool Attackable(Room* room) { return false; };
|
||||||
virtual bool ReceiveExplosionDmg(Explosion* explosion) { return false; };
|
virtual bool ReceiveExplosionDmg(Explosion* explosion) { return false; };
|
||||||
|
@ -1400,6 +1400,7 @@ void Room::UpdateGasJump()
|
|||||||
InitAirRaid();
|
InitAirRaid();
|
||||||
}
|
}
|
||||||
ClearPostBattleAutoFreeList();
|
ClearPostBattleAutoFreeList();
|
||||||
|
OnBattleStart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4031,3 +4032,8 @@ void Room::ClearPostBattleAutoFreeList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Room::OnBattleStart()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -270,6 +270,7 @@ private:
|
|||||||
void InitAndroidAI();
|
void InitAndroidAI();
|
||||||
void ForwardGasRing(int n);
|
void ForwardGasRing(int n);
|
||||||
void InternalRemoveObjectLater(Entity* entity, a8::XTimerAttacher& entity_xtimer_attacher);
|
void InternalRemoveObjectLater(Entity* entity, a8::XTimerAttacher& entity_xtimer_attacher);
|
||||||
|
void OnBattleStart();
|
||||||
void ClearPostBattleAutoFreeList();
|
void ClearPostBattleAutoFreeList();
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -266,6 +266,7 @@ message Buff
|
|||||||
optional int32 dead_valid = 23;
|
optional int32 dead_valid = 23;
|
||||||
optional int32 buff_interval = 24;
|
optional int32 buff_interval = 24;
|
||||||
optional string tag = 25;
|
optional string tag = 25;
|
||||||
|
optional int32 post_battle_valid = 26;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Drop
|
message Drop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user