public FinalBoss(float x, float y, GameWorldState gameWorld) : base(x, y, 110, 150, 0.1f, 500, gameWorld) { idleback = CacheDataLoader.getInstance().getAnimation("boss_idle"); idleforward = CacheDataLoader.getInstance().getAnimation("boss_idle"); idleforward.flipAllImage(); shootingback = CacheDataLoader.getInstance().getAnimation("boss_shooting"); shootingforward = CacheDataLoader.getInstance().getAnimation("boss_shooting"); shootingforward.flipAllImage(); slideback = CacheDataLoader.getInstance().getAnimation("boss_slide"); slideforward = CacheDataLoader.getInstance().getAnimation("boss_slide"); slideforward.flipAllImage(); setTimeForNoBehurt(500); setDamage(20); attackType[0] = "NONE"; attackType[1] = "shooting"; attackType[2] = "NONE"; attackType[3] = "slide"; timeAttack.Add("NONE", 2000); timeAttack.Add("shooting", 500); timeAttack.Add("slide", 5000); }
public SmallRedGun(float x, float y, GameWorldState gameWorld) : base(x, y, 127, 89, 0, 30, gameWorld) { backAnim = CacheDataLoader.getInstance().getAnimation("smallredgun"); forwardAnim = CacheDataLoader.getInstance().getAnimation("smallredgun"); forwardAnim.flipAllImage(); startTimeToShoot = DateTime.Now; setTimeForNoBehurt(300); }
// private AudioClip shooting; public RedEyeDevil(float x, float y, GameWorldState gameWorld) : base(x, y, 127, 89, 0, 30, gameWorld) { backAnim = CacheDataLoader.getInstance().getAnimation("redeye"); forwardAnim = CacheDataLoader.getInstance().getAnimation("redeye"); forwardAnim.flipAllImage(); startTimeToShoot = DateTime.Now; setDamage(10); setTimeForNoBehurt(300); //shooting = CacheDataLoader.getInstance().getSound("redeyeshooting"); }
public RocketBullet(float x, float y, GameWorldState gameWorld) : base(x, y, 30, 30, 1.0f, 10, gameWorld) { backBulletAnimUp = CacheDataLoader.getInstance().getAnimation("rocketUp"); backBulletAnimDown = CacheDataLoader.getInstance().getAnimation("rocketDown"); backBulletAnim = CacheDataLoader.getInstance().getAnimation("rocket"); forwardBulletAnimUp = CacheDataLoader.getInstance().getAnimation("rocketUp"); forwardBulletAnimUp.flipAllImage(); forwardBulletAnimDown = CacheDataLoader.getInstance().getAnimation("rocketDown"); forwardBulletAnimDown.flipAllImage(); forwardBulletAnim = CacheDataLoader.getInstance().getAnimation("rocket"); forwardBulletAnim.flipAllImage(); }
//private AudioClip hurtingSound; //private AudioClip shooting1; public MegaMan(float x, float y, GameWorldState gameWorld) : base(x, y, 70, 90, 0.1f, 100, gameWorld) { //shooting1 = CacheDataLoader.getInstance().getSound("bluefireshooting"); //hurtingSound = CacheDataLoader.getInstance().getSound("megamanhurt"); setTeamType(TeamType.LEAGUE_TEAM); setTimeForNoBehurt(0); runForwardAnim = CacheDataLoader.getInstance().getAnimation("run"); runBackAnim = CacheDataLoader.getInstance().getAnimation("run"); runBackAnim.flipAllImage(); idleForwardAnim = CacheDataLoader.getInstance().getAnimation("idle"); idleBackAnim = CacheDataLoader.getInstance().getAnimation("idle"); idleBackAnim.flipAllImage(); dickForwardAnim = CacheDataLoader.getInstance().getAnimation("dick"); dickBackAnim = CacheDataLoader.getInstance().getAnimation("dick"); dickBackAnim.flipAllImage(); flyForwardAnim = CacheDataLoader.getInstance().getAnimation("flyingup"); flyForwardAnim.setIsRepeated(false); flyBackAnim = CacheDataLoader.getInstance().getAnimation("flyingup"); flyBackAnim.setIsRepeated(false); flyBackAnim.flipAllImage(); landingForwardAnim = CacheDataLoader.getInstance().getAnimation("landing"); landingBackAnim = CacheDataLoader.getInstance().getAnimation("landing"); landingBackAnim.flipAllImage(); climWallBack = CacheDataLoader.getInstance().getAnimation("clim_wall"); climWallForward = CacheDataLoader.getInstance().getAnimation("clim_wall"); climWallForward.flipAllImage(); behurtForwardAnim = CacheDataLoader.getInstance().getAnimation("hurting"); behurtBackAnim = CacheDataLoader.getInstance().getAnimation("hurting"); behurtBackAnim.flipAllImage(); idleShootingForwardAnim = CacheDataLoader.getInstance().getAnimation("idleshoot"); idleShootingBackAnim = CacheDataLoader.getInstance().getAnimation("idleshoot"); idleShootingBackAnim.flipAllImage(); runShootingForwarAnim = CacheDataLoader.getInstance().getAnimation("runshoot"); runShootingBackAnim = CacheDataLoader.getInstance().getAnimation("runshoot"); runShootingBackAnim.flipAllImage(); flyShootingForwardAnim = CacheDataLoader.getInstance().getAnimation("flyingupshoot"); flyShootingBackAnim = CacheDataLoader.getInstance().getAnimation("flyingupshoot"); flyShootingBackAnim.flipAllImage(); }
public DarkRaise(float x, float y, GameWorldState gameWorld) : base(x, y, 127, 89, 0, 30, gameWorld) { backAnim = CacheDataLoader.getInstance().getAnimation("darkraise"); forwardAnim = CacheDataLoader.getInstance().getAnimation("darkraise"); forwardAnim.flipAllImage(); startTimeToShoot = DateTime.Now; setTimeForNoBehurt(300000000); x1 = x - 100; x2 = x + 100; setSpeedX(1); setDamage(10); }
//private AudioClip shooting; public RobotR(float x, float y, GameWorldState gameWorld) : base(x, y, 127, 89, 0, 30, gameWorld) { backAnim = CacheDataLoader.getInstance().getAnimation("robotR"); forwardAnim = CacheDataLoader.getInstance().getAnimation("robotR"); forwardAnim.flipAllImage(); startTimeToShoot = DateTime.Now; setTimeForNoBehurt(300); setDamage(10); x1 = x - 100; x2 = x + 100; y1 = y - 50; y2 = y + 50; setSpeedX(1); setSpeedY(1); //shooting = CacheDataLoader.getInstance().getSound("robotRshooting"); }
public RobotRBullet(float x, float y, GameWorldState gameWorld) : base(x, y, 60, 30, 1.0f, 10, gameWorld) { forwardBulletAnim = CacheDataLoader.getInstance().getAnimation("robotRbullet"); backBulletAnim = CacheDataLoader.getInstance().getAnimation("robotRbullet"); backBulletAnim.flipAllImage(); }
public DarkRaiseBullet(float x, float y, GameWorldState gameWorld) : base(x, y, 30, 30, 1.0f, 10, gameWorld) { forwardBulletAnim = CacheDataLoader.getInstance().getAnimation("darkraisebullet"); backBulletAnim = CacheDataLoader.getInstance().getAnimation("darkraisebullet"); backBulletAnim.flipAllImage(); }
public YellowFlowerBullet(float x, float y, GameWorldState gameWorld) : base(x, y, 30, 30, 1.0f, 10, gameWorld) { forwardBulletAnim = CacheDataLoader.getInstance().getAnimation("yellow_flower_bullet"); backBulletAnim = CacheDataLoader.getInstance().getAnimation("yellow_flower_bullet"); backBulletAnim.flipAllImage(); }
public Camera(float x, float y, float widthView, float heightView, GameWorldState gameWorld) : base(x, y, gameWorld) { this.widthView = widthView; this.heightView = heightView; }
public BackgroundMap(float x, float y, GameWorldState gameWorld) : base(x, y, gameWorld) { map = CacheDataLoader.getInstance().getBackgroundMap(); tileSize = 30; }
public GameObject(float x, float y, GameWorldState gameWorld) { posX = x; posY = y; this.gameWorld = gameWorld; }
public Human(float x, float y, float width, float height, float mass, int blood, GameWorldState gameWorld) : base(x, y, width, height, mass, blood, gameWorld) { setState(MainState.ALIVE); }
public PhysicalMap(float x, float y, GameWorldState gameWorld) : base(x, y, gameWorld) { this.tileSize = 30; phys_map = CacheDataLoader.getInstance().getPhysicalMap(); }
public BlueFire(float x, float y, GameWorldState gameWorld) : base(x, y, 60, 30, 1.0f, 10, gameWorld) { forwardBulletAnim = CacheDataLoader.getInstance().getAnimation("bluefire"); backBulletAnim = CacheDataLoader.getInstance().getAnimation("bluefire"); backBulletAnim.flipAllImage(); }
public BulletManager(GameWorldState gameWorld) : base(gameWorld) { }
public Bullet(float x, float y, float width, float height, float mass, int damage, GameWorldState gameWorld) : base(x, y, width, height, mass, 1, gameWorld) { setDamage(damage); }
public ParticularObject(float x, float y, float width, float height, float mass, int blood, GameWorldState gameWorld) : base(x, y, gameWorld) { // posX and posY are the middle coordinate of the object setWidth(width); setHeight(height); setMass(mass); setBlood(blood); direction = MainDir.RIGHT_DIR; }
public ParticularObjectManager(GameWorldState gameWorld) { particularObjects = new List <ParticularObject>(); this.gameWorld = gameWorld; }