public AddVM() { Ma = new MonsterAwake(); Mn = new MonsterNonAwake(); ConfCommand = new DelegateCommand(ConfOnExecuteClick, CanExecuteClick); CloseCommand = new DelegateCommand(CloseOnExecuteClick, CanExecuteClick); }
public bool AddMonsterAwake(MonsterAwake ma) { ma.ImagePath = GetPath(ma.Name); if (BestiaryAwake.Instance.AddMonster(ma)) { return(true); } return(false); }
public void DeleteMonsterAwake(MonsterAwake ma) { BestiaryAwake.Instance.RemoveMonster(ma); }
/// <summary> /// Create a new monster with the ctor of Monster and add to the monster lists /// </summary> /// <param name="nbStarsNat"></param> /// <param name="nbStars"></param> /// <param name="name"></param> /// <param name="atk"></param> /// <param name="pv"></param> /// <param name="def"></param> /// <param name="spd"></param> /// <param name="crirate"></param> /// <param name="cridom"></param> /// <param name="res"></param> /// <param name="acc"></param> /// <param name="monster"></param> /// <param name="attribute"></param> /// <param name="imagePath"></param> public bool CreateMonsterAwake(int nbStarsNat, int nbStars, string name, int atk, int pv, int def, int spd, int crirate, int cridom, int res, int acc, string monster, string attribute, string help) { MonsterAwake m = new MonsterAwake(nbStarsNat, nbStars, name, atk, pv, def, spd, crirate, cridom, res, acc, monster, attribute, help); return(AddMonsterAwake(m)); }