Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
Projectile.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 #include "GamePhysics.h"
10 
15 class Projectile : public GameActor, public GamePhysics
16 {
17 private:
19  std::shared_ptr<Ogre::SceneNode> parentNode;
20 public:
29  Projectile(Ogre::Vector3 position, Ogre::Vector3 orientation, Ogre::Real scale,
30  std::shared_ptr<Ogre::SceneNode> parentNode, Ogre::Vector3 initalVelocity);
31 
35  ~Projectile();
36 
41  Ogre::Vector3 getWorldPosition();
42 
47  void setUpActor(OgreApplication* application);
48 
53  void updateActor(float dt);
54 };
Definition: OgreApplication.h:22
Ogre::Real scale
Definition: GameActor.h:26
A class for the GamePhysics.
Definition: GamePhysics.h:15
std::shared_ptr< Ogre::SceneNode > parentNode
Definition: Projectile.h:19
A class for a GameActor object.
Definition: GameActor.h:14
Projectile(Ogre::Vector3 position, Ogre::Vector3 orientation, Ogre::Real scale, std::shared_ptr< Ogre::SceneNode > parentNode, Ogre::Vector3 initalVelocity)
Definition: Projectile.cpp:7
void setUpActor(OgreApplication *application)
Definition: Projectile.cpp:37
Ogre::Vector3 orientation
Definition: GameActor.h:24
Ogre::Vector3 position
Definition: GameActor.h:22
A class for a Projectile object that inherits GameActor and GamePhysics.
Definition: Projectile.h:15
Ogre::Vector3 getWorldPosition()
Definition: Projectile.cpp:28
void updateActor(float dt)
Definition: Projectile.cpp:77
~Projectile()
Definition: Projectile.cpp:20