-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.h
41 lines (32 loc) · 886 Bytes
/
player.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
#pragma once
#include "gclass.h"
#include "chara.h"
#include "hit.h"
class COMMON_DATA;
class CHARA_OBJECT;
//---------------------------------------------------------------------------
//ゲームオブジェクト:プレイヤー
//---------------------------------------------------------------------------
class PLAYER_OBJECT : public CHARA_OBJECT{
public:
//■■■メンバ変数■■■
CHARA_OBJECT *sword;
int swordcool;
int LocalAngle;
int Motion;
int WalkTime;
bool isWalk;
bool LocalAngleChangeable;
int DamageSound;
int SwingSound;
//■■■メンバ関数■■■
void Initialize() override;
void Finalize() override;
void Update() override; //更新処理
void Collision();
void Draw() override; //描画処理
void UpdateMotion();
PLAYER_OBJECT(CHARA_HIT *hitdata, CHARA_DEFINFO *data, COMMON_DATA *common);
POINT2D GetPlayerPos() { return data->pos; };
void SwingSword();
};