コード例 #1
0
 public Pitcher()
 {
     batBehavior   = new SwingNothing();
     throwBehavior = new ThrowPitch();
     catchBehavior = new CatchGlove();
 }
コード例 #2
0
 public Fielder()
 {
     batBehavior   = new SwingNothing();
     throwBehavior = new ThrowFielder();
     catchBehavior = new CatchGlove();
 }