Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SpellNode Class Reference

#include <SpellNode.hpp>

Inheritance diagram for SpellNode:
Inheritance graph
Collaboration diagram for SpellNode:
Collaboration graph

Public Member Functions

 SpellNode (NodeType type, float x, float y, float z)
 
 ~SpellNode ()
 
virtual bool isEnergyNode ()
 
void connectNode (SpellNode *otherNode)
 
void tick (IEventListener &listener, SpellNode *callable)
 
bool inTick () const
 
float getDistance (const SpellNode *otherNode) const
 
NodeType getType () const
 
void iterrator (std::function< void(SpellNode *)> next)
 
std::set< SpellNode * > & getConnectedNodes ()
 
float getX () const
 
float getY () const
 
float getZ () const
 

Static Public Member Functions

static void write (Parcel &in, SpellNode *obj)
 
static SpellNoderead (Parcel &out)
 

Protected Member Functions

virtual void onTick (IEventListener &listener, SpellNode *callable)
 

Protected Attributes

float x
 
float y
 
float z
 
std::set< SpellNode * > connectedNodes
 
bool nowInTick
 
NodeType type
 

Constructor & Destructor Documentation

SpellNode::SpellNode ( NodeType  type,
float  x,
float  y,
float  z 
)
inline
SpellNode::~SpellNode ( )

Member Function Documentation

void SpellNode::connectNode ( SpellNode otherNode)

Link node if not already exist The contract involves adding the current node from the calling party

Parameters
otherNode

Here is the caller graph for this function:

std::set<SpellNode *>& SpellNode::getConnectedNodes ( )
inline

Here is the caller graph for this function:

float SpellNode::getDistance ( const SpellNode otherNode) const

Получение расстояния от одной ноды до другой

Parameters
otherNode
Returns

Here is the call graph for this function:

NodeType SpellNode::getType ( ) const
inline

Here is the caller graph for this function:

float SpellNode::getX ( ) const
inline
float SpellNode::getY ( ) const
inline
float SpellNode::getZ ( ) const
inline
bool SpellNode::inTick ( ) const
inline
virtual bool SpellNode::isEnergyNode ( )
inlinevirtual

Reimplemented in EnergyNode.

void SpellNode::iterrator ( std::function< void(SpellNode *)>  next)

Here is the caller graph for this function:

virtual void SpellNode::onTick ( IEventListener listener,
SpellNode callable 
)
inlineprotectedvirtual

Reimplemented in EnergyNode.

SpellNode * SpellNode::read ( Parcel out)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void SpellNode::tick ( IEventListener listener,
SpellNode callable 
)

Main tick method. Not execute tick on parent node

Parameters
listener
callable

Here is the caller graph for this function:

void SpellNode::write ( Parcel in,
SpellNode obj 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::set<SpellNode *> SpellNode::connectedNodes
protected
bool SpellNode::nowInTick
protected
NodeType SpellNode::type
protected
float SpellNode::x
protected
float SpellNode::y
protected
float SpellNode::z
protected

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