Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        // 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");
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        //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();
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        //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");
        }
Exemplo n.º 8
0
 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();
 }
Exemplo n.º 9
0
 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();
 }
Exemplo n.º 10
0
 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();
 }
Exemplo n.º 11
0
 public Camera(float x, float y, float widthView, float heightView, GameWorldState gameWorld) : base(x, y, gameWorld)
 {
     this.widthView  = widthView;
     this.heightView = heightView;
 }
Exemplo n.º 12
0
 public BackgroundMap(float x, float y, GameWorldState gameWorld) : base(x, y, gameWorld)
 {
     map      = CacheDataLoader.getInstance().getBackgroundMap();
     tileSize = 30;
 }
Exemplo n.º 13
0
 public GameObject(float x, float y, GameWorldState gameWorld)
 {
     posX           = x;
     posY           = y;
     this.gameWorld = gameWorld;
 }
Exemplo n.º 14
0
 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);
 }
Exemplo n.º 15
0
 public PhysicalMap(float x, float y, GameWorldState gameWorld) : base(x, y, gameWorld)
 {
     this.tileSize = 30;
     phys_map      = CacheDataLoader.getInstance().getPhysicalMap();
 }
Exemplo n.º 16
0
 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();
 }
Exemplo n.º 17
0
 public BulletManager(GameWorldState gameWorld) : base(gameWorld)
 {
 }
Exemplo n.º 18
0
 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);
 }
Exemplo n.º 19
0
        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;
        }
Exemplo n.º 20
0
 public ParticularObjectManager(GameWorldState gameWorld)
 {
     particularObjects = new List <ParticularObject>();
     this.gameWorld    = gameWorld;
 }