public bool IsValidShip(int ship_mem_id) { ShipModel ship = base.UserInfo.GetShip(ship_mem_id); if (ship.IsBling()) { return(false); } if (ship.IsInMission()) { return(false); } DeckModelBase deck = ship.getDeck(); if (deck != null) { if (deck.IsEscortDeckMyself()) { return(false); } if (deck.IsActionEnd()) { return(false); } } return(true); }
public bool IsValidPowerUp(List <ShipModel> material_ships) { if (_powup_target_ship == null) { return(false); } if (material_ships == null) { return(false); } if (material_ships.FindAll((ShipModel ship) => ship != null).Count <= 0) { return(false); } if (getPowUpInfo(material_ships).IsAllZero()) { return(false); } DeckModelBase deck = _powup_target_ship.getDeck(); if (deck != null && deck.IsActionEnd()) { return(false); } return(true); }
public bool IsValidPowerUp(List <ShipModel> material_ships) { if (this._powup_target_ship == null) { return(false); } if (material_ships == null) { return(false); } if (material_ships.FindAll((ShipModel ship) => ship != null).get_Count() <= 0) { return(false); } if (this.getPowUpInfo(material_ships).IsAllZero()) { return(false); } DeckModelBase deck = this._powup_target_ship.getDeck(); return(deck == null || !deck.IsActionEnd()); }