-
Notifications
You must be signed in to change notification settings - Fork 0
/
command.h
72 lines (57 loc) · 2.6 KB
/
command.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef COMMAND_H
#define COMMAND_H
#include <QObject>
#include <eventpage.h>
#include <QRect>
/***************************************
*Command Class *
*This class contains a line of a event*
***************************************/
class Command : public QObject
{
Q_OBJECT
public:
enum ID {Event, NewCommand, ShowDialog, MultipleChoice, Choice, ImputNumber, ImputString, ChangeBVar, ChangeIVar,
ChangePVar, ChangeRVar, ChangeTVar, ChangeMoney, ChangeInventory, ChangeParty,
ChangeExp, ChangeLvl, ChangeAtt, ChangeSkill, ChangeEquipment, ChangeHP, ChangeMP,
ChangeCondition, HealAll, GetDamage, ChangeHeroName, ChangeTitle, ChangeCharaSet,
ChangeFaceSet, ChangeHeroChara, ChangeHeroFace, ChangeHeroAnimation, ChangeAnimationSet,
ChangeVehicle, ChangeSysMusic, ChangeSysSound, ChangeSysGraphic, ScreenTransition,
StartBattle, CallStore, CallInn, Teleport, RememberPosition, SwitchVehicle, SetVehiclePosition,
SetEventPosition, SwitchEventsPositions, GetTileID, GetEventID, ClearScreen, ShowScreen,
ChangeScreenHue, FlashScreen, ShakeScreen, MoveScreen, SetWeather, ShowBattleAnimation,
SetHeroTransparency, FlashCharacter, MoveCharacter, WaitMovement, StopMovement, Wait, PlayMusic,
MusicFadeOut, RemenberMusic, PlayStoredMusic, PlaySound, PlayMovie, GetKeyImput, ChangeMapPalete,
ChangeMapBackground, ChangeEncounterStep, ChangeTile, ChangeWarpPoint, ChangeWarpPermision,
ChangeEscapePosition, ChangeEscapePermision, CallScene, ChangeScenePermision, If, Else, SetLabel,
GoToLabel, Loop, Break, Continue, StopEvent, DeleteEvent, CallEvent, Note, EndGame, GoToTitle,
ChangeCurveSet, ChangeBattleCommands};
explicit Command(Command *tutor = 0);
ID id() const;
Command *tutor() const;
Command *next(bool chk_child = true) const;
Command *previous() const;
Command *child() const;
QString desc() const;
int nesting() const;
QRect rect() const;
QRect elseRect() const;
void setId(ID f_id); //For testing only;
void setRect(const QRect &rect);
void setTutor(Command* f_tutor);
void setNext(Command* f_next);
void setPrevious(Command* f_previous);
void setChild(Command* child);
void insertBack(Command* f_command);
int count(bool count_children = true);
private:
ID m_id;
QRect m_rect;
Command *m_tutor;
Command *m_child;
Command *m_next;
Command *m_previous;
friend class EventPage;
friend class DialogCommand;
};
#endif // COMMAND_H