public FighterViewModel(string name, FighterTypeEnum figherType, int stamina, int stun, float forwardMovementSpeed, float backwardMovementSpeed, ObservableCollection<MoveViewModel> movesList)
 {
     Name = name;
     Image = new Uri("pack://application:,,,/FrameTrapped.StreetFighterLibrary;component/Resources/Images/ssf4-" + string.Join("", Name.ToLower().Replace(' ', '_').Split('.')) + ".jpg");
     Icon = new Uri("pack://application:,,,/FrameTrapped.StreetFighterLibrary;component/Resources/Images/FighterListIcons/" + string.Join("", Name.ToLower().Replace(' ', '_').Split('.')) + ".gif");
     FighterType = figherType;
     Stamina = stamina;
     Stun = stun;
     ForwardMovementSpeed = forwardMovementSpeed;
     BackwardMovementSpeed = backwardMovementSpeed;
     MovesList = movesList;
 }
Ejemplo n.º 2
0
 public FighterViewModel(string name, FighterTypeEnum figherType, int stamina, int stun, float forwardMovementSpeed, float backwardMovementSpeed, MoveListViewModel moveList)
 {
     Name                  = name;
     Image                 = new Uri("pack://application:,,,/FrameTrapped.StreetFighterLibrary;component/Resources/Images/ssf4-" + string.Join("", Name.ToLower().Replace(' ', '_').Split('.')) + ".jpg");
     Icon                  = new Uri("pack://application:,,,/FrameTrapped.StreetFighterLibrary;component/Resources/Images/FighterListIcons/" + string.Join("", Name.ToLower().Replace(' ', '_').Split('.')) + ".gif");
     FighterType           = figherType;
     Stamina               = stamina;
     Stun                  = stun;
     ForwardMovementSpeed  = forwardMovementSpeed;
     BackwardMovementSpeed = backwardMovementSpeed;
     MoveList              = moveList;
     LinkableMovesList     = new ComboableMovesViewModel(moveList.Items);
 }