PageRenderTime 55ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/game/boss.h

https://github.com/acieroid/gish
C Header | 47 lines | 23 code | 4 blank | 20 comment | 0 complexity | f655d653b82a02e9736c5d4ddea75d3a MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. #ifndef GISH_GAME_BOSS_H
  2. #define GISH_GAME_BOSS_H
  3. /*
  4. Copyright (C) 2005, 2010 - Cryptic Sea
  5. This file is part of Gish.
  6. Gish is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. See the GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18. void createboss(int type,float position[3]);
  19. void bosssimulation(void);
  20. void bosstimetolive(void);
  21. void deleteboss(int bossnum);
  22. typedef struct
  23. {
  24. int type;
  25. float position[3];
  26. float velocity[3];
  27. int timetolive;
  28. int direction;
  29. int texturenum;
  30. int animationnum;
  31. int animationtype;
  32. int frame;
  33. float size[2];
  34. float framedelay;
  35. } _boss;
  36. extern int numofbosses;
  37. extern _boss boss[16];
  38. #endif /* GISH_GAME_BOSS_H */