|
@@ -172,7 +172,8 @@ class MyCanvas extends JPanel implements MouseListener, MouseMotionListener {
|
|
// If drawing an Edge (CTRL down)
|
|
// If drawing an Edge (CTRL down)
|
|
if (e.isControlDown()){
|
|
if (e.isControlDown()){
|
|
drawEdge = true;
|
|
drawEdge = true;
|
|
- controller.deleteElementCanvas("Monster", "Rehab", 1);
|
|
|
|
|
|
+ controller.deleteElementCanvas("Power Plant", "Rehab", 1);
|
|
|
|
+ System.out.println(((HolonObject)model.getCategories().get(0).getObjects().get(0)).getElements().get(2).getAmount());
|
|
}
|
|
}
|
|
if (tempCps.getClass() == HolonObject.class) {
|
|
if (tempCps.getClass() == HolonObject.class) {
|
|
HolonObject tempObj = ((HolonObject) tempCps);
|
|
HolonObject tempObj = ((HolonObject) tempCps);
|