-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattleCursor.h
58 lines (48 loc) · 1.37 KB
/
battleCursor.h
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
//=============================================================================
//
// BG画面処理 [battleCursor.h]
// Author : GP11A132 21 DAYA MAHAPUTRA
//
//=============================================================================
#pragma once
#include "main.h"
#include "renderer.h"
//*****************************************************************************
// マクロ定義
//*****************************************************************************
#define CURSOR_MAX_POSITION (3)
#define POWER_UP_MAX_POSITION (4)
struct BATTLECURSOR
{
D3DXVECTOR3 pos[CURSOR_MAX_POSITION]; // ポリゴンの座標
D3DXVECTOR3 powerUpPos[POWER_UP_MAX_POSITION]; // 強化用のポリゴンの座標
float w, h; // 幅と高さ
int texNo; // 使用しているテクスチャ番号
int mode;
int posIndex;
BOOL canDoAction;
};
enum
{
HP_UP,
MP_UP,
ATK_UP,
RECOVERALL
};
enum {
MENU_SELECT,
ATTACK_ENEMY,
USE_FIREBALL,
HEAL_ALLY,
POWERUP_SELECT
};
//*****************************************************************************
// プロトタイプ宣言
//*****************************************************************************
HRESULT InitBattleCursor(void);
void UninitBattleCursor(void);
void UpdateBattleCursor(void);
void DrawBattleCursor(void);
void SelectTargetEnemy(void);
void SelectAlly(void);
BATTLECURSOR *GetBattleCursor(void);