Serialized Form


Package data

Class data.Save extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

level

int level

Class data.Score extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

score

int score

name

java.lang.String name

Package logic

Class logic.GameEngine extends javax.swing.JPanel implements Serializable

Serialized Fields

sm

ScreenManager sm
Our Screen manager. This variable will be delivered by presentation tier by reference


sound

SoundManager sound
Our Sound manager


score

HighScoreManager score
Our HighScore manager


save

SaveManager save
Our Save manager


layout

java.awt.CardLayout layout
We need an instance of the layout when we lost our focus on the game screen


cardPanel

javax.swing.JPanel cardPanel

mainPanel

MainPanel mainPanel

gameRunning

boolean gameRunning
True if the game is currently "running", i.e. the game loop is looping


pause

boolean pause
True if the game is currently "paused"


message

java.lang.String message
The message to display which waiting for a key press


message2

java.lang.String message2
The message to display which waiting for a key press


level

int level
This integer holds the level number. Default value is 1


multiplayer

boolean multiplayer
This boolean let us know if the game is initialized as multiplayer. Default value is false


waitingForKeyPressed

boolean waitingForKeyPressed
On rare occasions, our game will stop for user to press any key on keyboard to continue to prevent any unexpected occurrences.


isMainMenu

boolean isMainMenu
This variable is for determining if the game is on main menu Because game will be paused and it will be prevented from rendering again and again.


rounded

int rounded
For the widh of the rounded rectangle to be drawn before the screen text


balloonCount

int balloonCount
This integer holds the number of the valus on the screen to determine if if the level was cleared or not.


timeStop

boolean timeStop

timeStopTime

long timeStopTime

entities

java.util.ArrayList<E> entities
This arraylist holds all the entities on the screen to check collisions and make drawing works easier, withouth checking too many types. In the end, everything on the screen is a GameEntity object.


removeList

java.util.ArrayList<E> removeList
This arraylist holds the objects to be removed at the end of each game loop


playerOne

Player playerOne
This is one of the mosp important game objects: Player One. It is created for both single and multiplayer games.


playerTwo

Player playerTwo
Player Two is created on only multiplayer games. Multiplayer game is decided by the boolean variable @multiplayer


background

Sprite background
Our game screen background. Just to deliver a better experience. It is a Sprite.

Class logic.ScreenManager extends javax.swing.JFrame implements Serializable

serialVersionUID: -6887137990846219773L

Serialized Fields

strategy

java.awt.image.BufferStrategy strategy
The strategy that allows us to use accelerate page flipping


device

java.awt.GraphicsDevice device
An instance to let us to use default graphic device's properties


dispMode

java.awt.DisplayMode dispMode
Game's display mode. Can be tweaked to support multiple resolutions


dispModeOld

java.awt.DisplayMode dispModeOld
DisplayModeOld lets us to remember default display mode of the screen device


fullscreen

boolean fullscreen
A boolean that allows us to know whether fullscreen is enabled or not


Package presentation

Class presentation.AboutPanel extends PangPanel implements Serializable

serialVersionUID: -6379797386388552036L

Serialized Fields

textPane

javax.swing.JTextPane textPane

Class presentation.HelpPanel extends PangPanel implements Serializable

serialVersionUID: -7296181222270346541L

Serialized Fields

pane

javax.swing.JTextArea pane

Class presentation.HighScorePanel extends PangPanel implements Serializable

serialVersionUID: -81358183442103059L

Serialized Fields

line

javax.swing.JLabel line

line2

javax.swing.JLabel line2

local

javax.swing.JLabel local

global

javax.swing.JLabel global

temp

java.lang.String temp

first

java.lang.String[] first

scoresLocal

java.lang.String scoresLocal

scoresGlobal

java.lang.String scoresGlobal

paneLocal

javax.swing.JTextArea paneLocal

paneGlobal

javax.swing.JTextArea paneGlobal

url

java.net.URL url

in

java.io.InputStream in

reader

java.io.BufferedReader reader

Class presentation.MainPanel extends PangPanel implements Serializable

serialVersionUID: 7019295328884307599L

Serialized Fields

newGamePanel

NewGamePanel newGamePanel
Panel that players choose specific level to play. It is same for both single and multiplayer.


highScorePanel

HighScorePanel highScorePanel
Panel that shows high scores.


optionsPanel

OptionsPanel optionsPanel
Panel that shows options.


helpPanel

HelpPanel helpPanel
Panel that shows help section.


aboutPanel

AboutPanel aboutPanel
Panel that shows about information.


continueButton

javax.swing.JButton continueButton
Continue button is only shown when a game is running.


newSinglePlayerGameButton

javax.swing.JButton newSinglePlayerGameButton
Opens NewGamePanel for SinglePlayer game.


newTwoPlayerGameButton

javax.swing.JButton newTwoPlayerGameButton
Opens NewGamePanel for MultiPlayer game.


highScoresButton

javax.swing.JButton highScoresButton
Opens HighScorePanel


optionsButton

javax.swing.JButton optionsButton
Opens OptionsPanel


helpButton

javax.swing.JButton helpButton
Opens HelpPanel


aboutButton

javax.swing.JButton aboutButton
Opens AboutPanel


exitButton

javax.swing.JButton exitButton
Exits game.


game

GameEngine game
GameEngine

Class presentation.NewGamePanel extends PangPanel implements Serializable

serialVersionUID: 5236176098130470092L

Serialized Fields

newGameButton

javax.swing.JButton[] newGameButton
Levels to be chosen.


multiplayer

boolean multiplayer
If the game to be created is multiplayer


mainPanel

MainPanel mainPanel
MainPanel

Class presentation.OptionsPanel extends PangPanel implements Serializable

serialVersionUID: -6337470176486265217L

Serialized Fields

pane

javax.swing.JTextArea pane

Class presentation.PangPanel extends javax.swing.JPanel implements Serializable

serialVersionUID: 989953683048975148L

Serialized Fields

sm

ScreenManager sm
This is our ScreenManager


save

SaveManager save
This is our SaveManager


sound

SoundManager sound
This is our SoundManager


score

HighScoreManager score
This is our HighScoreManager


cardPanel

javax.swing.JPanel cardPanel
Main JPanel that holds every panel in itself.


layout

java.awt.CardLayout layout
The layout we are using.


back

javax.swing.JButton back
The back button that allows almost every panel to traverse back to main menu.


bg

Sprite bg
Background of the panels.