Beispiel #1
0
        /// <summary>
        /// Checks the timestamp against current time less lifetime of damagedetails FA
        /// If the details expired null is returned.
        /// </summary>
        /// <param name="lsec"></param>
        /// <returns>damage</returns>
        public Damage GetDamageDetails(int lsec)
        {
            if (DamageDetails != null && DamageDetails.TimeStamp < TimerBase.CurrentTimeStamp() - lsec )
                return DamageDetails;

            DamageDetails = null;
            return null;
        }
Beispiel #2
0
 public CombatInfo()
 {
     HoldingOurFlag = null;
     HoldingEnemyFlag = null;
     HoldingOurFlagPlayerInfo = null;
     HoldingEnemyFlagPlayerInfo = null;
     ProjectileDetails = null;
     DamageDetails = null;
     KeepFocusOnID = null;
     KeepFocusOnLocation = null;
 }