Implemented Stargate shooting in Game

This commit is contained in:
Bokros Bálint 2016-05-07 17:41:25 +02:00
parent 070d3ef3f4
commit a7d6c604d8

View File

@ -1,5 +1,6 @@
package cicaprojekt; package cicaprojekt;
import java.awt.*;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@ -68,6 +69,13 @@ public class Game {
jaffa.boxLift(); jaffa.boxLift();
} }
public void shootStargate(Color color) {
if(color == Color.YELLOW || color == Color.BLUE)
oneill.shootStargate(Stargate.get(color));
else
jaffa.shootStargate(Stargate.get(color));
}
public void updateDisplay() { public void updateDisplay() {
} }
} }