mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
// ==============================================================
|
|
// This file is part of Glest (www.glest.org)
|
|
//
|
|
// Copyright (C) 2001-2008 Martio Figueroa
|
|
//
|
|
// You can redistribute this code 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
|
|
// ==============================================================
|
|
|
|
#ifndef _GLEST_GAME_BATTLEEND_H_
|
|
#define _GLEST_GAME_BATTLEEND_H_
|
|
|
|
#include "program.h"
|
|
#include "stats.h"
|
|
#include "leak_dumper.h"
|
|
|
|
namespace Glest{ namespace Game{
|
|
|
|
// =====================================================
|
|
// class BattleEnd
|
|
//
|
|
/// ProgramState representing the end of the game
|
|
// =====================================================
|
|
|
|
class BattleEnd: public ProgramState{
|
|
private:
|
|
Stats stats;
|
|
|
|
GraphicButton buttonExit;
|
|
int mouseX;
|
|
int mouseY;
|
|
int mouse2d;
|
|
GraphicMessageBox mainMessageBox;
|
|
|
|
void showMessageBox(const string &text, const string &header, bool toggle);
|
|
|
|
public:
|
|
BattleEnd(Program *program, const Stats *stats);
|
|
~BattleEnd();
|
|
virtual void update();
|
|
virtual void render();
|
|
virtual void keyDown(char key);
|
|
virtual void mouseDownLeft(int x, int y);
|
|
virtual void mouseMove(int x, int y, const MouseState *ms);
|
|
};
|
|
|
|
}}//end namespace
|
|
|
|
#endif
|