builder.cpp File Reference

Terrain builder. More...

#include "global.hpp"
#include "array.hpp"
#include "builder.hpp"
#include "config.hpp"
#include "log.hpp"
#include "pathutils.hpp"
#include "terrain.hpp"
#include "util.hpp"
#include "serialization/string_utils.hpp"
#include <cassert>
#include <climits>

Include dependency graph for builder.cpp:

Go to the source code of this file.

Defines

#define ERR_NG   LOG_STREAM(err, engine)
#define DEBUG_NG   LOG_STREAM(info, engine)

Variables

static const int TILEWIDTH = 72
 The tile width used when using basex and basey.
static const int UNITPOS = 36 + 18
 The position of unit graphics in a tile.
static const int BASE_Y_INTERVAL = 100000
 The allowed interval for the base-y position.


Detailed Description

Terrain builder.

Definition in file builder.cpp.


Define Documentation

#define DEBUG_NG   LOG_STREAM(info, engine)

Definition at line 33 of file builder.cpp.

#define ERR_NG   LOG_STREAM(err, engine)

Definition at line 32 of file builder.cpp.


Variable Documentation

const int BASE_Y_INTERVAL = 100000 [static]

The allowed interval for the base-y position.

The possible values are from -BASE_Y_INTERVAL to BASE_Y_INTERVAL-1

Definition at line 49 of file builder.cpp.

Referenced by terrain_builder::tile::add_image_to_cache(), and terrain_builder::apply_rule().

const int TILEWIDTH = 72 [static]

The tile width used when using basex and basey.

This is not, necessarily, the tile width in pixels, this is totally arbitrary. However, it will be set to 72 for convenience.

Definition at line 39 of file builder.cpp.

Referenced by terrain_builder::add_constraints(), terrain_builder::add_images_from_config(), and terrain_builder::rotate().

const int UNITPOS = 36 + 18 [static]

The position of unit graphics in a tile.

Graphics whose y position is below this value are considered background for this tile; graphics whose y position is above this value are considered foreground.

Definition at line 45 of file builder.cpp.

Referenced by terrain_builder::tile::add_image_to_cache().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs