-
Notifications
You must be signed in to change notification settings - Fork 0
/
State.cs
40 lines (28 loc) · 862 Bytes
/
State.cs
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
38
39
40
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Text;
namespace GoGame
{
public abstract class State
{
#region Fields
protected ContentManager _content;
protected GraphicsDeviceManager _graphics;
protected Game1 _game;
#endregion
#region Methods
public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch);
public abstract void PostUpdate(GameTime gameTime);
public State(Game1 game, GraphicsDeviceManager graphics, ContentManager content)
{
_game = game;
_graphics= graphics;
_content = content;
}
public abstract void Update(GameTime gameTime);
}
#endregion
}