liblcf
rpg_eventcommand.h
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6  *
7  * liblcf is Free/Libre Open Source Software, released under the MIT License.
8  * For the full copyright and license information, please view the COPYING
9  * file that was distributed with this source code.
10  */
11 
12 #ifndef LCF_RPG_EVENTCOMMAND_H
13 #define LCF_RPG_EVENTCOMMAND_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <string>
18 #include <vector>
19 #include "enum_tags.h"
20 
24 namespace RPG {
25  class EventCommand {
26  public:
27  struct Code {
28  enum Index {
29  END = 10,
31  ForceFlee = 1006,
32  EnableCombo = 1007,
33  ChangeClass = 1008,
35  OpenLoadMenu = 5001,
36  ExitGame = 5002,
37  ToggleAtbMode = 5003,
40  ShowMessage = 10110,
41  MessageOptions = 10120,
43  ShowChoice = 10140,
44  InputNumber = 10150,
45  ControlSwitches = 10210,
46  ControlVars = 10220,
47  TimerOperation = 10230,
48  ChangeGold = 10310,
49  ChangeItems = 10320,
51  ChangeExp = 10410,
52  ChangeLevel = 10420,
54  ChangeSkills = 10440,
55  ChangeEquipment = 10450,
56  ChangeHP = 10460,
57  ChangeSP = 10470,
58  ChangeCondition = 10480,
59  FullHeal = 10490,
60  SimulatedAttack = 10500,
61  ChangeHeroName = 10610,
62  ChangeHeroTitle = 10620,
64  ChangeActorFace = 10640,
66  ChangeSystemBGM = 10660,
67  ChangeSystemSFX = 10670,
70  EnemyEncounter = 10710,
71  OpenShop = 10720,
72  ShowInn = 10730,
73  EnterHeroName = 10740,
74  Teleport = 10810,
81  StoreTerrainID = 10910,
82  StoreEventID = 10920,
83  EraseScreen = 11010,
84  ShowScreen = 11020,
85  TintScreen = 11030,
86  FlashScreen = 11040,
87  ShakeScreen = 11050,
88  PanScreen = 11060,
89  WeatherEffects = 11070,
90  ShowPicture = 11110,
91  MovePicture = 11120,
92  ErasePicture = 11130,
95  FlashSprite = 11320,
96  MoveEvent = 11330,
98  HaltAllMovement = 11350,
99  Wait = 11410,
100  PlayBGM = 11510,
101  FadeOutBGM = 11520,
102  MemorizeBGM = 11530,
104  PlaySound = 11550,
105  PlayMovie = 11560,
106  KeyInputProc = 11610,
108  ChangePBG = 11720,
113  EscapeTarget = 11830,
115  OpenSaveMenu = 11910,
117  OpenMainMenu = 11950,
120  Label = 12110,
121  JumpToLabel = 12120,
122  Loop = 12210,
123  BreakLoop = 12220,
125  EraseEvent = 12320,
126  CallEvent = 12330,
127  Comment = 12410,
128  GameOver = 12420,
134  ChangeBattleBG = 13210,
138  ShowMessage_2 = 20110,
140  ShowChoiceEnd = 20141,
141  VictoryHandler = 20710,
142  EscapeHandler = 20711,
143  DefeatHandler = 20712,
144  EndBattle = 20713,
145  Transaction = 20720,
146  NoTransaction = 20721,
147  EndShop = 20722,
148  Stay = 20730,
149  NoStay = 20731,
150  EndInn = 20732,
151  ElseBranch = 22010,
152  EndBranch = 22011,
153  EndLoop = 22210,
154  Comment_2 = 22410,
155  ElseBranch_B = 23310,
156  EndBranch_B = 23311,
158  Maniac_Save = 3002,
159  Maniac_Load = 3003,
173  };
174  };
175 
176  int32_t code = 0;
177  int32_t indent = 0;
178  std::string string;
179  std::vector<int32_t> parameters;
180  };
181 
182  inline bool operator==(const EventCommand& l, const EventCommand& r) {
183  return l.code == r.code
184  && l.indent == r.indent
185  && l.string == r.string
186  && l.parameters == r.parameters;
187  }
188 
189  inline bool operator!=(const EventCommand& l, const EventCommand& r) {
190  return !(l == r);
191  }
192 }
193 
194 #endif
std::vector< int32_t > parameters
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
Definition: rpg_actor.h:26
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98