Main Page | Alphabetical List | Class List | File List | Class Members | File Members

editor/editor.h File Reference

#include "cprotofix.h"
#include <tigcclib.h>
#include "skye.h"
#include "widget.h"
#include "proto.h"

Go to the source code of this file.

Defines

#define VIEWPORT_WIDTH   (LCD_WIDTH/8)
#define VIEWPORT_HEIGHT   ((LCD_HEIGHT-12)/8)
#define SCROLL_INCR_X   6
#define SCROLL_INCR_Y   4
#define FIELD_WIDTH   (current_map->width)
#define FIELD_HEIGHT   (current_map->height)
#define OPTIMIZE_ROM_CALLS
#define USE_TI89
#define USE_TI92P
#define USE_V200

Typedefs

typedef void(* keyboard_handler )(int key)

Variables

editor_mapcurrent_map
editor_mapmaps
int num_maps
int current_map_num
int select_x
int select_y
int cursor_x
int cursor_y
int scroll_x
int scroll_y
int edit_brush
const char tile_sprites [NUM_TILE_TYPES][24]
const char black_square [24]
keyboard_handler input_state


Define Documentation

#define FIELD_HEIGHT   (current_map->height)
 

Definition at line 10 of file editor.h.

#define FIELD_WIDTH   (current_map->width)
 

Definition at line 9 of file editor.h.

#define OPTIMIZE_ROM_CALLS
 

Definition at line 13 of file editor.h.

#define SCROLL_INCR_X   6
 

Definition at line 6 of file editor.h.

#define SCROLL_INCR_Y   4
 

Definition at line 7 of file editor.h.

#define USE_TI89
 

Definition at line 14 of file editor.h.

#define USE_TI92P
 

Definition at line 15 of file editor.h.

#define USE_V200
 

Definition at line 16 of file editor.h.

#define VIEWPORT_HEIGHT   ((LCD_HEIGHT-12)/8)
 

Definition at line 5 of file editor.h.

#define VIEWPORT_WIDTH   (LCD_WIDTH/8)
 

Definition at line 4 of file editor.h.


Typedef Documentation

typedef void(* keyboard_handler)(int key)
 

Definition at line 33 of file editor.h.


Variable Documentation

const char black_square[24]
 

Definition at line 31 of file editor.h.

editor_map* current_map
 

Definition at line 22 of file editor.h.

int current_map_num
 

Definition at line 25 of file editor.h.

Referenced by adjust_map_size(), draw_level_number(), map_delete(), map_import_level(), map_insert(), map_move_down(), map_move_up(), map_next(), map_previous(), set_current_map(), and set_num_maps().

int cursor_x
 

Definition at line 27 of file editor.h.

Referenced by adjust_map_size(), draw_map_tile(), edit_paste(), edit_select_all(), editing_state(), get_selected_region(), move_cursor(), and xor_selected_range().

int cursor_y
 

Definition at line 27 of file editor.h.

Referenced by adjust_map_size(), draw_map_tile(), edit_paste(), edit_select_all(), editing_state(), get_selected_region(), move_cursor(), and xor_selected_range().

int edit_brush
 

Definition at line 29 of file editor.h.

Referenced by draw_editor_brush(), and editing_state().

keyboard_handler input_state
 

Definition at line 34 of file editor.h.

Referenced by _main(), enter_edit_state(), enter_menu_state(), enter_properties_state(), enter_resize_state(), and menu_state().

editor_map* maps
 

Definition at line 23 of file editor.h.

Referenced by cleanup(), load_dckye_level(), load_skye_level_r1(), load_skye_level_r2(), map_delete(), map_insert(), map_move_down(), map_move_up(), set_current_map(), set_level_size(), set_num_maps(), and write_skye_level_r2().

int num_maps
 

Definition at line 24 of file editor.h.

Referenced by draw_level_number(), load_dckye_lib(), map_delete(), map_insert(), map_move_down(), map_next(), save_skyelib_r2(), and set_num_maps().

int scroll_x
 

Definition at line 28 of file editor.h.

int scroll_y
 

Definition at line 28 of file editor.h.

Referenced by _drawtile(), center_viewport(), clip_scroll_pos(), draw_current_map(), draw_map_field(), draw_map_tile(), move_cursor(), scroll_viewport(), xor_selected_range(), and xor_tile().

int select_x
 

Definition at line 26 of file editor.h.

Referenced by draw_map_tile(), edit_select_all(), get_selected_region(), move_cursor(), and xor_selected_range().

int select_y
 

Definition at line 26 of file editor.h.

Referenced by draw_map_tile(), edit_select_all(), get_selected_region(), move_cursor(), and xor_selected_range().

const char tile_sprites[NUM_TILE_TYPES][24]
 

Definition at line 30 of file editor.h.


Generated on Thu Apr 22 14:06:33 2004 for SKye by doxygen 1.3.6