ExplodingCube.java :  » UnTagged » monolithandroid » org » teacake » monolith » apk » Android Open Source

Android Open Source » UnTagged » monolithandroid 
monolithandroid » org » teacake » monolith » apk » ExplodingCube.java
package org.teacake.monolith.apk;

public class ExplodingCube 
{

  public static final int EXPLOSION_TYPE_NORMAL=0;
  public static final int EXPLOSION_TYPE_SINGLE=1;
  public static final int EXPLOSION_TYPE_SPIRAL=2;
  public static final int EXPLOSION_TYPE_SPHERE=3;
  public ExplodingCube(float x,float y,float z,float ux,float uy, float uz, int blocktype,int frame)
  {
    
    this.x = x;
    this.y = y;
    this.z = z;
    this.ux = ux;
    this.uy = uy;
    this.uz = uz;
    this.blocktype = blocktype;
    this.frame = frame;
    this.anglex = 0.0f;
    this.angley = 0.0f;
    this.anglez = 0.0f;
    this.uax = 0.0f;
    this.uay = 0.0f;
    this.uaz = 0.0f;
    this.explosionType = EXPLOSION_TYPE_NORMAL;
    this.startTime = System.currentTimeMillis();
  }
  public ExplodingCube(float x,float y,float z,float ux,float uy, float uz, float anglex,float angley, float anglez, float uax, float uay, float uaz, int blocktype,int frame)
  {
    this.x = x;
    this.y = y;
    this.z = z;
    this.ux = ux;
    this.uy = uy;
    this.uz = uz;
    this.blocktype = blocktype;
    this.frame = frame;
    this.anglex = 0.0f;
    this.angley = 0.0f;
    this.anglez = 0.0f;
    this.uax = 0.0f;
    this.uay = 0.0f;
    this.uaz = 0.0f;    
  }
  public float x;
  public float y;
  public float z;
  public float ux;
  public float uy;
  public float uz;
  public float anglex; //rotation around x axis;
  public float angley; //rotation around y axis;
  public float anglez; //rotation around z axis;
  public float uax; //angular velocity around x
  public float uay; //angular velocity around y
  public float uaz; //angular velocity around z
  public int blocktype;
  public int frame;
  public int explosionType;
  public long startTime;
    
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.