Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
Rotor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "stdafx.h"
4 #include <iostream>
5 #include <memory>
6 #include "OgreApplication.h"
7 #include "MyUtils.h"
8 #include "GameActor.h"
9 
14 class Rotor : public GameActor
15 {
16 private:
18  std::shared_ptr<Ogre::SceneNode> helicopterNode;
20  Ogre::Real rotateSpeed;
22  Ogre::String rotorType;
25  Ogre::Vector3 rotationAxis;
27  Ogre::Real maxRotorSpeed;
30 
35  void rotateRotor(float dt);
36 
37 public:
46  Rotor(Ogre::Vector3 position, Ogre::Vector3 orientation, Ogre::Real scale,
47  std::shared_ptr<Ogre::SceneNode> helicopterNode, Ogre::String rotorType);
48 
52  ~Rotor();
53 
57  void updateRotateSpeed();
58 
63  void setTargetRotateSpeedPercent(Ogre::Real targetRotateSpeedPercent);
64 
70  void setRotateAxis(Ogre::Vector3 rotationAxis);
71 
76  void setUpActor(OgreApplication* application);
77 
82  void updateActor(float dt);
83 };
~Rotor()
Definition: Rotor.cpp:23
void setUpActor(OgreApplication *application)
Definition: Rotor.cpp:81
Ogre::Vector3 rotationAxis
Definition: Rotor.h:25
void setRotateAxis(Ogre::Vector3 rotationAxis)
Definition: Rotor.cpp:59
Definition: OgreApplication.h:22
Ogre::Real scale
Definition: GameActor.h:26
void updateActor(float dt)
Definition: Rotor.cpp:99
A class for a GameActor object.
Definition: GameActor.h:14
Ogre::Real maxRotorSpeed
Definition: Rotor.h:27
A class for a Rotor object that inherits GameActor.
Definition: Rotor.h:14
void updateRotateSpeed()
Definition: Rotor.cpp:30
Ogre::Vector3 orientation
Definition: GameActor.h:24
Ogre::Real targetRotateSpeedPercent
Definition: Rotor.h:29
Ogre::Vector3 position
Definition: GameActor.h:22
void rotateRotor(float dt)
Definition: Rotor.cpp:68
Rotor(Ogre::Vector3 position, Ogre::Vector3 orientation, Ogre::Real scale, std::shared_ptr< Ogre::SceneNode > helicopterNode, Ogre::String rotorType)
Definition: Rotor.cpp:7
std::shared_ptr< Ogre::SceneNode > helicopterNode
Definition: Rotor.h:18
Ogre::Real rotateSpeed
Definition: Rotor.h:20
void setTargetRotateSpeedPercent(Ogre::Real targetRotateSpeedPercent)
Definition: Rotor.cpp:50
Ogre::String rotorType
Definition: Rotor.h:22