Advertisement
purxiz

bullet.h

May 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. # include <vector>
  2. # include <sig/gs_vec.h>
  3. # include <sig/sn_model.h>
  4. # include <sig/sn_manipulator.h>
  5.  
  6. class bullet
  7. {
  8. private:
  9.     GsVec position, direction;
  10.     static SnModel * bullet_model;
  11.     SnManipulator * bullet_manip;
  12.     GsMat m, m2;
  13.     int age;
  14.     const float BULLET_SPEED = 1.0f;
  15.     static std::vector<bullet *> bullet_list;
  16. public:
  17.     bullet(GsVec Position, GsVec direction, bool parent);
  18.     ~bullet();
  19.     SnManipulator * getManip();
  20.     void update();
  21.     int getAge();
  22.     void setAge(int new_age);
  23.     GsVec getPos();
  24.     static const std::vector<bullet *> getList();
  25.     static void setList(std::vector<bullet *> list);
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement