ManaPlus
Data Structures | Macros | Variables
map.cpp File Reference

(986a3bf)

#include "resources/map/map.h"
#include "configuration.h"
#include "render/graphics.h"
#include "notifymanager.h"
#include "settings.h"
#include "being/localplayer.h"
#include "enums/resources/notifytypes.h"
#include "enums/resources/map/blockmask.h"
#include "enums/resources/map/mapitemtype.h"
#include "fs/mkdir.h"
#include "gui/userpalette.h"
#include "particle/particle.h"
#include "resources/ambientlayer.h"
#include "resources/atlas/atlasresource.h"
#include "resources/image/subimage.h"
#include "resources/loaders/imageloader.h"
#include "resources/map/location.h"
#include "resources/map/mapheights.h"
#include "resources/map/mapobjectlist.h"
#include "resources/map/maplayer.h"
#include "resources/map/mapitem.h"
#include "resources/map/objectslayer.h"
#include "resources/map/speciallayer.h"
#include "resources/map/tileanimation.h"
#include "resources/map/tileset.h"
#include "resources/map/walklayer.h"
#include "render/renderers.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/foreach.h"
#include "utils/timer.h"
#include <sys/stat.h>
#include <climits>
#include <fstream>
#include <queue>
#include "debug.h"

Go to the source code of this file.

Data Structures

class  ActorFunctuator
 

Macros

#define fillCollision(collision, color)
 

Variables

class ActorFunctuator actorCompare
 

Macro Definition Documentation

◆ fillCollision

#define fillCollision (   collision,
  color 
)
Value:
if (x < endX && mMetaTiles[tilePtr].blockmask & (collision))\
{\
width = mapTileSize;\
for (int x2 = tilePtr + 1; x < endX; x2 ++)\
{\
if (!(mMetaTiles[x2].blockmask & (collision)))\
break;\
width += mapTileSize;\
x ++;\
tilePtr ++;\
}\
if (width && userPalette)\
{\
graphics->setColor(userPalette->getColorWithAlpha(\
UserColorId::color));\
graphics->fillRectangle(Rect(\
x0 * mTileWidth - scrollX, \
y * mTileHeight - scrollY, \
width, mapTileSize));\
}\
}\
Definition: rect.h:74
const Color & getColorWithAlpha(const UserColorIdT type)
Definition: userpalette.h:200
static const int mapTileSize
Definition: map.h:27
UserPalette * userPalette
Definition: userpalette.cpp:34

Definition at line 546 of file map.cpp.

Variable Documentation

◆ actorCompare

class ActorFunctuator actorCompare

Referenced by Map::draw().