19 #ifndef OPENXCOM_MINIBASEVIEW_H
20 #define OPENXCOM_MINIBASEVIEW_H
23 #include "../Engine/InteractiveSurface.h"
39 static const int MINI_SIZE = 14;
41 std::vector<Base*> *_bases;
43 size_t _base, _hoverBase;
45 static const size_t MAX_BASES = 8;
47 MiniBaseView(
int width,
int height,
int x = 0,
int y = 0);
51 void setBases(std::vector<Base*> *bases);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Surface that the user can interact with.
Definition: InteractiveSurface.h:39
void setSelectedBase(size_t base)
Sets the selected base for the mini base view.
Definition: MiniBaseView.cpp:84
void setTexture(SurfaceSet *texture)
Sets the texture for the mini base view.
Definition: MiniBaseView.cpp:65
void mouseOver(Action *action, State *state)
Special handling for mouse hovers.
Definition: MiniBaseView.cpp:158
void setBases(std::vector< Base * > *bases)
Sets the base list to display.
Definition: MiniBaseView.cpp:54
Container of a set of surfaces.
Definition: SurfaceSet.h:38
void draw()
Draws the mini base view.
Definition: MiniBaseView.cpp:94
MiniBaseView(int width, int height, int x=0, int y=0)
Creates a new mini base view at the specified position and size.
Definition: MiniBaseView.cpp:39
size_t getHoveredBase() const
Gets the base the mouse is over.
Definition: MiniBaseView.cpp:74
Mini view of a base.
Definition: MiniBaseView.h:36
~MiniBaseView()
Cleans up the mini base view.
Definition: MiniBaseView.cpp:46