public static BattleEntityPlayerSelection alloc(BattleResolutionStep p_battleResolution) { BattleEntityPlayerSelection l_battleActionSelection = new BattleEntityPlayerSelection(); l_battleActionSelection.BattleResolution = p_battleResolution; l_battleActionSelection.PlayerControlledEntity_WaitingForInput = new List <BattleEntity>(); l_battleActionSelection.PlayerControlledEntity_ExecutingAction = new List <BattleEntity>(); return(l_battleActionSelection); }
public void update(BattleEntityPlayerSelection p_battleActionSelection) { if (p_battleActionSelection.CurrentlySelectedEntity_HasChanged) { if (p_battleActionSelection.CurrentlySelectedEntity != null) { this.currentlySelectedbattleEntityComponent = BattleEntityComponent_Container.ComponentsByHandle[p_battleActionSelection.CurrentlySelectedEntity]; } else { this.currentlySelectedbattleEntityComponent = null; } } //update transform if (this.currentlySelectedbattleEntityComponent != null) { this.Cursor.transform.position = this.currentlySelectedbattleEntityComponent.AboveHead_Transform.transform.position; } }
public static void Alloc() { _battleResolutionStep = BattleResolutionStep.Alloc(); _battleActionSelection = BattleEntityPlayerSelection.alloc(_battleResolutionStep); _battleTargetSelection = BattleEntityTargetSelection.alloc(_battleResolutionStep); }