Weapon.h 760 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Created by janco on 25-5-16.
  3. //
  4. #ifndef CRYSTALPOINT_WEAPON_H
  5. #define CRYSTALPOINT_WEAPON_H
  6. #include "Vector.h"
  7. #include "Model.h"
  8. #include <string>
  9. class Weapon {
  10. public:
  11. Weapon(std::string modelFilename, float scale, Vec3f location, Vec2f rotation,
  12. Vec3f offsetPlayer, Vec3f ankerPoint, Vec3f collisionPoint,
  13. Vec2f maxRotation, Vec2f minXRotation);
  14. ~Weapon();
  15. void draw();
  16. void rotateWeapon(Vec3f rotation);
  17. void rotate(Vec2f rotation);
  18. void move(Vec3f location);
  19. unsigned int damage;
  20. Model* weaponmodel;
  21. float scale;
  22. Vec3f position, rotation, rotationWeapon;
  23. Vec3f offsetPlayer, ankerPoint, collisionPoint;
  24. Vec2f maxRotation, minRotation;
  25. };
  26. #endif //CRYSTALPOINT_WEAPON_H