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

#include <GameObj.hpp>

Kisaragi_Lib::GameObj::GameObjBase の継承関係図
BG Cam01 Cam02 Player02 Test ViewLeft ViewR

公開メンバ関数

string GetName ()
 
virtual void OnCollisionEnter (GameObjBase *_other)
 
virtual void OnCollisionStay (GameObjBase *_other)
 
virtual void OnCollisionExit (GameObjBase *_other)
 
 GameObjBase ()
 
virtual ~GameObjBase ()
 
template<class T>
void AddComponent ()
 コンポーネントを追加
 
template<class T>
T & GetComponent ()
 コンポーネントを取得する
 
template<class T>
T & TryGetComponent ()
 コンポーネントを取得する
 
void AddRemoveComponent (ComponentBase *_com)
 
void AddRemoveComponent (string _id)
 
void Destroy ()
 
string ID () const
 
void ID (string _id)
 
virtual void Update ()
 
virtual void Start ()
 
void MessageComponentList (string _message)
 

公開変数類

Transform2D transform
 

限定公開変数類

bool isActive
 
string id
 
string name
 

非公開変数類

ComponentList componentList
 

構築子と解体子

◆ GameObjBase()

Kisaragi_Lib::GameObj::GameObjBase::GameObjBase ( )
inline

◆ ~GameObjBase()

virtual Kisaragi_Lib::GameObj::GameObjBase::~GameObjBase ( )
inlinevirtual
63{}

関数詳解

◆ GetName()

string Kisaragi_Lib::GameObj::GameObjBase::GetName ( )
inline
41 {
42 return name;
43 }
string name
Definition GameObj.hpp:36

◆ OnCollisionEnter()

virtual void Kisaragi_Lib::GameObj::GameObjBase::OnCollisionEnter ( GameObjBase * _other)
inlinevirtual

Player02で再実装されています。

46 {
47 //TODO ここでメッセージ受信
48 }

◆ OnCollisionStay()

virtual void Kisaragi_Lib::GameObj::GameObjBase::OnCollisionStay ( GameObjBase * _other)
inlinevirtual

Player02で再実装されています。

51 {
52 //TODO ここでメッセージ受信
53 }

◆ OnCollisionExit()

virtual void Kisaragi_Lib::GameObj::GameObjBase::OnCollisionExit ( GameObjBase * _other)
inlinevirtual

Player02で再実装されています。

56 {
57 //TODO ここでメッセージ受信
58 }

◆ AddComponent()

template<class T>
void Kisaragi_Lib::GameObj::GameObjBase::AddComponent ( )
inline

コンポーネントを追加

テンプレート引数
T追加したいコンポーネントの型
71 {
72 componentList.AddComponent<T>(this);
73 }
ComponentList componentList
Definition GameObj.hpp:31

参照元 BG::Start(), Cam01::Start(), Cam02::Start(), Player02::Start(), Test::Start(), ViewLeft::Start(), ViewR::Start().

◆ GetComponent()

template<class T>
T & Kisaragi_Lib::GameObj::GameObjBase::GetComponent ( )
inline

コンポーネントを取得する

テンプレート引数
T捜索するコンポーネントの型
戻り値
成功時 : 発見したコンポーネントのポインタ

失敗時 : プログラム終了

85 {
86 return componentList.GetComponent<T>();
87 }

参照元 BG::Start(), Cam01::Start(), Player02::Start(), Test::Start(), ViewLeft::Start(), ViewR::Start(), Cam01::Update().

◆ TryGetComponent()

template<class T>
T & Kisaragi_Lib::GameObj::GameObjBase::TryGetComponent ( )
inline

コンポーネントを取得する

テンプレート引数
T捜索するコンポーネントの型
戻り値
成功時 : 発見したコンポーネントのポインタ

失敗時 : 何も返さない

99 {
100 return componentList.TryGetComponent<T>();
101 }

◆ AddRemoveComponent() [1/2]

void Kisaragi_Lib::GameObj::GameObjBase::AddRemoveComponent ( ComponentBase * _com)
9 {
10 componentList.AddRemoveComponent(_com);
11 }

◆ AddRemoveComponent() [2/2]

void Kisaragi_Lib::GameObj::GameObjBase::AddRemoveComponent ( string _id)
14 {
15 componentList.AddRemoveComponent(_id);
16
17 }

◆ Destroy()

void Kisaragi_Lib::GameObj::GameObjBase::Destroy ( )
20 {
21 componentList.Destroy();
22
23 //gjIuWFNgɒlj.
25 }
void AddDestroy(string _id)
破棄オブジェクトの登録
Definition GameObj.cpp:77
GameObjectFacade & GetGameObjectFacade()
Definition GameObj.cpp:45

◆ ID() [1/2]

string Kisaragi_Lib::GameObj::GameObjBase::ID ( ) const
28 {
29 return id;
30 }
string id
Definition GameObj.hpp:35

参照元 Kisaragi_Lib::GameObj::GameObjectFacade::AddDestroy().

◆ ID() [2/2]

void Kisaragi_Lib::GameObj::GameObjBase::ID ( string _id)
33 {
34 id = _id;
35 }

◆ Update()

virtual void Kisaragi_Lib::GameObj::GameObjBase::Update ( )
inlinevirtual

Cam01, Player02, Test, ViewLeft, ViewRで再実装されています。

114{};

◆ Start()

virtual void Kisaragi_Lib::GameObj::GameObjBase::Start ( )
inlinevirtual

BG, Cam01, Cam02, Player02, Test, ViewLeft, ViewRで再実装されています。

116{};

◆ MessageComponentList()

void Kisaragi_Lib::GameObj::GameObjBase::MessageComponentList ( string _message)
39 {
40 //TODO ȂłObZ[WĂ???????????
41 if (_message == "RemoveComponent") { componentList.RemoveComponent(); }
42 }

メンバ詳解

◆ componentList

◆ isActive

bool Kisaragi_Lib::GameObj::GameObjBase::isActive
protected

参照元 GameObjBase().

◆ id

string Kisaragi_Lib::GameObj::GameObjBase::id
protected

参照元 ID().

◆ name

string Kisaragi_Lib::GameObj::GameObjBase::name
protected

◆ transform

Transform2D Kisaragi_Lib::GameObj::GameObjBase::transform

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