Lifebuoy working

This commit is contained in:
viktorljung
2015-10-08 17:22:19 +02:00
parent f147778d4d
commit b93013fcd8
14 changed files with 2589 additions and 31 deletions
+1
View File
@@ -26,6 +26,7 @@
#include "Game/EHitPad.h"
#include "Game/EHitLag.h"
#include "Game/EActionButton.h"
#include "Game/CLifebuoy.h"
namespace dd
{
+10
View File
@@ -52,6 +52,16 @@ private:
bool OnContact(const dd::Events::Contact &event);
bool OnPause(const dd::Events::Pause &event);
bool OnLifebuoy(const dd::Events::Lifebuoy &event);
struct LifeBuoyInfo
{
EntityID Entity;
float TimeToLive = 20.f;
};
float m_LeftEdge = -4.f;
float m_RightEdge = 4.f;
std::list<LifeBuoyInfo> m_LifeBuoys;
};
}