From a7d6c604d8494215e621fdfa5c5d2332e395aeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 7 May 2016 17:41:25 +0200 Subject: [PATCH] Implemented Stargate shooting in Game --- cicaprojekt/Game.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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() { } }