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

src/map/map_wall.cpp File Reference

#include <stdio.h>
#include "stratagus.h"
#include "map.h"
#include "tileset.h"
#include "ui.h"
#include "player.h"
#include "unittype.h"

Functions

map_wall.cpp - The map wall handling.
static int MapIsSeenTileWall (int x, int y, int walltype)
void MapFixSeenWallTile (const Vec2i &pos)
void MapFixSeenWallNeighbors (const Vec2i &pos)
void MapFixWallTile (const Vec2i &pos)
static void MapFixWallNeighbors (const Vec2i &pos)

Function Documentation

void MapFixSeenWallNeighbors ( const Vec2i pos  ) 

Correct the surrounding seen wall fields.

Parameters:
pos Map tile-position.

void MapFixSeenWallTile ( const Vec2i pos  ) 

Correct the seen wall field, depending on the surrounding.

Parameters:
pos Map tile-position.

static void MapFixWallNeighbors ( const Vec2i pos  )  [static]

Correct the surrounding real wall fields.

Parameters:
pos Map tile-position.

void MapFixWallTile ( const Vec2i pos  ) 

Correct the real wall field, depending on the surrounding.

Parameters:
pos Map tile-position.

static int MapIsSeenTileWall ( int  x,
int  y,
int  walltype 
) [static]

Check if the seen tile-type is wall.

Parameters:
x Map X tile-position.
y Map Y tile-position.
walltype Walltype to check. (-1 any kind)

(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.