com.vwp.vuapi.objects
Class VUGroundObjectInfo

java.lang.Object
  extended by com.vwp.vuapi.util.VUInfo
      extended by com.vwp.vuapi.objects.VUObjectInfo
          extended by com.vwp.vuapi.objects.VUStandardObjectInfo
              extended by com.vwp.vuapi.objects.VUGroundObjectInfo

public class VUGroundObjectInfo
extends VUStandardObjectInfo

This class can be used to create a special object type for generating a ground within a world. Comparing to all other object types this one doesn't uses the members ID and previousID because there can be only one ground object exclusively within a world.


Field Summary
 double angleX
           
 double angleY
           
 double angleZ
           
 String command
           
 int ID
           
 int mode
           
 int previousID
           
static int VU_GROUND_MODE_COMPLEX_FIELDS
          mode flag: use a different 3d model for every ground tile
static int VU_GROUND_MODE_REPEATED_FIELD
          mode flag: use one single 3d model for the round and repeat it to get a closed surface
 double x
           
 double z
           
 
Fields inherited from class com.vwp.vuapi.objects.VUObjectInfo
y
 
Fields inherited from class com.vwp.vuapi.util.VUInfo
name
 
Constructor Summary
VUGroundObjectInfo(String FileURL, double y, int mode)
          This constructor can be used to create a new VUGroundObjectInfo object to build or replace the ground object within aworld
 
Method Summary
 void set(VUObjectInfo oi)
          This method sets the available values of the given VUInfo object, that means, memebers of the given parameter that are not -1 and not null are copied to the related members of this object
 
Methods inherited from class com.vwp.vuapi.objects.VUStandardObjectInfo
set
 
Methods inherited from class com.vwp.vuapi.util.VUInfo
set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VU_GROUND_MODE_COMPLEX_FIELDS

public static final int VU_GROUND_MODE_COMPLEX_FIELDS
mode flag: use a different 3d model for every ground tile

See Also:
Constant Field Values

VU_GROUND_MODE_REPEATED_FIELD

public static final int VU_GROUND_MODE_REPEATED_FIELD
mode flag: use one single 3d model for the round and repeat it to get a closed surface

See Also:
Constant Field Values

mode

public int mode

x

public double x

z

public double z

angleX

public double angleX

angleY

public double angleY

angleZ

public double angleZ

command

public String command

ID

public int ID

previousID

public int previousID
Constructor Detail

VUGroundObjectInfo

public VUGroundObjectInfo(String FileURL,
                          double y,
                          int mode)
This constructor can be used to create a new VUGroundObjectInfo object to build or replace the ground object within aworld

Parameters:
FileURL - the URL of the 3d model or the URL of the base name of the 3 models that has/have to be used as ground
y - the vertical position of the ground, this value normally will be 0
mode - the mode flag to define which kind of ground is used
Method Detail

set

public void set(VUObjectInfo oi)
Description copied from class: VUObjectInfo
This method sets the available values of the given VUInfo object, that means, memebers of the given parameter that are not -1 and not null are copied to the related members of this object

Overrides:
set in class VUObjectInfo
Parameters:
oi - the VUInfo object to copy the available members from