public DefensiveInfo(Character character) { if (character == null) { throw new ArgumentNullException("character"); } m_character = character; m_hitdef = new HitDefinition(); m_blocked = false; m_killed = false; m_hitstatetype = StateType.None; m_hitshaketime = 0; m_defensemultiplier = 1; m_attacker = null; m_hittime = 0; m_hitby1 = new HitBy(); m_hitby2 = new HitBy(); m_isfalling = false; m_hitoverrides = new List <HitOverride>(); for (Int32 i = 0; i != 8; ++i) { m_hitoverrides.Add(new HitOverride()); } m_hitcount = 0; }
public DefensiveInfo(Character character) { if (character == null) throw new ArgumentNullException("character"); m_character = character; m_hitdef = new HitDefinition(); m_blocked = false; m_killed = false; m_hitstatetype = StateType.None; m_hitshaketime = 0; m_defensemultiplier = 1; m_attacker = null; m_hittime = 0; m_hitby1 = new HitBy(); m_hitby2 = new HitBy(); m_isfalling = false; m_hitoverrides = new List<HitOverride>(); for (Int32 i = 0; i != 8; ++i) m_hitoverrides.Add(new HitOverride()); m_hitcount = 0; }