Example #1
0
 public Organism(IOcean ocean, Coordinate pos, int curTimeToReproduce, int timeToReproduce)
 {
     _ocean                  = ocean;
     _position               = pos;
     _timeToReproduce        = timeToReproduce;
     _currentTimeToReproduce = _timeToReproduce;
 }
Example #2
0
 public Fish(IOcean ocean, Coordinate pos, int curTimeToReproduce, int timeToReproduce)
     : base(ocean, pos, curTimeToReproduce, timeToReproduce)
 {
     _kind = ESpecies.Fish;
 }
Example #3
0
 public Shark(IOcean ocean, Coordinate pos, int curTimeToReproduce, int curTimeToFeed, int timeToReproduce, int timeToFeed)
     : base(ocean, pos, curTimeToReproduce, curTimeToFeed, timeToReproduce, timeToFeed)
 {
     _kind = ESpecies.Shark;
 }
Example #4
0
 public Predator(IOcean ocean, Coordinate pos, int curTimeToReproduce, int curTimeToFeed, int timeToReproduce, int timeToFeed)
     : base(ocean, pos, curTimeToReproduce, timeToReproduce)
 {
     _timeToFeed        = timeToFeed;
     _currentTimeToFeed = curTimeToFeed;
 }