ScummVM API documentation
dialogs_char_info.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
#ifndef XEEN_DIALOGS_CHAR_INFO_H
23
#define XEEN_DIALOGS_CHAR_INFO_H
24
25
#include "mm/xeen/dialogs/dialogs.h"
26
#include "mm/xeen/party.h"
27
#include "mm/xeen/window.h"
28
29
namespace
MM
{
30
namespace
Xeen {
31
32
class
CharacterInfo
:
public
ButtonContainer
{
33
private
:
34
SpriteResource
_iconSprites;
35
DrawStruct
_drawList[24];
36
int
_cursorCell;
37
38
CharacterInfo
(
XeenEngine
*vm) :
ButtonContainer
(vm), _cursorCell(0) {}
39
40
void
execute(
int
charIndex);
41
45
void
loadDrawStructs();
46
50
void
addButtons();
51
55
const
char
*getDaysPlurals(
int
val);
56
60
Common::String
loadCharacterDetails(
const
Character
&c);
61
65
void
showCursor(
bool
flag);
66
70
const
char
*getBornForm(
const
Character
&c);
71
75
const
char
*getFoodOnHandPlurals(
int
food);
76
77
bool
expandStat(
int
attrib,
const
Character
&c);
78
public
:
79
static
void
show(
XeenEngine
*vm,
int
charIndex);
80
};
81
82
}
// End of namespace Xeen
83
}
// End of namespace MM
84
85
#endif
Common::String
Definition:
str.h:59
MM::Xeen::CharacterInfo
Definition:
dialogs_char_info.h:32
MM::Shared::Xeen::SpriteResource
Definition:
sprites.h:52
MM::Xeen::XeenEngine
Definition:
xeen.h:93
MM::Xeen::DrawStruct
Definition:
window.h:38
MM::Xeen::Character
Definition:
character.h:106
MM
Definition:
detection.h:27
MM::Xeen::ButtonContainer
Definition:
dialogs.h:74
engines
mm
xeen
dialogs
dialogs_char_info.h
Generated on Mon Dec 23 2024 09:15:39 for ScummVM API documentation by
1.8.13