コード例 #1
0
 public Prisoner(
     IDomainIdentifier identifier,
     PersonOnShipRole personOnShipRole     = PersonOnShipRole.Prisoner,
     int numberOfTimesToFlipFirstSwitch    = 2,
     SwitchPosition flipFirstSwitchPostion = SwitchPosition.Down
     ) : base(personOnShipRole)
 {
     Identifier = identifier;
     NumberOfTimesToFlipFirstSwitch = numberOfTimesToFlipFirstSwitch;
     FlipFirstSwitchPostion         = flipFirstSwitchPostion;
 }
コード例 #2
0
 public Leader(IDomainIdentifier identifier) : base(identifier, PersonOnShipRole.Leader, 44, SwitchPosition.Up)
 {
 }
コード例 #3
0
 public Switch(IDomainIdentifier switchIdentifier, SwitchPosition switchPosition)
 {
     SwitchIdentifier = switchIdentifier;
     SwitchPosition   = switchPosition;
 }