Package net.mdked.Jrachgame.world

Examples of net.mdked.Jrachgame.world.Entity


          imin = j;
        }
      }

      if (i != imin) {
        Entity temp = World.objecz.get(i);
        World.objecz.set(i, World.objecz.get(imin));
        World.objecz.set(imin, temp);
      }
    }
    //jivotnii
View Full Code Here


            imin = j;
          }
        }

        if (i != imin) {
          Entity temp = upRen.get(i);
          upRen.set(i, upRen.get(imin));
          upRen.set(imin, temp);
        }
      }
      for (int i = 0; i < downRen.size(); i++) {

        float min = downRen.get(i).y;
        int imin = i;
        for (int j = i; j < downRen.size(); j++) {

          if (downRen.get(j).y < min) {
            min = downRen.get(j).y;
            imin = j;
          }
        }

        if (i != imin) {
          Entity temp = downRen.get(i);
          downRen.set(i, downRen.get(imin));
          downRen.set(imin, temp);
        }
      }
    }
View Full Code Here

  public synchronized boolean checkCollison(Entity obj) {
    boolean ismouse = false
        , statObj = false, animal = false, anical = false, misile = false,
        player = false, misileget = false;
    Entity inittr = null ,tgt = null;

    Rectangle obj1r = new Rectangle(0,0,0,0), obj2r = new Rectangle(2,2,2,2);
    if (obj instanceof Player) {
      player = true;
      obj1r = playerC.getBounds();
View Full Code Here

TOP

Related Classes of net.mdked.Jrachgame.world.Entity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.