CardDefinition StartEvent() { _eventCards.Push(_startLevelCard); _currentEventState = EVENT_STATE.STATE_EVENT; CardDefinition startLevelCard = new CardDefinition(); startLevelCard.type = CardDefinition.TYPE_EVENT_START_ANIM; startLevelCard.isInitial = "FALSE"; startLevelCard.id = "-1"; startLevelCard.image = "Almo"; startLevelCard.text = "Start the Event. Are you ready?"; var leftDecision = new DecisionInfo(); leftDecision.text = "Come On!"; leftDecision.nextCard = ""; leftDecision.cardsToAdd = new List <string>(); startLevelCard.left = leftDecision; var rightDecision = new DecisionInfo(); rightDecision.text = "Yeah!!"; rightDecision.nextCard = ""; rightDecision.cardsToAdd = new List <string>(); startLevelCard.right = rightDecision; return(startLevelCard); }
CardDefinition StartPostEvent() { AddPostEvents(); _currentEventState = EVENT_STATE.STATE_POST_EVENT; CardDefinition endLevelCard = new CardDefinition(); endLevelCard.type = CardDefinition.TYPE_EVENT_END_ANIM; endLevelCard.isInitial = "FALSE"; endLevelCard.id = "-1"; endLevelCard.image = "Almo"; endLevelCard.text = "The event ended. Yay!"; var leftDecision = new DecisionInfo(); leftDecision.text = "Yeah!"; leftDecision.nextCard = ""; leftDecision.cardsToAdd = new List <string>(); endLevelCard.left = leftDecision; var rightDecision = new DecisionInfo(); rightDecision.text = "Uff!"; rightDecision.nextCard = ""; rightDecision.cardsToAdd = new List <string>(); endLevelCard.right = rightDecision; return(endLevelCard); }
CardDefinition StartLevel() { _currentEventState = EVENT_STATE.STATE_LEVEL; CardDefinition startLevelCard = new CardDefinition(); startLevelCard.type = CardDefinition.TYPE_EVENT_LEVEL_ANIM; startLevelCard.isInitial = "FALSE"; startLevelCard.id = "-1"; startLevelCard.image = "almo"; startLevelCard.text = "Level " + (_currentLevel + 1); var leftDecision = new DecisionInfo(); leftDecision.text = "Go!"; leftDecision.nextCard = ""; leftDecision.cardsToAdd = new List <string>(); startLevelCard.left = leftDecision; var rightDecision = new DecisionInfo(); rightDecision.text = "Go!"; rightDecision.nextCard = ""; rightDecision.cardsToAdd = new List <string>(); startLevelCard.right = rightDecision; return(startLevelCard); }