Began defining the Company class

This commit is contained in:
Daniel Xie 2016-11-01 00:44:04 -05:00
parent 6cf9339919
commit 6e0644555c

19
src/Company.js Normal file

@ -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;
}