Skip to content
Permalink
af42b10cc5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
46 lines (34 sloc) 771 Bytes
public class MapTowerDefense {
private int maxTowers;
private int numNodes;
private int[][] nodes;
private MinionFactory MF;
private TowerFactory TF;
private MockGui MG;
public MapTowerDefense(int _maxTowers, int _numNodes, int[][] _nodes, MockGui _mg) {
maxTowers = _maxTowers;
numNodes = _numNodes;
nodes = _nodes;
MF = new MinionFactory(nodes[0][0], nodes[0][1], this);
TF = new TowerFactory(this, maxTowers);
MG = _mg;
}
public MinionFactory getMF() {
return MF;
}
public TowerFactory getTF() {
return TF;
}
public int getNum() {
return numNodes;
}
public int[][] getNodes() {
return nodes;
}
public MockGui getGui() {
return MG;
}
public void createMinion(MinionTypes type) {
MF.createMinion(type);
}
}