Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2015, 4:43:03 PM (5 years ago)
Author:
landauf
Message:

use list instead of vector - list is better suited for removing elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/towerdefense/TowerDefense.h

    r10586 r10587  
    9696        int lifes_;
    9797        Timer nextwaveTimer_;
    98         std::vector<orxonox::WeakPtr<TowerDefenseEnemy> > enemies_;
     98        std::list<orxonox::WeakPtr<TowerDefenseEnemy> > enemies_;
    9999        TowerDefenseField* fields_[16][16];
    100100        std::vector<orxonox::WeakPtr<TowerDefenseField> > waypoints_;
Note: See TracChangeset for help on using the changeset viewer.