]> Dogcows Code - chaz/carfire/blob - CarFire/CarFire/CarFire/IPlayer.cs
Smooth player movement... still has some issues.
[chaz/carfire] / CarFire / CarFire / CarFire / IPlayer.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Content;
7 using Microsoft.Xna.Framework.Graphics;
8 using Microsoft.Xna.Framework.Input;
9
10 namespace CarFire
11 {
12 public interface ICharacter
13 {
14 void LoadContent(ContentManager contentManager);
15 void UnloadContent();
16 long Update(GameTime gameTime, NetworkManager networkGame);
17 long Draw(SpriteBatch spriteBatch);
18 int Health { get; }
19 void causeDamageTo(int amount);
20 int GridX { get; set; }
21 int GridY { get; set; }
22 float PixelX { get; }
23 float PixelY { get; }
24 bool IsMoving { get; }
25 }
26
27 public interface IPlayer : ICharacter
28 {
29 void MovePlayer(List<Keys> keysPressed);
30 int Score { get; }
31 void powerUp(int amount);
32 void Spawn(Vector2 spawn);
33 bool alive { get; }
34 }
35
36 public interface IMonster : ICharacter
37 {
38 bool visible { get; }
39 }
40 }
This page took 0.031984 seconds and 4 git commands to generate.