complete project with 4x4 table function
This commit is contained in:
parent
ae3370ac44
commit
9cb42200f3
130 changed files with 3706 additions and 2 deletions
25
Chaser/ChaserLibrary/Entity.cs
Normal file
25
Chaser/ChaserLibrary/Entity.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
namespace ChaserLibrary
|
||||
{
|
||||
public abstract class Entity
|
||||
{
|
||||
|
||||
public IPaintable? Painter { get; set; }
|
||||
public double X { get; private set; }
|
||||
public double Y { get; private set; }
|
||||
public double VelocityX { get; set; }
|
||||
public double VelocityY { get; set; }
|
||||
|
||||
public Entity(double x, double y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
public void Move()
|
||||
{
|
||||
X += VelocityX;
|
||||
Y += VelocityY;
|
||||
}
|
||||
public abstract void Update();
|
||||
public abstract void Draw();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue