OROCHI
 
Loading...
Searching...
No Matches
GxPadRecorder Class Reference

入力パッドレコーダー処理クラス More...

#include <GxPadRecorder.h>

Inheritance diagram for GxPadRecorder:
Collaboration diagram for GxPadRecorder:

Public Member Functions

初期化
 GxPadRecorder (void)
 コンストラクタ
 
 ~GxPadRecorder (void) override
 デストラクタ
 
void initializeRecording (GxResPadRecorder *pResource, u32 playerNum=RECORD_PLAYER_MIN, u32 frame=0, u32 randSeed=0, u32 flag=0)
 初期化 (記録用)
 
void initializePlaying (GxResPadRecorder *pResource, u32 frame=0, u32 flag=0)
 初期化 (再生用)
 
void terminate (void)
 終了
 
アクセサ
constexpr GxResPadRecordergetResource (void) const
 リソースポインタ取得
 
GX_FORCE_INLINE b32 isInitialized (void) const
 初期化済み判定
 
GX_FORCE_INLINE b32 isEnd (u32 player) const
 終了判定
 
- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 

Protected Attributes

メンバ変数
b32 _isInitialized
 初期化済みフラグ
 
GxResPadRecorder_pResource
 リソースポインタ
 
u32 _currentFrame [RECORD_PLAYER_MAX]
 現在フレーム
 
u32 _flag
 フラグ
 
u32 _endFrame
 終端フレーム
 

定義

enum  PAD_RECORDER_FLAG { PAD_RECORDER_FLAG_PRINT_TTY = (1 << 0) , PAD_RECORDER_FLAG_AUTO_SAVE = (1 << 1) }
 フラグ定義 More...
 
static constexpr u32 RECORD_PLAYER_MAX = 8
 最大プレイヤー人数
 
static constexpr u32 RECORD_PLAYER_MIN = 1
 最低プレイヤー人数
 
static constexpr u32 RECORD_FRAME_MAX = 60 * 60 * 60
 最大記憶フレーム数
 

操作

b32 recordData (const GxPad::GxInputData &src, u32 player=0)
 入力パッド情報記録
 
b32 playData (GxPad::GxInputData &dst, u32 player=0)
 入力パッド情報再生
 
void autoSavePadData (void)
 入力パッドデータオートセーブ
 

Additional Inherited Members

- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 

Detailed Description

入力パッドレコーダー処理クラス

Member Enumeration Documentation

◆ PAD_RECORDER_FLAG

フラグ定義

Enumerator
PAD_RECORDER_FLAG_PRINT_TTY 

TTY出力機能

PAD_RECORDER_FLAG_AUTO_SAVE 

オートセーブ機能 (記録フレーム終了時)

Member Function Documentation

◆ initializePlaying()

void GxPadRecorder::initializePlaying ( GxResPadRecorder * pResource,
u32 frame = 0,
u32 flag = 0 )

初期化 (再生用)

Parameters
pResource[in] 対象リソース (nullptrの場合:内部リソースをそのまま利用)
frame[in] 再生制限フレーム数 (0の場合:最大サイズ指定)
flag[in] フラグ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeRecording()

void GxPadRecorder::initializeRecording ( GxResPadRecorder * pResource,
u32 playerNum = RECORD_PLAYER_MIN,
u32 frame = 0,
u32 randSeed = 0,
u32 flag = 0 )

初期化 (記録用)

Parameters
pResource[in,out] 対象リソース
playerNum[in] プレイヤー人数
frame[in] 記録制限フレーム数 (0の場合:最大サイズ指定)
randSeed[in] 乱数シード
flag[in] フラグ
Here is the call graph for this function:

◆ playData()

b32 GxPadRecorder::playData ( GxPad::GxInputData & dst,
u32 player = 0 )

入力パッド情報再生

Parameters
dst[out] 再生入力パッド情報格納先
player[in] 対象プレイヤーインデックス
Returns
パッド情報取得成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ recordData()

b32 GxPadRecorder::recordData ( const GxPad::GxInputData & src,
u32 player = 0 )

入力パッド情報記録

Parameters
src[in] 記録入力パッド情報
player[in] 対象プレイヤーインデックス
Returns
パッド情報記憶成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: