git repos / blockattack-game

blame: source/code/HelpGamepadState.hpp

normal view · raw

54d2d583 sago007 2018-04-05 17:52 1
/*
54d2d583 sago007 2018-04-05 17:52 2
===========================================================================
54d2d583 sago007 2018-04-05 17:52 3
blockattack - Block Attack - Rise of the Blocks
54d2d583 sago007 2018-04-05 17:52 4
Copyright (C) 2005-2018 Poul Sander
54d2d583 sago007 2018-04-05 17:52 5
54d2d583 sago007 2018-04-05 17:52 6
This program is free software: you can redistribute it and/or modify
54d2d583 sago007 2018-04-05 17:52 7
it under the terms of the GNU General Public License as published by
54d2d583 sago007 2018-04-05 17:52 8
the Free Software Foundation, either version 2 of the License, or
54d2d583 sago007 2018-04-05 17:52 9
(at your option) any later version.
54d2d583 sago007 2018-04-05 17:52 10
54d2d583 sago007 2018-04-05 17:52 11
This program is distributed in the hope that it will be useful,
54d2d583 sago007 2018-04-05 17:52 12
but WITHOUT ANY WARRANTY; without even the implied warranty of
54d2d583 sago007 2018-04-05 17:52 13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
54d2d583 sago007 2018-04-05 17:52 14
GNU General Public License for more details.
54d2d583 sago007 2018-04-05 17:52 15
54d2d583 sago007 2018-04-05 17:52 16
You should have received a copy of the GNU General Public License
54d2d583 sago007 2018-04-05 17:52 17
along with this program.  If not, see http://www.gnu.org/licenses/
54d2d583 sago007 2018-04-05 17:52 18
54d2d583 sago007 2018-04-05 17:52 19
Source information and contacts persons can be found at
54d2d583 sago007 2018-04-05 17:52 20
https://blockattack.net
54d2d583 sago007 2018-04-05 17:52 21
===========================================================================
54d2d583 sago007 2018-04-05 17:52 22
*/
54d2d583 sago007 2018-04-05 17:52 23
54d2d583 sago007 2018-04-05 17:52 24
#ifndef HELPGAMEPADSTATE_HPP
54d2d583 sago007 2018-04-05 17:52 25
#define HELPGAMEPADSTATE_HPP
54d2d583 sago007 2018-04-05 17:52 26
54d2d583 sago007 2018-04-05 17:52 27
#include "sago/GameStateInterface.hpp"
54d2d583 sago007 2018-04-05 17:52 28
#include "sago/SagoTextField.hpp"
54d2d583 sago007 2018-04-05 17:52 29
#include "sago/SagoTextBox.hpp"
54d2d583 sago007 2018-04-05 17:52 30
54d2d583 sago007 2018-04-05 17:52 31
class HelpGamepadState  : public sago::GameStateInterface {
54d2d583 sago007 2018-04-05 17:52 32
public:
54d2d583 sago007 2018-04-05 17:52 33
	HelpGamepadState();
54d2d583 sago007 2018-04-05 17:52 34
	HelpGamepadState(const HelpGamepadState& orig) = delete;
54d2d583 sago007 2018-04-05 17:52 35
	virtual ~HelpGamepadState();
54d2d583 sago007 2018-04-05 17:52 36
	
54d2d583 sago007 2018-04-05 17:52 37
	bool IsActive() override;
54d2d583 sago007 2018-04-05 17:52 38
	void Draw(SDL_Renderer* target) override;
54d2d583 sago007 2018-04-05 17:52 39
	void ProcessInput(const SDL_Event& event, bool &processed) override;
54d2d583 sago007 2018-04-05 17:52 40
	void Update() override;
54d2d583 sago007 2018-04-05 17:52 41
54d2d583 sago007 2018-04-05 17:52 42
private:
54d2d583 sago007 2018-04-05 17:52 43
	bool isActive = true;
492b2753 sago007 2018-04-07 14:37 44
	sago::SagoTextField moveLabel;
492b2753 sago007 2018-04-07 14:37 45
	sago::SagoTextField pushLabel;
79d765a2 sago007 2018-04-07 17:35 46
	sago::SagoTextField backLabel;
79d765a2 sago007 2018-04-07 17:35 47
	sago::SagoTextField switchLabel;
79d765a2 sago007 2018-04-07 17:35 48
	sago::SagoTextField confirmLabel;
54d2d583 sago007 2018-04-05 17:52 49
private:
54d2d583 sago007 2018-04-05 17:52 50
54d2d583 sago007 2018-04-05 17:52 51
};
54d2d583 sago007 2018-04-05 17:52 52
54d2d583 sago007 2018-04-05 17:52 53
#endif /* HELPGAMEPADSTATE_HPP */
54d2d583 sago007 2018-04-05 17:52 54
1970-01-01 00:00 55