mkRPG
Data Structures | Defines | Functions
src/editor/Game/mappainter.h File Reference

Definition of the MapPainter class and other related classes to render maps. More...

#include "map.h"
#include "GUI/options.h"

Go to the source code of this file.

Data Structures

class  RlCoords
 The RlCoords class describe positions with relative coordinates. More...
class  ClCoords
 The ClCoords class describe positions with cell coordinates. More...
class  PtCoords
 The PtCoords class describe positions with virtual point coordinates. More...
class  PxCoords
 The PxCoords class describe positions with real pixel coordinates. More...
class  MapPainter
 The MapPainter class that can paint a Map using a QPainter. More...

Defines

#define MINMAX(a, x, b)   std::min(std::max(a,x),b)

Functions

MapPainter::Element operator| (MapPainter::Element a, MapPainter::Element b)
 The operator | is the flag OR operation.
MapPainter::Element operator& (MapPainter::Element a, MapPainter::Element b)
 The operator & is the flag AND operation.
MapPainter::Element operator^ (MapPainter::Element a, MapPainter::Element b)
 The operator ^ is the flag substraction operation.

Detailed Description

Definition of the MapPainter class and other related classes to render maps.

This file defines four types of coordinates : RlCoords, ClCoords, PtCoords and PxCoords. They all inherit from QPointF, and give a static type checking for the consistency of the coordinates which are used.

Author:
Baptiste Pauget

Function Documentation

MapPainter::Element operator^ ( MapPainter::Element  a,
MapPainter::Element  b 
) [inline]

The operator ^ is the flag substraction operation.

Warning:
This is not a XOR operation, it corresponds to a&!b
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines