-
Notifications
You must be signed in to change notification settings - Fork 0
Introducing a new Role
In the default version of the game there are three roles: EAST, WEST and OBSERVER. The difference between the roles lies in which decisions and what indicators they have access to. The game has been designed so the only role that multiple participants can have at the same time is OBSERVER. This means that if a participant for instance has the role WEST and another participant is given this role, the role of the first participant automatically changes to OBSERVER. This will be the case for any new role as well. The roles are defined in the scenario that is created in index.ts. To create a new role the example role below has been added to the scenario and the role has been added to the role list of the scenario.
var newRole: Role = new Role("NewRole", [], [ind1, ind4], '226666');
and the returned scenario becomes:
var ret: Scenario = new Scenario([role1, role2,role3, newRole], 2015, 1, 396, 2500, new GameLogic(2), "Scenario 2p","scenario2");
This role does not have access to any decisions and has access to two of the indicators.
By doing this, the new role has been created. You are encouraged to update the welcome message in WelcomeDialog.ts to include the new role.