game2.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. // Include file for GAME2.ASM
  22. #ifndef __GAME2_H
  23. #define __GAME2_H
  24. void hurt_player_id(World *mzx_world, int id);
  25. int find_seek(World *mzx_world, int x, int y);
  26. int inc_param(int param, int max);
  27. int xy2array2(Board *src_board, int x, int y);
  28. int arraydir2(Board *src_board, int x, int y, int *ret_x, int *ret_y,
  29. int direction);
  30. void update_board(World *mzx_world);
  31. void shoot_lazer(World *mzx_world, int x, int y, int dir, int length,
  32. int color);
  33. int try_transport(World *mzx_world, int x, int y, int push_status,
  34. int can_push, int id, int dir);
  35. int transport(World *mzx_world, int x, int y, int dir, int id, int param,
  36. int color, int can_push);
  37. int push(World *mzx_world, int x, int y, int dir, int checking);
  38. void shoot(World *mzx_world, int x, int y, int dir, int type);
  39. void shoot_fire(World *mzx_world, int x, int y, int dir);
  40. void shoot_seeker(World *mzx_world, int x, int y, int dir);
  41. void shoot_missile(World *mzx_world, int x, int y, int dir);
  42. int move(World *mzx_world, int x, int y, int dir, int move_flags);
  43. int parsedir(World *mzx_world, int old_dir, int x, int y, int flow_dir,
  44. int bln, int bls, int ble, int blw);
  45. #endif