Arcade Shooter
Sample
MenuScreen.h
1
2
/* .oooooo..o .o. ooo ooooo ooooooooo. ooooo oooooooooooo
3
d8P' `Y8 .888. `88. .888' `888 `Y88. `888' `888' `8
4
Y88bo. .8"888. 888b d'888 888 .d88' 888 888
5
`"Y8888o. .8' `888. 8 Y88. .P 888 888ooo88P' 888 888oooo8
6
`"Y88b .88ooo8888. 8 `888' 888 888 888 888 "
7
oo .d8P .8' `888. 8 Y 888 888 888 o 888 o
8
8""88888P' o88o o8888o o8o o888o o888o o888ooooood8 o888ooooood8
9
10
Sample © 2017 - Shuriken Studios LLC */
11
12
#pragma once
13
14
namespace
Sample
15
{
16
18
class
MenuScreen
:
public
KatanaEngine::MenuScreen
19
{
20
21
public
:
22
23
MenuScreen
();
24
virtual
~
MenuScreen
() { }
25
29
virtual
void
LoadContent
(ResourceManager *pResourceManager);
30
33
virtual
void
Update
(
const
GameTime *pGameTime);
34
35
36
protected
:
37
40
virtual
void
AddMenuItem
(MenuItem *pItem);
41
44
virtual
void
SetMenuPosition
(
const
Vector2 position) { m_position = position; }
45
46
47
private
:
48
49
Color m_selectedColor;
50
Color m_unselectedColor;
51
52
float
m_selectedAlpha;
53
float
m_unselectedAlpha;
54
55
Vector2 m_position;
56
57
Font *m_pFont;
58
59
};
60
}
Sample
Sample is a sample game to use as a template for using Katana Engine and Shooter Library.
Definition:
Background.cpp:14
Sample::MenuScreen
Base class for menu screens in the sample game.
Definition:
MenuScreen.h:18
Sample::MenuScreen::Update
virtual void Update(const GameTime *pGameTime)
Called when the game has determined that screen logic needs to be processed.
KatanaEngine::MenuScreen
Base class for all game menu screens.
Definition:
MenuScreen.h:22
Sample::MenuScreen::LoadContent
virtual void LoadContent(ResourceManager *pResourceManager)
Called when resources need to be loaded.
Definition:
MenuScreen.cpp:32
Sample::MenuScreen::SetMenuPosition
virtual void SetMenuPosition(const Vector2 position)
Sets the position of the first menu item.
Definition:
MenuScreen.h:44
Sample::MenuScreen::AddMenuItem
virtual void AddMenuItem(MenuItem *pItem)
Adds a menu item to the screen.
Generated by
1.8.13