ScummVM API documentation
missiveomat.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 TITANIC_MISSIVEOMAT_H
23#define TITANIC_MISSIVEOMAT_H
24
25#include "titanic/core/game_object.h"
26
27namespace Titanic {
28
29enum MissiveOMatMode {
30 MMODE_USERNAME = 1,
31 MMODE_PASSWORD = 2,
32 MMODE_DENIED = 3,
33 MMODE_LOGGED_IN = 4,
34 MMODE_5 = 5
35};
36
37enum MissiveOMatAccount {
38 NO_ACCOUNT = -1, LEOVINUS = 0, SCRALIONTIS = 1, BROBOSTIGON = 2
39};
40
41class CMissiveOMat : public CGameObject {
42 DECLARE_MESSAGE_MAP;
43 bool EnterViewMsg(CEnterViewMsg *msg);
44 bool KeyCharMsg(CKeyCharMsg *msg);
45 bool TimerMsg(CTimerMsg *msg);
46 bool MissiveOMatActionMsg(CMissiveOMatActionMsg *msg);
47 bool LeaveViewMsg(CLeaveViewMsg *msg);
48private:
49 CString _welcomeMessages[3];
50 CString _messages[58];
51 CString _from[58];
52 CString _to[58];
53private:
54 void loadArray(CString *arr, const CString &resName, int count);
55public:
56 MissiveOMatMode _mode;
57 int _totalMessages;
58 int _messageNum;
59 CString _username;
60 CString _password;
61 MissiveOMatAccount _account;
62public:
63 CLASSDEF;
65
69 void save(SimpleFile *file, int indent) override;
70
74 void load(SimpleFile *file) override;
75};
76
77} // End of namespace Titanic
78
79#endif /* TITANIC_MISSIVEOMAT_H */
Definition: messages.h:291
Definition: game_object.h:79
Definition: messages.h:309
Definition: messages.h:312
Definition: messages.h:319
Definition: missiveomat.h:41
void load(SimpleFile *file) override
void save(SimpleFile *file, int indent) override
Definition: string.h:40
Definition: messages.h:190
Definition: simple_file.h:49