Castle.Monster.Monster C# (CSharp) Method

Monster() public method

public Monster ( String name, String inventoryName, int roomId, int x, int y, int character, int health, string description, string deadDescription ) : System
name String
inventoryName String
roomId int
x int
y int
character int
health int
description string
deadDescription string
return System
        public Monster(String name, String inventoryName, int roomId, int x, int y, int character, int health, string description, string deadDescription)
            : base(SadConsole.Engine.DefaultFont)
        {
            this.IsAlive = true;
            this.Name = inventoryName;
            this.InventoryName = name;
            this.RoomId = roomId;
            position.X = x;
            position.Y = y;
            this.Character = character;
            this.Health = health;
            this.Description = description;
            this.DeadDescription = deadDescription;
            this.Value = 100;
            this.IsGuard = false;

            Animation = new AnimatedTextSurface("default", 1, 1, SadConsole.Engine.DefaultFont);
            var frame = Animation.CreateFrame();
            frame[0].GlyphIndex = character;
        }