playerObject.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include "T3D/entity.h"
  3. #include "T3D/components/render/meshComponent.h"
  4. #include "T3D/components/collision/shapeCollisionComponent.h"
  5. //#include "T3D/components/animation/actionAnimationComponent.h"
  6. //#include "T3D/components/animation/armAnimationComponent.h"
  7. #include "T3D/components/physics/playerControllerComponent.h"
  8. #include "T3D/components/game/stateMachineComponent.h"
  9. #include "T3D/components/camera/cameraComponent.h"
  10. #include "T3D/components/camera/cameraOrbiterComponent.h"
  11. #include "T3D/components/game/controlObjectComponent.h"
  12. #include "T3D/components/audio/soundComponent.h"
  13. #include "T3D/components/game/interactComponent.h"
  14. class PlayerObject : public Entity
  15. {
  16. typedef Entity Parent;
  17. MeshComponent* mMeshComponent;
  18. ShapeCollisionComponent* mCollisionComponent;
  19. //ActionAnimationComponent* mAnimationComponent;
  20. //ArmAnimationComponent* mArmAnimationComponent;
  21. PlayerControllerComponent* mPhysicsComponent;
  22. StateMachineComponent* mStateMachineComponent;
  23. CameraComponent* mCameraComponent;
  24. CameraOrbiterComponent* mCameraOrbiterComponent;
  25. ControlObjectComponent* mControlObjectComponent;
  26. SoundComponent* mSoundComponent;
  27. InteractComponent* mInteractComponent;
  28. public:
  29. PlayerObject();
  30. ~PlayerObject();
  31. virtual bool onAdd();
  32. virtual void onRemove();
  33. DECLARE_CONOBJECT(PlayerObject);
  34. };