-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.h
More file actions
65 lines (45 loc) · 1.68 KB
/
player.h
File metadata and controls
65 lines (45 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//=============================================================================
//
// モデル処理 [player.h]
// Author :
//
//=============================================================================
#pragma once
//*****************************************************************************
// マクロ定義
//*****************************************************************************
#define MAX_PLAYER (1) // プレイヤーの数
#define PLAYER_SIZE (5.0f) // 当たり判定の大きさ
//*****************************************************************************
// 構造体定義
//*****************************************************************************
struct PLAYER
{
XMFLOAT4X4 mtxWorld; // ワールドマトリックス
XMFLOAT3 pos; // モデルの位置
XMFLOAT3 rot; // モデルの向き(回転)
XMFLOAT3 scl; // モデルの大きさ(スケール)
float spd; // 移動スピード
BOOL load;
DX11_MODEL model; // モデル情報
int shadowIdx; // 影のインデックス番号
BOOL use;
float size;
// 階層アニメーション用のメンバー変数
float time; // 線形補間用
int tblNo; // 行動データのテーブル番号
int tblMax; // そのテーブルのデータ数
// 親は、NULL、子供は親のアドレスを入れる
PLAYER *parent; // 自分が親ならNULL、自分が子供なら親のplayerアドレス
// クォータニオン
XMFLOAT4 Quaternion;
XMFLOAT3 UpVector; // 自分が立っている所
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitPlayer(void);
void UninitPlayer(void);
void UpdatePlayer(void);
void DrawPlayer(void);
PLAYER *GetPlayer(void);