ScummVM API documentation
eventstore.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_EVENTSTORE_H
32#define CRAB_EVENTSTORE_H
33
34#include "crab/animation/animation.h"
35#include "crab/event/conversationdata.h"
36#include "crab/ui/StateButton.h"
37
38namespace Crab {
39
40namespace pyrodactyl {
41namespace event {
42// This structure is responsible for storing the special data structures for events like replies, conversations
44 // Data related to conversation events
46
47 // Data related to animations
49
50 // Data related to the tones of a character
51 struct ToneData {
52 Common::String _text;
53 };
54
55 // This sets the text the player sees as "tone" during the reply menu
57
58 // We need to change player character images when switching between characters
60
61 // The set of traits for various characters
63
64 // Steam UserStats interface
65 // ISteamUserStats *m_pSteamUserStats;
66
68 // Huge number to prevent lots of resizing and stuff
69 _con.reserve(9999);
70
71 _trait.reserve(120);
72 _tone.reserve(120);
73 }
74
75 void clear() {
76 _con.clear();
77 _anim.clear();
78 }
79
80 void load(const Common::Path &filename);
81
82 void addConv(rapidxml::xml_node<char> *node, uint &index);
83 void setAchievement(const int &id);
84};
85
86} // End of namespace event
87} // End of namespace pyrodactyl
88
89} // End of namespace Crab
90
91#endif // CRAB_EVENTSTORE_H
Definition: array.h:52
void reserve(size_type newCapacity)
Definition: array.h:397
void clear()
Definition: array.h:321
Definition: path.h:52
Definition: str.h:59
Definition: eventstore.h:43