public class SetReputationValue extends SimOperation
SimOperation
for setting a user's Reputation to a specific valueConstructor and Description |
---|
SetReputationValue(int OpCode) |
Modifier and Type | Method and Description |
---|---|
void |
executeOperation(SimUser protagonist,
SimUser[] cast,
float[] act,
SimulatorPanel simulatorPanel,
SimulatorModel simulatorModel,
ReputationModel reputationModel,
Evaluator evaluator)
|
private SimUser |
getTargetByID(SimulatorModel simulatorModel,
int id)
Method for getting the Operation's target by Id
|
getOpCode, setOpCode
private SimUser target
public void executeOperation(SimUser protagonist, SimUser[] cast, float[] act, SimulatorPanel simulatorPanel, SimulatorModel simulatorModel, ReputationModel reputationModel, Evaluator evaluator)
SimOperation.executeOperation(SimUser, SimUser[], float[], SimulatorPanel, SimulatorModel, ReputationModel, Evaluator)
executeOperation
in class SimOperation
protagonist
- the main SimUser
cast
- the rest of the SimUser
s involved in the scenarioact
- row from the scenario's ActionSequence
simulatorPanel
- the simulator's UI, passed in order to gain access to the chartssimulatorModel
- the simulator's memory, passed in order to gain access to the series collection itemsreputationModel
- instance of the selected ReputationModel
evaluator
- the evaluation moduleprivate SimUser getTargetByID(SimulatorModel simulatorModel, int id)
simulatorModel
- the simulator's memoryid
- userId of SimUser
to be found