Exemplo n.º 1
0
        public Creature(ThisCreatureType theType, DataManager dataManager, Random rando)
        {
            AssignProperties(theType, dataManager, rando);


            if (rando.Next(1, 50) == 1)
            {
                AssignUniqueCreatureProperties(rando, dataManager);
            }
        }
Exemplo n.º 2
0
        protected void AssignProperties(ThisCreatureType thisType, DataManager dataManager, Random rando)
        {
            //global stuff
            isUnique           = false;
            uniqueCreatureName = "";
            creatureAge        = 0;
            creatureID         = dataManager.getRandomID(rando);

            if (thisType == ThisCreatureType.FlapFlap)
            {
                thisAggressionType     = AggressionType.Neutral;
                thisCreatureType       = ThisCreatureType.FlapFlap;
                thisCreatureActiveTime = ActiveTime.Nighttime;
            }
            else if (thisType == ThisCreatureType.Birb)
            {
                thisAggressionType     = AggressionType.Cautious;
                thisCreatureType       = ThisCreatureType.Birb;
                thisCreatureActiveTime = ActiveTime.Daytime;
            }
            else if (thisType == ThisCreatureType.Leggy)
            {
                thisAggressionType     = AggressionType.Aggressive;
                thisCreatureType       = ThisCreatureType.Leggy;
                thisCreatureActiveTime = ActiveTime.Nighttime;
            }
            else if (thisType == ThisCreatureType.Stinkhorn)
            {
                thisAggressionType     = AggressionType.Neutral;
                thisCreatureType       = ThisCreatureType.Stinkhorn;
                thisCreatureActiveTime = ActiveTime.Daytime;
            }
            else if (thisType == ThisCreatureType.Krab)
            {
                thisAggressionType     = AggressionType.Defensive;
                thisCreatureType       = ThisCreatureType.Krab;
                thisCreatureActiveTime = ActiveTime.Daytime;
            }
            else if (thisType == ThisCreatureType.Doggo)
            {
                thisAggressionType     = AggressionType.Friendly;
                thisCreatureType       = ThisCreatureType.Doggo;
                thisCreatureActiveTime = ActiveTime.Both;
            }
            else if (thisType == ThisCreatureType.Swampus)
            {
                thisAggressionType     = AggressionType.Neutral;
                thisCreatureType       = ThisCreatureType.Swampus;
                thisCreatureActiveTime = ActiveTime.Both;
            }
            else if (thisType == ThisCreatureType.RatRat)
            {
                thisAggressionType     = AggressionType.Neutral;
                thisCreatureType       = ThisCreatureType.RatRat;
                thisCreatureActiveTime = ActiveTime.Nighttime;
            }
            else if (thisType == ThisCreatureType.Hoars)
            {
                thisAggressionType     = AggressionType.Aggressive;
                thisCreatureType       = ThisCreatureType.Hoars;
                thisCreatureActiveTime = ActiveTime.Nighttime;
            }
            else if (thisType == ThisCreatureType.Furball)
            {
                thisAggressionType     = AggressionType.Aggressive;
                thisCreatureType       = ThisCreatureType.Furball;
                thisCreatureActiveTime = ActiveTime.Nighttime;
            }
        }