diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-26 07:39:15 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 |
commit | 2e4d19ba21347cc370d1aae7a57298328b94ca4e (patch) | |
tree | 715f970ec2aa97eeb42a1144a3361df15b599df7 /src/list.cpp | |
parent | 72b40aec2addc7b28170ba9364bc0429149b3299 (diff) |
-comepletly removed use of lists in quadtree and creature, using vectors now
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 2daed25..ca69a4d 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -36,7 +36,7 @@ void List::Remove() void List::Behavior() { for(std::list<Creature>::iterator it = creatures.begin(); it!= creatures.end(); it++){ - std::list<Entity*> N = getNear(*it); + std::vector<Entity*> N = getNear(*it); it->giveNearMe(N); it->Behavior(); @@ -74,9 +74,9 @@ void List::Place() } } -std::list<Entity*> List::getNear(Creature nC) +std::vector<Entity*> List::getNear(Creature nC) { - std::list<Entity*> N; + std::vector<Entity*> N; N = tree.retrieve(N, nC.getGFXD()); return N; |