mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
23 lines
500 B
C#
23 lines
500 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace Demo.SpaceGame.Entities
|
|
{
|
|
public abstract class Entity
|
|
{
|
|
public bool IsDestroyed { get; private set; }
|
|
|
|
protected Entity()
|
|
{
|
|
IsDestroyed = false;
|
|
}
|
|
|
|
public abstract void Update(GameTime gameTime);
|
|
public abstract void Draw(SpriteBatch spriteBatch);
|
|
|
|
public virtual void Destroy()
|
|
{
|
|
IsDestroyed = true;
|
|
}
|
|
}
|
|
} |