Exemplo n.º 1
0
 public UIEventWindow(Vector2 position, UIEventWindowType windowtype, WorldEvent worldevent, SpriteFont font)
 {
     uiEventWindowPosition = new Rectangle((int)position.X, (int)position.Y, 0, 0);
     if (windowtype == UIEventWindowType.WorldEvent)
     {
         titleText    = worldevent.ReturnEventTitleText();
         eventOptions = worldevent.GetEventOptions();
         uiEventWindowPosition.Width  = getCardWidth(font);
         descriptionTextLines         = getEventWindowDescriptionLines(worldevent.ReturnEventDescriptionText(), font);
         uiEventWindowPosition.Height = GetCardHeight(descriptionTextLines.Count, worldevent.GetCountofEventOptions());
         PopulateEventOptionCollisions();
     }
     thisEventWindowType = windowtype;
 }
Exemplo n.º 2
0
 void ConsoleLogEvent()
 {
     if (currentEvent != null)
     {
         Console.WriteLine(currentEvent.ReturnEventText());
     }
     else if (currentWorldEvent != null)
     {
         Console.WriteLine(currentWorldEvent.ReturnEventTitleText());
     }
     else if (currentWakeEvent != null)
     {
         Console.WriteLine(currentWakeEvent.ReturnEventText());
     }
 }