ScummVM API documentation
personbase.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
/*
23
* This code is based on the CRAB engine
24
*
25
* Copyright (c) Arvind Raja Yadav
26
*
27
* Licensed under MIT
28
*
29
*/
30
31
#ifndef CRAB_PERSONBASE_H
32
#define CRAB_PERSONBASE_H
33
34
#include "common/str.h"
35
36
namespace
Crab
{
37
38
namespace
pyrodactyl {
39
namespace
people {
40
// What each type is, and what it does
41
// neutral - peaceful person who will fight back on being attacked
42
// hostile - person who will attack you on sight
43
// coward - person who will flee on being attacked
44
// immobile - person who cannot move but can be killed
45
enum
PersonType {
46
PE_NEUTRAL,
47
PE_HOSTILE,
48
PE_COWARD,
49
PE_IMMOBILE
50
};
51
52
// What each state is, and what it does
53
// normal - person doing his default movement
54
// fight - person fighting you
55
// flee - person running away from you
56
// ko - person is dead/knocked out
57
// dying - play the dying animation
58
enum
PersonState {
59
PST_NORMAL,
60
PST_FIGHT,
61
PST_FLEE,
62
PST_KO,
63
PST_DYING
64
};
65
66
PersonType stringToPersonType(
const
Common::String
&val);
67
PersonState stringToPersonState(
const
Common::String
&val);
68
}
// End of namespace people
69
}
// End of namespace pyrodactyl
70
71
}
// End of namespace Crab
72
73
#endif // CRAB_PERSONBASE_H
Common::String
Definition:
str.h:59
Crab
Definition:
moveeffect.h:37
engines
crab
people
personbase.h
Generated on Sun Dec 22 2024 09:10:03 for ScummVM API documentation by
1.8.13