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
RPG::EventCommand::Code::ShowInn
@ ShowInn
Definition: rpg_eventcommand.h:72
RPG::EventCommand::Code::ElseBranch
@ ElseBranch
Definition: rpg_eventcommand.h:151
RPG::EventCommand::Code::ElseBranch_B
@ ElseBranch_B
Definition: rpg_eventcommand.h:155
RPG::EventCommand::Code::ChangeHeroTitle
@ ChangeHeroTitle
Definition: rpg_eventcommand.h:62
RPG::EventCommand::Code::ShowMessage
@ ShowMessage
Definition: rpg_eventcommand.h:40
RPG::EventCommand::Code::DefeatHandler
@ DefeatHandler
Definition: rpg_eventcommand.h:143
RPG::EventCommand::Code::MemorizeBGM
@ MemorizeBGM
Definition: rpg_eventcommand.h:102
RPG::EventCommand::Code::EraseScreen
@ EraseScreen
Definition: rpg_eventcommand.h:83
RPG::EventCommand::Code::EndBranch
@ EndBranch
Definition: rpg_eventcommand.h:152
RPG::EventCommand::Code::OpenMainMenu
@ OpenMainMenu
Definition: rpg_eventcommand.h:117
RPG::EventCommand::Code::ChangeVehicleGraphic
@ ChangeVehicleGraphic
Definition: rpg_eventcommand.h:65
RPG::EventCommand::Code::PlaySound
@ PlaySound
Definition: rpg_eventcommand.h:104
RPG::EventCommand::Code::SpriteTransparency
@ SpriteTransparency
Definition: rpg_eventcommand.h:94
RPG::EventCommand::Code::Comment_2
@ Comment_2
Definition: rpg_eventcommand.h:154
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::EventCommand::Code::ShowScreen
@ ShowScreen
Definition: rpg_eventcommand.h:84
RPG::EventCommand::Code::Maniac_ControlGlobalSave
@ Maniac_ControlGlobalSave
Definition: rpg_eventcommand.h:172
RPG::EventCommand::Code::CallEvent
@ CallEvent
Definition: rpg_eventcommand.h:126
RPG::EventCommand::Code::EraseEvent
@ EraseEvent
Definition: rpg_eventcommand.h:125
RPG::EventCommand::Code::NoTransaction
@ NoTransaction
Definition: rpg_eventcommand.h:146
RPG::EventCommand::Code::Comment
@ Comment
Definition: rpg_eventcommand.h:127
RPG::EventCommand::Code::OpenShop
@ OpenShop
Definition: rpg_eventcommand.h:71
RPG::EventCommand::Code::ChangePBG
@ ChangePBG
Definition: rpg_eventcommand.h:108
RPG::EventCommand
Definition: rpg_eventcommand.h:25
RPG::EventCommand::parameters
std::vector< int32_t > parameters
Definition: rpg_eventcommand.h:179
RPG::EventCommand::Code::PlayBGM
@ PlayBGM
Definition: rpg_eventcommand.h:100
RPG::EventCommand::Code::ChangeEventLocation
@ ChangeEventLocation
Definition: rpg_eventcommand.h:79
RPG::EventCommand::Code::ChangeClass
@ ChangeClass
Definition: rpg_eventcommand.h:33
RPG::EventCommand::Code::ConditionalBranch_B
@ ConditionalBranch_B
Definition: rpg_eventcommand.h:136
RPG::EventCommand::Code::PlayMemorizedBGM
@ PlayMemorizedBGM
Definition: rpg_eventcommand.h:103
RPG::EventCommand::Code::PlayMovie
@ PlayMovie
Definition: rpg_eventcommand.h:105
RPG::EventCommand::Code::MovePicture
@ MovePicture
Definition: rpg_eventcommand.h:91
RPG::EventCommand::Code::ShowBattleAnimation_B
@ ShowBattleAnimation_B
Definition: rpg_eventcommand.h:135
RPG::EventCommand::Code::ErasePicture
@ ErasePicture
Definition: rpg_eventcommand.h:92
RPG::EventCommand::Code::Maniac_Load
@ Maniac_Load
Definition: rpg_eventcommand.h:159
RPG::EventCommand::Code::StoreEventID
@ StoreEventID
Definition: rpg_eventcommand.h:82
RPG
Definition: rpg_actor.h:26
RPG::EventCommand::Code::OpenLoadMenu
@ OpenLoadMenu
Definition: rpg_eventcommand.h:35
RPG::EventCommand::indent
int32_t indent
Definition: rpg_eventcommand.h:177
RPG::EventCommand::Code::ControlVars
@ ControlVars
Definition: rpg_eventcommand.h:46
RPG::EventCommand::Code::Maniac_ControlAtbGauge
@ Maniac_ControlAtbGauge
Definition: rpg_eventcommand.h:166
RPG::EventCommand::Code::Maniac_GetSaveInfo
@ Maniac_GetSaveInfo
Definition: rpg_eventcommand.h:157
RPG::EventCommand::Code::END
@ END
Definition: rpg_eventcommand.h:29
RPG::EventCommand::Code::KeyInputProc
@ KeyInputProc
Definition: rpg_eventcommand.h:106
RPG::EventCommand::Code::ChangeEncounterRate
@ ChangeEncounterRate
Definition: rpg_eventcommand.h:109
RPG::EventCommand::Code::Label
@ Label
Definition: rpg_eventcommand.h:120
RPG::EventCommand::Code::ChangeSystemBGM
@ ChangeSystemBGM
Definition: rpg_eventcommand.h:66
RPG::EventCommand::Code::Maniac_ShowStringPicture
@ Maniac_ShowStringPicture
Definition: rpg_eventcommand.h:163
RPG::EventCommand::Code::HaltAllMovement
@ HaltAllMovement
Definition: rpg_eventcommand.h:98
RPG::EventCommand::Code::ChangeEquipment
@ ChangeEquipment
Definition: rpg_eventcommand.h:55
RPG::EventCommand::Code::ProceedWithMovement
@ ProceedWithMovement
Definition: rpg_eventcommand.h:97
RPG::EventCommand::Code::ChangeSkills
@ ChangeSkills
Definition: rpg_eventcommand.h:54
RPG::EventCommand::Code::Maniac_Save
@ Maniac_Save
Definition: rpg_eventcommand.h:158
RPG::EventCommand::Code::ChangeLevel
@ ChangeLevel
Definition: rpg_eventcommand.h:52
RPG::EventCommand::Code::ShakeScreen
@ ShakeScreen
Definition: rpg_eventcommand.h:87
RPG::EventCommand::Code::Maniac_ControlVarArray
@ Maniac_ControlVarArray
Definition: rpg_eventcommand.h:169
RPG::EventCommand::Code::FullHeal
@ FullHeal
Definition: rpg_eventcommand.h:59
RPG::EventCommand::Code::InputNumber
@ InputNumber
Definition: rpg_eventcommand.h:44
RPG::EventCommand::Code::ShowPicture
@ ShowPicture
Definition: rpg_eventcommand.h:90
RPG::EventCommand::Code::ShowHiddenMonster
@ ShowHiddenMonster
Definition: rpg_eventcommand.h:133
RPG::EventCommand::Code::Maniac_ControlBattle
@ Maniac_ControlBattle
Definition: rpg_eventcommand.h:165
RPG::EventCommand::Code::ChangeMonsterHP
@ ChangeMonsterHP
Definition: rpg_eventcommand.h:130
RPG::EventCommand::Code::TileSubstitution
@ TileSubstitution
Definition: rpg_eventcommand.h:110
RPG::EventCommand::Code::TerminateBattle
@ TerminateBattle
Definition: rpg_eventcommand.h:137
RPG::EventCommand::Code::ShowChoiceOption
@ ShowChoiceOption
Definition: rpg_eventcommand.h:139
RPG::EventCommand::Code::GameOver
@ GameOver
Definition: rpg_eventcommand.h:128
RPG::EventCommand::Code::Transaction
@ Transaction
Definition: rpg_eventcommand.h:145
RPG::EventCommand::Code::ChangeSpriteAssociation
@ ChangeSpriteAssociation
Definition: rpg_eventcommand.h:63
RPG::EventCommand::Code::JumpToLabel
@ JumpToLabel
Definition: rpg_eventcommand.h:121
RPG::EventCommand::Code::WeatherEffects
@ WeatherEffects
Definition: rpg_eventcommand.h:89
RPG::EventCommand::Code::Maniac_GetPictureInfo
@ Maniac_GetPictureInfo
Definition: rpg_eventcommand.h:164
RPG::EventCommand::Code::EndEventProcessing
@ EndEventProcessing
Definition: rpg_eventcommand.h:124
RPG::EventCommand::Code::FadeOutBGM
@ FadeOutBGM
Definition: rpg_eventcommand.h:101
RPG::EventCommand::string
std::string string
Definition: rpg_eventcommand.h:178
RPG::EventCommand::Code::ForceFlee
@ ForceFlee
Definition: rpg_eventcommand.h:31
RPG::EventCommand::Code::ChangeSP
@ ChangeSP
Definition: rpg_eventcommand.h:57
RPG::EventCommand::Code::ChangeMapTileset
@ ChangeMapTileset
Definition: rpg_eventcommand.h:107
RPG::EventCommand::Code::ChangeGold
@ ChangeGold
Definition: rpg_eventcommand.h:48
RPG::EventCommand::Code::FlashScreen
@ FlashScreen
Definition: rpg_eventcommand.h:86
RPG::EventCommand::Code::ReturntoTitleScreen
@ ReturntoTitleScreen
Definition: rpg_eventcommand.h:129
RPG::EventCommand::Code::Loop
@ Loop
Definition: rpg_eventcommand.h:122
RPG::EventCommand::Code::ChangeTeleportAccess
@ ChangeTeleportAccess
Definition: rpg_eventcommand.h:112
RPG::EventCommand::Code::ChangeHP
@ ChangeHP
Definition: rpg_eventcommand.h:56
RPG::EventCommand::Code::ChangePartyMembers
@ ChangePartyMembers
Definition: rpg_eventcommand.h:50
RPG::EventCommand::Code::Index
Index
Definition: rpg_eventcommand.h:28
RPG::EventCommand::Code::ToggleAtbMode
@ ToggleAtbMode
Definition: rpg_eventcommand.h:37
RPG::EventCommand::Code::Maniac_ChangeBattleCommandEx
@ Maniac_ChangeBattleCommandEx
Definition: rpg_eventcommand.h:167
RPG::EventCommand::Code::TeleportTargets
@ TeleportTargets
Definition: rpg_eventcommand.h:111
RPG::EventCommand::Code::ChangeMonsterCondition
@ ChangeMonsterCondition
Definition: rpg_eventcommand.h:132
RPG::EventCommand::Code::ChangeItems
@ ChangeItems
Definition: rpg_eventcommand.h:49
RPG::EventCommand::Code::FlashSprite
@ FlashSprite
Definition: rpg_eventcommand.h:95
RPG::EventCommand::Code::ChangeScreenTransitions
@ ChangeScreenTransitions
Definition: rpg_eventcommand.h:69
RPG::EventCommand::Code::ChangeParameters
@ ChangeParameters
Definition: rpg_eventcommand.h:53
RPG::EventCommand::Code::EndShop
@ EndShop
Definition: rpg_eventcommand.h:147
RPG::EventCommand::Code::EscapeTarget
@ EscapeTarget
Definition: rpg_eventcommand.h:113
RPG::EventCommand::Code::ShowChoice
@ ShowChoice
Definition: rpg_eventcommand.h:43
RPG::EventCommand::Code::MessageOptions
@ MessageOptions
Definition: rpg_eventcommand.h:41
RPG::EventCommand::Code::EnterHeroName
@ EnterHeroName
Definition: rpg_eventcommand.h:73
RPG::EventCommand::Code::ChangeHeroName
@ ChangeHeroName
Definition: rpg_eventcommand.h:61
RPG::EventCommand::Code::ChangeMonsterMP
@ ChangeMonsterMP
Definition: rpg_eventcommand.h:131
RPG::EventCommand::Code::ToggleFullscreen
@ ToggleFullscreen
Definition: rpg_eventcommand.h:38
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::EventCommand::Code::ChangeSaveAccess
@ ChangeSaveAccess
Definition: rpg_eventcommand.h:116
RPG::EventCommand::Code::ExitGame
@ ExitGame
Definition: rpg_eventcommand.h:36
RPG::EventCommand::Code::EnterExitVehicle
@ EnterExitVehicle
Definition: rpg_eventcommand.h:77
RPG::EventCommand::Code::SimulatedAttack
@ SimulatedAttack
Definition: rpg_eventcommand.h:60
RPG::EventCommand::Code::EndBattle
@ EndBattle
Definition: rpg_eventcommand.h:144
RPG::EventCommand::Code::Teleport
@ Teleport
Definition: rpg_eventcommand.h:74
RPG::EventCommand::Code::Maniac_RewriteMap
@ Maniac_RewriteMap
Definition: rpg_eventcommand.h:171
RPG::EventCommand::Code::SetVehicleLocation
@ SetVehicleLocation
Definition: rpg_eventcommand.h:78
RPG::EventCommand::Code::EnemyEncounter
@ EnemyEncounter
Definition: rpg_eventcommand.h:70
RPG::EventCommand::Code::RecallToLocation
@ RecallToLocation
Definition: rpg_eventcommand.h:76
RPG::EventCommand::Code::PanScreen
@ PanScreen
Definition: rpg_eventcommand.h:88
RPG::EventCommand::code
int32_t code
Definition: rpg_eventcommand.h:176
RPG::EventCommand::Code::Maniac_SetMousePosition
@ Maniac_SetMousePosition
Definition: rpg_eventcommand.h:162
RPG::EventCommand::Code::MoveEvent
@ MoveEvent
Definition: rpg_eventcommand.h:96
RPG::EventCommand::Code::ChangeBattleCommands
@ ChangeBattleCommands
Definition: rpg_eventcommand.h:34
RPG::EventCommand::Code::Wait
@ Wait
Definition: rpg_eventcommand.h:99
RPG::EventCommand::Code::CallCommonEvent
@ CallCommonEvent
Definition: rpg_eventcommand.h:30
RPG::EventCommand::Code::ChangeEscapeAccess
@ ChangeEscapeAccess
Definition: rpg_eventcommand.h:114
RPG::EventCommand::Code::StoreTerrainID
@ StoreTerrainID
Definition: rpg_eventcommand.h:81
RPG::EventCommand::Code::TintScreen
@ TintScreen
Definition: rpg_eventcommand.h:85
RPG::EventCommand::Code::ConditionalBranch
@ ConditionalBranch
Definition: rpg_eventcommand.h:119
RPG::EventCommand::Code::Maniac_GetBattleInfo
@ Maniac_GetBattleInfo
Definition: rpg_eventcommand.h:168
RPG::EventCommand::Code::EndInn
@ EndInn
Definition: rpg_eventcommand.h:150
RPG::EventCommand::Code::OpenSaveMenu
@ OpenSaveMenu
Definition: rpg_eventcommand.h:115
RPG::EventCommand::Code::EnableCombo
@ EnableCombo
Definition: rpg_eventcommand.h:32
RPG::EventCommand::Code::ChangeCondition
@ ChangeCondition
Definition: rpg_eventcommand.h:58
RPG::EventCommand::Code::ChangeBattleBG
@ ChangeBattleBG
Definition: rpg_eventcommand.h:134
RPG::EventCommand::Code::TradeEventLocations
@ TradeEventLocations
Definition: rpg_eventcommand.h:80
RPG::EventCommand::Code::MemorizeLocation
@ MemorizeLocation
Definition: rpg_eventcommand.h:75
RPG::EventCommand::Code::Maniac_GetMousePosition
@ Maniac_GetMousePosition
Definition: rpg_eventcommand.h:161
RPG::EventCommand::Code::Maniac_EndLoadProcess
@ Maniac_EndLoadProcess
Definition: rpg_eventcommand.h:160
RPG::EventCommand::Code::ShowChoiceEnd
@ ShowChoiceEnd
Definition: rpg_eventcommand.h:140
RPG::EventCommand::Code::ChangeSystemGraphics
@ ChangeSystemGraphics
Definition: rpg_eventcommand.h:68
RPG::EventCommand::Code::Stay
@ Stay
Definition: rpg_eventcommand.h:148
RPG::EventCommand::Code::TimerOperation
@ TimerOperation
Definition: rpg_eventcommand.h:47
RPG::EventCommand::Code::Maniac_KeyInputProcEx
@ Maniac_KeyInputProcEx
Definition: rpg_eventcommand.h:170
RPG::EventCommand::Code::ChangeActorFace
@ ChangeActorFace
Definition: rpg_eventcommand.h:64
RPG::EventCommand::Code
Definition: rpg_eventcommand.h:27
RPG::EventCommand::Code::ChangeExp
@ ChangeExp
Definition: rpg_eventcommand.h:51
RPG::EventCommand::Code::ControlSwitches
@ ControlSwitches
Definition: rpg_eventcommand.h:45
RPG::EventCommand::Code::ShowBattleAnimation
@ ShowBattleAnimation
Definition: rpg_eventcommand.h:93
RPG::EventCommand::Code::ChangeFaceGraphic
@ ChangeFaceGraphic
Definition: rpg_eventcommand.h:42
RPG::EventCommand::Code::EscapeHandler
@ EscapeHandler
Definition: rpg_eventcommand.h:142
RPG::EventCommand::Code::EndBranch_B
@ EndBranch_B
Definition: rpg_eventcommand.h:156
RPG::EventCommand::Code::VictoryHandler
@ VictoryHandler
Definition: rpg_eventcommand.h:141
RPG::EventCommand::Code::BreakLoop
@ BreakLoop
Definition: rpg_eventcommand.h:123
RPG::EventCommand::Code::ShowMessage_2
@ ShowMessage_2
Definition: rpg_eventcommand.h:138
RPG::EventCommand::Code::ChangeSystemSFX
@ ChangeSystemSFX
Definition: rpg_eventcommand.h:67
RPG::EventCommand::Code::OpenVideoOptions
@ OpenVideoOptions
Definition: rpg_eventcommand.h:39
enum_tags.h
RPG::EventCommand::Code::ChangeMainMenuAccess
@ ChangeMainMenuAccess
Definition: rpg_eventcommand.h:118
RPG::EventCommand::Code::NoStay
@ NoStay
Definition: rpg_eventcommand.h:149
RPG::EventCommand::Code::EndLoop
@ EndLoop
Definition: rpg_eventcommand.h:153