mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 04:41:52 -08:00
updated implementation with proper OO design, provided link to video
This commit is contained in:
9
84_Super_Star_Trek/java/GameCallback.java
Normal file
9
84_Super_Star_Trek/java/GameCallback.java
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Interface for decoupling inversion of control from GalaxyMap and Enterprise towards the game class.
|
||||
*/
|
||||
public interface GameCallback {
|
||||
void enterNewQuadrant();
|
||||
void incrementStardate(double increment);
|
||||
void endGameSuccess();
|
||||
void endGameFail(boolean enterpriseDestroyed);
|
||||
}
|
||||
Reference in New Issue
Block a user