private void throwIn(Team throwInTeam) { match.currentTeam.endTurn(); match.currentTeam = throwInTeam; TurnOverlay turnOverlay = GUICreator.instantiateTurnOverlay(); turnOverlay.init("SAQUE DE BANDA", onthrowInOverlayEnded); }
private void userTurnEnded() { match.currentTeam.endTurn(); match.currentTeam = match.currentTeam.opponentTeam; TurnOverlay turnOverlay = GUICreator.instantiateTurnOverlay(); turnOverlay.init(StringStore.retrieve("Turn") + " " + match.currentTeam.teamData.name, onTurnOverlayEnded); }
/// <summary> /// Creates a control with a given name, using the specified GUI creator /// and control type name. /// </summary> /// <param name="guiCreator">The <see cref="GUICreator"/> to use.</param> /// <param name="controlTypeName">The name of the control's type.</param> /// <param name="controlName">The name of the created control.</param> /// <returns>The created control.</returns> protected virtual XNAControl CreateControl(GUICreator guiCreator, string controlTypeName, string controlName) { var control = guiCreator.CreateControl(WindowManager, controlTypeName); control.Name = controlName; control.DrawOrder = -Children.Count; AddChild(control); return(control); }
private void goalScored() { TurnOverlay turnOverlay = GUICreator.instantiateTurnOverlay(); turnOverlay.init("GOL", onGoalOverlayEnded); }
private void startTurn() { TurnOverlay turnOverlay = GUICreator.instantiateTurnOverlay(); turnOverlay.init(StringStore.retrieve("Turn") + " " + match.currentTeam.teamData.name, onTurnOverlayEnded); }