-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b879e70
commit 971a0af
Showing
18 changed files
with
529 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
public class GameRunner | ||
{ | ||
//Runs the game | ||
public static void main (String[] args) | ||
{ | ||
// Where the magic happens and the game is started to play | ||
// If you are seeing this, that means you've successfully opened the correct Java files to play | ||
// First, you should compile all 22 of the different Java files and ensure that there are no Compile Message errors | ||
// If there are errors, usually they include which files should be compiled before that specific one can be compiled first | ||
// Also ensure that the textfiles of EVENTS.txt & ENDINGS.txt are not Compressed | ||
// This can be fixed by first copying the files into another folder | ||
// Then deleting the original ones in this very folder (ICS-PROJECT-master) | ||
// Move the copiedtext files over again back into this very folder (ICS-PROJECT-master) | ||
// If the game can run without any crashing, then you are welcome to close all of the Java windows besides GameRunner.java | ||
// and move up the screen so you can fully see what the game has to say! | ||
// You can decide to end the current simulation by pressing 'End' and the game will save (assuming you've reached the checkpoint) | ||
// With that, you can decide to return to your previous game or start a new game! | ||
// Enjoy the AYJ Simulator! | ||
Display d = new Display(); | ||
d.startGame(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
public class Predetermined extends Event{ | ||
|
||
// Child of Event | ||
// Only type of event which makes it so it can occur only on a specific date (e.g. prom) | ||
private int month; | ||
//Contructor | ||
public Predetermined(String id, int statType, int statReq, int changeType, int changeAmount, int month, EventPhase[] phases){ | ||
super(id, statType, statReq, changeType, changeAmount, phases); | ||
this.month = month; | ||
} | ||
//accessor | ||
|
||
public int getMonthReq(){ | ||
return month; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
public class Random extends Event{ | ||
//Constructor | ||
|
||
// Child of Event | ||
// Random events are recycable and can occur repeatedly | ||
public Random(String id, int statType, int statReq, int changeType, int changeAmount, EventPhase[] phases){ | ||
super(id, statType, statReq, changeType, changeAmount, phases); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.