1
This commit is contained in:
parent
3d0e7cc1bd
commit
c4d77c2ca0
@ -401,3 +401,13 @@ void Hero::DropItems(Obstacle* obstacle)
|
|||||||
room->ScatterDrop(obstacle->GetPos().ToGlmVec3(), drop_id);
|
room->ScatterDrop(obstacle->GetPos().ToGlmVec3(), drop_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Hero::Active()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Hero::Deactive()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -41,6 +41,8 @@ public:
|
|||||||
virtual void OnBattleStart(Room* room) override;
|
virtual void OnBattleStart(Room* room) override;
|
||||||
void Destory();
|
void Destory();
|
||||||
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
||||||
|
void Active();
|
||||||
|
void Deactive();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void UpdateMove() override;
|
virtual void UpdateMove() override;
|
||||||
|
@ -625,6 +625,9 @@ void Human::OnGridListChange(std::set<GridCell*>& old_grids,
|
|||||||
if (IsPlayer() && on_grid_chg) {
|
if (IsPlayer() && on_grid_chg) {
|
||||||
on_grid_chg(this);
|
on_grid_chg(this);
|
||||||
}
|
}
|
||||||
|
if (HasObserver()) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Human::SyncAroundPlayers(const char* file, int line, const char* func)
|
void Human::SyncAroundPlayers(const char* file, int line, const char* func)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user