Class PuzzleBuildingBlock
java.lang.Object
games.stendhal.server.entity.mapstuff.puzzle.PuzzleBuildingBlock
a puzzle building block
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionPuzzleBuildingBlock(String zoneName, String name, PuzzleEntity entity) creates a PuzzleBuildingBlock -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineProperty(String variable, String expression) defines a propertygets the value of a property<T> Tgets the value of a propertygets a list of dependencies that this entity needs to listen togetName()gets the name of building blockgets the name of the zonevoidlistens to input change eventsvoidsets the name of a property
-
Constructor Details
-
PuzzleBuildingBlock
creates a PuzzleBuildingBlock- Parameters:
zoneName- name of zonename- unique name of entity in zoneentity- Entity
-
-
Method Details
-
defineProperty
defines a property- Parameters:
variable- name of propertyexpression- expression
-
put
sets the name of a property- Parameters:
variable- name of propertyvalue- value of property
-
get
gets the value of a property- Parameters:
variable- name of property- Returns:
- value of property
-
get
gets the value of a property- Parameters:
variable- name of propertyclazz- class to cast the value to- Returns:
- value of property
-
getZoneName
gets the name of the zone- Returns:
- zone
-
getName
gets the name of building block- Returns:
- name
-
onInputChanged
public void onInputChanged()listens to input change events -
getDependencies
gets a list of dependencies that this entity needs to listen to- Returns:
- list of dependencies
-