StrawberryBF/src/Physics/Solid.bf
2020-05-05 18:51:27 -07:00

43 lines
610 B
Brainfuck

using System.Collections;
namespace Strawberry
{
public class Solid : Geometry
{
public this(Point position, Rect hitbox)
: base(position)
{
Hitbox = hitbox;
}
public override List<Actor> GetRiders(List<Actor> into)
{
for (var a in Scene.All<Actor>(scope List<Actor>))
if (a.IsRiding(this))
into.Add(a);
return into;
}
public override void MoveExactX(int amount)
{
if (amount != 0)
{
}
}
public override void MoveExactY(int amount)
{
if (amount != 0)
{
}
}
public override void Draw()
{
DrawHitbox(.(255, 255, 255, 255));
}
}
}