示例#1
0
        public Champion(Vector2 a_position, string a_name, string a_class, bool a_male, string a_race)
            : base(((GameState)Game.getInstance().getCurrentState()).getTileMap().getTile(a_position).p_position + new Vector2(64, -64))
        {
            m_name       = a_name;
            m_layer      = 0.300f;
            m_male       = a_male;
            m_faceNumber = 1;
            m_race       = RacesData.getRace(a_race);
            m_class      = ClassesData.getClass(a_class);

            m_stats = m_class.getBaseStats();
            foreach (KeyValuePair <string, int> l_kvPair in RacesData.getStats(m_race))
            {
                m_stats[l_kvPair.Key] += l_kvPair.Value;
            }
            m_stats.Add("CurrentHealth", m_stats["MaxHealth"]);
            m_stats.Add("CurrentMana", m_stats["MaxMana"]);
            m_stats.Add("Level", 1);
            m_stats.Add("MoveLeft", m_stats["Move"]);
            p_speed = m_stats["Speed"];

            m_currentPosition = ((GameState)Game.getInstance().getCurrentState()).getTileMap().getTile(a_position);
            m_bodySprites     = new Dictionary <KeyValuePair <HeroState, FacingState>, Sprite>();
        }
示例#2
0
 public static Dictionary<string, int> getStats(ChampionRace a_race)
 {
     return m_races[a_race.getName()].getBaseStats();
 }
示例#3
0
 public static Dictionary <string, int> getStats(ChampionRace a_race)
 {
     return(m_races[a_race.getName()].getBaseStats());
 }