From 6e0644555c0e539eb59ed3f4979157d047409627 Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Tue, 1 Nov 2016 00:44:04 -0500 Subject: [PATCH] Began defining the Company class --- src/Company.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Company.js diff --git a/src/Company.js b/src/Company.js new file mode 100644 index 000000000..847fefbd3 --- /dev/null +++ b/src/Company.js @@ -0,0 +1,19 @@ +//Netburner Company class +function Company() { + this.companyName = ""; + this.companyPositions = []; + + //Player-related properties for company + this.isPlayerEmployed = false; + this.playerPosition = false; + this.playerReputation = 0; //"Reputation" within company, gain reputation by working for company +}; + +function CompanyPosition(name, reqHack, reqStr, reqDef, reqDex, reqAgi) { + this.positionName = name; + this.requiredHacking = reqHack; + this.requiredStrength = reqStr; + this.requiredDefense = reqDef; + this.requiredDexterity = reqDex; + this.requiredAgility = reqAgi; +} \ No newline at end of file