-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreen.cs
More file actions
28 lines (24 loc) · 865 Bytes
/
Screen.cs
File metadata and controls
28 lines (24 loc) · 865 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
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace ShogiClient
{
/// <summary>
/// Base class that provides the user acess to game resources, prespecified parameters and polymorphism.
/// </summary>
public abstract class Screen
{
public Game1 Game { get; private set; }
public GameResources Resources { get; private set; }
public Screen(Game1 game)
{
Game = game;
}
public virtual void Initialize(GameResources resources)
{
Resources = resources;
}
public abstract void Update(GameTime gameTime, KeyboardState keyboardState, KeyboardState prevKeyboardState, MouseState mouseState, MouseState prevMouseState);
public abstract void Draw(SpriteBatch spriteBatch);
}
}