Battleship Files - PanMaster13/Battleship GitHub Wiki

bin Folder

Debug folder

β€’ Resources Folder

β€’ battleships.exe - Battleship Game application file

β€’ battleships.pdb – Program debug database file

β€’ jpeg.dll - Application extension file

β€’ libfreetype.dll - Application extension file

β€’ libogg-0.dll - Application extension file

β€’ libpng12-0.dll - Application extension file

β€’ libpng13.dll - Application extension file

β€’ libtiff-3.dll - Application extension file

β€’ libvorbis-0.dll - Application extension file

β€’ libvorbisfile-3.dll - Application extension file

β€’ mikmod.dll - Application extension file

β€’ ogg.dll - Application extension file

β€’ SDL.dll - Application extension file

β€’ SDL_gfx.dll - Application extension file

β€’ SDL_image.dll - Application extension file

β€’ SDL_mixer.dll - Application extension file

β€’ SDL_net.dll - Application extension file

β€’ SDL_ttf.dll - Application extension file

β€’ SGSDK.dll - Application extension file

β€’ smpeg.dll - Application extension file

β€’ SwinGame.dll - Application extension file

β€’ zlib.dll - Application extension file

lib Folder

godly folder

β€’ libSGSDK.dylib - A dynamic library file that allows the project to run on Mac

mac folder

β€’ libSGSDK.dylib - A dynamic library file that allows the project to run on Mac

sdl13 folder

β€’ libSGSDK.dylib - A dynamic library file that allows the project to run on Mac

win folder

β€’ jpeg.dll - Application extension file

β€’ libfreetype.dll - Application extension file

β€’ libogg-0.dll - Application extension file

β€’ libpng12-0.dll - Application extension file

β€’ libpng13.dll - Application extension file

β€’ libtiff-3.dll - Application extension file

β€’ libvorbis-0.dll - Application extension file

β€’ libvorbisfile-3.dll - Application extension file

β€’ mikmod.dll - Application extension file

β€’ ogg.dll - Application extension file

β€’ SDL.dll - Application extension file

β€’ SDL_gfx.dll - Application extension file

β€’ SDL_image.dll - Application extension file

β€’ SDL_mixer.dll - Application extension file

β€’ SDL_net.dll - Application extension file

β€’ SDL_ttf.dll - Application extension file

β€’ SGSDK.dll - Application extension file

β€’ smpeg.dll - Application extension file

β€’ swingame.rc - SwinGame resource script file

β€’ zlib1.dll - Application extension file

cygpath file – Used to convert Windows native filenames to Cygwin POSIX-style pathnames and back

SwinGame.dll - SwinGame application extension file

SwinGame.mdb - SwinGame database file

Resources Folder

animations folder

β€’ splash.txt – Contains information about splash and explosion animation

β€’ startup.txt – Contains information about the splash screen animation.

bundles folder

β€’ FileDialog.txt - Contains information on images, font, effect error sound and panel.

β€’ splash.txt - Contains information on loading all resources used by the splash screen.

fonts folder

β€’ arial.ttf - Arial font

β€’ cour.ttf - Cour font

β€’ ffaccess.ttf - ffaccess font

β€’ maven_pro_regular - Maven Pro Regular font

images folder

β€’ deploy.jpg - Ship deploy image

β€’ deploy_button_hl.jpg - Deploy button image

β€’ deploy_dir_button_horiz.jpg - Deploy button horizontal highlighted image

β€’ deploy_dir_button_vert.jpg - Deploy button vertical highlighted image

β€’ deploy_play_button.jpg - Play button image

β€’ deploy_randomize_button.jpg – Deploy randomize button image

β€’ discover.jpg – Game background

β€’ explosion.png - Explosion image

β€’ fdFile.png - File image

β€’ fdFolder.png - Folder image

β€’ FileDialog_Active.png - Active dialog image

β€’ FileDialog_Background.png - Background dialog image

β€’ FileDialog_Inactive.png - Inactive dialog image

β€’ FileDialog_Scroll.png - Scroll dialog image

β€’ FileDialog_ScrollSmall.png - Small scroll dialog image

β€’ loader_empty.png - Empty loader image

β€’ loader_full.png - Full loader image

β€’ main_page.jpg - Main page image

β€’ ship_deploy_horiz_1.png - Ship image

β€’ ship_deploy_horiz_2.png - Ship image

β€’ ship_deploy_horiz_3.png - Ship image

β€’ ship_deploy_horiz_4.png - Ship image

β€’ ship_deploy_horiz_5.png - Ship image

β€’ ship_deploy_vert_1.png - Ship image

β€’ ship_deploy_vert_2.png - Ship image

β€’ ship_deploy_vert_3.png - Ship image

β€’ ship_deploy_vert_4.png – Ship image

β€’ ship_deploy_vert_5.png - Ship image

β€’ splash.png - Splash image

β€’ Splashback.png - Splashback image

β€’ Swinburne.jpg - Swinburne logo image

β€’ SwinGameAni.jpg - SwinGame animation image

β€’ SwinGameAni.png - SwinGame animation image

panels folder

β€’ FileDialog.txt - Contains information about the panel

sounds folder

β€’ error.wav - Error warning sound

β€’ hit.wav - Explosion sound when ship is hit

β€’ horrordrone.mp3 - Drone sound

β€’ lose.wav - Lose sound effect

β€’ sink.wav - Ship sink sound

β€’ SwinGameStart.vlc - Starting game sound

β€’ SwinGameStart.wav - SwinGame intro sound

β€’ watershot.wav - Water shots sound

β€’ winner.wav - Winner sound effect

highscores.txt - List of high scores from the game.

SwinGame.icns - SwinGame icon for macOS.

SwinGame.ico - SwinGame icon

src folder

Model Folder

β€’ AIHardPlayer.vb - Source code for hard difficulty AI.

β€’ AIMediumPlayer.vb - Source code for medium difficulty AI.

β€’ AIOption.vb – Codes for AI difficulty options enum.

β€’ AIPlayer.vb – Source code for parent class AI player with its attributes and methods.

β€’ AttackResult.vb - Source code to give result after a shot has been made.

β€’ BattleShipsGame.vb - Source code for the game where it adds two players to the game and make sure that all the player’s ships are deployed before starting the game. It allows players to shoot and swap turns. It also checks if players are destroyed.

β€’ Direction.vb - Source code for orienting ship direction.

β€’ ISeaGrid.vb - Source code which defines read only interface of gird. Allows player to see and attack opponents grid.

β€’ Player.vb - Source code for player to have own grid and see enemy grid. It can check if ships are deployed or destroyed.

β€’ ResultofAttack.vb - Source code to initialize result of attack.

β€’ SeaGrid.vb - Source code to define the grid upon which the ships are deployed.

β€’ SeaGridAdapter.vb - Source code to allow change of sea grid view. When a ship is presented, it changes the view into a sea tile instead of ship tile.

β€’ Ship.vb - Source code for a ship.

β€’ ShipName.vb - Source code of ship names enum.

β€’ Tile.vb - Source code for tile to know its location on the grid, if it is a ship or if it has been shot before.

β€’ TileView.vb - Source code of the values visible for a given tile enum.

DeploymentController.vb – Source code that controls the players actions during deployment phase.

DiscoveryController.vb - Source code which handles the battle phase.

EndingGameContrller.vb - Source code responsible for managing the interactions at the end of a game.

GameController.vb - Source code responsible for controlling the game, managing user input and displaying the current state of the game.

GameLogic.vb - Source code which defines the game logic.

GameResources.vb - Source code to load all the resources used in the game.

GameState.vb - Source code which represents the state of the Battleships game play.

HighScoreController.vb - Source code which controls displaying and collecting high score data and save it to a file.

MenuController.vb - Source code which handles the drawing and user interactions from the menus in the game.

UtilityFunctions.vb - Source code which includes utility methods for drawing and interacting with the Mouse.

tmp folder – Empty

build.sh – Used to build the files

clean.sh – Removes all build products and restore it to its original state.

contributors.txt - List of contributors of the project.

out.log - Output log

README.md - Instructions to run program.

run.sh - Runs the built files.