예제 #1
0
 public Organism(int _x, int _y, Sex _sex, int _range, int _rollBack, int _deadUntil, OrganismSentry _organismSentry) : base(_x, _y)
 {
     OrganismSentry   = _organismSentry;
     Sex              = _sex;
     OrganismRange    = _range;
     DeadUntil        = _deadUntil;
     NoReproduceUntil = _rollBack;
     IsAlive          = true;
 }
예제 #2
0
 public MainSentry(
     int apples, int applesGrowth,
     int carrots, int carrotsGrowth,
     int oats, int oatsGrowth,
     int humans, int ticksHumanStutter,
     int deers, int ticksDeerStutter,
     int mice, int ticksMouseStutter,
     int rabbits, int ticksRabbitStutter,
     int bears, int ticksBearStutter,
     int pigs, int ticksPigStutter,
     int raccoons, int ticksRaccoonStutter,
     int foxes, int ticksFoxStutter,
     int lions, int ticksLionStutter,
     int wolves, int ticksWolfStutter,
     int maxOrgVisionRange,
     int maxOrgTicksBeforeReproducing,
     int maxOrgTicksBeforeBecomingGrass,
     int dayNightChange,
     int maxAmountOfMeteoritesFallingSimultaneously,
     int maxTicksMeteoriteFalling,
     int maxTicksMeteoriteCracking,
     int maxTicksMeteoriteBeforeDissolving,
     int chanceOfMeteoriteToFallOnMap,
     int chanceOfHumanToSpawnOnShard,
     int chanceOfPlantToSpawnOnShard,
     Map map)
 {
     Random          = map.Random;
     Map             = map;
     plantSentry     = new PlantSentry(apples, applesGrowth, carrots, carrotsGrowth, oats, oatsGrowth, this);
     organismSentry  = new OrganismSentry(humans, ticksHumanStutter, deers, ticksDeerStutter, mice, ticksMouseStutter, rabbits, ticksRabbitStutter, bears, ticksBearStutter, pigs, ticksPigStutter, raccoons, ticksRaccoonStutter, foxes, ticksFoxStutter, lions, ticksLionStutter, wolves, ticksWolfStutter, maxOrgVisionRange, maxOrgTicksBeforeReproducing, maxOrgTicksBeforeBecomingGrass, this);
     dayNightSentry  = new DayNightSentry(dayNightChange, this);
     meteoriteSentry = new MeteoriteSentry(maxTicksMeteoriteFalling, maxTicksMeteoriteCracking, maxTicksMeteoriteBeforeDissolving, maxAmountOfMeteoritesFallingSimultaneously, chanceOfMeteoriteToFallOnMap, this);
     houseSentry     = new HouseSentry(this);
     barnSentry      = new BarnSentry(this);
     this.chanceOfHumanToSpawnOnShard = chanceOfHumanToSpawnOnShard;
     this.chanceOfPlantToSpawnOnShard = chanceOfPlantToSpawnOnShard;
 }
예제 #3
0
 public Herbivore(int _x, int _y, Sex _sex, int _range, int _rollBack, int _deadUntil, OrganismSentry _organismSentry) : base(_x, _y, _sex, _range, _rollBack, _deadUntil, _organismSentry)
 {
 }
예제 #4
0
 public Predatory(int _x, int _y, Sex _sex, int _range, int _rollBack, int _deadUntil, OrganismSentry _organismSentry) : base(_x, _y, _sex, _range, _rollBack, _deadUntil, _organismSentry)
 {
 }
예제 #5
0
 public Omnivore(int _x, int _y, Sex _male, int _range, int _rollBack, int _deadUntil, OrganismSentry _organismSentry) : base(_x, _y, _male, _range, _rollBack, _deadUntil, _organismSentry)
 {
 }