Logo Search packages:      
Sourcecode: berusky version File versions  Download package

Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes

level_editor Class Reference

Inheritance diagram for level_editor:
Inheritance graph
[legend]
Collaboration diagram for level_editor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int back_max_get (void)
void back_max_set (int max_back_)
bool cell_can_rotate (tpos x, tpos y, tpos layer)
void cell_clear (tpos x, tpos y, tpos layer, bool graphics_change)
void cell_clear (tpos sx, tpos sy, tpos dx, tpos dy, tpos layer, bool graphics_change, bool filled)
anim_handle cell_get_animation (tpos x, tpos y, tpos layer)
item_handle cell_get_item (tpos x, tpos y, tpos layer)
int cell_get_rotation (tpos x, tpos y, tpos layer)
int cell_get_variation (tpos x, tpos y, tpos layer)
void cell_graphics_add_diff (tpos x, tpos y, tpos layer, tpos x_diff, tpos y_diff)
void cell_graphics_reset (tpos x, tpos y, tpos layer)
void cell_graphics_set (tpos x, tpos y, tpos layer, spr_handle spr, int flag=0)
void cell_graphics_set_and_rotate (tpos x, tpos y, tpos layer, spr_handle spr, int rotation, int flag=0)
void cell_graphics_set_diff (tpos x, tpos y, tpos layer, tpos x_diff, tpos y_diff)
bool cell_in_level (tpos x, tpos y, tpos layer=0)
bool cell_is_free (tpos x, tpos y, tpos layer)
bool cell_is_full (tpos x, tpos y, tpos layer)
void cell_modify_rotation (tpos x, tpos y, tpos layer, int direction, bool graphics_change)
void cell_modify_variation (tpos x, tpos y, tpos layer, item_handle direction, bool rewrite_sub, bool graphics_change)
void cell_move (tpos x, tpos y, tpos layer, tpos nx, tpos ny, bool graphics_change)
void cell_set (tpos x, tpos y, tpos layer, item_handle item_, item_handle variation_, item_handle rotation_, bool graphics_change)
void cell_set (tpos sx, tpos sy, tpos dx, tpos dy, tpos layer, item_handle item, item_handle variation, item_handle rotation, bool graphics_change, bool filled)
void cell_set_animation (tpos x, tpos y, tpos layer, anim_handle anim)
void cell_set_item (tpos x, tpos y, tpos layer, item_handle item_, bool rewrite_sub, bool graphics_change)
void cell_set_rotation (tpos x, tpos y, tpos layer, item_handle rotation_, bool graphics_change)
void cell_set_variation (tpos x, tpos y, tpos layer, item_handle variation_, bool rewrite_sub, bool graphics_change)
void cell_subitems_reset (tpos x, tpos y, tpos layer, bool graphics_change)
void cell_to_coord (tpos *p_x, tpos *p_y, tpos *p_dx, tpos *p_dy)
bool coord_in_level (tpos x, tpos y)
void coord_to_cell (tpos *p_x, tpos *p_y)
bool core_pop (void)
void core_push (void)
void draw (void)
void flip (void)
int level_background_get (void)
bool level_background_set (int back)
void level_clear (void)
 level_editor (ITEM_REPOSITORY *p_rep)
bool level_exists (const char *p_file)
LEVEL_DISK * level_export (LEVEL_DISK *p_lev)
void level_import (LEVEL_DISK *p_lev)
bool level_load (const char *p_file)
bool level_load (const char *p_file, const char **p_dirs, int dirs)
bool level_new (void)
void level_populate (void)
bool level_save (const char *p_file)
item_handle player_get_item (int num)
void player_get_pos (int num, tpos *p_x, tpos *p_y)
int player_get_rot (int num)
void player_set_active (int num)
void player_set_item (int num, item_handle item)
void player_set_pos (int num, tpos x, tpos y)
void player_set_rot (int num, int rot)
anim_template_handle repo_get_animation (tpos x, tpos y, tpos layer)
bool repo_get_animation (tpos x, tpos y, tpos layer, int *p_flag, anim_template_handle *p_anim_template)
int repo_get_flag (tpos x, tpos y, tpos layer)
bool repo_is_valid (item_handle item)
bool selection_filled_get (void)
void selection_filled_set (bool filled)
void selection_get (tpos *p_x, tpos *p_y)
bool selection_get (void)
bool selection_rectangle_get (void)
void selection_rectangle_get (tpos *p_sx, tpos *p_sy, tpos *p_dx, tpos *p_dy)
void selection_rectangle_set (bool rectangle)
void selection_rectangle_start_set (tpos x, tpos y)
void selection_set (bool selection)
void selection_set (tpos x, tpos y)
void set_layers (LAYER_CONFIG *p_lconfig)
void sprite_add (int handle, spr_handle spr, tpos x, tpos y, spr_handle dst=0)
void sprite_mask (tpos x, tpos y)
bool tmp_core_restore (void)
void tmp_core_store (void)
void window_offset (tpos start_x, tpos start_y)

Protected Attributes

char background
LEVEL_CELL cells [LEVEL_CELLS_X][LEVEL_CELLS_Y][LEVEL_LAYERS]
char music
ITEM_REPOSITORY * p_repo
SCREEN * p_scr
int player_active
PLAYER players [MAX_PLAYERS]

Private Member Functions

void export_to_core (LEVEL_CORE *p_core)
void import_from_core (LEVEL_CORE *p_core)

Private Attributes

int back_max
circle_stack< LEVEL_CORE > core
LEVEL_CORE core_tmp

Detailed Description

Definition at line 987 of file level_game.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index