forked from rktrlng/rt2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyscene.h
More file actions
37 lines (30 loc) · 733 Bytes
/
Copy pathmyscene.h
File metadata and controls
37 lines (30 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Copyright 2015 Your Name <you@yourhost.com>
*
* @file myscene.h
*
* @brief description of MyScene behavior.
*/
#ifndef MYSCENE_H
#define MYSCENE_H
#include <rt2d/scene.h>
#include "myentity.h"
/// @brief The MyScene class is the Scene implementation.
class MyScene : public Scene
{
public:
/// @brief Constructor
MyScene();
/// @brief Destructor
virtual ~MyScene();
/// @brief update is automatically called every frame
/// @param deltaTime the elapsed time in seconds
/// @return void
virtual void update(float deltaTime);
private:
/// @brief the rotating square in the middle of the screen
MyEntity* myentity;
/// @brief a Timer to rotate the color every n seconds
Timer t;
};
#endif /* SCENE00_H */