X-Git-Url: http://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2FGameSaver.java;h=38e295931f27b864ed98fa94ecad05698e323e94;hp=49822863f876b074fe28f25e10aab9a376951aab;hb=c0aa4c7eef4f97c1ef9a8af7eaf2afe2feffd3d0;hpb=95d5ff12439198316e81fa776d1f71b1dbaade44 diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java b/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java index 4982286..38e2959 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java +++ b/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java @@ -2,7 +2,6 @@ package ru.deadsoftware.cavedroid.game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; -import org.jetbrains.annotations.NotNull; import ru.deadsoftware.cavedroid.CaveGame; import java.io.*; @@ -12,12 +11,12 @@ public class GameSaver { private static final int VERSION = 0; - @NotNull + private static byte[] intToBytes(int i) { return ByteBuffer.allocate(4).putInt(i).array(); } - private static void saveMap(@NotNull FileHandle file, @NotNull int[][] map) throws IOException { + private static void saveMap(FileHandle file, int[][] map) throws IOException { int rl, bl; int width = map.length; int height = map[0].length; @@ -44,8 +43,8 @@ public class GameSaver { out.close(); } - @NotNull - private static int[][] loadMap(@NotNull FileHandle file) throws Exception { + + private static int[][] loadMap(FileHandle file) throws Exception { int[][] map; int ver, width, height; int rl, bl;