public static Event companyBurnt(Employee e, Company c) throws EmployeeNotExist { List<Employee> emList = c.getEmployeeList(); for (Employee employee : emList) { if (!employee.isLoyal()) { Utilities.getInstance().unassignComputerToEmployee(c, employee); c.removeEmployee(employee); c.decreaseMoney(c.getMoney() * 2 / 3); } } return Event.COMPANY_IS_BURNT_DOWN_BY_ANONYMOUS; }
public static Event zombie(Employee e, Company company) { company.decreaseMoney(company.getMoney()); return Event.ZOMBIE_APOCALYPSE; }
public static Event gotSued(Employee e, Company c) { c.decreaseMoney(c.getMoney() / 4); return Event.GOT_SUED_BY_ANOTHER_COMPANY; }