gremlin/src/client/Client.h

50 lines
922 B
C
Raw Normal View History

2011-01-14 14:59:18 +01:00
/*
* Client.h
*
* Created on: 14.01.2011
* Author: gmueller
*/
#ifndef CLIENT_H_
#define CLIENT_H_
#include "Application.h"
#include "Schedule.h"
2018-11-26 13:15:41 +01:00
#include "Renderer.h"
#include "Window.h"
2011-01-14 14:59:18 +01:00
#include "oglfont.h"
2018-11-26 13:15:41 +01:00
namespace gln {
2011-01-14 14:59:18 +01:00
class Client: public Application {
public:
2018-11-26 13:15:41 +01:00
void initialize(Config &config);
2011-01-14 14:59:18 +01:00
void update();
void shutdown();
private:
2018-11-26 13:15:41 +01:00
Window window;
Renderer renderer;
2011-01-14 14:59:18 +01:00
double last_bomb; //TODO: use bomb schedule;
int last_x, last_y;
double phi, theta;
double camX, camY, camZ;
Schedule accelerate_schudule;
int width, height;
//TrueTyeFont font;
oglf_font_t font;
2018-11-26 13:15:41 +01:00
void processInput(double step);
2011-01-14 14:59:18 +01:00
void accelerate(double x, double y, double z);
void drop_bomb(double rx, double ry, double rz, double ttl);
void loadConsoleFont();
2011-01-18 23:31:41 +01:00
void onExplosion(double x, double y, double z);
2011-01-19 23:20:08 +01:00
void drawLevel();
void drawPlayer(player_t *player);
2011-01-14 14:59:18 +01:00
};
2018-11-26 13:15:41 +01:00
} // namespace grln
2011-01-14 14:59:18 +01:00
#endif /* CLIENT_H_ */