protected virtual void InformGameResultActions(GameProperties.GameState state) { if (emotionalModule != null) { //Fatima calls int currSpeakingPlayerId = gameManagerRef.GetCurrSpeakingPlayerId(); if (state == GameProperties.GameState.VICTORY) { emotionalModule.Perceive(new Name[] { EventHelper.PropertyChange("State(Game)", "GameEnd", name), EventHelper.PropertyChange("Game(Result)", "Victory", name) }); } else if (state == GameProperties.GameState.LOSS) { emotionalModule.Perceive(new Name[] { EventHelper.PropertyChange("State(Game)", "GameEnd", name), EventHelper.PropertyChange("Game(Result)", "Loss", name) }); } if (currSpeakingPlayerId == id) { emotionalModule.Decide(); } else { emotionalModule.GazeAt("Player"); } } }
public override void InformGameResult(GameProperties.GameState state) { //base.InformRollDicesValue(invoker, maxValue, obtainedValue, speakingRobotId); if (!GameProperties.configurableProperties.isSimulation) { playerMonoBehaviourFunctionalities.StartCoroutine(DelayedInformGameResultActions(state, informGameResultDelay, true)); } else { InformGameResultActions(state); } }
private IEnumerator DelayedInformGameResultActions(GameProperties.GameState state, float delay, bool isInformDelayed) { yield return(new WaitForSeconds(delay)); InformGameResultActions(state); }
public override void InformGameResult(GameProperties.GameState state) { }
public abstract void InformGameResult(GameProperties.GameState state);