|
KCGStudyDXLibProject
|
ゲームオブジェクト [詳解]
#include <GameObject.h>
クラス | |
| class | Builder |
公開メンバ関数 | |
| GameObject (const Builder &builder) | |
| コンストラクタ | |
| ~GameObject () | |
| デストラクタ | |
| void | start () |
| コンポーネントのStart呼び出し | |
| void | update () |
| コンポーネントのUpdate呼び出し | |
| void | fixedUpdate () |
| コンポーネントのFixedUpdate呼び出し | |
| void | destroy () |
| コンポーネントのDestroy呼び出し | |
| void | removeComponent (IComponent *component) |
| コンポーネントを削除する | |
| template<typename T> | |
| T * | addComponent () |
| コンポーネントを追加する | |
| template<typename T> | |
| T * | getComponent () |
| コンポーネントの参照を取得する | |
| GameObject * | setPosition (const VECTOR position) |
| 位置のセット | |
| GameObject * | setRotation (const VECTOR rotation) |
| 回転のセット | |
| GameObject * | setScale (const VECTOR scale) |
| スケールのセット | |
| GameObject * | setActive (const bool isActive) |
| アクティブ状態のセット | |
| Transform & | getTransform () |
| Transform情報の取得 | |
| std::string | getName () const |
| 名前の取得 | |
| AllEnumSpace::Tag | getTag () const |
| タグの取得 | |
| bool | getIsActive () const |
| アクティブ状態を確かめる | |
ゲームオブジェクト
| GameObject::GameObject | ( | const Builder & | builder | ) |
コンストラクタ
| builder | ビルド設定 |
|
inline |
コンポーネントを追加する
| T | Component基底クラス |
|
inline |
コンポーネントの参照を取得する
| T | Component基底クラス |
| bool GameObject::getIsActive | ( | ) | const |
アクティブ状態を確かめる
| std::string GameObject::getName | ( | ) | const |
名前の取得
| AllEnumSpace::Tag GameObject::getTag | ( | ) | const |
タグの取得
| void GameObject::removeComponent | ( | IComponent * | component | ) |
コンポーネントを削除する
| component | コンポーネント |
| GameObject * GameObject::setActive | ( | const bool | isActive | ) |
アクティブ状態のセット
| isActive | アクティブ化 |
| GameObject * GameObject::setPosition | ( | const VECTOR | position | ) |
位置のセット
| position | 位置 |
| GameObject * GameObject::setRotation | ( | const VECTOR | rotation | ) |
回転のセット
| rotation | 回転 |
| GameObject * GameObject::setScale | ( | const VECTOR | scale | ) |
スケールのセット
| scale | スケール |