Example #1
0
        /// <summary>
        ///  Create Minion
        /// </summary>
        ///


        private NPCBase(Gender gender, RaceBase race, Class.AgentClassBase @class, string name, NPCBase Leader) : this(Leader.World, gender, race, @class, name, 0, 0)
        {
            if (Leader.PartyMembers == null)
            {
                Leader.PartyMembers = new List <NPCBase>();
            }
            IsPartyMember = true;
            Leader.PartyMembers.Add(this); /// DA DA DA DA! X joined y's party :p
        }
Example #2
0
        /// <summary>
        /// Create Leader
        /// </summary>
        public NPCBase(IWorld grid, Gender gender, RaceBase race, Class.AgentClassBase @class, string name, int x, int y) : base(grid)
        {
            this.X      = x;
            this.Y      = y;
            this.Race   = race;
            this.Name   = name;
            this.Gender = gender;
            this.Class  = @class;


            this.Fire     = new FireStat(this);
            this.Water    = new WaterStat(this);
            this.Wind     = new WindStat(this);
            this.Earth    = new EarthStat(this);
            this.Chaos    = new ChaosStat(this);
            this.Order    = new Orderstat(this);
            this.Light    = new LightStat(this);
            this.Darkness = new DarkStat(this);

            this.Strenght     = new StrenghtStat(this);
            this.HP           = new HealthPointsStat(this);
            this.Constitution = new ConstitutuinStat(this);
            this.Stamina      = new StaminaStat(this);
            this.Awareness    = new AwarnessStat(this);
            this.Stealth      = new StealthStat(this);
            this.Speed        = new speedStat(this);
            this.Agility      = new AgilityStat(this);
            this.Dexterity    = new DexterityStat(this);


            //change later baced on race maybe?
            this.HP.MaxBase = 5;
            this.HP.Current = this.HP.Max;

            this.Stamina.MaxBase = 5;
            this.Stamina.Current = this.Stamina.Max;

            this.Awareness.MaxBase = 5;
            this.Awareness.Current = this.Awareness.Max;
        }
Example #3
0
 public Player(IWorld grid, Gender gender, RaceBase race, Class.AgentClassBase @class, string name, int x, int y) : base(grid, gender, race, @class, name, x, y)
 {
     this.AI = null;
 }
Example #4
0
 public void AddPartyMember(Gender gender, RaceBase race, Class.AgentClassBase @class, string name)
 {
     new NPCBase(gender, race, @class, name, this);
 }