Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

include/Globals.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GLOBALS_H   1
#define INITIAL_TIMESCALE   2
#define FONTSIZE_LABELS   10
#define FONTSIZE_HUD   24
#define STRICT   0
 If STRICT is not 0 during compilation the visualisation exits on invalid messages and actions.


Define Documentation

#define FONTSIZE_HUD   24
 

The fontsize of text in the HUD/menu

Definition at line 30 of file Globals.h.

Referenced by UserInterface::createHUDObject().

#define FONTSIZE_LABELS   10
 

The fontsize of the labels on all visualised TraplasObjects.

Definition at line 26 of file Globals.h.

Referenced by TraplasObject::initLabel().

#define GLOBALS_H   1
 

Traplas visualisation.

Copyright (C) 2006 Herbert de Vos & Willem Drost

This program is free software; you can redistribute it 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.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

(For full Licence see ../GPL-Licence.txt)

Definition at line 17 of file Globals.h.

#define INITIAL_TIMESCALE   2
 

The initial speed at which the visualisation runs.

Definition at line 22 of file Globals.h.

Referenced by MessageController::processMessageFromComm().

#define STRICT   0
 

If STRICT is not 0 during compilation the visualisation exits on invalid messages and actions.

In addition to halting if attempting drive, load, unload or any other action with a non-existing resource or cargo or doing an action that is unavailable for the specified objects, setting STRICT will also make the visualisation exit in the following situations:

  • A drive action when there is no arc present between the starting and end positions
  • A failure to add or remove cargo from infrastructure or transport resources
  • Removal of loaded transports from the visualisation without explicitly removing their cargo first
  • Attempts to unload cargo that isn't loaded onto the specified transport resource.
  • Attempst to load cargo that isn't at the specified location.
  • Specifying an object (resources, cargo) without a unique id.
  • A malformed message (afof and atoi conversions).

Definition at line 44 of file Globals.h.


Generated on Mon Jun 19 10:22:06 2006 for TraplasVisualisation by  doxygen 1.4.4