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