Implemented Stargate shooting in Game
This commit is contained in:
parent
070d3ef3f4
commit
a7d6c604d8
@ -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() {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user