コード例 #1
0
 public Weapon(Position position, char symbol, int damage)
     : base(position, symbol)
 {
     this.Damage = damage;
 }
コード例 #2
0
 public Item(Position position, char symbol)
     : base(position, symbol)
 {
     this.State = ItemState.Available;
 }
コード例 #3
0
 public Weapon CreateWeapon(Position position)
 {
     return new Lightsaber(position);
 }
コード例 #4
0
 public GameObject(Position position, char symbol)
 {
     this.Position = position;
     this.Symbol = symbol;
 }
コード例 #5
0
 public ICharacter CreateStormtrooper(Position position)
 {
     return new Stormtrooper(position);
 }
コード例 #6
0
 public ForceBall(Position position, ForceBallPower power)
     : base(position, FBSymbol)
 {
     this.Power = power;
     base.State = ItemState.Available;
 }
コード例 #7
0
 public Lightsaber(Position position)
     : base(position, LightsaberSymbol, LightsaberDamage)
 {
 }
コード例 #8
0
 public Stormtrooper(Position position)
     : base(SName, position, 'S', SHealth, SDamage)
 {
 }
コード例 #9
0
 public ForceBall CreateForceBall(Position position, ForceBallPower power)
 {
     return new ForceBall(position, power);
 }