src/tron/gParser.cpp File Reference

#include "rSDL.h"
#include "aa_config.h"
#include "gParser.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stdarg.h>
#include <memory>
#include "eCoord.h"
#include "eGrid.h"
#include "eTess2.h"
#include "gWall.h"
#include "gArena.h"
#include "tMemManager.h"
#include "tResourceManager.h"
#include "tRecorder.h"
#include "tConfiguration.h"
#include "tPolynomial.h"
#include "tPolynomialMarshaler.h"
#include "gGame.h"
#include "gWinZone.h"

Include dependency graph for gParser.cpp:

Go to the source code of this file.

Defines

#define myxmlHasProp(cur, name)   xmlHasProp(cur, reinterpret_cast<const xmlChar *>(name))

Functions

static void sg_Deprecated ()
 Warn about deprecated map format.

Variables

int mapVersion = 0


Define Documentation

#define myxmlHasProp ( cur,
name   )     xmlHasProp(cur, reinterpret_cast<const xmlChar *>(name))

Definition at line 205 of file gParser.cpp.

Referenced by gParser::myxmlGetDirection().


Function Documentation

static void sg_Deprecated (  )  [static]

Warn about deprecated map format.

Definition at line 68 of file gParser.cpp.

References tColoredString::ColorString(), con, nCLIENT, and sn_GetNetState().

Referenced by gParser::Parse(), gParser::parseObstacleWall(), gParser::parseWallLine(), and gParser::parseWallRect().

00069 {
00070     // no use informing players on the client, they can't do anything about it anyway
00071     if ( sn_GetNetState() != nCLIENT )
00072         con << "\n\n" << tColoredString::ColorString(1,.3,.3) << "WARNING: You are loading a map that is written in a deprecated format. It should work for now, but will stop to do so in one of the next releases. Have the map upgraded to an up-to-date version as soon as possible.\n\n";
00073 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int mapVersion = 0

Definition at line 65 of file gParser.cpp.

Referenced by gParser::parseMap(), and gParser::parseZone().


Generated on Sat Mar 15 23:17:44 2008 for Armagetron Advanced by  doxygen 1.5.4