Converted all Monster Strategy IDs to using strings instead of magic numbers, removed magic numbering system from configs.
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ All rights reserved.
|
||||
INCLUDE_BULLET_LIST
|
||||
INCLUDE_game
|
||||
|
||||
void Monster::STRATEGY::RUN_AWAY(Monster&m,float fElapsedTime,int strategyNumber){
|
||||
void Monster::STRATEGY::RUN_AWAY(Monster&m,float fElapsedTime,std::string strategy){
|
||||
m.targetAcquireTimer=std::max(0.f,m.targetAcquireTimer-fElapsedTime);
|
||||
m.attackCooldownTimer=std::max(0.f,m.attackCooldownTimer-fElapsedTime);
|
||||
geom2d::line line(m.pos,game->GetPlayer()->GetPos());
|
||||
|
||||
Reference in New Issue
Block a user