git repos / blockattack-game

blame: source/code/HelpHowtoState.hpp

normal view · raw

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