public GameData(ContentManager Content, GraphicsDevice device, AudioManager audio, World world) { player = new Player(world, Content, audio, device); mods = new ModCollection(); npcs = new NPCCollection(world, Content, player, device, audio); bullets = new BulletCollection(Content, device); missions = new MissionCollection(world, npcs); this.world = world; this.audio = audio; }
public void loadData(int loadedPlayerLevel, int loadedPlayerXP, List <Mod> loadedWeaponMods, List <Mod> loadedMods, byte[] loadedMissionLevels, byte[] loadedMissionTKinds, byte[] loadedMissionTCounts, byte[] loadedMissionZones, byte[] loadedMissionAreas, bool[] loadedMissionStates, byte[][] loadedMissionKinds, int firstModValue) { this.player.level = loadedPlayerLevel; this.player.XP = loadedPlayerXP; this.player.myWeapon.mods = loadedWeaponMods; this.mods._content = loadedMods; this.mods.firstMod = new Mod(Constants.MOD_ELM, firstModValue); this.mods.setupESpecials(); this.player.myWeapon.setup(); for (int i = 0; i < 4; i++) { this.missions[i] = new Type1Mission(loadedMissionLevels[i], loadedMissionTKinds[i], loadedMissionTCounts[i], loadedMissionZones[i], loadedMissionAreas[i], npcs.Labels, world.Labels, loadedMissionStates[i], loadedMissionKinds[i]); } }
public override void reward(Player player, ModCollection mods) { int exp = (int)(40 * (float)level / (float)player.level); exp = Math.Min(exp, 75); exp = Math.Max(exp, 1); if (player.lv != 50) { player.getEXP(exp); countXPGained += exp; } if (startLv < player.level) { mods.generate(Math.Min(player.level, level)); rewardLabel = mods.lastMod; } else { rewardLabel = "-"; } }
public override void reward(Player player, ModCollection modCollection) { throw new NotImplementedException(); }
public abstract void reward(Player player, ModCollection modCollection);