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

Level specific NPC entry structure. Defines preferences of each NPC. More...

#include <lvl_filedata.h>

Public Attributes

long x
 X position of NPC.
 
long y
 Y position of NPC.
 
int direct
 Initial direction of NPC (-1 left, 1 right, 0 left or right randomly)
 
unsigned long id
 ID of NPC type defined in the lvl_npc.ini.
 
long special_data
 User-data integer #1 used for configuring some NPC-AI's (kept for SMBX64)
 
long special_data2
 User-data integer #2 used for configuring some NPC-AI's (kept for SMBX64)
 
bool generator
 Makes a generator of this NPC.
 
int generator_direct
 Generator direction [1] up, [2] left, [3] down, [4] right.
 
int generator_type
 Generator type 0 - instant appearence, 1 - warp, 2 - projectile shoot.
 
int generator_period
 Generator's delay between each shoot in deci-seconds.
 
PGESTRING msg
 Talking message. If not empty, NPC will be talkable.
 
bool friendly
 NPC will not communicate and will not collide with playable characters.
 
bool nomove
 NPC will stay idle and will always keep look to the playable character.
 
bool is_boss
 Enables some boss-specific NPC-AI features (Used by NPC-AI)
 
PGESTRING layer
 Name of a parent layer. Default value is "Default".
 
PGESTRING event_activate
 Trigger event on actiovation of this NPC (on appearence on screen)
 
PGESTRING event_die
 Trigger event on death of this NPC.
 
PGESTRING event_talk
 Trigger event on player's attempt to talk with this NPC.
 
PGESTRING event_emptylayer
 Trigger event on destroying of this block and at sametime parent layer has no more other objects.
 
PGESTRING attach_layer
 Attach layer to this NPC. All memberes of this layer are will follow to motion of this NPC.
 
unsigned int array_id
 
unsigned int index
 Recent array index where block was saved (used to speed-up settings synchronization)
 
bool is_star
 

Detailed Description

Level specific NPC entry structure. Defines preferences of each NPC.

Member Data Documentation

unsigned int LevelNPC::array_id

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

bool LevelNPC::is_star

Is this NPC a star (Copying from lvl_npc.ini config on file read) Stars are special bonus which required by player to be able enter into some doors/warps


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