$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

src/include/results.h File Reference

Go to the source code of this file.


results.h - The game results headerfile.

enum  GameResults {
  GameNoResult, GameVictory, GameDefeat, GameDraw,
  GameQuitToMenu, GameRestart, GameExit
}
GameResults GameResult
 Game results.
void StopGame (GameResults result)
 Outcome of the game.

Enumeration Type Documentation

Possible outcomes of the game.

Enumerator:
GameNoResult 
GameVictory  Game has no result.
GameDefeat  Game was won.
GameDraw  Game was lost.
GameQuitToMenu  Game was draw.
GameRestart  Quit to menu.
GameExit  Restart game.


Function Documentation

void StopGame ( GameResults  result  ) 

Outcome of the game.

Stop the running game with a given result


Variable Documentation

Game results.

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.