public MissionRewards(int i, Person p) { InitializeComponent(); person = p; failCounters = i; ChangeLabel(); }
public WeeklyTraining(Person _Person) { person = _Person; save = new GameState(person); InitializeComponent(); //TrainningOptions(); this.DataContext = this; //save.SaveUser(); //save.SaveWeek(); }
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(); }
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(); }
public GameState(Person _Person) { person = _Person; CurrentUser = new PreQuestions(person); }
public PreQuestions(Person person) { _User = person; InitializeComponent(); }
public DrugLord(Person p) { InitializeComponent(); player = p; }
public MainMenu(Person _person) { person = _person; InitializeComponent(); load = new GameState(person); }
public Mission3(Person p) { InitializeComponent(); player = p; }