V-Gears 0
Free Final Fantasy VII engine.
FF7Character.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include "common/TypeDefine.h"
17
22
23 public:
24
28 Character();
29
33 virtual ~Character();
34
39
43 CLOUD = 0,
44
48 BARRET = 1,
49
53 TIFA = 2,
54
58 AERIS = 3,
59
63 RED = 4,
64
68 CID = 5,
69
74
78 YUVI = 7,
79
83 KETCY = 8,
84
88 UNKNOWN = 9
89 };
90
98 static CharacterId GetIdByName( const VGears::String& name);
99
100 private:
101
102 typedef std::map<VGears::String, CharacterId> CharacterIdLookupMap;
103
113
114
116};
117
A playable character.
Definition: FF7Character.h:21
static CharacterIdLookupMap CreateLookupMap()
Creates a lookup map for character names.
Definition: FF7Character.cpp:23
static const CharacterIdLookupMap character_id_lookup_
Definition: FF7Character.h:115
std::map< VGears::String, CharacterId > CharacterIdLookupMap
Definition: FF7Character.h:102
virtual ~Character()
Destructor.
Definition: FF7Character.cpp:21
static CharacterId GetIdByName(const VGears::String &name)
Retrieves a character ID from it's name.
Definition: FF7Character.cpp:80
CharacterId
List of character IDs.
Definition: FF7Character.h:38
@ RED
Red XIII's ID.
Definition: FF7Character.h:63
@ YUVI
Yuffie's ID.
Definition: FF7Character.h:78
@ CLOUD
Cloud's ID.
Definition: FF7Character.h:43
@ TIFA
Tifa's ID.
Definition: FF7Character.h:53
@ KETCY
Cait Sith's ID.
Definition: FF7Character.h:83
@ UNKNOWN
Unknown character ID.
Definition: FF7Character.h:88
@ BARRET
Barret's ID.
Definition: FF7Character.h:48
@ CID
Cid's ID.
Definition: FF7Character.h:68
@ VINCENT
Vincent's ID.
Definition: FF7Character.h:73
@ AERIS
Aerith's ID.
Definition: FF7Character.h:58
Character()
Constructor.
Definition: FF7Character.cpp:19
Ogre::String String
Definition: TypeDefine.h:37