public class SetReputationValue extends SimOperation
SimOperation for setting a user's Reputation to a specific value| Constructor 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, setOpCodeprivate 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 SimOperationprotagonist - the main SimUsercast - the rest of the SimUsers involved in the scenarioact - row from the scenario's ActionSequencesimulatorPanel - 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 ReputationModelevaluator - the evaluation moduleprivate SimUser getTargetByID(SimulatorModel simulatorModel, int id)
simulatorModel - the simulator's memoryid - userId of SimUser to be found