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

map_wall.cpp File Reference
#include <stdio.h>
#include "stratagus.h"
#include "map.h"
#include "fov.h"
#include "tileset.h"
#include "ui.h"
#include "player.h"
#include "unittype.h"

Functions

map_wall.cpp - The map wall handling.
static unsigned int getWallTile (const CTileset &tileset, bool humanWall, int dirFlag, int value, unsigned int oldTile=0)
 
static int GetDirectionFromSurrounding (const Vec2i &pos, bool human, bool seen)
 
void MapFixSeenWallTile (const Vec2i &pos)
 Correct the seen wall field, depending on the surrounding. More...
 
void MapFixSeenWallNeighbors (const Vec2i &pos)
 Correct the surrounding seen wall fields. More...
 
void MapFixWallTile (const Vec2i &pos)
 Correct the real wall field, depending on the surrounding. More...
 
static void MapFixWallNeighbors (const Vec2i &pos)
 

Function Documentation

◆ GetDirectionFromSurrounding()

static int GetDirectionFromSurrounding ( const Vec2i pos,
bool  human,
bool  seen 
)
static

◆ getWallTile()

static unsigned int getWallTile ( const CTileset tileset,
bool  humanWall,
int  dirFlag,
int  value,
unsigned int  oldTile = 0 
)
static

◆ MapFixSeenWallNeighbors()

void MapFixSeenWallNeighbors ( const Vec2i pos)

Correct the surrounding seen wall fields.

Correct the surrounding seen wall fields.

Parameters
posMap tile-position.

◆ MapFixSeenWallTile()

void MapFixSeenWallTile ( const Vec2i pos)

Correct the seen wall field, depending on the surrounding.

Correct the seen wall field, depending on the surrounding.

Parameters
posMap tile-position.

◆ MapFixWallNeighbors()

static void MapFixWallNeighbors ( const Vec2i pos)
static

Correct the surrounding real wall fields.

Parameters
posMap tile-position.

◆ MapFixWallTile()

void MapFixWallTile ( const Vec2i pos)

Correct the real wall field, depending on the surrounding.

Correct the real wall field, depending on the surrounding.

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