Beispiel #1
0
 void Clear()
 {
     _zone          = "";
     _reportedPoint = WoWPoint.Zero;  // potential border multi-report problems, but preference is to close the file and clean the Hash then to try to remember everything
     _started       = false;
     _petsSeen.Clear();
 }
Beispiel #2
0
 // checks if a player is in the same area, if not performs Close - Start
 // then checks if a pet id is already registered, if not creates one and adds a pet name there
 public void AddSeen(string id, string name, Styx.WoWPoint point)
 {
     if (!_started || !PluginSettings.Instance.RecordPets)
     {
         return;
     }
     CheckAndDoZoneReset();
     if (_petsSeen.ContainsKey(id))
     {
         //Logger.WriteDebug( "pet " +name+ " already reported");
         return;
     }
     _petsSeen[id] = 1;
     Styx.WoWPoint pointToReport = point;
     //Styx.WoWPoint pointToReport = StyxWoW.Me.Location;   // TODO: config?
     if (_reportedPoint.Equals(WoWPoint.Zero) || _reportedPoint.Distance2DSqr(pointToReport) > 200 * 200)
     {
         ReportPoint(point);
     }
     ReportSeen(name);
 }
Beispiel #3
0
 private void ReportPoint( Styx.WoWPoint p )
 {
     _petLog.WriteLine( "<Hotspot X=\"" + p.X + "\" Y=\"" + p.Y + "\" Z=\"" + p.Z + "\"/>");
     _reportedPoint = p;
 }
Beispiel #4
0
 void Clear()
 {
     _zone = "";
     _reportedPoint = WoWPoint.Zero;  // potential border multi-report problems, but preference is to close the file and clean the Hash then to try to remember everything
     _started = false;
     _petsSeen.Clear();
 }
Beispiel #5
0
 private void ReportPoint(Styx.WoWPoint p)
 {
     _petLog.WriteLine("<Hotspot X=\"" + p.X + "\" Y=\"" + p.Y + "\" Z=\"" + p.Z + "\"/>");
     _reportedPoint = p;
 }