Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jteg
Class Dice  view Dice download Dice.java

java.lang.Object
  extended byorg.zazof.jteg.Dice

public class Dice
extends java.lang.Object


Field Summary
private  boolean $active
           
private  int $horizontal
           
private  java.util.Vector $images
           
private  int $originX
           
private  int $originY
           
private  int $value
           
private  int $vertical
           
 
Constructor Summary
Dice(int originX, int originY, int horizontalNr, int verticalNr, java.lang.String location)
          Constructor of the CountryClass
 
Method Summary
 void activate()
          Activates the dice
 void deActivate()
          Deactivates the dice
 int getCurrentValue()
          Returns the name of the Country
 int getHorizontal()
          Returns the horizontal number of this dice
 java.awt.Image getImage()
          Returns the Imageobject that represents this country
 int getOriginX()
          Returns the x-coordinate of the origin of the dices
 int getOriginY()
          Returns the y-coordinate of the origin of the dices
 int getVertical()
          Returns the vertical number of this dice
 boolean isActive()
          Returns whether the dice is currently activated
 void setValue(int newValue)
          Set the value of the dice to this value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$value

private int $value

$active

private boolean $active

$images

private java.util.Vector $images

$originX

private int $originX

$originY

private int $originY

$horizontal

private int $horizontal

$vertical

private int $vertical
Constructor Detail

Dice

public Dice(int originX,
            int originY,
            int horizontalNr,
            int verticalNr,
            java.lang.String location)
Constructor of the CountryClass

Method Detail

getCurrentValue

public int getCurrentValue()
Returns the name of the Country


getImage

public java.awt.Image getImage()
Returns the Imageobject that represents this country


getVertical

public int getVertical()
Returns the vertical number of this dice


getHorizontal

public int getHorizontal()
Returns the horizontal number of this dice


getOriginX

public int getOriginX()
Returns the x-coordinate of the origin of the dices


getOriginY

public int getOriginY()
Returns the y-coordinate of the origin of the dices


isActive

public boolean isActive()
Returns whether the dice is currently activated


setValue

public void setValue(int newValue)
Set the value of the dice to this value


activate

public void activate()
Activates the dice


deActivate

public void deActivate()
Deactivates the dice