using System; using System.Diagnostics; namespace SpaceInvaders { public class ShipMoveBoth : ShipMoveState { public override void Handle(Ship pShip) { } public override void MoveLeft(Ship pShip) { pShip.x -= pShip.speed; } public override void MoveRight(Ship pShip) { pShip.x += pShip.speed; } } }