2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
6
* This program is distributed in the hope that it will be useful,
7
* but WITHOUT ANY WARRANTY; without even the implied warranty of
8
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
* GNU General Public License for more details.
10
* You should have received a copy of the GNU General Public License
11
* along with this program; if not, write to the Free Software
12
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
package games.strategy.triplea.Dynamix_AI.CommandCenter;
17
import games.strategy.engine.data.GameData;
18
import games.strategy.engine.data.PlayerID;
19
import games.strategy.engine.data.Territory;
20
import games.strategy.engine.data.Unit;
21
import games.strategy.triplea.Dynamix_AI.DUtils;
22
import games.strategy.triplea.Dynamix_AI.Group.UnitGroup;
23
import java.util.ArrayList;
24
import java.util.HashMap;
25
import java.util.HashSet;
26
import java.util.List;
27
import java.util.logging.Level;
33
public class ReconsiderSignalCenter
35
private static HashMap<PlayerID, ReconsiderSignalCenter> s_RSCInstances = new HashMap<PlayerID, ReconsiderSignalCenter>();
36
public static ReconsiderSignalCenter get(GameData data, PlayerID player)
38
if(!s_RSCInstances.containsKey(player))
39
s_RSCInstances.put(player, create(data, player));
40
return s_RSCInstances.get(player);
42
private static ReconsiderSignalCenter create(GameData data, PlayerID player)
44
return new ReconsiderSignalCenter(data, player);
46
public static void ClearStaticInstances()
48
s_RSCInstances.clear();
50
public static void NotifyStartOfRound()
52
s_RSCInstances.clear();
54
private GameData m_data = null;
55
private PlayerID m_player = null;
56
public ReconsiderSignalCenter(GameData data, PlayerID player)
62
public HashSet<Object> ObjectsToReconsider = new HashSet<Object>();