MicropolisEngine/src/scan.cpp File Reference

#include "stdafx.h"
#include "micropolis.h"

Go to the source code of this file.

Functions

static void smoothStationMap (MapShort8 *map)
static void smoothDitherMap (const MapByte2 &srcMap, MapByte2 *destMap, bool ditherFlag)


Detailed Description

Definition in file scan.cpp.


Function Documentation

static void smoothDitherMap ( const MapByte2 srcMap,
MapByte2 destMap,
bool  ditherFlag 
) [static]

Perform smoothing with or without dithering.

Parameters:
srcMap Source map.
destMap Destination map.
ditherFlag Function should apply dithering.

Definition at line 506 of file scan.cpp.

static void smoothStationMap ( MapShort8 map  )  [static]

Smooth a station map.

Used for smoothing fire station and police station coverage maps.

Parameters:
map Map to smooth.

Definition at line 80 of file scan.cpp.

References Map< DATA, BLKSIZE >::get(), Map< DATA, BLKSIZE >::MAP_H, Map< DATA, BLKSIZE >::MAP_W, and Map< DATA, BLKSIZE >::set().

Referenced by Micropolis::crimeScan(), and Micropolis::fireAnalysis().


Generated on Wed Feb 2 09:19:22 2011 for Micropolis by  doxygen 1.5.6