/** * The constructor takes the rating of the engine, the type of engine and * any flags. Engine ratings are divided by the weight of the mech to get * they walk MP. * * @param engineRating the rating of the engine * @param engineType the type of the engine, either combustion or a type of * fusion engine. * @param engineFlags Wether the engine is a tank engine, a clan engine, or * large engine, or any combination of those. */ public Engine(int engineRating, int engineType, int engineFlags) { engineValid = true; this.engineRating = engineRating; this.engineType = engineType; this.engineFlags = engineFlags; if (!isValidEngine()) { engineValid = false; this.engineRating = 0; this.engineType = -1; this.engineFlags = -1; } }
&& isValidEngine()) { double movementFactor = 4 + entity.getOriginalWalkMP()