public void CheckReset(object sender, LevelUpEventArgs e) { if (e.NewLevel == MAX_LEVEL_BEFORE_RESTART) { StatRecorder.Reset(); LevelManager.Reset(); WeaponController.Reset(); LifeController.Reset(); } }
public Collidable(int w, int h, MovementController mc, LifeController lc, DamageController dc) { ID = -1; _width = w; _height = h; CollidedAt = new Vector2(); _bounds = new Rectangle(Convert.ToInt32(mc.Position.X), Convert.ToInt32(mc.Position.Y), _width, _height); MovementController = mc; LifeController = lc; DamageController = dc; Controllable = new ValueRef<bool>(true); _serverID = Interlocked.Increment(ref _itemCount); }
public Collidable(int w, int h, MovementController mc, LifeController lc, DamageController dc) { ID = -1; _width = w; _height = h; CollidedAt = new Vector2(); _bounds = new Rectangle(Convert.ToInt32(mc.Position.X), Convert.ToInt32(mc.Position.Y), _width, _height); MovementController = mc; LifeController = lc; DamageController = dc; Controllable = new ValueRef <bool>(true); _serverID = Interlocked.Increment(ref _itemCount); }
public Powerup(int w, int h, MovementController mc, LifeController lc, DamageController dc, short type) : base(w, h, mc, lc, dc) { ID = Interlocked.Increment(ref _powerupGUID); Type = type; }