コード例 #1
0
 public MissionRewards(int i, Person p)
 {
     InitializeComponent();
     person = p;
     failCounters = i;
     ChangeLabel();
 }
コード例 #2
0
 public WeeklyTraining(Person _Person)
 {
     person = _Person;
     save = new GameState(person);
     InitializeComponent();
     //TrainningOptions();
     this.DataContext = this;
     //save.SaveUser();
     //save.SaveWeek();
 }
コード例 #3
0
 public Mission2(Person p)
 {
     InitializeComponent();
     startfade.From = 1.0;
     startfade.To = 0.0;
     startfade.Duration = new Duration(TimeSpan.FromSeconds(.5));
     start.Children.Add(startfade);
     Storyboard.SetTargetName(startfade, TheBackground.Name);
     Storyboard.SetTargetProperty(startfade, new PropertyPath(Image.OpacityProperty));
     player = p;
     MakeLists();
 }
コード例 #4
0
 public void LoadUser()
 {
     stream = new FileStream(PlayerURL, FileMode.Open, FileAccess.Read, FileShare.Read);
     Person _Person = (Person)format.Deserialize(stream);
     /*
     _Person.Player_Strength = CurrentUser.User.Player_Strength;
     _Person.Player_Agility = CurrentUser.User.Player_Agility;
     _Person.Player_Charisma = CurrentUser.User.Player_Charisma;
     _Person.Player_Intellegence = CurrentUser.User.Player_Intellegence;
     _Person.Player_Name = CurrentUser.User.Player_Name;
     _Person.MissionLevel = CurrentUser.User.MissionLevel;
      */
     Console.WriteLine(_Person.Player_Strength);
     Console.WriteLine(_Person.Player_Agility);
     Console.WriteLine(_Person.Player_Charisma);
     Console.WriteLine(_Person.Player_Intellegence);
     Console.WriteLine(_Person.Player_Name);
     person = _Person;
     stream.Close();
 }
コード例 #5
0
 public GameState(Person _Person)
 {
     person = _Person;
     CurrentUser = new PreQuestions(person);
 }
コード例 #6
0
 public PreQuestions(Person person)
 {
     _User = person;
     InitializeComponent();
 }
コード例 #7
0
 public DrugLord(Person p)
 {
     InitializeComponent();
     player = p;
 }
コード例 #8
0
 public MainMenu(Person _person)
 {
     person = _person;
     InitializeComponent();
     load = new GameState(person);
 }
コード例 #9
0
 public Mission3(Person p)
 {
     InitializeComponent();
     player = p;
 }