repl.it
Java

No description

fork
loading
Files
  • Main.java
  • .metadata
  • .tooling
  • content
  • gamesrc
  • Main.class
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gamesrc.misc.Misc;
import gamesrc.misc.CommandLine;
import gamesrc.npchandling.NPCProperties;
import gamesrc.objecthandling.ObjectProperties;
import gamesrc.npchandling.npcproperties.AI;
import content.spaces.tests.RoomTest1;

class Main {
  public static void main(String[] args) {
    CommandLine commandLine = new CommandLine();
    Misc.currentLocation  = new RoomTest1();
    while (!Misc.gameOver) {
      for (int i = 0; i < Misc.currentLocation.NPCArray.size(); i++) {
        if (Misc.currentLocation.NPCArray.get(i).hasProperty(NPCProperties.AI)) {
          ((AI)Misc.currentLocation.NPCArray.get(i)).runAI();
        }
      }
    }
    Misc.print("Hello, world!");
  }
}
?