3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
6 #include "engine/typedefs.h"
7 #include "scripting/luabind.h"
9 #include <luabind/object.hpp>
48 std::function<
bool(EntityId)>* effect
60 const luabind::object& effect
78 std::function<bool(EntityId)>* m_effect;
125 void update(
int,
int)
override;
129 struct Implementation;
130 std::unique_ptr<Implementation> m_impl;
Component for entities that work as powerups.
Definition: powerup_system.h:22
void shutdown() override
Shuts the system down.
Definition: powerup_system.cpp:118
System for handling powerups.
Definition: powerup_system.h:86
Base class for components.
Definition: component.h:31
A system handles one specific part of the game.
Definition: system.h:23
void setEffect(std::function< bool(EntityId)> *effect)
Sets the effect to use upon activation of the powerup.
Definition: powerup_system.cpp:33
void update(int, int) override
Updates the system.
Definition: powerup_system.cpp:126
PowerupSystem()
Constructor.
Definition: powerup_system.cpp:97
void init(GameState *gameState) override
Initializes the system.
Definition: powerup_system.cpp:107
static luabind::scope luaBindings()
Lua bindings.
Definition: powerup_system.cpp:16
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
static luabind::scope luaBindings()
Lua bindings.
Definition: powerup_system.cpp:72
void load(const StorageContainer &storage) override
Loads the component.
Definition: powerup_system.cpp:52
StorageContainer storage() const override
Serializes the component.
Definition: powerup_system.cpp:60
A key-value storage for serialization.
Definition: serialization.h:36
~PowerupSystem()
Destructor.
Definition: powerup_system.cpp:103