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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/* ScummVM - Scumm Interpreter
* Copyright (C) 2004 The ScummVM project
*
* The ReInherit Engine is (C)2000-2003 by Daniel Balsom.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header$
*
*/
/*
Description:
Actor management module public header file
Notes:
*/
#ifndef SAGA_ACTOR_MOD_H
#define SAGA_ACTOR_MOD_H
namespace Saga {
enum R_ACTOR_WALKFLAGS {
WALK_NONE = 0x00,
WALK_NOREORIENT = 0x01
};
enum R_ACTOR_ORIENTATIONS {
ORIENT_N = 0,
ORIENT_NE = 1,
ORIENT_E = 2,
ORIENT_SE = 3,
ORIENT_S = 4,
ORIENT_SW = 5,
ORIENT_W = 6,
ORIENT_NW = 7
};
enum R_ACTOR_ACTIONS {
ACTION_IDLE = 0,
ACTION_WALK = 1,
ACTION_SPEAK = 2,
ACTION_COUNT
};
enum R_ACTOR_ACTIONFLAGS {
ACTION_NONE = 0x00,
ACTION_LOOP = 0x01
};
int ACTOR_Register(void);
int ACTOR_Init(void);
int ACTOR_Shutdown(void);
int ACTOR_Direct(int msec);
int ACTOR_Create(int actor_id, int x, int y);
int ACTOR_ActorExists(uint actor_id);
int ACTOR_DrawList(void);
int ACTOR_AtoS(R_POINT * logical, const R_POINT * actor);
int ACTOR_StoA(R_POINT * actor, const R_POINT * screen);
int ACTOR_Move(int index, R_POINT * move_pt);
int ACTOR_MoveRelative(int index, R_POINT * move_pt);
int ACTOR_WalkTo(int index, R_POINT * walk_pt, uint flags, R_SEMAPHORE * sem);
int ACTOR_GetActorIndex(uint actor_id);
int ACTOR_Speak(int index, char *d_string, uint d_voice_rn, R_SEMAPHORE * sem);
int ACTOR_SkipDialogue(void);
int ACTOR_GetSpeechTime(const char *d_string, uint d_voice_rn);
int ACTOR_SetOrientation(int index, int orient);
int ACTOR_SetAction(int index, int action_n, uint action_flags);
int ACTOR_SetDefaultAction(int index, int action_n, uint action_flags);
} // End of namespace Saga
#endif /* R_ACTOR_MOD_H */
/* end "r_actor_mod.h" */
|