edit.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* Declarations for EDIT.CPP */
  22. #ifndef __EDIT_H
  23. #define __EDIT_H
  24. #include "world.h"
  25. void edit_world(World *mzx_world);
  26. void draw_debug_box(int ypos);
  27. int change_param(World *mzx_world, int id, int param, Robot *copy_robot,
  28. Scroll *copy_scroll, Sensor *copy_sensor);
  29. int change_param(World *mzx_world, int id, int param, Robot *copy_robot,
  30. Scroll *copy_scroll, Sensor *copy_sensor);
  31. int place_current_at_xy(World *mzx_world, int id, int color, int param,
  32. int x, int y, Robot *copy_robot, Scroll *copy_scroll, Sensor *copy_sensor,
  33. int overlay_edit);
  34. void grab_at_xy(World *mzx_world, int *new_id, int *new_color,
  35. int *new_param, Robot *copy_robot, Scroll *copy_scroll,
  36. Sensor *copy_sensor, int x, int y, int overlay_edit);
  37. void thing_menu(World *mzx_world, int menu_number, int *new_id,
  38. int *new_color, int *new_param, Robot *copy_robot, Scroll *copy_scroll,
  39. Sensor *copy_sensor, int x, int y);
  40. void flash_thing(World *mzx_world, int start, int end, int flash_one,
  41. int flash_two, int scroll_x, int scroll_y, int edit_screen_height);
  42. extern char tmenu_thing_ids[8][18];
  43. extern char tmenu_num_choices[8];
  44. extern char *tmenu_titles[8];
  45. extern char *thing_menus[8];
  46. extern char def_colors[128];
  47. extern char debug_mode; // Debug mode
  48. extern char debug_x; // Debug box x pos
  49. #define EC_MAIN_BOX 25
  50. #define EC_MAIN_BOX_DARK 16
  51. #define EC_MAIN_BOX_CORNER 24
  52. #define EC_MENU_NAME 27
  53. #define EC_CURR_MENU_NAME 159
  54. #define EC_MODE_STR 30
  55. #define EC_MODE_HELP 31
  56. #define EC_CURR_THING 31
  57. #define EC_CURR_PARAM 23
  58. #define EC_OPTION 26
  59. #define EC_HIGHLIGHTED_OPTION 31
  60. #define EC_DEBUG_BOX 76
  61. #define EC_DEBUG_BOX_DARK 64
  62. #define EC_DEBUG_BOX_CORNER 70
  63. #define EC_DEBUG_LABEL 78
  64. #define EC_DEBUG_NUMBER 79
  65. #define EC_NA_FILL 1
  66. #endif