KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
ECS::Entity クラス

Objectの識別子となるクラス [詳解]

#include <Entity.hpp>

公開メンバ関数

 Entity ()
 
 Entity (EntityID _id)
 
 Entity (EntityID _id, Version _ver)
 
 operator const EntityID & ()
 
bool operator== (const Entity &_entity)
 
bool operator!= (const Entity &_entity)
 
const Versionoperator++ ()
 
const Versionoperator++ (int)
 

非公開変数類

EntityID id
 
Version ver
 

詳解

Objectの識別子となるクラス

構築子と解体子

◆ Entity() [1/3]

ECS::Entity::Entity ( )
inline
23 :id{ 0 }, ver{ 0 }
24 {
25 }
Version ver
Definition Entity.hpp:20

参照元 operator!=(), operator==().

◆ Entity() [2/3]

ECS::Entity::Entity ( EntityID _id)
inline
27 :id{ _id }, ver{ 0 }
28 {
29 }

◆ Entity() [3/3]

ECS::Entity::Entity ( EntityID _id,
Version _ver )
inline
31 :id{ _id }, ver{ _ver }
32 {
33 }

関数詳解

◆ operator const EntityID &()

ECS::Entity::operator const EntityID & ( )
inline
38 {
39 return id;
40 }
EntityID id
Definition Entity.hpp:19

◆ operator==()

bool ECS::Entity::operator== ( const Entity & _entity)
inline
44 {
45 return (id == _entity.id && ver == _entity.ver);
46 }

◆ operator!=()

bool ECS::Entity::operator!= ( const Entity & _entity)
inline
49 {
50 return !(*this == _entity);
51 }

◆ operator++() [1/2]

const Version & ECS::Entity::operator++ ( )
inline
55 {
56 return ver++;
57 }

◆ operator++() [2/2]

const Version & ECS::Entity::operator++ ( int )
inline
60 {
61 return ++ver;
62 }

メンバ詳解

◆ id

◆ ver

Version ECS::Entity::ver
private

このクラス詳解は次のファイルから抽出されました: