mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
bindings reading, app state retrieval and mappings improvements
This commit is contained in:
+6
-5
@@ -9,6 +9,7 @@
|
||||
#include "guiAppState.h"
|
||||
#include "exitButton.h"
|
||||
#include "optionsButton.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace battleship{
|
||||
@@ -18,15 +19,15 @@ namespace battleship{
|
||||
sf::Sound *sfx = nullptr;
|
||||
};
|
||||
|
||||
class InGameAppState : public AbstractAppState {
|
||||
class InGameAppState : public gameBase::AbstractAppState {
|
||||
public:
|
||||
InGameAppState(std::vector<std::string>, std::vector<std::string>);
|
||||
~InGameAppState();
|
||||
void onAttachment();
|
||||
void onDetachment();
|
||||
void onAttached();
|
||||
void onDettached();
|
||||
void update();
|
||||
void onAction(Mapping::Bind, bool);
|
||||
void onAnalog(Mapping::Bind, double);
|
||||
void onAction(int, bool);
|
||||
void onAnalog(int, float);
|
||||
std::vector<Unit*> getSelectedUnits(Player*);
|
||||
inline std::vector<Player*> getPlayers() {return players;}
|
||||
inline std::vector<Projectile*>& getProjectiles(){return projectiles;}
|
||||
|
||||
Reference in New Issue
Block a user