Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
GameplayScreen.h
Go to the documentation of this file.
1
2#pragma once
3
4#include "KatanaEngine.h"
5
6using namespace KatanaEngine;
7
8class Level;
9
15class GameplayScreen : public Screen
16{
17
18public:
19
22 GameplayScreen(const int levelIndex = 0);
23 virtual ~GameplayScreen() { }
24
27 virtual void LoadContent(ResourceManager& resourceManager);
28
31 virtual void HandleInput(const InputState& input);
32
35 virtual void Update(const GameTime& gameTime);
36
39 virtual void Draw(SpriteBatch& spriteBatch);
40
43 virtual void LoadLevel(const int levelIndex);
44
45
46private:
47
48 int m_levelIndex = 0;
49
50 Level *m_pLevel = nullptr;
51
52 ResourceManager *m_pResourceManager = nullptr;
53
54};
The gameplay screen for the Space Fighter Game. It is responsible for creating and loading levels.
virtual void Draw(SpriteBatch &spriteBatch)
Render the screen.
virtual ~GameplayScreen()
GameplayScreen(const int levelIndex=0)
Instantiate a gameplay screen object.
virtual void LoadLevel(const int levelIndex)
Load a specific level.
virtual void Update(const GameTime &gameTime)
Update the screen.
virtual void LoadContent(ResourceManager &resourceManager)
Load the content for the screen.
virtual void HandleInput(const InputState &input)
Handle input for the screen.
Contains timing values for game updates and rendering.
Definition GameTime.h:21
Handles the state of multiple player input devices.
Definition InputState.h:22
Loads and manages the lifespan of objects from external files.
Base class for all game screens and menus.
Definition Screen.h:40
Enables a group of sprites to be drawn using the same settings.
Definition SpriteBatch.h:48
Represents a level in the game.
Definition Level.h:15
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition Animation.cpp:18