Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Scenes/PingPongScene/Headers/PingPongScene.h

Diff revisions: vs.
  @@ -31,57 +31,57 @@
31 31
32 32 class PingPongScene : public Scene {
33 33 public:
34 - PingPongScene() : Scene() {
35 - _sideDrift = 0;
36 - _directionTowardsAdversary = true;
37 - _upwardsDirection = false;
38 - _touchedOwnTableHalf = false;
39 - _touchedAdversaryTableHalf = false;
40 - _lost = false;
41 - _ballSGN = nullptr;
42 - _ball = nullptr;
34 + PingPongScene() : Scene() {
35 + _sideDrift = 0;
36 + _directionTowardsAdversary = true;
37 + _upwardsDirection = false;
38 + _touchedOwnTableHalf = false;
39 + _touchedAdversaryTableHalf = false;
40 + _lost = false;
41 + _ballSGN = nullptr;
42 + _ball = nullptr;
43 43 _freeFlyCam = nullptr;
44 44 _paddleCam = nullptr;
45 - _sun = nullptr;
46 - }
45 + _sun = nullptr;
46 + }
47 47
48 - ~PingPongScene() {}
49 - void preRender();
48 + ~PingPongScene() {}
49 + void preRender();
50 50
51 - bool load(const stringImpl& name, CameraManager* const cameraMgr, GUI* const gui);
52 - bool loadResources(bool continueOnErrors);
53 - void processInput(const U64 deltaTime);
54 - void processTasks(const U64 deltaTime);
51 + bool load(const stringImpl& name, CameraManager* const cameraMgr, GUI* const gui);
52 + bool loadResources(bool continueOnErrors);
53 + void processInput(const U64 deltaTime);
54 + void processTasks(const U64 deltaTime);
55 55 void processGUI(const U64 deltaTime);
56 56
57 - bool onKeyUp(const Input::KeyEvent& key);
58 - bool joystickAxisMoved(const Input::JoystickEvent& key,I8 axis);
59 - bool joystickButtonReleased(const Input::JoystickEvent& key, I8 button);
57 + bool onKeyUp(const Input::KeyEvent& key);
58 + bool joystickAxisMoved(const Input::JoystickEvent& key,I8 axis);
59 + bool joystickButtonReleased(const Input::JoystickEvent& key, I8 button);
60 60
61 61 private:
62 - void test(cdiggins::any a, CallbackParam b);
63 - void serveBall();
64 - void resetGame();
62 + void test(cdiggins::any a, CallbackParam b);
63 + void serveBall();
64 + void resetGame();
65 65
66 66 private:
67 - I8 _score;
68 - vectorImpl<stringImpl> _quotes;
69 - vec3<F32> _sunvector;
70 - Sphere3D* _ball;
71 - SceneGraphNode* _ballSGN;
67 + I8 _score;
68 + vectorImpl<stringImpl> _quotes;
69 + vec3<F32> _sunvector;
70 + Sphere3D* _ball;
71 + SceneGraphNode* _ballSGN;
72 72 Camera* _freeFlyCam;
73 73 Camera* _paddleCam;
74 - DirectionalLight* _sun;
74 + DirectionalLight* _sun;
75 75
76 76 private: //Game stuff:
77 - bool _directionTowardsAdversary;
78 - bool _upwardsDirection;
79 - bool _touchedOwnTableHalf;
80 - bool _touchedAdversaryTableHalf;
81 - bool _lost;
77 + bool _directionTowardsAdversary;
78 + bool _upwardsDirection;
79 + bool _touchedOwnTableHalf;
80 + bool _touchedAdversaryTableHalf;
81 + bool _lost;
82 82 bool _freeFly;
83 83 bool _wasInFreeFly;
84 - F32 _sideDrift;
84 + F32 _sideDrift;
85 85 };
86 86
87 87 }; //namespace Divide