Refactoring

This commit is contained in:
Robert Vokac 2024-09-18 18:35:05 +02:00 committed by Robert Vokac
parent 3d390ddf43
commit 2a49108aba
Signed by: robertvokac
GPG Key ID: FB9CE8E20AADA55F
13 changed files with 60 additions and 11 deletions

View File

@ -24,7 +24,7 @@ package com.pixelgamelibrary.api;
*
* @author robertvokac
*/
public enum WindowMode {
public enum DisplayMode {
WINDOW, FULLSCREEN;
}

View File

@ -20,6 +20,8 @@
package com.pixelgamelibrary.api;
import com.pixelgamelibrary.api.screen.Screen;
/**
*
* @author robertvokac

View File

@ -19,6 +19,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.pixelgamelibrary.api;
import com.pixelgamelibrary.api.game.Game;
import java.util.HashMap;
import java.util.Map;

View File

@ -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;
/**
*

View File

@ -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;
/**
*

View File

@ -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;
/**

View File

@ -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;

View File

@ -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();
}

View File

@ -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;
/**
*

View File

@ -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;
/**
*

View File

@ -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;
/**

View File

@ -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
}
}

View File

@ -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;