Package soc.qase.state

Examples of soc.qase.state.Velocity


    if((bitmask & 0x0004) != 0) {
      x = Utils.shortValue(data, offset);
      y = Utils.shortValue(data, offset + 2);
      z = Utils.shortValue(data, offset + 4);
      offset = offset + 6;
      player.setVelocity(new Velocity((int)(0.125 * x), (int)(0.125 * y), (int)(0.125 * z)));
    }
    if((bitmask & 0x0008) != 0) {
      value = (int)data[offset];
      if(value < 0) value = value + 256;
      player.setMoveTime(value);
View Full Code Here


/*-------------------------------------------------------------------*/
  private void init()
  {
    // movement wrappers
    angles = new Angles(0, 0, 0);
    velocity = new Velocity(0, 0, 0);
    action = new Action(false, false, false);
    currentMove = new Move(angles, velocity, action, 0);
    previousMove = new Move(angles, velocity, action, 0);
    lastMove = new Move(angles, velocity, action, 0);

View Full Code Here

TOP

Related Classes of soc.qase.state.Velocity

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.