7 #ifndef RAB_EQUIPPED_ENTITY_H
8 #define RAB_EQUIPPED_ENTITY_H
11 class CRABEquippedEntity;
13 class CEmbodiedEntity;
17 #include <argos3/core/utility/datatypes/byte_array.h>
18 #include <argos3/core/utility/datatypes/set.h>
19 #include <argos3/core/simulator/entity/positional_entity.h>
20 #include <argos3/core/utility/math/vector3.h>
21 #include <argos3/core/simulator/space/positional_indices/space_hash.h>
22 #include <argos3/core/simulator/space/positional_indices/grid.h>
32 typedef std::vector<CRABEquippedEntity*>
TVector;
40 const std::string& str_id,
122 SInt32 m_nCenterI, m_nCenterJ, m_nCenterK;
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
void SetData(const CByteArray &c_data)
CRABEquippedEntityGridEntityUpdater(CGrid< CRABEquippedEntity > &c_grid)
signed int SInt32
32-bit signed integer.
virtual bool operator()(CRABEquippedEntity &c_entity)
CSet< CRABEquippedEntity * > TSet
std::vector< CRABEquippedEntity * > TVector
size_t Size() const
Returns the current size of the byte array.
float Real
Collects all ARGoS code.
The abstract definition of a space hash.
CEmbodiedEntity & GetEntityBody()
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
size_t GetMsgSize() const
virtual ~CRABEquippedEntity()
Defines a very simple double-linked list that stores unique elements.
This entity is a link to a body in the physics engine.
virtual void Update()
Updates the state of this entity.
void SetEntity(CRABEquippedEntity &c_entity)
Basic class for an entity that contains other entities.
void SetRange(Real f_range)
CRABEquippedEntity(CComposableEntity *pc_parent)
An anchor related to the body of an entity.
const SAnchor & GetAnchor() const
virtual void operator()(CAbstractSpaceHash< CRABEquippedEntity > &c_space_hash, CRABEquippedEntity &c_element)
Updates the necessary cells of a space hash.
virtual bool operator()(SInt32 n_i, SInt32 n_j, SInt32 n_k, CGrid< CRABEquippedEntity >::SCell &s_cell)
CEmbodiedEntity * m_pcEntityBody
Defines the basic cell updater of the space hash.
Byte array utility class.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
CRABEquippedEntityGridCellUpdater(CGrid< CRABEquippedEntity > &c_grid)
The namespace containing all the ARGoS related code.
void SetMedium(CRABMedium &c_medium)