-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
51 lines (40 loc) · 966 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
42
43
44
45
46
47
48
49
50
51
#ifndef DEF_Player_H //二重include防止
#define DEF_Player_H
#include "Camera.h"
#include "Console.h"
#include "Room.h"
#include "Sound.h"
#include <string>
#include <vector>
// TOLUA_BEGIN
struct Player
{
Camera *camera;
Console *console;
Room *room;
Sound *sound;
int area;
int count;
int time_limit;
int get_paper;
int p_state;
bool out_window;
bool drink_coffee;
bool break_max;
};
// TOLUA_END
// 初期化をする
Player *Player_Initialize(Camera *camera, Console *console, Room *room, Sound *sound);
// TOLUA_BEGIN
bool Player_get_achievement(Player *self, const char *name);
int Player_get_state(Player *self);
int Player_get_area(Player *self);
int Player_get_hougaku(Player *self);
int Player_get_time(Player *self);
int Player_get_paper(Player *self);
// TOLUA_END
// 動きを計算する
void Player_Update( Player *Player );
// 終了処理をする
void Player_Finalize( Player *Player );
#endif