X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FIPlayer.cs;fp=CarFire%2FCarFire%2FCarFire%2FIPlayer.cs;h=7eb761146d66547e563ca3e0b810ccf1ff4f7ef8;hb=4974b4845e3f1cff3667bd79130a877535f3f256;hp=0000000000000000000000000000000000000000;hpb=89e5ee7d83cfb353b6c98dcbf6ed6b87833b9866;p=chaz%2Fcarfire diff --git a/CarFire/CarFire/CarFire/IPlayer.cs b/CarFire/CarFire/CarFire/IPlayer.cs new file mode 100644 index 0000000..7eb7611 --- /dev/null +++ b/CarFire/CarFire/CarFire/IPlayer.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace CarFire +{ + public interface ICharacter + { + void LoadContent(ContentManager contentManager, GraphicsDeviceManager graphics); + void UnloadContent(); + long Update(GameTime gameTime, NetworkManager networkGame); + long Draw(SpriteBatch spriteBatch); + int Health { get; } + void causeDamageTo(int amount); + } + + public interface IPlayer : ICharacter + { + void MovePlayer(List keysPressed); + int Score { get; } + void powerUp(int amount); + void Spawn(Point mapPoint); + bool alive { get; } + } + + public interface IMonster : ICharacter + { + bool visible { get; } + } +}