private ShipManager() { // Store the states this.pStateReady = new ShipStateReady(); this.pStateMissileFlying = new ShipStateMissileFlying(); this.pStateEnd = new ShipStateEnd(); // set active this.pCurrentShip = null; this.pMissile = null; }
private ShipMan() { // Store the states this.pStateReady = new ShipStateReady(); this.pStateMissileFlying = new ShipStateMissileFlying(); this.pStateEnd = new ShipStateEnd(); this.pShipStateMoveBoth = new ShipStateMoveBoth(); this.pShipStateMoveLeft = new ShipStateMoveLeft(); this.pShipStateMoveRight = new ShipStateMoveRight(); // set active this.pShip = null; this.pMissile = null; }
private ShipMan() { this.pStateReady = new ShipStateReady(); this.pStateMissileFlying = new ShipStateMissileFlying(); this.pStateEnd = new ShipStateEnd(); this.pNoLeftState = new NoLeftState(); this.pNoRightState = new NoRightState(); this.pFreeMoveState = new FreeMoveState(); this.pNoMoveState = new NoMoveState(); this.poShip = null; this.pMissile = null; this.lives = 3; }