Use the new tree-based registration system in the mover.

This commit is contained in:
King_DuckZ 2014-07-10 20:00:54 +02:00
parent 61f0c28983
commit 9c660caec6
7 changed files with 45 additions and 16 deletions

View file

@ -19,17 +19,17 @@
#ifndef id17908979556C47F8A978688BBE4A9D22
#include "placeable.hpp"
#include <memory>
namespace cloonel {
class SDLMain;
class GameplayScene;
class Mover;
class PlatformSystem {
class PlatformSystem : public Placeable {
public:
PlatformSystem ( void ) = delete;
PlatformSystem ( const char* parTexturePath, SDLMain* parSDLMain, GameplayScene* parScene, float parMaxDistance, Mover& parMover );
PlatformSystem ( const char* parTexturePath, SDLMain* parSDLMain, GameplayScene* parScene, float parMaxDistance );
PlatformSystem ( const PlatformSystem& ) = delete;
PlatformSystem ( PlatformSystem&& parOther ) = delete;
~PlatformSystem ( void ) noexcept;
@ -40,6 +40,9 @@ namespace cloonel {
void Destroy ( void ) noexcept;
void SpawnPlatforms ( void );
//Overrides
virtual void OnRegister ( Mover& parOut, Mover::PlaceableTicketType parTicket );
private:
struct LocalData;