Exemplo n.º 1
0
 public GoriyaWalkSouth(Goriya goriya, GoriyaBoomerang boomerang)
 {
     this.goriya       = goriya;
     this.boomerang    = boomerang;
     goriya.initialY   = goriya.yPos;
     my_frame_index    = 0;
     delay_frame_index = 0;
 }
Exemplo n.º 2
0
 public GoriyaWalkEast(Goriya goriya, GoriyaBoomerang boomerang)
 {
     this.goriya       = goriya;
     this.boomerang    = boomerang;
     goriya.initialX   = goriya.xPos;
     my_frame_index    = 0;
     delay_frame_index = 0;
 }
Exemplo n.º 3
0
        public GoriyaDeath(Goriya goriya, GoriyaBoomerang boomerang)
        {
            this.goriya    = goriya;
            this.boomerang = boomerang;

            goriya.myGame.collisionManager.removeNPC(goriya);
            goriya.myGame.collisionManager.removeNPC(boomerang);
        }
Exemplo n.º 4
0
        public GoriyaKnockedSouth(Goriya goriya, GoriyaBoomerang boomerang)
        {
            this.goriya    = goriya;
            this.boomerang = boomerang;
            counter        = 0;

            goriya.initialX = goriya.xPos;
            goriya.initialY = goriya.yPos;
        }
        public GoriyaAttackSouth(Goriya goriya, GoriyaBoomerang boomerang)
        {
            this.goriya       = goriya;
            this.boomerang    = boomerang;
            my_frame_index    = 0;
            delay_frame_index = 0;

            boomerang.travelmarker = 0;
            boomerang.currentState = new BoomerangDown(boomerang, goriya.xPos, goriya.yPos, true);
        }
Exemplo n.º 6
0
        public BoomerangLeft(GoriyaBoomerang boomerang, float xPos, float yPos, bool start)
        {
            this.boomerang    = boomerang;
            my_frame_index    = 0;
            delay_frame_index = 0;

            starting = (int)xPos;

            boomerang.xPos  = xPos;
            boomerang.yPos  = yPos;
            boomerang.start = start;
        }
Exemplo n.º 7
0
        public Goriya(float xPos, float yPos, GoriyaBoomerang boomerang, Game1 game)
        {
            this.random = new System.Random();
            this.myGame = game;
            health      = 3;

            this.xPos     = xPos;
            this.initialX = xPos;
            this.yPos     = yPos;
            this.initialY = yPos;

            hitboxX = NpcTextureStorage.GORIYA_RIGHT_1.Width;
            hitboxY = NpcTextureStorage.GORIYA_RIGHT_1.Height;
            hitbox  = new Rectangle((int)xPos, (int)yPos, hitboxX, hitboxY);

            movementRNG = random.Next(1, 4);

            switch (movementRNG)
            {
            case 1:
                currentState = new GoriyaWalkSouth(this, boomerang);
                break;

            case 2:
                currentState = new GoriyaWalkNorth(this, boomerang);
                break;

            case 3:
                currentState = new GoriyaWalkWest(this, boomerang);
                break;

            case 4:
                currentState = new GoriyaWalkEast(this, boomerang);
                break;
            }
        }