Пример #1
0
        public static void Main(string[] args)
        {
            Console.WriteLine();

            Console.WriteLine("==== Hero DOTA ====");

            Console.WriteLine();

            IHero hero;

            hero = new strength();
            hero.name();
            hero.abilities();
            hero.difficulty();

            Console.WriteLine();

            hero = new agility();
            hero.name();
            hero.abilities();
            hero.difficulty();

            Console.WriteLine();

            hero = new intelligence();
            hero.name();
            hero.abilities();
            hero.difficulty();
        }
Пример #2
0
    public static void InitDatas(TextAsset _Txt)
    {
        MemoryStream fs = null;
        BinaryReader br = null;
        try
        {
            int rowCount = br.ReadInt16();
            m_datas = new strength[rowCount];
            for (int i = 0; i < rowCount; i++)
            {
                m_datas[i] = new strength();

                // TODO

            }
            br.Close();
            fs.Close();
        }
        catch(IOException e)
        {
            Debug.LogError("Read strength.bytes ERROR:" + e);
        }
    }
Пример #3
0
 public void setHandStrenght(strength input)
 {
     hand_strength = input;
 }