142 void handleInput(OIS::Keyboard* keyboard, OIS::Mouse* mouse);
std::shared_ptr< Rotor > sideRotor
Definition: Helicopter.h:21
int getHealth()
Definition: Helicopter.cpp:57
void setUpActor(OgreApplication *application)
Definition: Helicopter.cpp:111
bool forwards
Definition: Helicopter.h:41
Definition: OgreApplication.h:22
void updateActor(float dt)
Definition: Helicopter.cpp:215
Ogre::Real scale
Definition: GameActor.h:26
std::shared_ptr< Rotor > mainRotor
Definition: Helicopter.h:19
void handleInput(OIS::Keyboard *keyboard, OIS::Mouse *mouse)
Definition: Helicopter.cpp:149
Ogre::Vector3 getLastRotation()
A class for a Helicopter object that inherits GameActor.
Definition: Helicopter.h:15
void setZSpeed(float zSpeed)
Definition: Helicopter.cpp:102
bool up
Definition: Helicopter.h:33
Helicopter(Ogre::Vector3 position, Ogre::Vector3 orientation, Ogre::Real scale)
Definition: Helicopter.cpp:7
bool down
Definition: Helicopter.h:35
A class for a GameActor object.
Definition: GameActor.h:14
int mouseY
Definition: Helicopter.h:47
void updateSpeed()
Definition: Helicopter.cpp:251
Ogre::Vector3 getSpeed()
Definition: Helicopter.cpp:66
bool left
Definition: Helicopter.h:37
Ogre::Vector3 direction
Definition: Helicopter.h:25
void rotateHelicopter()
Definition: Helicopter.cpp:368
Ogre::Vector3 orientation
Definition: GameActor.h:24
void resetHelicopter()
Definition: Helicopter.cpp:46
void setXSpeed(float xSpeed)
Definition: Helicopter.cpp:84
Ogre::Vector3 position
Definition: GameActor.h:22
void setYSpeed(float ySpeed)
Definition: Helicopter.cpp:93
Ogre::Vector3 spawn
Definition: Helicopter.h:23
void takeDamage()
Definition: Helicopter.cpp:37
int health
Definition: Helicopter.h:49
int mouseX
Definition: Helicopter.h:45
Ogre::Vector3 targetSpeedPercent
Definition: Helicopter.h:31
~Helicopter()
Definition: Helicopter.cpp:30
void setSpeed(Ogre::Vector3 speed)
Definition: Helicopter.cpp:75
void updateMoveSpeed()
Definition: Helicopter.cpp:320
bool backwards
Definition: Helicopter.h:43
bool right
Definition: Helicopter.h:39
Ogre::Real maxSpeed
Definition: Helicopter.h:29
Ogre::Vector3 speed
Definition: Helicopter.h:27