コード例 #1
0
 public Nest(Location l)
 {
     _location = l;
     _ants     = new List <Ant>();
     _size     = 8;
     _layer    = Renderer.Layer.Back;
 }
コード例 #2
0
 public Pheromone(Location location, int strength)
 {
     _size = strength * _sizeFactor;
     _location = location;
     _layer = Renderer.Layer.Mid;
 }
コード例 #3
0
ファイル: Food.cs プロジェクト: bonnielunawalker/AntSim
 public Food(Location l)
 {
     _location = l;
     _size     = GameLogic.Random.Next(20, 75);
     _layer    = Renderer.Layer.Back;
 }
コード例 #4
0
 public Creature(Location l, int size)
 {
     _location = l;
     _layer    = Renderer.Layer.Front;
     _size     = size;
 }