diff --git a/cicaprojekt/Game.java b/cicaprojekt/Game.java index 0d037ea..566230b 100644 --- a/cicaprojekt/Game.java +++ b/cicaprojekt/Game.java @@ -1,5 +1,6 @@ package cicaprojekt; +import java.awt.*; import java.io.File; import java.io.IOException; import java.util.Map; @@ -68,6 +69,13 @@ public class Game { 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() { } }