Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GameWorld::TankStateEnter(sf::Vector2f position, AGENTTEAMS team)
- {
- Tank* t = new Tank(position);
- t->CreateBody();
- t->team = team;
- if (team == GREEN)
- {
- t->enemyBasePosition = GetRedBasePosition();
- }
- else if (team == RED)
- {
- t->enemyBasePosition = GetGreenBasePosition();
- }
- tanks.push_back(t);
- tankIter = tanks.begin();//this is not very nice, this happens every time a new tank is created
- //which would create huge problems during runtime - this will be moved!
- }
Advertisement
Add Comment
Please, Sign In to add comment