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

ゲームオブジェクト [詳解]

#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 ()
 コンポーネントの参照を取得する
GameObjectsetPosition (const VECTOR position)
 位置のセット
GameObjectsetRotation (const VECTOR rotation)
 回転のセット
GameObjectsetScale (const VECTOR scale)
 スケールのセット
GameObjectsetActive (const bool isActive)
 アクティブ状態のセット
TransformgetTransform ()
 Transform情報の取得
std::string getName () const
 名前の取得
AllEnumSpace::Tag getTag () const
 タグの取得
bool getIsActive () const
 アクティブ状態を確かめる

詳解

ゲームオブジェクト

構築子と解体子

◆ GameObject()

GameObject::GameObject ( const Builder & builder)

コンストラクタ

引数
builderビルド設定

関数詳解

◆ addComponent()

template<typename T>
T * GameObject::addComponent ( )
inline

コンポーネントを追加する

テンプレート引数
TComponent基底クラス
戻り値
コンポーネント

◆ getComponent()

template<typename T>
T * GameObject::getComponent ( )
inline

コンポーネントの参照を取得する

テンプレート引数
TComponent基底クラス
戻り値
コンポーネント

◆ getIsActive()

bool GameObject::getIsActive ( ) const

アクティブ状態を確かめる

戻り値
アクティブか

◆ getName()

std::string GameObject::getName ( ) const

名前の取得

戻り値
名前

◆ getTag()

AllEnumSpace::Tag GameObject::getTag ( ) const

タグの取得

戻り値
タグ

◆ getTransform()

Transform & GameObject::getTransform ( )

Transform情報の取得

戻り値
Transform

◆ removeComponent()

void GameObject::removeComponent ( IComponent * component)

コンポーネントを削除する

引数
componentコンポーネント

◆ setActive()

GameObject * GameObject::setActive ( const bool isActive)

アクティブ状態のセット

引数
isActiveアクティブ化
戻り値
メソッドチェーン用

◆ setPosition()

GameObject * GameObject::setPosition ( const VECTOR position)

位置のセット

引数
position位置
戻り値
メソッドチェーン用

◆ setRotation()

GameObject * GameObject::setRotation ( const VECTOR rotation)

回転のセット

引数
rotation回転
戻り値
メソッドチェーン用

◆ setScale()

GameObject * GameObject::setScale ( const VECTOR scale)

スケールのセット

引数
scaleスケール
戻り値
メソッドチェーン用

このクラス詳解は次のファイルから抽出されました:
  • KCGStudyDXLibProject/KCGStudyDXLibProject/src/base/gameObject/GameObject.h
  • KCGStudyDXLibProject/KCGStudyDXLibProject/src/base/gameObject/GameObject.cpp