space-pew/SpacePew/Models/IEntity.cs
Magnus von Wachenfeldt 2a9d8ce416 move to github
2015-12-04 10:23:49 +01:00

29 lines
591 B
C#

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace SpacePew.Models
{
public interface IEntity
{
string TextureName { get; }
Texture2D Texture { get; set; }
Color[] GetTextureData();
Color Color { get; set; }
string Owner { get; set; }
int Health { get; set; }
Vector2 Origin { get; }
Vector2 Position { get; set; }
Vector2 Velocity { get; set; }
float Angle { get; set; }
bool Collide(IEntity entity);
void CollideWithLevel(Level level);
void ApplyGravity(GameTime time);
void Update(GameTime time);
void Created();
}
}