package org.test;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: enemyManager.java
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import javax.imageio.ImageIO;
@SuppressWarnings("unchecked")
public class enemyManager {
int currentlevelNum = 1;
long totalTimeElapsed = 0L;
private int numberOfLoops;
ArrayList<enemy> activeEnemyList = new ArrayList();
ArrayList<enemyData> Level1 = new ArrayList();
ArrayList<enemyData> Level2 = new ArrayList();
ArrayList<enemyData> Level3 = new ArrayList();
BufferedImage imgPinkMeep;
BufferedImage imgGreenWoggle;
BufferedImage imgSpinner;
BufferedImage imgGlider;
BufferedImage imgBlueBat;
BufferedImage imgBlueBatTwin;
BufferedImage imgMiniBoss1;
BufferedImage imgGliderReverse;
BufferedImage imgHeatSeeker;
BufferedImage imgGliderDown;
BufferedImage imgMiniBoss2;
BufferedImage imgMiniBoss3;
public void incLevel() {
this.totalTimeElapsed = 0L;
this.currentlevelNum += 1;
if (this.currentlevelNum > 3) {
this.currentlevelNum = 1;
createLvl1();
createLvl2();
createLvl3();
this.numberOfLoops += 1;
soundEngine.gi().increaseMusicSpeed();
}
}
public int getNumLoops() {
return this.numberOfLoops;
}
public int getCurrentLevel() {
return this.currentlevelNum;
}
public enemyManager() {
this.imgPinkMeep = loadImage("pinkmeep.gif");
this.imgGreenWoggle = loadImage("greenwoggle.gif");
this.imgSpinner = loadImage("spinner.gif");
this.imgGlider = loadImage("glider.gif");
this.imgBlueBat = loadImage("bluebat.gif");
this.imgBlueBatTwin = loadImage("bluebattwin.gif");
this.imgMiniBoss1 = loadImage("miniBoss1.gif");
this.imgGliderReverse = loadImage("gliderreverse.gif");
this.imgHeatSeeker = loadImage("diver.gif");
this.imgGliderDown = loadImage("gliderdown.gif");
this.imgMiniBoss2 = loadImage("Boss2.gif");
this.imgMiniBoss3 = loadImage("Boss3.gif");
activeEnemyBullets.gi();
reset();
}
public void reset() {
this.activeEnemyList.clear();
activeEnemyBullets.gi().clear();
this.Level1.clear();
this.Level2.clear();
this.Level3.clear();
this.totalTimeElapsed = 0L;
this.currentlevelNum = 1;
this.numberOfLoops = 0;
createLvl1();
createLvl2();
createLvl3();
}
public ArrayList<enemy> getActiveEnemyList() {
return this.activeEnemyList;
}
private BufferedImage loadImage(String paramString) {
BufferedImage localBufferedImage = null;
try {
URL localURL = null;
localURL = getClass().getResource(paramString);
localBufferedImage = ImageIO.read(localURL);
} catch (Exception localException) {
System.out.print("Could not load file " + paramString);
}
return localBufferedImage;
}
public void createLvl3() {
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWave, 80, -40, 10000L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.reversePhaseSineWave, 290, -40,
10000L, enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWave, 80, -40, 10400L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.reversePhaseSineWave, 290, -40,
10400L, enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWave, 80, -40, 10800L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.reversePhaseSineWave, 290, -40,
10800L, enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWave, 80, -40, 11200L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.reversePhaseSineWave, 290, -40,
11200L, enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWave, 80, -40, 11600L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.reversePhaseSineWave, 290, -40,
11600L, enemyManager.enemyBulletPatternAI.none));
if (helper.gameDifficulty != helper.difficulty.easy) {
this.Level3.add(new enemyData(enemyManager.enemyType.heatseeker,
enemyManager.enemyMovementAI.heatseeker, 290, -40, 12500L,
enemyManager.enemyBulletPatternAI.none));
}
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 125, -40, 13500L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 205, -40, 13500L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 165, -20, 13000L,
enemyManager.enemyBulletPatternAI.ThreeProng500ms));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 14000L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 14400L,
enemyManager.enemyBulletPatternAI.shootAtPlayerEverySec));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 14800L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 15200L,
enemyManager.enemyBulletPatternAI.shootAtPlayerEverySec));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 15600L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 25, -40, 16000L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 105, -40, 16000L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.pinkMeep,
enemyManager.enemyMovementAI.standard, 65, -20, 15500L,
enemyManager.enemyBulletPatternAI.ThreeProng500ms));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 16000L,
enemyManager.enemyBulletPatternAI.shootAtPlayerEverySec));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 16400L,
enemyManager.enemyBulletPatternAI.none));
this.Level3.add(new enemyData(enemyManager.enemyType.GreenWoggle,
enemyManager.enemyMovementAI.sineWaveLR, -40, 80, 16800L,
enemyManager.enemyBulletPatternAI.shootAtPlayerEverySec));
this.Level3.add(new enemyData(enemyManager.enemyType.Spinner,
enemyManager.enemyMovementAI.S, 210, -40, 17000L,
enemyManager.enemyBulletPatternAI.spiner));
if (helper.gameDifficulty != helper.difficulty.easy) {
this.Level3.add(new
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
java编写的飞机射击闯关游戏源码 (146个子文件)
.classpath 232B
instructions.gif 8KB
titlescreen.gif 7KB
mainmenu.gif 6KB
optionsMenu_duringPlay.gif 6KB
optionsMenu.gif 5KB
enterScoreDialogEasy.gif 4KB
highscores.gif 4KB
enterScoreDialog.gif 4KB
difficultyLevels.gif 4KB
Boss3.gif 3KB
Boss2.gif 3KB
preparefirsttxt.gif 2KB
preparetxt.gif 2KB
miniBoss1.gif 2KB
warningRed.gif 2KB
border.gif 2KB
speedIncreasedtxt.gif 1KB
pressFireToStart.gif 1KB
txtpaused.gif 1KB
numbers.gif 1KB
BitmapFont_Blue.gif 1KB
bluebattwin.gif 1KB
bluebattwin_hit.gif 1KB
pausemenu.gif 1KB
livestxt.gif 1KB
volumeBar.gif 1KB
scoretxt.gif 1KB
diver.gif 1000B
bluebat.gif 989B
playership.gif 987B
glider.gif 978B
gliderdown.gif 976B
gliderreverse.gif 972B
greenwoggle.gif 969B
bullet_hit_animation.gif 958B
spinner.gif 950B
pinkmeep.gif 936B
collectThese.gif 892B
bomb.gif 886B
bullet_green.gif 881B
bullet_red.gif 881B
bullet_purple.gif 881B
1upstar.gif 871B
bullet_green1.gif 850B
bullet_green2.gif 850B
playerbullet.gif 843B
cursorBlink.gif 822B
particle_whitestar.gif 812B
particle_bluestar.gif 812B
particle_orange.gif 809B
particle_yellow.gif 809B
particle_blue.gif 809B
particle_green.gif 809B
particle_red.gif 809B
particle_white.gif 809B
enemyManager.java 75KB
enemyBulletPattern_boss2.java 12KB
gameState_playingGame.java 12KB
gameState_submitHighScore.java 7KB
particleManager.java 7KB
enemyBulletPattern_boss3.java 7KB
player.java 6KB
enemyBulletPattern_miniBoss1.java 5KB
playerBulletManager.java 4KB
gameState_selectDifficulty.java 4KB
activeCollectThese.java 4KB
soundEngine.java 3KB
BangBang.java 3KB
starEffect.java 3KB
enemyBulletPattern_Spinner.java 3KB
starField.java 2KB
activeEnemyBullets.java 2KB
helper.java 2KB
enemy_miniboss3.java 2KB
enemy.java 2KB
enemyBullet.java 2KB
gameState_mainMenu.java 2KB
enemyBulletPattern_BlueTwinFire.java 2KB
BitmapFont.java 2KB
enemyBulletPattern_Shoot3ProngEvery500ms.java 2KB
enemyAI_HeatSeeker.java 2KB
enemy_miniboss1.java 2KB
keyMonitor.java 2KB
gameStateManager.java 1KB
gameState.java 1KB
enemy_miniboss2.java 1KB
guiBlinkingImage.java 1KB
enemy_Spinner.java 1KB
activePlayerBullets.java 1KB
enemy_heatseeker.java 1KB
enemyBulletPattern_DropMine.java 1KB
whiteflash.java 1KB
enemy_GliderReverse.java 1000B
enemy_BlueBatTwin.java 996B
enemy_GreenWoggle.java 996B
enemy_PinkMeep.java 990B
enemy_Glider.java 986B
enemyBulletPattern_ShootAtPlayerEverySecond.java 922B
enemyBulletPattern_ShootAtPlayerVeryQuick.java 917B
共 146 条
- 1
- 2
wzsong0328
- 粉丝: 1
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页