Example #1
0
        // ==================== Constructors ======================
        public Humanoid( Humanoid C )
        {
            this.Carrying = C.Carrying;
            this.LHand = C.LHand;
            this.RHand = C.RHand;

            // Inherited From LivingObject
            this.Age = C.Age;
            this.Alive = C.Alive;
            this.Health = C.Health;
            this.Lootable = C.Lootable;
            this.Aggressive = C.Aggressive;
            this.Aggressor = C.Aggressor;
            this.SightRange = C.SightRange;
            this.MoveRange = C.MoveRange;

            // Inherited From AdvObject
            this.Color = C.Color;
            this.Title = C.Title;
            this.Visible = C.Visible;
            this.LocX = C.LocX;
            this.LocY = C.LocY;
            this.Name = C.Name;
            this.Desc = C.Desc;
            this.Id = C.Id;
        }
Example #2
0
        // Generate a new NPC - human type
        private Humanoid NewTownee(int x, int y)
        {
            Humanoid H = new Humanoid();
            H.Name = Randy("townees", "names", "name");
            H.Title = Randy("townees", "titles", "human");
            H.LocX = x;
            H.LocY = y;
            H.Id = "T";

            if (H.Title == "Drunk")
                H.Drunk = true;

            return H;
        }
Example #3
0
 // Wrapper for Humanoid ShowBag() - More for NPC's
 public void DspBag(Humanoid me)
 {
     me.ShowBag();
 }