Example #1
0
        // ==================== Constructors =========================
        public Monster( Monster C )
        {
            this.Chained = C.Chained;

            // 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 new monster
        private Monster NewMon(int x, int y)
        {
            Monster M = new Monster();
            M.Name = Randy("townees", "names", "named");
            M.Title = Randy("townees", "titles", "mon");
            M.LocX = x;
            M.LocY = y;
            M.Chained = true;
            M.Aggressive = true;
            M.Id = "M";

            return M;
        }