Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCmpWaterManager Class Reference
Inheritance diagram for CCmpWaterManager:
Inheritance graph
[legend]
Collaboration diagram for CCmpWaterManager:
Collaboration graph
[legend]

Public Member Functions

virtual int GetComponentTypeId () const
 
virtual void Init (const CParamNode &paramNode)
 
virtual void Deinit ()
 
virtual void Serialize (ISerializer &serialize)
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)
 
virtual void HandleMessage (const CMessage &msg, bool global)
 
virtual void RecomputeWaterData ()
 Recompute all the water information (foam…) More...
 
virtual void SetWaterLevel (entity_pos_t h)
 Set the height of the water level, as a constant value across the whole map. More...
 
virtual entity_pos_t GetWaterLevel (entity_pos_t x, entity_pos_t z) const
 Get the current water level at the given point. More...
 
virtual float GetExactWaterLevel (float x, float z) const
 Get the current water level at the given point. More...
 
- Public Member Functions inherited from IComponent
virtual ~IComponent ()
 
CEntityHandle GetEntityHandle () const
 
void SetEntityHandle (CEntityHandle ent)
 
entity_id_t GetEntityId () const
 
CEntityHandle GetSystemEntity () const
 
const CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual bool NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const
 Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More...
 
virtual JS::Value GetJSInstance () const
 

Static Public Member Functions

static void ClassInit (CComponentManager &componentManager)
 
static IComponentAllocate (ScriptInterface &, JS::HandleValue)
 
static void Deallocate (IComponent *cmp)
 
static std::string GetSchema ()
 
- Static Public Member Functions inherited from IComponent
static std::string GetSchema ()
 
static u8 GetSerializationVersion ()
 

Public Attributes

entity_pos_t m_WaterHeight
 

Member Function Documentation

static IComponent* CCmpWaterManager::Allocate ( ScriptInterface ,
JS::HandleValue   
)
inlinestatic
static void CCmpWaterManager::ClassInit ( CComponentManager componentManager)
inlinestatic
static void CCmpWaterManager::Deallocate ( IComponent cmp)
inlinestatic
virtual void CCmpWaterManager::Deinit ( )
inlinevirtual

Implements IComponent.

virtual void CCmpWaterManager::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize 
)
inlinevirtual

Implements IComponent.

virtual int CCmpWaterManager::GetComponentTypeId ( ) const
inlinevirtual

Implements IComponent.

virtual float CCmpWaterManager::GetExactWaterLevel ( float  x,
float  z 
) const
inlinevirtual

Get the current water level at the given point.

Implements ICmpWaterManager.

static std::string CCmpWaterManager::GetSchema ( )
inlinestatic
virtual entity_pos_t CCmpWaterManager::GetWaterLevel ( entity_pos_t  x,
entity_pos_t  z 
) const
inlinevirtual

Get the current water level at the given point.

Implements ICmpWaterManager.

virtual void CCmpWaterManager::HandleMessage ( const CMessage msg,
bool  global 
)
inlinevirtual

Reimplemented from IComponent.

virtual void CCmpWaterManager::Init ( const CParamNode paramNode)
inlinevirtual

Implements IComponent.

virtual void CCmpWaterManager::RecomputeWaterData ( )
inlinevirtual

Recompute all the water information (foam…)

Implements ICmpWaterManager.

virtual void CCmpWaterManager::Serialize ( ISerializer serialize)
inlinevirtual

Implements IComponent.

virtual void CCmpWaterManager::SetWaterLevel ( entity_pos_t  h)
inlinevirtual

Set the height of the water level, as a constant value across the whole map.

Implements ICmpWaterManager.

Member Data Documentation

entity_pos_t CCmpWaterManager::m_WaterHeight

The documentation for this class was generated from the following file: