25 class InteractiveSurface;
36 double _scaleX, _scaleY;
37 int _topBlackBand, _leftBlackBand, _mouseX, _mouseY, _surfaceX, _surfaceY;
41 Action(SDL_Event *ev,
double scaleX,
double scaleY,
int topBlackBand,
int leftBlackBand);
49 void setMouseAction(
int mouseX,
int mouseY,
int surfaceX,
int surfaceY);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
Surface that the user can interact with.
Definition: InteractiveSurface.h:37
~Action()
Cleans up the action.
Definition: Action.cpp:37
double getYScale() const
Gets the screen's Y scale.
Definition: Action.cpp:56
int getLeftBlackBand() const
Gets the left black band width.
Definition: Action.cpp:97
void setSender(InteractiveSurface *sender)
Sets the sender of the action.
Definition: Action.cpp:191
bool isMouseAction() const
Gets if the action is a mouse action.
Definition: Action.cpp:77
Action(SDL_Event *ev, double scaleX, double scaleY, int topBlackBand, int leftBlackBand)
Creates an action with given event data.
Definition: Action.cpp:33
double getAbsoluteXMouse() const
Gets the mouse's absolute X position.
Definition: Action.cpp:130
int getXMouse() const
Gets the mouse's X position.
Definition: Action.cpp:108
double getRelativeYMouse() const
Gets the mouse's relative Y position.
Definition: Action.cpp:169
SDL_Event * getDetails() const
Gets the details of the action.
Definition: Action.cpp:200
int getTopBlackBand() const
Gets the top black band height.
Definition: Action.cpp:87
double getAbsoluteYMouse() const
Gets the mouse's absolute Y position.
Definition: Action.cpp:143
InteractiveSurface * getSender() const
Gets the sender of the action.
Definition: Action.cpp:181
double getXScale() const
Gets the screen's X scale.
Definition: Action.cpp:46
int getYMouse() const
Gets the mouse's Y position.
Definition: Action.cpp:119
void setMouseAction(int mouseX, int mouseY, int surfaceX, int surfaceY)
Sets the action as a mouse action.
Definition: Action.cpp:69
double getRelativeXMouse() const
Gets the mouse's relative X position.
Definition: Action.cpp:156
Definition: BaseInfoState.cpp:40