Remove drawing strategies from demo branch. Resolve Issue #61.

sigonasr2 10 months ago
parent 52ec0c3d91
commit fb30c4a027
  1. 4
      Adventures in Lestoria/AdventuresInLestoria.cpp

@ -1394,7 +1394,6 @@ void AiL::RenderWorld(float fElapsedTime){
#pragma region Remaining Rendering #pragma region Remaining Rendering
while(monstersBeforeLowerIt!=monstersBeforeLower.end()){ while(monstersBeforeLowerIt!=monstersBeforeLower.end()){
Monster*const m=*monstersBeforeLowerIt; Monster*const m=*monstersBeforeLowerIt;
m->strategyDraw(this,*m,MONSTER_DATA[m->GetName()].GetAIStrategy());
m->Draw(); m->Draw();
++monstersBeforeLowerIt; ++monstersBeforeLowerIt;
} }
@ -1416,7 +1415,6 @@ void AiL::RenderWorld(float fElapsedTime){
} }
while(monstersAfterLowerIt!=monstersAfterLower.end()){ while(monstersAfterLowerIt!=monstersAfterLower.end()){
Monster*const m=*monstersAfterLowerIt; Monster*const m=*monstersAfterLowerIt;
m->strategyDraw(this,*m,MONSTER_DATA[m->GetName()].GetAIStrategy());
m->Draw(); m->Draw();
++monstersAfterLowerIt; ++monstersAfterLowerIt;
} }
@ -1686,7 +1684,6 @@ void AiL::RenderWorld(float fElapsedTime){
#pragma region Remaining Upper Rendering #pragma region Remaining Upper Rendering
while(monstersBeforeUpperIt!=monstersBeforeUpper.end()){ while(monstersBeforeUpperIt!=monstersBeforeUpper.end()){
Monster*const m=*monstersBeforeUpperIt; Monster*const m=*monstersBeforeUpperIt;
m->strategyDraw(this,*m,MONSTER_DATA[m->GetName()].GetAIStrategy());
m->Draw(); m->Draw();
++monstersBeforeUpperIt; ++monstersBeforeUpperIt;
} }
@ -1708,7 +1705,6 @@ void AiL::RenderWorld(float fElapsedTime){
} }
while(monstersAfterUpperIt!=monstersAfterUpper.end()){ while(monstersAfterUpperIt!=monstersAfterUpper.end()){
Monster*const m=*monstersAfterUpperIt; Monster*const m=*monstersAfterUpperIt;
m->strategyDraw(this,*m,MONSTER_DATA[m->GetName()].GetAIStrategy());
m->Draw(); m->Draw();
++monstersAfterUpperIt; ++monstersAfterUpperIt;
} }

Loading…
Cancel
Save