2010-10-02 17:04:20 +00:00
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
EXTREME TUXRACER
|
|
|
|
|
|
|
|
Copyright (C) 2010 Extreme Tuxracer Team
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
---------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef CREDITS_H
|
|
|
|
#define CREDITS_H
|
|
|
|
|
|
|
|
#include "bh.h"
|
2013-06-11 17:49:59 +00:00
|
|
|
#include "states.h"
|
2020-03-07 18:14:19 +00:00
|
|
|
#include <vector>
|
2010-10-02 17:04:20 +00:00
|
|
|
|
2013-05-01 17:12:19 +00:00
|
|
|
struct TCredits {
|
2020-03-07 18:14:19 +00:00
|
|
|
sf::String text;
|
2016-01-09 11:04:11 +00:00
|
|
|
float size;
|
2010-10-02 17:04:20 +00:00
|
|
|
int offs;
|
|
|
|
int font;
|
|
|
|
int col;
|
2013-05-01 17:12:19 +00:00
|
|
|
};
|
|
|
|
|
2020-03-07 18:14:19 +00:00
|
|
|
class CCredits final : public State {
|
|
|
|
std::vector<TCredits> CreditList;
|
2013-05-01 17:12:19 +00:00
|
|
|
|
2014-02-17 18:51:23 +00:00
|
|
|
void DrawCreditsText(float time_step);
|
2013-05-01 17:12:19 +00:00
|
|
|
void Enter();
|
2013-11-02 21:06:27 +00:00
|
|
|
void Exit();
|
2014-02-17 18:51:23 +00:00
|
|
|
void Loop(float time_step);
|
2014-04-05 16:35:47 +00:00
|
|
|
void Keyb(sf::Keyboard::Key key, bool release, int x, int y);
|
2013-05-01 17:12:19 +00:00
|
|
|
void Mouse(int button, int state, int x, int y);
|
|
|
|
void Motion(int x, int y);
|
|
|
|
public:
|
|
|
|
void LoadCreditList();
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CCredits Credits;
|
2010-10-02 17:04:20 +00:00
|
|
|
|
|
|
|
#endif
|