Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <c_lib/voxel/voxel_body.hpp>
  4.  
  5. #include <c_lib/template/object_list.hpp>
  6. #include <c_lib/physics/vector.hpp>
  7. #include <c_lib/voxel/voxel_volume.hpp>
  8. #include <c_lib/voxel/object_vox.hpp>
  9.  
  10. namespace Monsters {
  11.  
  12. extern VoxBody slime_vox_dat;
  13.  
  14. const int SLIME_PART_NUM = 1;
  15. enum SLIME_BODY_PARTS {
  16. SLIME_PART_BODY
  17. };
  18.  
  19. class Slime; // forward decl
  20.  
  21. class Slime_vox: public Object_vox<Slime, SLIME_PART_NUM>
  22. {
  23. public:
  24. explicit Slime_vox(Slime* a, VoxBody* vox_dat) : Object_vox(a, vox_dat) {}
  25. };
  26.  
  27. class Slime {
  28. public:
  29. int id;
  30. float x,y,z;
  31. float vx,vy,vz;
  32. float theta,phi;
  33.  
  34. Slime_vox* vox;
  35.  
  36. Slime();
  37. Slime(int id);
  38. Slime(float x, float y, float z, float vx, float vy, float vz);
  39. Slime(int id, float x, float y, float z, float vx, float vy, float vz);
  40. };
  41.  
  42. #define SLIME_MAX 1024
  43. class Slime_list: public Object_list<Slime,SLIME_MAX>
  44. {
  45. private:
  46. const char* name() { return "Slime"; }
  47. public:
  48. void draw();
  49. };
  50.  
  51. #ifdef DC_CLIENT
  52. void test();
  53. #endif
  54.  
  55. }
Add Comment
Please, Sign In to add comment