i6engine  1.0
i6e::api::ToggleWaynetComponent Class Reference

Component used to show the waynet. More...

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/api/components/ToggleWaynetComponent.h>

Public Member Functions

 ToggleWaynetComponent (int64_t id, const attributeMap &params)
 
attributeMap synchronize () const override
 synchronizes the Components state More...
 
std::string getTemplateName () const override
 returns the name this template was registered with More...
 
std::vector< componentOptionsgetComponentOptions () override
 returns a vector containing all options of the Component being readable and writeable in the editor More...
 
void enable (bool enabled)
 enables or disables the showing of the waynet More...
 
- Public Member Functions inherited from i6e::api::Component
 Component ()
 Constructor for Component. More...
 
 Component (const int64_t id, const attributeMap &params)
 Constructor for Component. More...
 
virtual ~Component ()
 Destructor of Component. Must be implemented in derived class. More...
 
void setOwnerGO (const WeakGOPtr &objGo)
 Sets the GameObject that owns this Component. More...
 
GOPtr getOwnerGO ()
 Get the GameObject that owns this Component. More...
 
uint32_t getComponentID () const
 Returns the component identification string. More...
 
uint32_t getFamilyID () const
 Returns the family identification string. More...
 
std::string getIdentifier () const
 Returns the family identification string. More...
 
void setDie () const
 component will be deleted soon More...
 
int64_t getID () const
 returns the id of the component More...
 
void setSync (bool b)
 sets whether this object has to be synchronized or not More...
 
bool getSync () const
 
void enableTicking (bool allowTicking) const
 triggers doEnableTicking threadsafe More...
 
virtual std::pair< AddStrategy, int64_t > howToAdd (const ComPtr &comp) const
 asks, how to handle a new component with the same type More...
 
void setSelf (const WeakComPtr &self)
 sets weak_ptr on self for registration of ticker More...
 
std::vector< ComPtrgetSubComponents () const
 returns all SubComponents attached to this Component More...
 
- Public Member Functions inherited from i6e::core::MessageSubscriber
 MessageSubscriber ()
 Standard constructor. More...
 
virtual ~MessageSubscriber ()
 Destructor. More...
 
void receiveMessage (const Message::Ptr &msg)
 This method is called from the MessagingController. It stores incoming messages in a local buffer. More...
 
virtual void processMessages ()
 This method goes through the local message buffer and calls the appropriate method of the receiver. More...
 
void notifyNewID (const int64_t id)
 This method notifies the MessagingController that Messages waiting for this id can now be delivered. More...
 
void buffer (const ReceivedMessagePtr &msg)
 Calls deliverMessageInternal if the message should be delivered now, buffers it if not. More...
 
void reset ()
 todo More...
 
void addMethod (uint16_t msgType, const boost::function< void(const Message::Ptr &)> &ptrMessageMethod)
 adds a method for given message type where messages shall be delivered More...
 
void removeMethod (uint16_t msgType)
 removes method for given message type More...
 

Additional Inherited Members

- Static Public Member Functions inherited from i6e::api::Component
template<typename T >
static ComPtr createC (const int64_t id, const attributeMap &params)
 
- Protected Member Functions inherited from i6e::api::Component
void addTicker ()
 adds this component to ticklist More...
 
void removeTicker ()
 removes this component from ticklist More...
 
void doEnableTicking (bool allowTicking)
 sets ticking status for this Component per default all Components are allowed to tick and calling addTicker will start ticking, but in some cases, e.g. for level editor, ticking has to be disabled and just a few components are allowed to tick More...
 
- Protected Member Functions inherited from i6e::core::MessageSubscriber
void swapMessageBuffer ()
 This method will swap the double message buffer. For synchronization reasons. More...
 
bool updateBuffer ()
 This method delivers all waiting Messages that can now be delivered. More...
 
virtual void deliverMessageInternal (const ReceivedMessagePtr &msg)
 This method really delivers the Message without buffering it anymore. More...
 
- Protected Attributes inherited from i6e::api::Component
int64_t _objOwnerID
 ID of the GameObject that owns this Component. More...
 
WeakGOPtr _objOwnerGO
 Owning GameObject. More...
 
uint32_t _objComponentID
 Component ID of the Component. More...
 
uint32_t _objFamilyID
 Family ID of the Component. More...
 
std::vector< ComPtr_subComps
 vector containing the other componetns of the same type if this is the dispatcher component More...
 
std::string _identifier
 identifies the subcomponent More...
 
int64_t _id
 id of this component More...
 
bool _sync
 
WeakComPtr _self
 a weak_ptr on the own shared_ptr More...
 
bool _tickingAllowed
 status if this object is allowed to tick or not More...
 
bool _wantsToTick
 stores if a Component which isn't allowed to tick want to tick, so it can start ticking when ticking will be allowed More...
 
bool _isTicking
 stores whether this Component is actually ticking More...
 
- Protected Attributes inherited from i6e::core::MessageSubscriber
boost::mutex _objMessageVectorMutex
 
MessageVector _objMessageVectorA
 
MessageVector _objMessageVectorB
 
MessageVector_objActiveMessageVector
 
MessageVector_objInActiveMessageVector
 
std::map< uint16_t, boost::function< void(const Message::Ptr &)> > _ptrMessageMethod
 

Detailed Description

Component used to show the waynet.

Definition at line 37 of file ToggleWaynetComponent.h.

Constructor & Destructor Documentation

i6e::api::ToggleWaynetComponent::ToggleWaynetComponent ( int64_t  id,
const attributeMap params 
)

Member Function Documentation

void i6e::api::ToggleWaynetComponent::enable ( bool  enabled)
inline

enables or disables the showing of the waynet

Definition at line 56 of file ToggleWaynetComponent.h.

std::vector<componentOptions> i6e::api::ToggleWaynetComponent::getComponentOptions ( )
inlineoverridevirtual

returns a vector containing all options of the Component being readable and writeable in the editor

Implements i6e::api::Component.

Definition at line 49 of file ToggleWaynetComponent.h.

std::string i6e::api::ToggleWaynetComponent::getTemplateName ( ) const
inlineoverridevirtual

returns the name this template was registered with

Implements i6e::api::Component.

Definition at line 45 of file ToggleWaynetComponent.h.

attributeMap i6e::api::ToggleWaynetComponent::synchronize ( ) const
inlineoverridevirtual

synchronizes the Components state

Implements i6e::api::Component.

Definition at line 41 of file ToggleWaynetComponent.h.


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