소개글
< 게임의 이해 >이 게임에서 사용되는 클래스로는 최상위 클래스인 WaterObject를 포함하여 WaterBomb, WaterUnit, WarShip, Submarine 클래스와 게임의 흐름을 관리하는 WaterWar 클래스가 있다. 다음은 클래스 계층도 이다.
이들 클래스들은 게임에서 다음과 같은 역할을 담당한다.
클래스 역할
WaterObject
최상위 클래스, 이 게임에 등장하는 캐릭터의 공통된 속성과 동작이 정의되어 있다.
WaterBomb
폭탄(어뢰와 폭뢰)을 구현한 클래스, WaterObject의 자식 클래스
WaterUnit
전투함과 잠수함의 부모 클래스, WaterObject의 자식 클래스
WarShip
전투함을 구현한 클래스, WaterUnit의 자식 클래스
Submarine
잠수함을 구현한 클래스, WaterUnit의 자식 클래스
WaterWar
게임의 흐름을 관리하는 클래스로 애플릿이다. 각종 이미지를 로딩하고 게임에 필요한 객체들을 생성하며 캐릭터들을 화면에 그린다.
컴파일 실행환경
JAVA SDK1.6, Eclipse-SDK-3.3.2-win32압축파일 내 파일목록
게임의 이해.hwp
War/.classpath
War/.project
War/.metadata/.lock
War/.metadata/version.ini
War/.metadata/.plugins/org.eclipse.core.resources/
War/.metadata/.plugins/org.eclipse.core.runtime/
War/.metadata/.plugins/org.eclipse.debug.core/
War/.metadata/.plugins/org.eclipse.debug.ui/
War/.metadata/.plugins/org.eclipse.core.resources/.history/
War/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
War/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
War/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
War/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
War/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
War/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
War/bin/air.class
War/bin/airforce.class
War/bin/java.policy.applet
War/bin/Submarine.class
War/bin/WarShip.class
War/bin/WaterBomb.class
War/bin/WaterObject.class
War/bin/WaterUnit.class
War/bin/WaterWar$1.class
War/bin/WaterWar$2.class
War/bin/WaterWar.class
War/bin/WaterWar.htm
War/bin/WaterWar1209034664078.html
War/bin/WaterWar1209106504453.html
War/bin/images/Air1.gif
War/bin/images/Air2.gif
War/bin/images/Air3.gif
War/bin/images/Air4.gif
War/bin/images/back.gif
War/bin/images/bom2.gif
War/bin/images/depthBomb.gif
War/bin/images/gameover.jpg
War/bin/images/hill up.gif
War/bin/images/hill.GIF
War/bin/images/hillup.gif
War/bin/images/land.gif
War/bin/images/mland.gif
War/bin/images/pung.gif
War/bin/images/pung1.gif
War/bin/images/pung2.png
War/bin/images/Red_Ball.gif
War/bin/images/ship1.gif
War/bin/images/ship2.gif
War/bin/images/ship3.gif
War/bin/images/ship4.gif
War/bin/images/submarine1.gif
War/bin/images/submarine2.gif
War/bin/images/Thumbs.db
War/bin/images/torpedo.gif
War/bin/images/torpedo1.gif
War/src/WaterWar.htm
War/src/WaterWar.java
War/src/WaterWar1.java
War/.classpath
War/.project
War/.metadata/.lock
War/.metadata/version.ini
War/.metadata/.plugins/org.eclipse.core.resources/
War/.metadata/.plugins/org.eclipse.core.runtime/
War/.metadata/.plugins/org.eclipse.debug.core/
War/.metadata/.plugins/org.eclipse.debug.ui/
War/.metadata/.plugins/org.eclipse.core.resources/.history/
War/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
War/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
War/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
War/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
War/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
War/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
War/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
War/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
War/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
War/bin/air.class
War/bin/airforce.class
War/bin/java.policy.applet
War/bin/Submarine.class
War/bin/WarShip.class
War/bin/WaterBomb.class
War/bin/WaterObject.class
War/bin/WaterUnit.class
War/bin/WaterWar$1.class
War/bin/WaterWar$2.class
War/bin/WaterWar.class
War/bin/WaterWar.htm
War/bin/WaterWar1209034664078.html
War/bin/WaterWar1209106504453.html
War/bin/images/Air1.gif
War/bin/images/Air2.gif
War/bin/images/Air3.gif
War/bin/images/Air4.gif
War/bin/images/back.gif
War/bin/images/bom2.gif
War/bin/images/depthBomb.gif
War/bin/images/gameover.jpg
War/bin/images/hill up.gif
War/bin/images/hill.GIF
War/bin/images/hillup.gif
War/bin/images/land.gif
War/bin/images/mland.gif
War/bin/images/pung.gif
War/bin/images/pung1.gif
War/bin/images/pung2.png
War/bin/images/Red_Ball.gif
War/bin/images/ship1.gif
War/bin/images/ship2.gif
War/bin/images/ship3.gif
War/bin/images/ship4.gif
War/bin/images/submarine1.gif
War/bin/images/submarine2.gif
War/bin/images/Thumbs.db
War/bin/images/torpedo.gif
War/bin/images/torpedo1.gif
War/src/WaterWar.htm
War/src/WaterWar.java
War/src/WaterWar1.java