be.lassi.domain
Class LevelObject
java.lang.Object
be.lassi.base.SaveableObject
be.lassi.base.NamedObject
be.lassi.domain.LevelObject
- Direct Known Subclasses:
- Controlable, Dimmer
public class LevelObject
- extends NamedObject
Named wrapper arround Level
object.
Constructor Summary |
LevelObject(Dirty dirty,
int id,
java.lang.String name)
Constructs a new level object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LevelObject
public LevelObject(Dirty dirty,
int id,
java.lang.String name)
- Constructs a new level object.
- Parameters:
dirty
- the dirty indicator
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class NamedObject
getIntValue
public int getIntValue()
- Gets the integer level value.
- Returns:
- int the integer level value
getLevel
public Level getLevel()
- Gets the level.
- Returns:
- the level
getValue
public float getValue()
- Gets the level value.
- Returns:
- float the level value
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class NamedObject
setIntValue
public void setIntValue(int value)
- Sets the level value (integer value).
- Parameters:
value
- the level value to set
setValue
public void setValue(float value)
- Sets the level value.
- Parameters:
value
- the level value to set