Added cases for all the commands that will be implemented for now. Updated Server class to contain information about servers, home computer, etc. Added a few fields to Server that will be used when hacking, as well as constructor.

This commit is contained in:
Daniel Xie
2016-10-17 16:23:23 -05:00
parent 7c03b274d7
commit a1fd46232e
4 changed files with 117 additions and 38 deletions
+7 -2
View File
@@ -39,9 +39,14 @@ var Player = {
total_money: 0,
lifetime_money: 0,
//Starting (home) computer
homeComputer = new Server();
startingServer.init("19.42.93.219", "home.pc", true, true, true, true, 2);
//Servers
//discoveredServers = [],
//purchasedServers = [],
currentServer = homeComputer, //Server currently being accessed through terminal
discoveredServers = [],
purchasedServers = [],
//Achievements and achievement progress