Package Hexel.things.types

Examples of Hexel.things.types.Player


            continue;
          }
        }
       
        if (thing instanceof Player){
          Player player = (Player)thing;
          player.hunger -= 1.0/(60*60*10);
          if (player.isDead() && engine.camera == player){
            LinearCamera fc = new LinearCamera(player.getCameraX(), player.getCameraY(), player.getCameraZ(), 0, 0,
                              0, 0, .01, 0, 0);
            engine.addThing(fc);
            engine.setCamera(fc);
          }
        }
View Full Code Here


          Set<Thing> things = ThingsFile.load();
          for (Thing thing : things){
            thing.thingBridge = engine.getThingBridge();
            //TODO thing bridge
            if (thing instanceof Player){
              Player player = (Player)thing;
              engine.setControllable(player);
              engine.setCamera(player);
            }
            engine.addThing(thing);
          }
View Full Code Here

            double x = 0;
            double y = 0;
            Vector2i tmp = new Vector2i();
            double z = Math.max(engine.chunks.chunkGenerator.tm.getHeightMapAt((int)x, (int)y, tmp)+16, 16);

            player = new Player(x, y, z, 0, 0, engine.getThingBridge());
            engine.setControllable(player);
            player.blockToPlace = BlockDebug.class;
            engine.setCamera(player);
            engine.addThing(player);
           
View Full Code Here

TOP

Related Classes of Hexel.things.types.Player

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.