i6engine  1.0
i6e::api::CollisionGroup Struct Reference

struct containing the collision info for an object More...

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

Public Member Functions

 CollisionGroup ()
 Constructor. Initializes members with 0 (no Collisions) More...
 
 CollisionGroup (uint32_t response, uint32_t type, uint32_t mask)
 Constructor. Initializes members with given values. More...
 
 CollisionGroup (const std::string &str)
 Constructor. Initializes members with given values. More...
 
CollisionGroupoperator= (const CollisionGroup &cg)
 
void insertInMap (const std::string &entry, attributeMap &params) const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Public Attributes

uint32_t responseType
 defines the physical properties More...
 
uint32_t crashType
 type of the object More...
 
uint32_t crashMask
 mask of all objects the given object gets collision feedback More...
 

Detailed Description

struct containing the collision info for an object

Definition at line 87 of file PhysicalStateComponent.h.

Constructor & Destructor Documentation

i6e::api::CollisionGroup::CollisionGroup ( )
inline

Constructor. Initializes members with 0 (no Collisions)

Definition at line 106 of file PhysicalStateComponent.h.

i6e::api::CollisionGroup::CollisionGroup ( uint32_t  response,
uint32_t  type,
uint32_t  mask 
)
inline

Constructor. Initializes members with given values.

Parameters
[in]responsevalue indicating how this object interacts in the world
[in]typevalue defining the type of the object (user definable)
[in]maska collision msg will be sent if this:mask & other:type != 0

Definition at line 115 of file PhysicalStateComponent.h.

i6e::api::CollisionGroup::CollisionGroup ( const std::string &  str)
inlineexplicit

Constructor. Initializes members with given values.

Parameters
[in]strstring containing responseType, crashType and crashMask

Definition at line 122 of file PhysicalStateComponent.h.

Member Function Documentation

void i6e::api::CollisionGroup::insertInMap ( const std::string &  entry,
attributeMap params 
) const
inline

Definition at line 136 of file PhysicalStateComponent.h.

CollisionGroup& i6e::api::CollisionGroup::operator= ( const CollisionGroup cg)
inline

Definition at line 129 of file PhysicalStateComponent.h.

template<class Archive >
void i6e::api::CollisionGroup::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Definition at line 143 of file PhysicalStateComponent.h.

Member Data Documentation

uint32_t i6e::api::CollisionGroup::crashMask

mask of all objects the given object gets collision feedback

Definition at line 101 of file PhysicalStateComponent.h.

uint32_t i6e::api::CollisionGroup::crashType

type of the object

Definition at line 96 of file PhysicalStateComponent.h.

uint32_t i6e::api::CollisionGroup::responseType

defines the physical properties

Definition at line 91 of file PhysicalStateComponent.h.


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