Esempio n. 1
0
 public LevelSystem(int maxexperience = 100, int maxlevel = 60, float experiencefactor = 1.2f)
 {
     experiencePointsSystem = new PointsSystem(maxexperience);
     levelPointsSystem      = new PointsSystem(maxlevel, 1);
     if (experiencefactor < 1)
     {
         experiencefactor = 1;                       // can't be less then 1
     }
     experienceFactor        = experiencefactor;
     isThereExperienceFactor = true;
 }
Esempio n. 2
0
 public LevelSystem(int maxexperience = 100, int maxlevel = 60)
 {
     experiencePointsSystem = new PointsSystem(maxexperience);
     levelPointsSystem      = new PointsSystem(maxlevel, 1);
 }