Source reformat
This commit is contained in:
@@ -14,12 +14,8 @@ import io.anuke.mindustry.entities.effect.Puddle;
|
||||
import io.anuke.mindustry.entities.impl.EffectEntity;
|
||||
import io.anuke.mindustry.entities.traits.DrawTrait;
|
||||
import io.anuke.mindustry.entities.traits.SyncTrait;
|
||||
import io.anuke.mindustry.entities.type.BaseUnit;
|
||||
import io.anuke.mindustry.entities.type.Player;
|
||||
import io.anuke.mindustry.entities.type.TileEntity;
|
||||
import io.anuke.mindustry.game.GlobalData;
|
||||
import io.anuke.mindustry.game.Team;
|
||||
import io.anuke.mindustry.game.Version;
|
||||
import io.anuke.mindustry.entities.type.*;
|
||||
import io.anuke.mindustry.game.*;
|
||||
import io.anuke.mindustry.gen.Serialization;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.mindustry.world.blocks.defense.ForceProjector.ShieldEntity;
|
||||
@@ -30,95 +26,95 @@ import java.util.Locale;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public class Vars{
|
||||
/**IO buffer size.*/
|
||||
/** IO buffer size. */
|
||||
public static final int bufferSize = 8192;
|
||||
/**global charset*/
|
||||
/** global charset */
|
||||
public static final Charset charset = Charset.forName("UTF-8");
|
||||
/**main application name, capitalized*/
|
||||
/** main application name, capitalized */
|
||||
public static final String appName = "Mindustry";
|
||||
/**URL for itch.io donations.*/
|
||||
/** URL for itch.io donations. */
|
||||
public static final String donationURL = "https://anuke.itch.io/mindustry/purchase";
|
||||
/**URL for discord invite.*/
|
||||
/** URL for discord invite. */
|
||||
public static final String discordURL = "https://discord.gg/mindustry";
|
||||
/**URL for Github API for releases*/
|
||||
/** URL for Github API for releases */
|
||||
public static final String releasesURL = "https://api.github.com/repos/Anuken/Mindustry/releases";
|
||||
/**URL for Github API for contributors*/
|
||||
/** URL for Github API for contributors */
|
||||
public static final String contributorsURL = "https://api.github.com/repos/Anuken/Mindustry/contributors";
|
||||
/**URL for sending crash reports to*/
|
||||
/** URL for sending crash reports to */
|
||||
public static final String crashReportURL = "http://mindustry.us.to/report";
|
||||
/**maximum distance between mine and core that supports automatic transferring*/
|
||||
/** maximum distance between mine and core that supports automatic transferring */
|
||||
public static final float mineTransferRange = 220f;
|
||||
/**team of the player by default*/
|
||||
/** team of the player by default */
|
||||
public static final Team defaultTeam = Team.blue;
|
||||
/**team of the enemy in waves/sectors*/
|
||||
/** team of the enemy in waves/sectors */
|
||||
public static final Team waveTeam = Team.red;
|
||||
/**how many times longer a boss wave takes*/
|
||||
/** how many times longer a boss wave takes */
|
||||
public static final float bossWaveMultiplier = 3f;
|
||||
/**how many times longer a launch wave takes*/
|
||||
/** how many times longer a launch wave takes */
|
||||
public static final float launchWaveMultiplier = 2f;
|
||||
/**max chat message length*/
|
||||
/** max chat message length */
|
||||
public static final int maxTextLength = 150;
|
||||
/**max player name length in bytes*/
|
||||
/** max player name length in bytes */
|
||||
public static final int maxNameLength = 40;
|
||||
/**displayed item size when ingame, TODO remove.*/
|
||||
/** displayed item size when ingame, TODO remove. */
|
||||
public static final float itemSize = 5f;
|
||||
/**extra padding around the world; units outside this bound will begin to self-destruct.*/
|
||||
/** extra padding around the world; units outside this bound will begin to self-destruct. */
|
||||
public static final float worldBounds = 100f;
|
||||
/**units outside of this bound will simply die instantly*/
|
||||
/** units outside of this bound will simply die instantly */
|
||||
public static final float finalWorldBounds = worldBounds + 500;
|
||||
/**ticks spent out of bound until self destruct.*/
|
||||
public static final float boundsCountdown = 60*7;
|
||||
/**for map generator dialog*/
|
||||
/** ticks spent out of bound until self destruct. */
|
||||
public static final float boundsCountdown = 60 * 7;
|
||||
/** for map generator dialog */
|
||||
public static boolean updateEditorOnChange = false;
|
||||
/**size of tiles in units*/
|
||||
/** size of tiles in units */
|
||||
public static final int tilesize = 8;
|
||||
/**all choosable player colors in join/host dialog*/
|
||||
/** all choosable player colors in join/host dialog */
|
||||
public static final Color[] playerColors = {
|
||||
Color.valueOf("82759a"),
|
||||
Color.valueOf("c0c1c5"),
|
||||
Color.valueOf("fff0e7"),
|
||||
Color.valueOf("7d2953"),
|
||||
Color.valueOf("ff074e"),
|
||||
Color.valueOf("ff072a"),
|
||||
Color.valueOf("ff76a6"),
|
||||
Color.valueOf("a95238"),
|
||||
Color.valueOf("ffa108"),
|
||||
Color.valueOf("feeb2c"),
|
||||
Color.valueOf("ffcaa8"),
|
||||
Color.valueOf("008551"),
|
||||
Color.valueOf("00e339"),
|
||||
Color.valueOf("423c7b"),
|
||||
Color.valueOf("4b5ef1"),
|
||||
Color.valueOf("2cabfe"),
|
||||
Color.valueOf("82759a"),
|
||||
Color.valueOf("c0c1c5"),
|
||||
Color.valueOf("fff0e7"),
|
||||
Color.valueOf("7d2953"),
|
||||
Color.valueOf("ff074e"),
|
||||
Color.valueOf("ff072a"),
|
||||
Color.valueOf("ff76a6"),
|
||||
Color.valueOf("a95238"),
|
||||
Color.valueOf("ffa108"),
|
||||
Color.valueOf("feeb2c"),
|
||||
Color.valueOf("ffcaa8"),
|
||||
Color.valueOf("008551"),
|
||||
Color.valueOf("00e339"),
|
||||
Color.valueOf("423c7b"),
|
||||
Color.valueOf("4b5ef1"),
|
||||
Color.valueOf("2cabfe"),
|
||||
};
|
||||
/**default server port*/
|
||||
/** default server port */
|
||||
public static final int port = 6567;
|
||||
/**if true, UI is not drawn*/
|
||||
/** if true, UI is not drawn */
|
||||
public static boolean disableUI;
|
||||
/**if true, game is set up in mobile mode, even on desktop. used for debugging*/
|
||||
/** if true, game is set up in mobile mode, even on desktop. used for debugging */
|
||||
public static boolean testMobile;
|
||||
/**whether the game is running on a mobile device*/
|
||||
/** whether the game is running on a mobile device */
|
||||
public static boolean mobile;
|
||||
/**whether the game is running on an iOS device*/
|
||||
/** whether the game is running on an iOS device */
|
||||
public static boolean ios;
|
||||
/**whether the game is running on an Android device*/
|
||||
/** whether the game is running on an Android device */
|
||||
public static boolean android;
|
||||
/**whether the game is running on a headless server*/
|
||||
/** whether the game is running on a headless server */
|
||||
public static boolean headless;
|
||||
/**application data directory, equivalent to {@link io.anuke.arc.Settings#getDataDirectory()}*/
|
||||
/** application data directory, equivalent to {@link io.anuke.arc.Settings#getDataDirectory()} */
|
||||
public static FileHandle dataDirectory;
|
||||
/**data subdirectory used for screenshots*/
|
||||
/** data subdirectory used for screenshots */
|
||||
public static FileHandle screenshotDirectory;
|
||||
/**data subdirectory used for custom mmaps*/
|
||||
/** data subdirectory used for custom mmaps */
|
||||
public static FileHandle customMapDirectory;
|
||||
/**data subdirectory used for saves*/
|
||||
/** data subdirectory used for saves */
|
||||
public static FileHandle saveDirectory;
|
||||
/**map file extension*/
|
||||
/** map file extension */
|
||||
public static final String mapExtension = "mmap";
|
||||
/**save file extension*/
|
||||
/** save file extension */
|
||||
public static final String saveExtension = "msav";
|
||||
|
||||
/**list of all locales that can be switched to*/
|
||||
/** list of all locales that can be switched to */
|
||||
public static Locale[] locales;
|
||||
|
||||
public static ContentLoader content;
|
||||
@@ -143,7 +139,7 @@ public class Vars{
|
||||
public static EntityGroup<Fire> fireGroup;
|
||||
public static EntityGroup<BaseUnit>[] unitGroups;
|
||||
|
||||
/**all local players, currently only has one player. may be used for local co-op in the future*/
|
||||
/** all local players, currently only has one player. may be used for local co-op in the future */
|
||||
public static Player player;
|
||||
|
||||
public static void init(){
|
||||
|
||||
Reference in New Issue
Block a user