public PistonTile(Point triggerPosition, Point direction, bool isExtended = false) : base(isExtended ? Entity.None : new PistonEntity(direction)) { TriggerPosition = triggerPosition; Direction = direction.EnsureDirection(); IsExtended = isExtended; }
public async Task<bool> MovePlayerAsync(Point direction) { direction.EnsureDirection(); return await MoveAsync(PlayerPosition, PlayerPosition + direction); }