diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 07:57:21 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 07:57:21 -0600 |
commit | 1da46794f74ebd8f445fcd70cbe0420eadb648e4 (patch) | |
tree | fee655a50188e50b7c63d6b855bc671e0a1b0128 /src/list.cpp | |
parent | 358ea01c03d787377ef88945706f350befd5b7a9 (diff) |
-removed grouping
Diffstat (limited to 'src/list.cpp')
-rw-r--r-- | src/list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list.cpp b/src/list.cpp index edf3063..0439278 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -38,7 +38,7 @@ void List::Remove() void List::Behavior() { for(std::list<Creature>::iterator it = C.begin(); it!=C.end(); it++){ - std::list<Entity*> N = getNear(*it); + std::vector<Entity*> N = getNear(*it); it->giveN(N); it->Behavior(); @@ -71,9 +71,9 @@ void List::Place() it->Place(); } -std::list<Entity*> List::getNear(Creature nC) +std::vector<Entity*> List::getNear(Creature nC) { - std::list<Entity*> N; + std::vector<Entity*> N; for(std::list<Resource>::iterator it = R.begin(); it!=R.end(); it++) if( nC.getBestSense() > Distance(nC.getRect(),it->getRect()) ) |