mirror of
https://github.com/avinal/The-Icosian-Game.git
synced 2026-01-10 06:18:32 +05:30
comments added
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* Static class with hardcoded displayd
|
||||||
|
*/
|
||||||
class SplashScreen {
|
class SplashScreen {
|
||||||
|
/**
|
||||||
|
* Draws the splash screen of the game
|
||||||
|
*/
|
||||||
function void entryScreen(){
|
function void entryScreen(){
|
||||||
do Output.printString(" ___");
|
do Output.printString(" ___");
|
||||||
do Output.println();
|
do Output.println();
|
||||||
@@ -40,6 +46,9 @@ class SplashScreen {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws rule screen of the game
|
||||||
|
*/
|
||||||
function void ruleScreen(){
|
function void ruleScreen(){
|
||||||
do Output.moveCursor(0,0);
|
do Output.moveCursor(0,0);
|
||||||
do Output.println();
|
do Output.println();
|
||||||
@@ -64,6 +73,9 @@ class SplashScreen {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws game lost screen
|
||||||
|
*/
|
||||||
function void lossScreen(){
|
function void lossScreen(){
|
||||||
do Screen.clearScreen();
|
do Screen.clearScreen();
|
||||||
do Output.moveCursor(10,17);
|
do Output.moveCursor(10,17);
|
||||||
@@ -74,6 +86,9 @@ class SplashScreen {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws winner screen and the final hamiltonian circuit
|
||||||
|
*/
|
||||||
function void winScreen(String path){
|
function void winScreen(String path){
|
||||||
var DrawIcosian icon;
|
var DrawIcosian icon;
|
||||||
var int i;
|
var int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user