コード例 #1
0
 /// <summary>
 /// Creates a new instance of hunter behavior.
 /// </summary>
 /// <param name="ant">The ant to be controlled.</param>
 public HunterBehavior(ArndtBalkeClass ant)
     : base(ant)
 {
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of gatherer behavior.
 /// </summary>
 /// <param name="ant">The ant to be controlled.</param>
 public GathererBehavior(ArndtBalkeClass ant)
     : base(ant)
 {
 }
コード例 #3
0
ファイル: BaseBehavior.cs プロジェクト: Nilsio63/AntMe
 /// <summary>
 /// Base constructor for all behaviors.
 /// </summary>
 /// <param name="ant">The ant to be controlled.</param>
 protected BaseBehavior(ArndtBalkeClass ant)
 {
     // Save ant reference
     _ant = ant;
 }