Advanced Strategic Command
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
GameParameterEditorWidget Class Reference

#include <editmapparam.h>

Inheritance diagram for GameParameterEditorWidget:
Inheritance graph
[legend]

Public Member Functions

 GameParameterEditorWidget (GameMap *gamemap, PG_Widget *parent, const PG_Rect &rect)
 
bool Valid ()
 
bool Apply ()
 

Protected Member Functions

bool LoadParameter ()
 
bool SaveParameter ()
 
bool ResetParameter ()
 

Static Protected Attributes

static const char * fileNamePattern = "*.asc.gameparam"
 
static const char * blockName = "GameParam"
 

Detailed Description

Definition at line 31 of file editmapparam.h.

Constructor & Destructor Documentation

GameParameterEditorWidget::GameParameterEditorWidget ( GameMap gamemap,
PG_Widget *  parent,
const PG_Rect &  rect 
)

Member Function Documentation

bool GameParameterEditorWidget::Apply ( )

Definition at line 131 of file editmapparam.cpp.

References gameparameternum, and GameMap::setgameparameter().

Referenced by StartMultiplayerGame::Apply().

bool GameParameterEditorWidget::LoadParameter ( )
protected
bool GameParameterEditorWidget::ResetParameter ( )
protected

Definition at line 86 of file editmapparam.cpp.

References gameparameternum, and gameParameterSettings.

Referenced by GameParameterEditorWidget().

bool GameParameterEditorWidget::SaveParameter ( )
protected

Definition at line 74 of file editmapparam.cpp.

References blockName, fileNamePattern, selectFile(), and tnstream::writing.

Referenced by GameParameterEditorWidget().

bool GameParameterEditorWidget::Valid ( )

Definition at line 126 of file editmapparam.cpp.

Referenced by StartMultiplayerGame::Apply().

Member Data Documentation

const char * GameParameterEditorWidget::blockName = "GameParam"
staticprotected

Definition at line 41 of file editmapparam.h.

Referenced by LoadParameter(), and SaveParameter().

const char * GameParameterEditorWidget::fileNamePattern = "*.asc.gameparam"
staticprotected

Definition at line 40 of file editmapparam.h.

Referenced by LoadParameter(), and SaveParameter().


The documentation for this class was generated from the following files: