private void CommonInitialization()
 {
     InitializeComponent();
     m_data = new MapData(this);
     m_data.DataChanged += new GenericEvent(m_data_DataChanged);
     m_game = new GameData(this);
     m_game.Updated += new GenericEvent(m_game_Updated);
     m_MapAltMatrix = new ColorMatrix();
     m_MapAltMatrix.Matrix33 = m_MapAltOpacity;
     m_MapAltAttr = new ImageAttributes();
     m_MapAltAttr.SetColorMatrix(m_MapAltMatrix);
     pCacheMapLine = new Pen(Color.White, m_scaleThickness ? 1 : 0);
 }
Exemple #2
0
 public MapHunts(MapData Data) {
    m_hunts = new Dictionary<string, MapHunt>();
    m_data = Data;
 }
Exemple #3
0
 //This is a pair of functions to allow the user to save changes to the map even after zoning.
 //  Becuase the zone change is performed during polling, this must be offloaded into another thread.
 //  Otherwise the next interval will raise the zoning code again while it waits for the user to answer.
 private void DirtyZone(MapData data)
 {
     //start the thread
     Thread thread = new Thread(DirtyZoneThread);
     thread.Start(data);
 }
Exemple #4
0
 public MapReplacements(MapData Data)
 {
     m_replacements = new Dictionary<string, MapReplacement>();
     m_data = Data;
 }