Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. public class Question
  2. {
  3. //Questions need 3 things to unlock - right time, right place, and right choices made
  4. Choice[] choices = new Choice[8];
  5. List<ChoiceMake> choicesMadeToUnlock = new List<ChoiceMake>();
  6. List<ChoiceMake> choicesMadeToNullify = new List<ChoiceMake>(); //if any of these choices are found to be true, then the conditions fail
  7.  
  8. int startTimeToUnlock = 655;
  9. int endTimeToUnlock = 1300;
  10. //string startTimeToUnlock = "6:55pm";
  11. //string endTimeToUnlock = "1:00am";
  12. }
  13.  
  14. public class Choice
  15. {
  16. string choiceText;
  17.  
  18. ChoiceMake choiceMake = ChoiceMake.AskAboutGuests;
  19. ChoiceAction choiceAction = ChoiceAction.Speak;
  20. List<KeyInformation> keysToUnlock = new List<KeyInformation>();
  21.  
  22. bool Selected = false;
  23.  
  24. Texture2D choiceImage;
  25. }
  26.  
  27. public class KeyInformation
  28. {
  29. KeyLock keyLock = KeyLock.TheGuests;
  30. KeyType keyType = KeyType.Information;
  31. bool Unlcoked = true;
  32.  
  33. }
  34.  
  35. public class Dialogue
  36. {
  37. //Dialogue need 3 things to unlock - right time and right choices made and where the player is standing in proximity to the speaker
  38. string text;
  39. Vector2 speakerOrigin;
  40. Vector2 spokenToOrigin;
  41. List<ChoiceMake> choicesMadeToUnlock = new List<ChoiceMake>();
  42. List<ChoiceMake> choicesMadeToNullify = new List<ChoiceMake>(); //if any of these choices are found to be true, then the conditions fail
  43.  
  44. int startsAt = 655;
  45. TimeSpan lastsFor;
  46.  
  47. List<ChoiceMake> choicesUnlocked = new List<ChoiceMake>(); //list of choices that are unlocked if the dialogue appears
  48. List<KeyInformation> keysUnlocked = new List<KeyInformation>(); //list of keys that are unlocked if the dialogue appears
  49.  
  50. float proximity; //how close the player must be to see the dialogue and for it to unlock keys
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement