コード例 #1
0
 /// <summary>
 /// Public method that makes this robot sneak.
 /// </summary>
 public void Sneak()
 {
     MessageOutputter.WriteLine($"SmallRobotV1 { PaintDescription ?? string.Empty } sneaking!");
 }
コード例 #2
0
 /// <summary>
 /// Public method that makes this robot move.
 /// </summary>
 public override void Move()
 {
     MessageOutputter.WriteLine($"SmallRobotV1 { PaintDescription ?? string.Empty } moving!");
 }
コード例 #3
0
 /// <summary>
 /// Public method that makes this robot crush.
 /// </summary>
 public void Crush()
 {
     MessageOutputter.WriteLine($"LargeRobotV2 { PaintDescription ?? string.Empty } crushing!");
 }
コード例 #4
0
 /// <summary>
 /// Public method that makes this robot attack.
 /// </summary>
 public override void Attack()
 {
     MessageOutputter.WriteLine($"SmallRobotV1 { PaintDescription ?? string.Empty } attacking with a { WeaponDescription ?? string.Empty }!");
 }
コード例 #5
0
 /// <summary>
 /// Public method that makes this robot speak.
 /// </summary>
 public override void Speak()
 {
     MessageOutputter.WriteLine($"LargeRobotV2 { PaintDescription ?? string.Empty } speaking!");
 }