]> git.tdb.fi Git - libs/game.git/blob - examples/bassteroids/source/bassteroids.h
Add playfield boundaries to Bassteroids
[libs/game.git] / examples / bassteroids / source / bassteroids.h
1 #ifndef BASSTEROIDS_H_
2 #define BASSTEROIDS_H_
3
4 #include <msp/game/camera.h>
5 #include <msp/game/owned.h>
6 #include <msp/game/resources.h>
7 #include <msp/gameview/application.h>
8 #include <msp/gl/resources.h>
9 #include "playfield.h"
10
11 class BassteroidsResources: public Msp::GL::Resources, public Msp::Game::ApplicationResources
12 { };
13
14 class Bassteroids: public Msp::GameView::Application<Bassteroids, BassteroidsResources>
15 {
16 private:
17         Msp::Game::Stage &game_stage;
18
19         PlayfieldSetup pf_setup;
20         Msp::Game::Owned<Playfield> playfield;
21
22         Msp::Game::CameraSetup cam_setup;
23         Msp::Game::Owned<Msp::Game::Entity> cam_entity;
24         Msp::Game::Owned<Msp::Game::Camera> camera;
25
26 public:
27         Bassteroids(int, char **);
28 };
29
30 #endif