PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Attributes | List of all members
LevelBlock Struct Reference

Level specific Block entry structure. Defines preferences of each block. More...

#include <lvl_filedata.h>

Public Attributes

long x
 X position of block.
 
long y
 Y position of block.
 
long h
 
long w
 
unsigned long id
 ID of block type defined in the lvl_blocks.ini.
 
long npc_id
 ID of the included NPC (0 - empty, <0 - number of coins, >0 - NPC-ID of included NPC)
 
bool invisible
 Block is invizible until player will impacted to it at bottom side.
 
bool slippery
 Block has a splippery surface.
 
PGESTRING layer
 Name of a parent layer. Default value is "Default".
 
PGESTRING event_destroy
 Trigger event on destroying of this block.
 
PGESTRING event_hit
 Trigger event on hiting of this block.
 
PGESTRING event_emptylayer
 Trigger event on destroying of this block and at sametime parent layer has no more other objects.
 
unsigned int array_id
 
unsigned int index
 Recent array index where block was saved (used to speed-up settings synchronization)
 

Detailed Description

Level specific Block entry structure. Defines preferences of each block.

Member Data Documentation

unsigned int LevelBlock::array_id

Array-ID is an unique key value identificates each unique block object. Re-counts on each file reloading

long LevelBlock::h

Height of sizable block (takes no effect on non-sizable blocks in PGE Engine, but takes effect in the SMBX Engine)

long LevelBlock::w

Width of sizable block (takes no effect on non-sizable blocks in PGE Engine, but takes effect in the SMBX Engine)


The documentation for this struct was generated from the following file: