Added the Positions to Company objects for about half the companies, need to finish the rest

This commit is contained in:
Daniel Xie 2017-01-10 16:42:55 -06:00
parent e8381743f7
commit 090fd9edff

@ -21,7 +21,7 @@ Company.prototype.init = function(name, salaryMult, expMult) {
} }
Company.prototype.addPosition = function(pos) { Company.prototype.addPosition = function(pos) {
this.companyPositions.push(pos); this.companyPositions.push(pos.name); //Company object holds only name of positions
} }
Company.prototype.addPositions = function(positions) { Company.prototype.addPositions = function(positions) {
@ -215,88 +215,244 @@ initCompanies = function() {
//Megacorporations //Megacorporations
var ECorp = new Company(); var ECorp = new Company();
ECorp.init("ECorp", 3.0, 3.0); ECorp.init("ECorp", 3.0, 3.0);
ECorp.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(ECorp); AddToCompanies(ECorp);
var MegaCorp = new Company(); var MegaCorp = new Company();
MegaCorp.init("MegaCorp", 3.0, 3.0); MegaCorp.init("MegaCorp", 3.0, 3.0);
MegaCorp.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(MegaCorp); AddToCompanies(MegaCorp);
var BachmanAndAssociates = new Company(); var BachmanAndAssociates = new Company();
BachmanAndAssociates.init("Bachman & Associates", 2.6, 2.6); BachmanAndAssociates.init("Bachman & Associates", 2.6, 2.6);
BachmanAndAssociates.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(BachmanAndAssociates); AddToCompanies(BachmanAndAssociates);
var BladeIndustries = new Company(); var BladeIndustries = new Company();
BladeIndustries.init("Blade Industries", 2.75, 2.75); BladeIndustries.init("Blade Industries", 2.75, 2.75);
BladeIndustries.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(BladeIndustries); AddToCompanies(BladeIndustries);
var NWO = new Company(); var NWO = new Company();
NWO.init("NWO", 2.75, 2.75); NWO.init("NWO", 2.75, 2.75);
NWO.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(NWO); AddToCompanies(NWO);
var ClarkeIncorporated = new Company(); var ClarkeIncorporated = new Company();
ClarkeIncorporated.init("Clarke Incorporated", 2.25, 2.25); ClarkeIncorporated.init("Clarke Incorporated", 2.25, 2.25);
ClarkeIncorporated.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(ClarkeIncorporated); AddToCompanies(ClarkeIncorporated);
var OmniTekIncorporated = new Company(); var OmniTekIncorporated = new Company();
OmniTekIncorporated.init("OmniTek Incorporated", 2.25, 2.25); OmniTekIncorporated.init("OmniTek Incorporated", 2.25, 2.25);
OmniTekIncorporated.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(OmniTekIncorporated); AddToCompanies(OmniTekIncorporated);
var FourSigma = new Company(); var FourSigma = new Company();
FourSigma.init("Four Sigma", 2.5, 2.5); FourSigma.init("Four Sigma", 2.5, 2.5);
FourSigma.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(FourSigma); AddToCompanies(FourSigma);
var KuaiGongInternational = new Company(); var KuaiGongInternational = new Company();
KuaiGongInternational.init("KuaiGong International", 2.2, 2.2); KuaiGongInternational.init("KuaiGong International", 2.2, 2.2);
KuaiGongInternational.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(KuaiGongInternational); AddToCompanies(KuaiGongInternational);
//Technology and communication companies ("Large" servers) //Technology and communication companies ("Large" servers)
var FulcrumTechnologies = new Company(); var FulcrumTechnologies = new Company();
FulcrumTechnologies.init("Fulcrum Technologies", 2.0, 2.0); FulcrumTechnologies.init("Fulcrum Technologies", 2.0, 2.0);
FulcrumTechnologies.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(FulcrumTechnologies); AddToCompanies(FulcrumTechnologies);
var StormTechnologies = new Company(); var StormTechnologies = new Company();
StormTechnologies.init("Storm Technologies", 1.8, 1.8); StormTechnologies.init("Storm Technologies", 1.8, 1.8);
StormTechnologies.addPositions([
CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev,
CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin,
CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator,
CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering,
CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst,
CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO,
CompanyPositions.CEO]);
AddToCompanies(StormTechnologies); AddToCompanies(StormTechnologies);
var DefComm = new Company(); var DefComm = new Company();
DefComm.init("DefComm", 1.75, 1.75); DefComm.init("DefComm", 1.75, 1.75);
DefComm.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(DefComm); AddToCompanies(DefComm);
var HeliosLabs = new Company(); var HeliosLabs = new Company();
HeliosLabs.init("Helios Labs", 1.8, 1.8); HeliosLabs.init("Helios Labs", 1.8, 1.8);
HeliosLabs.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(HeliosLabs); AddToCompanies(HeliosLabs);
var VitaLife = new Company(); var VitaLife = new Company();
VitaLife.init("VitaLife", 1.8, 1.8); VitaLife.init("VitaLife", 1.8, 1.8);
VitaLife.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessManager,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(VitaLife); AddToCompanies(VitaLife);
var IcarusMicrosystems = new Company(); var IcarusMicrosystems = new Company();
IcarusMicrosystems.init("Icarus Microsystems", 1.9, 1.9); IcarusMicrosystems.init("Icarus Microsystems", 1.9, 1.9);
IcarusMicrosystems.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessManager,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(IcarusMicrosystems); AddToCompanies(IcarusMicrosystems);
var UniversalEnergy = new Company(); var UniversalEnergy = new Company();
UniversalEnergy.init("Universal Energy", 2.0, 2.0); UniversalEnergy.init("Universal Energy", 2.0, 2.0);
UniversalEnergy.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessManager,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(UniversalEnergy); AddToCompanies(UniversalEnergy);
var GalacticCybersystems = new Company(); var GalacticCybersystems = new Company();
GalacticCybersystems.init("Galactic Cybersystems", 1.9, 1.9); GalacticCybersystems.init("Galactic Cybersystems", 1.9, 1.9);
GalacticCybersystems.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessManager,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(GalacticCybersystems); AddToCompanies(GalacticCybersystems);
//Defense Companies ("Large" Companies) //Defense Companies ("Large" Companies)
var AeroCorp = new Company(); var AeroCorp = new Company();
AeroCorp.init("AeroCorp", 1.7, 1.7); AeroCorp.init("AeroCorp", 1.7, 1.7);
AeroCorp.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(AeroCorp); AddToCompanies(AeroCorp);
var OmniaCybersystems = new Company(); var OmniaCybersystems = new Company();
OmniaCybersystems.init("Omnia Cybersystems", 1.7, 1.7); OmniaCybersystems.init("Omnia Cybersystems", 1.7, 1.7);
OmniaCybersystems.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(OmniaCybersystems); AddToCompanies(OmniaCybersystems);
var SolarisSpaceSystems = new Company(); var SolarisSpaceSystems = new Company();
SolarisSpaceSystems.init("Solaris Space Systems", 1.7, 1.7); SolarisSpaceSystems.init("Solaris Space Systems", 1.7, 1.7);
SolarisSpaceSystems.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(SolarisSpaceSystems); AddToCompanies(SolarisSpaceSystems);
var DeltaOne = new Company(); var DeltaOne = new Company();
DeltaOne.init("Delta One", 1.6, 1.6); DeltaOne.init("Delta One", 1.6, 1.6);
DeltaOne.addPositions([
CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev,
CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst,
CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer,
CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware,
CompanyPositions.HeadOfEngineering, CompanyPositions.CTO,
CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]);
AddToCompanies(DeltaOne); AddToCompanies(DeltaOne);
//Health, medicine, pharmaceutical companies ("Large" servers) //Health, medicine, pharmaceutical companies ("Large" servers)