Update Adding a new NPC authored by Noah MacMinn's avatar Noah MacMinn
......@@ -3,15 +3,13 @@
`PlayersForTest(int id, String playerName, String type, int row, int col, String password, String mapName, int pin, String changedOn, int doubloons, int experiencePoints,Crew crew, Major major, int section, int buffPool, boolean online, ArrayList<String> mapsVisited)`
2. In NPCForTest.java add the NPC <br>
- `NPCsForTest(int playerID, String behaviorClass, String filePath)`
- Example) `PRESIDENT_NPC(PlayersForTest.PRESIDENT_NPC.getPlayerID(), "model.RoamingInfoNPCBehavior", "Assets/Npc_info.xml")`
`NPCsForTest(int playerID, String behaviorClass, String filePath)`
3. Ensure the behavior exists or create the new behavior
#### Useful File Paths
`/FreshmanRPG/GameShared/src/main/java/datatypes/PlayersForTest.java`
`/FreshmanRPG/GameServer/src/main/java/datatypes/NPCsForTest.java`
- `/FreshmanRPG/GameShared/src/main/java/datatypes/PlayersForTest.java`
- `/FreshmanRPG/GameServer/src/main/java/datatypes/NPCsForTest.java`
### OLD:
There is a table in the database that keeps a list of all of the NPCs. Creating a new NPC requires filling that table. When a server starts, it will query that table for what NPCs it should have and starts them up.
......
......