MSTE - MegaStorm Tile-based Engine  v1.10
 All Classes Functions Groups Pages
Classes | Macros
MS Tile-based Engine v1.01 - Engine interface and defines

Classes

class  cMSTE
 MegaStorm Tile-based Engine. More...
 

Macros

#define TE_KEEP_VALUE   0x00FFFFFE
 Used with properties members to do not change the previous value.
 
#define TE_LAYER_EMPTY   "TE-LAYER-EMTPY"
 Default name for a layer which is allocated but empty.
 
#define TE_LAYERFLAG_AUTOSCROLL   4
 Enable autoscroll flag. Check SetLayerAutoScroll() for further details.
 
#define TE_LAYERFLAG_DISABLE   0
 Disable all layer's flags. Value by default.
 
#define TE_LAYERFLAG_LOOPX   1
 Enable the loop on X axis.
 
#define TE_LAYERFLAG_LOOPY   2
 Enable the loop on Y axis.
 
#define TE_LAYERFLAG_PAUSE   256
 Pause the layer (current positions can not be modified). Update() and Render() methods should be called to keep the internal state.
 
#define TE_LAYERFLAG_RENDER   32
 Enable the rendering flag. Check Render() for further details.
 
#define TE_LAYERFLAG_SHOWGRID   128
 Show the base mapdata grid (for debugging purposes). Check SetLayerGridColor() for further details.
 
#define TE_LAYERFLAG_SMOOTHSCROLL   64
 Enable the smooth rendering flag. Check Render() for further details.
 
#define TE_LAYERFLAG_UPDATE   8
 Enable the updating flag. Check Update() for further details.
 
#define TE_LAYERFLAG_UPDATECELLS   16
 Enable the updating cells flag. Check Update() for further details.
 
#define TE_LAYERPOSITION_BEGIN   0x00FFFFFD
 Set the layer position at the beginning.
 
#define TE_LAYERPOSITION_CENTER   0x0A000000
 Added to a requested layer position to center on it.
 
#define TE_LAYERPOSITION_END   0x00FFFFFB
 Set the layer position at the end.
 
#define TE_LAYERPOSITION_MIDDLE   0x00FFFFFC
 Set the layer position at the middle.
 
#define TE_REGISTEREDMAPDATA_MAX   3
 Maximum registered mapdata types. [0] is always cMSTE_MapBase.
 
#define TE_RESCONTROL_AUTO   1
 Used for layer maps and tilesets. The engine will automatically remove these resources. Can be modified for layers but not for tilesets.
 
#define TE_RESCONTROL_INTERNAL   2
 Used for layer maps and tilesets. Importing or loading levels will set on this flag. The engine automatically manages the resources. Can not be modified.
 
#define TE_RESCONTROL_USER   0
 Used for layer maps and tilesets. The user must remove these resources after usage. Can be modified for layers but not for tilesets.
 
#define TE_TILESET_DEFAULT_SOURCE   "TE-TS-DEFAULT-SOURCE"
 Default source for loaded tilesets. It sets that at saving level time, the tileset will be saved in the same location as the level.
 

Detailed Description

logotipo_mste.png


This is the main interface of the scroll engine.