]> git.jsancho.org Git - lugaru.git/commit
player replaced by Person::players which is a vector of shared_ptr.
authorCôme BERNIGAUD <come.bernigaud@gmail.com>
Sat, 13 Jul 2013 20:14:36 +0000 (22:14 +0200)
committerCôme BERNIGAUD <come.bernigaud@gmail.com>
Sat, 13 Jul 2013 20:14:36 +0000 (22:14 +0200)
commit2ce8e2f8ac6921286ebd6b30362c35b38e935977
treea53c5c38800828a5c6818b9e55d7c75ea625475f
parentf0cb4c53631fd29fd490d3b94d6786543a53ce9b
player replaced by Person::players which is a vector of shared_ptr.

victim being a shared_ptr might be a memory leak, we should consider using weak_ptr for victim.
Having players being pointers will allow polymorphism so we can have a Rabbit and a Wolf class.
12 files changed:
CMakeLists.txt
Source/Account.h
Source/Awards.cpp
Source/GameDraw.cpp
Source/GameInitDispose.cpp
Source/GameTick.cpp
Source/Models.cpp
Source/Person.cpp
Source/Person.h
Source/Sprite.cpp
Source/Weapons.cpp
Source/gamegl.h