Пример #1
0
 ///<summary>
 ///Used to recreate from temp into obstacle object.
 ///</summary>
 public CacheObject(CacheObject parent)
     : base(parent)
 {
     WorldID             = parent.WorldID;
     LevelAreaID         = parent.LevelAreaID;
     CreationTime        = parent.CreationTime;
     AcdGuid             = parent.AcdGuid;
     BlacklistFlag       = parent.BlacklistFlag;
     BlacklistLoops_     = parent.BlacklistLoops_;
     gprect_             = parent.gprect_;
     InteractionAttempts = parent.InteractionAttempts;
     lineofsight         = new LOSInfo(this);
     LoopsUnseen_        = parent.LoopsUnseen_;
     losv3_ = parent.losv3_;
     LosSearchRetryMilliseconds_ = parent.LosSearchRetryMilliseconds_;
     NeedsRemoved            = parent.NeedsRemoved;
     NeedsUpdate             = parent.NeedsUpdate;
     PrioritizedDate         = parent.PrioritizedDate;
     PriorityCounter         = parent.PriorityCounter;
     position_               = parent.Position;
     radius_                 = parent.Radius;
     RAGUID                  = parent.RAGUID;
     ref_DiaObject           = parent.ref_DiaObject;
     removal_                = parent.removal_;
     RequiresLOSCheck        = parent.RequiresLOSCheck;
     SummonerID              = parent.SummonerID;
     weight_                 = parent.Weight;
     HandleAsAvoidanceObject = parent.HandleAsAvoidanceObject;
     Properties              = parent.Properties;
     QuestMonster            = parent.QuestMonster;
     _skillsUsedOnObject     = new Dictionary <SNOPower, DateTime>();
 }
Пример #2
0
 public CacheObject(int sno, int raguid, int acdguid, Vector3 position, string Name = null)
     : base(sno)
 {
     WorldID = FunkyGame.Hero.CurrentWorldID;
     LevelAreaID = FunkyGame.Hero.iCurrentLevelID;
     CreationTime=DateTime.Now;
     RAGUID = raguid;
     NeedsUpdate = true;
     removal_ = false;
     BlacklistFlag = BlacklistType.None;
     AcdGuid = acdguid;
     radius_ = 0f;
     position_ = position;
     QuestMonster = false;
     RequiresLOSCheck = !(base.IgnoresLOSCheck); //require a LOS check initally on a new object!
     lineofsight = new LOSInfo(this);
     LosSearchRetryMilliseconds_ = 1000;
     PrioritizedDate = DateTime.Today;
     PriorityCounter = 0;
     losv3_ = Vector3.Zero;
     HandleAsAvoidanceObject = false;
     Properties = TargetProperties.None;
     SkillsUsedOnObject= new Dictionary<SNOPower, DateTime>();
     //Keep track of each unique RaGuid that is created and uses this SNO during each level.
     //if (!UsedByRaGuids.Contains(RAGUID)) UsedByRaGuids.Add(RAGUID);
 }
Пример #3
0
 public CacheObject(int sno, int raguid, int acdguid, Vector3 position, string Name = null)
     : base(sno)
 {
     WorldID                     = FunkyGame.Hero.CurrentWorldID;
     LevelAreaID                 = FunkyGame.Hero.iCurrentLevelID;
     CreationTime                = DateTime.Now;
     RAGUID                      = raguid;
     NeedsUpdate                 = true;
     removal_                    = false;
     BlacklistFlag               = BlacklistType.None;
     AcdGuid                     = acdguid;
     radius_                     = 0f;
     position_                   = position;
     QuestMonster                = false;
     RequiresLOSCheck            = !(base.IgnoresLOSCheck);  //require a LOS check initally on a new object!
     lineofsight                 = new LOSInfo(this);
     LosSearchRetryMilliseconds_ = 1000;
     PrioritizedDate             = DateTime.Today;
     PriorityCounter             = 0;
     losv3_                      = Vector3.Zero;
     HandleAsAvoidanceObject     = false;
     Properties                  = TargetProperties.None;
     SkillsUsedOnObject          = new Dictionary <SNOPower, DateTime>();
     //Keep track of each unique RaGuid that is created and uses this SNO during each level.
     //if (!UsedByRaGuids.Contains(RAGUID)) UsedByRaGuids.Add(RAGUID);
 }
Пример #4
0
 ///<summary>
 ///Used to recreate from temp into obstacle object.
 ///</summary>
 public CacheObject(CacheObject parent)
     : base(parent)
 {
     WorldID = parent.WorldID;
     LevelAreaID = parent.LevelAreaID;
     CreationTime=parent.CreationTime;
     AcdGuid = parent.AcdGuid;
     BlacklistFlag = parent.BlacklistFlag;
     BlacklistLoops_ = parent.BlacklistLoops_;
     gprect_ = parent.gprect_;
     InteractionAttempts = parent.InteractionAttempts;
     lineofsight = new LOSInfo(this);
     LoopsUnseen_ = parent.LoopsUnseen_;
     losv3_ = parent.losv3_;
     LosSearchRetryMilliseconds_ = parent.LosSearchRetryMilliseconds_;
     NeedsRemoved = parent.NeedsRemoved;
     NeedsUpdate = parent.NeedsUpdate;
     PrioritizedDate = parent.PrioritizedDate;
     PriorityCounter = parent.PriorityCounter;
     position_ = parent.Position;
     radius_ = parent.Radius;
     RAGUID = parent.RAGUID;
     ref_DiaObject = parent.ref_DiaObject;
     removal_ = parent.removal_;
     RequiresLOSCheck = parent.RequiresLOSCheck;
     SummonerID = parent.SummonerID;
     weight_ = parent.Weight;
     HandleAsAvoidanceObject = parent.HandleAsAvoidanceObject;
     Properties = parent.Properties;
     QuestMonster=parent.QuestMonster;
     _skillsUsedOnObject = new Dictionary<SNOPower, DateTime>();
 }