Use the new tree-based registration system in the mover.
This commit is contained in:
parent
61f0c28983
commit
9c660caec6
7 changed files with 45 additions and 16 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue