Refactoring
This commit is contained in:
parent
3d390ddf43
commit
2a49108aba
@ -24,7 +24,7 @@ package com.pixelgamelibrary.api;
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public enum WindowMode {
|
||||
public enum DisplayMode {
|
||||
|
||||
WINDOW, FULLSCREEN;
|
||||
}
|
@ -20,6 +20,8 @@
|
||||
|
||||
package com.pixelgamelibrary.api;
|
||||
|
||||
import com.pixelgamelibrary.api.screen.Screen;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
|
@ -19,6 +19,7 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.pixelgamelibrary.api;
|
||||
|
||||
import com.pixelgamelibrary.api.game.Game;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -17,7 +17,11 @@
|
||||
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.game;
|
||||
|
||||
import com.pixelgamelibrary.api.ApplicationListener;
|
||||
import com.pixelgamelibrary.api.OnSetScreenListener;
|
||||
import com.pixelgamelibrary.api.screen.Screen;
|
||||
|
||||
/**
|
||||
*
|
@ -18,7 +18,10 @@
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.game;
|
||||
|
||||
import com.pixelgamelibrary.api.OnSetScreenListener;
|
||||
import com.pixelgamelibrary.api.screen.Screen;
|
||||
|
||||
/**
|
||||
*
|
@ -18,7 +18,10 @@
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.game;
|
||||
|
||||
import com.pixelgamelibrary.api.OnSetScreenListener;
|
||||
import com.pixelgamelibrary.api.screen.Screen;
|
||||
|
||||
|
||||
/**
|
@ -21,7 +21,7 @@ package com.pixelgamelibrary.api.interfaces;
|
||||
|
||||
import com.pixelgamelibrary.api.PixelFeature;
|
||||
import com.pixelgamelibrary.api.Platform;
|
||||
import com.pixelgamelibrary.api.Game;
|
||||
import com.pixelgamelibrary.api.game.Game;
|
||||
import com.pixelgamelibrary.api.utils.ClipBoard;
|
||||
import com.pixelgamelibrary.api.utils.LogLevel;
|
||||
import com.pixelgamelibrary.api.utils.Preferences;
|
||||
|
@ -19,7 +19,7 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.pixelgamelibrary.api.interfaces;
|
||||
|
||||
import com.pixelgamelibrary.api.WindowMode;
|
||||
import com.pixelgamelibrary.api.DisplayMode;
|
||||
import com.pixelgamelibrary.api.utils.Monitor;
|
||||
import java.util.List;
|
||||
|
||||
@ -29,7 +29,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface Graphics {
|
||||
boolean setToOriginalDisplayMode();
|
||||
WindowMode setDisplayMode(boolean fullscreen, boolean window);
|
||||
DisplayMode setDisplayMode(boolean fullscreen, boolean window);
|
||||
List<Monitor> getMonitors();
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,9 @@
|
||||
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.screen;
|
||||
|
||||
import com.pixelgamelibrary.api.ApplicationListener;
|
||||
|
||||
/**
|
||||
*
|
@ -17,7 +17,9 @@
|
||||
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.screen;
|
||||
|
||||
import com.pixelgamelibrary.api.game.Game;
|
||||
|
||||
/**
|
||||
*
|
@ -18,7 +18,7 @@
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.pixelgamelibrary.api;
|
||||
package com.pixelgamelibrary.api.screen;
|
||||
|
||||
|
||||
/**
|
@ -0,0 +1,32 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel: Game library.
|
||||
// Copyright (C) 2024 the original author or authors.
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation, either version 3
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see
|
||||
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.pixelgamelibrary.api.utils;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class TmpFileRegistry {
|
||||
public TmpFileRegistry() {
|
||||
//todo
|
||||
}
|
||||
|
||||
}
|
@ -19,7 +19,7 @@ import com.pixelgamelibrary.api.interfaces.Internal;
|
||||
import com.pixelgamelibrary.api.interfaces.Net;
|
||||
import com.pixelgamelibrary.api.interfaces.Utils;
|
||||
import com.pixelgamelibrary.api.interfaces.App;
|
||||
import com.pixelgamelibrary.api.Game;
|
||||
import com.pixelgamelibrary.api.game.Game;
|
||||
import com.pixelgamelibrary.api.PixelFeature;
|
||||
import com.pixelgamelibrary.api.utils.ClipBoard;
|
||||
import com.pixelgamelibrary.api.utils.LogLevel;
|
||||
|
Reference in New Issue
Block a user