3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
6 #include "scripting/luabind.h"
7 #include "engine/typedefs.h"
9 #include <luabind/object.hpp>
10 #include <OgreCommon.h>
11 #include <OgreColourValue.h>
13 #include <OgreVector3.h>
21 class CompoundCloudSystem;
54 Ogre::ColourValue colour;
57 void sendOrganelles(
double x,
double y);
60 void setColour(
float red,
float green,
float blue,
float alpha);
63 Ogre::Vector3 getColour();
66 int getAbsorbedCompounds();
72 bool contains(
float x,
float y);
82 int getCellDimensions() {
return cellDimensions;}
86 void absorbCompounds(
int amount);
89 Ogre::Vector3 GetExternalOrganelle(
double x,
double y);
92 Ogre::Vector3 FindClosestOrganelles(Ogre::Vector3 target);
95 Ogre::Vector3 GetMovement(Ogre::Vector3 target, Ogre::Vector3 closestOrganelle);
99 luabind::object getExternOrganellePos(
double x,
double y);
111 std::vector<Ogre::Vector3> MeshPoints;
114 std::vector<Ogre::Vector3> UVs;
117 std::vector<Ogre::Vector3> Normals;
125 std::vector<Ogre::Vector3> organellePositions;
130 int membraneResolution;
132 std::vector<Ogre::Vector3> vertices2D;
156 static luabind::scope
184 void update(
int,
int)
override;
189 struct Implementation;
190 std::unique_ptr<Implementation> m_impl;
void load(const StorageContainer &storage) override
Loads the component.
Definition: membrane_system.cpp:77
StorageContainer storage() const override
Serializes the component.
Definition: membrane_system.cpp:85
Moves the compound clouds.
Definition: compound_cloud_system.h:110
void update(int, int) override
Updates the system.
Definition: membrane_system.cpp:380
Spawns compound particles for CompoundEmitterComponent.
Definition: membrane_system.h:144
Base class for components.
Definition: component.h:31
MembraneSystem()
Constructor.
Definition: membrane_system.cpp:352
A system handles one specific part of the game.
Definition: system.h:23
~MembraneSystem()
Destructor.
Definition: membrane_system.cpp:358
static luabind::scope luaBindings()
Lua bindings.
Definition: membrane_system.cpp:331
Definition: bullet_ogre_conversion.h:6
Emitter for compound particles.
Definition: membrane_system.h:26
void shutdown() override
Shuts the system down.
Definition: membrane_system.cpp:372
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
static luabind::scope luaBindings()
Lua bindings.
Definition: membrane_system.cpp:32
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
void init(GameState *gameState) override
Initializes the system.
Definition: membrane_system.cpp:362
A key-value storage for serialization.
Definition: serialization.h:36