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

#include <Test.hpp>

Cam01 の継承関係図
Kisaragi_Lib::GameObj::GameObjBase

公開メンバ関数

void Start () override
 
void Update () override
 
- 基底クラス Kisaragi_Lib::GameObj::GameObjBase に属する継承公開メンバ関数
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)
 
void MessageComponentList (string _message)
 

その他の継承メンバ

- 基底クラス Kisaragi_Lib::GameObj::GameObjBase に属する継承公開変数類
Transform2D transform
 
- 基底クラス Kisaragi_Lib::GameObj::GameObjBase に属する継承限定公開変数類
bool isActive
 
string id
 
string name
 

関数詳解

◆ Start()

void Cam01::Start ( )
inlineoverridevirtual

Kisaragi_Lib::GameObj::GameObjBaseを再実装しています。

47 {
48 //transform.position = Point2D<double>(WINDOW_WIDTH / 2, WINDOW_HEIGHT / 2);
49
51 name = "cam01";
52
53 //レイヤー除外
54 GetComponent<CameraComponent>().AddExcludedLayer(GetLayerFacade().Layers()["BG"]);
55 }
T & GetComponent()
コンポーネントを取得する
Definition GameObj.hpp:84
string name
Definition GameObj.hpp:36
void AddComponent()
コンポーネントを追加
Definition GameObj.hpp:70
LayerFacade & GetLayerFacade()
Definition ImgComponent.cpp:30

◆ Update()

void Cam01::Update ( )
inlineoverridevirtual

Kisaragi_Lib::GameObj::GameObjBaseを再実装しています。

58 {
59 if (GetKeyInput().KeyDown(KeyCode::KEY_0))
60 {
61 //レイヤー除外
62 GetComponent<CameraComponent>().AddExcludedLayer(GetLayerFacade().Layers()["BG"]);
63 }
64
65 if (GetKeyInput().KeyDown(KeyCode::KEY_1))
66 {
67 //レイヤー除外
68 GetComponent<CameraComponent>().PopExcludedLayer(GetLayerFacade().Layers()["BG"]);
69 }
70
71
72 }
KeyInput & GetKeyInput()
Definition KeyInput.hpp:295

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