Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CCmpUnitMotion::MoveRequest Struct Reference

#include <CCmpUnitMotion.h>

Collaboration diagram for CCmpUnitMotion::MoveRequest:

Public Types

enum  Type { NONE , POINT , ENTITY , OFFSET }
 

Public Member Functions

CFixedVector2D GetOffset () const
 
 MoveRequest ()=default
 
 MoveRequest (CFixedVector2D pos, entity_pos_t minRange, entity_pos_t maxRange)
 
 MoveRequest (entity_id_t target, entity_pos_t minRange, entity_pos_t maxRange)
 
 MoveRequest (entity_id_t target, CFixedVector2D offset)
 

Public Attributes

enum CCmpUnitMotion::MoveRequest::Type m_Type = NONE
 
entity_id_t m_Entity = INVALID_ENTITY
 
CFixedVector2D m_Position
 
entity_pos_t m_MinRange
 
entity_pos_t m_MaxRange
 

Member Enumeration Documentation

◆ Type

Enumerator
NONE 
POINT 
ENTITY 
OFFSET 

Constructor & Destructor Documentation

◆ MoveRequest() [1/4]

CCmpUnitMotion::MoveRequest::MoveRequest ( )
default

◆ MoveRequest() [2/4]

CCmpUnitMotion::MoveRequest::MoveRequest ( CFixedVector2D  pos,
entity_pos_t  minRange,
entity_pos_t  maxRange 
)
inline

◆ MoveRequest() [3/4]

CCmpUnitMotion::MoveRequest::MoveRequest ( entity_id_t  target,
entity_pos_t  minRange,
entity_pos_t  maxRange 
)
inline

◆ MoveRequest() [4/4]

CCmpUnitMotion::MoveRequest::MoveRequest ( entity_id_t  target,
CFixedVector2D  offset 
)
inline

Member Function Documentation

◆ GetOffset()

CFixedVector2D CCmpUnitMotion::MoveRequest::GetOffset ( ) const
inline

Member Data Documentation

◆ m_Entity

entity_id_t CCmpUnitMotion::MoveRequest::m_Entity = INVALID_ENTITY

◆ m_MaxRange

entity_pos_t CCmpUnitMotion::MoveRequest::m_MaxRange

◆ m_MinRange

entity_pos_t CCmpUnitMotion::MoveRequest::m_MinRange

◆ m_Position

CFixedVector2D CCmpUnitMotion::MoveRequest::m_Position

◆ m_Type

enum CCmpUnitMotion::MoveRequest::Type CCmpUnitMotion::MoveRequest::m_Type = NONE

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