Example #1
0
        public Hero(char symbol, string Name, int x, int y, Politics group) : base(symbol, Name, x, y, group)
        {
            this.group  = group;
            this.symbol = symbol;
            CurHealth   = MaxHealth;
            isBlock     = true;
            Inv         = new Inventory();
            journal     = new Journal();
            Perks       = new Perk();
            Info        = new List <Acts>();
            Action del;

            Methods.Add(new Acts("Info", del = Explore));
        }
Example #2
0
        public static void AddGroup(Politics newGroup)
        {
            N++;
            Relate[,] NewRelations = new Relate[N, N];

            for (int i = 0; i < N - 1; i++)
            {
                for (int j = 0; j < N - 1; j++)
                {
                    NewRelations[i, j] = relations[i, j];
                }
            }

            relations = NewRelations;
        }
Example #3
0
        //Конструктор человека
        public Person(char symbol, string Name, int x, int y, Politics group) : base(Name, x, y)
        {
            this.group  = group;
            this.symbol = symbol;
            CurHealth   = MaxHealth;
            isBlock     = true;
            Inv         = new Inventory();
            journal     = new Journal();
            Perks       = new Perk();
            Info        = new List <Acts>();
            Action del;

            humanAI = new AI(this, Perks.CurAbils.Inteligence);
            if (Name != "Hero" && Name != "Helper")
            {
                // humanAI.StartThinking();
            }
            Methods.Add(new Acts("Info", del = Explore));
        }