git repos / blockattack-game

blame: source/code/ReplayPlayer.hpp

normal view · raw

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