public void reset() { data.missions.activeMission.actCount = 0; data.npcs.clear(); data.bullets.clear(); timeInMission = new TimeSpan(0); data.missions.activeMission.timeSpent = timeInMission; blurEffect = new BlurEffect(device, content); canShoot = false; lowHP = false; }
public ActionScreen(ContentManager content, GraphicsDevice device, AudioManager audio, GameData data, Camera cam, World w) : base(content, device, audio, data) { Mouse.SetPosition(512, 384); camera = cam; world = w; font = content.Load <SpriteFont>("Fonts/ModFont"); hud = content.Load <Texture2D>("hud"); hudRectangle = new Rectangle(0, 0, 1024, 768); HP1 = content.Load <Texture2D>("hp_1"); HP1Rectangle = new Rectangle(37, 49, 30, 30); HP = content.Load <Texture2D>("hp"); HPRectangle = new Rectangle(67, 56, 200, 17); spriteBatch = new SpriteBatch(device); //stat mod icons red = content.Load <Texture2D>("Icons/redslot"); blue = content.Load <Texture2D>("Icons/blueslot"); violet = content.Load <Texture2D>("Icons/violetslot"); green = content.Load <Texture2D>("Icons/greenslot"); //type mod icons cyan = content.Load <Texture2D>("Icons/cyanslot"); darkblue = content.Load <Texture2D>("Icons/darkblueslot"); orange = content.Load <Texture2D>("Icons/orangeslot"); //element mod icons lightgreen = content.Load <Texture2D>("Icons/lightgreenslot"); foxred = content.Load <Texture2D>("Icons/foxredslot"); white = content.Load <Texture2D>("Icons/whiteslot"); Mod1Rectangle = new Rectangle(52, 676, 40, 39); Mod2Rectangle = new Rectangle(91, 649, 40, 39); Mod3Rectangle = new Rectangle(134, 672, 40, 39); Mod4Rectangle = new Rectangle(93, 699, 40, 39); ModRectangles = new Rectangle[] { Mod1Rectangle, Mod2Rectangle, Mod3Rectangle, Mod4Rectangle }; spawnNewEnemies = false; timeInMission = new TimeSpan(0); data.missions.activeMission.timeSpent = timeInMission; blurEffect = new BlurEffect(device, content); miniMap = new Map(data, world, device, content, new Point(750, 500)); canShoot = true; lowHP = false; }
public ActionScreen(ContentManager content, GraphicsDevice device, AudioManager audio, GameData data, Camera cam, World w) : base(content, device, audio, data) { Mouse.SetPosition(512, 384); camera = cam; world = w; font = content.Load<SpriteFont>("Fonts/ModFont"); hud = content.Load<Texture2D>("hud"); hudRectangle = new Rectangle(0, 0, 1024, 768); HP1 = content.Load<Texture2D>("hp_1"); HP1Rectangle = new Rectangle(37, 49, 30, 30); HP = content.Load<Texture2D>("hp"); HPRectangle = new Rectangle(67, 56, 200, 17); spriteBatch = new SpriteBatch(device); //stat mod icons red = content.Load<Texture2D>("Icons/redslot"); blue = content.Load<Texture2D>("Icons/blueslot"); violet = content.Load<Texture2D>("Icons/violetslot"); green = content.Load<Texture2D>("Icons/greenslot"); //type mod icons cyan = content.Load<Texture2D>("Icons/cyanslot"); darkblue = content.Load<Texture2D>("Icons/darkblueslot"); orange = content.Load<Texture2D>("Icons/orangeslot"); //element mod icons lightgreen = content.Load<Texture2D>("Icons/lightgreenslot"); foxred = content.Load<Texture2D>("Icons/foxredslot"); white = content.Load<Texture2D>("Icons/whiteslot"); Mod1Rectangle = new Rectangle(52, 676, 40, 39); Mod2Rectangle = new Rectangle(91, 649, 40, 39); Mod3Rectangle = new Rectangle(134, 672, 40, 39); Mod4Rectangle = new Rectangle(93, 699, 40, 39); ModRectangles = new Rectangle[] {Mod1Rectangle, Mod2Rectangle, Mod3Rectangle, Mod4Rectangle}; spawnNewEnemies = false; timeInMission = new TimeSpan(0); data.missions.activeMission.timeSpent = timeInMission; blurEffect = new BlurEffect(device, content); miniMap = new Map(data, world, device, content, new Point(750, 500)); canShoot = true; lowHP = false; }