Class PuzzleBuildingBlock
java.lang.Object
games.stendhal.server.entity.mapstuff.puzzle.PuzzleBuildingBlock
a puzzle building block
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionPuzzleBuildingBlock(String zoneName, String name, PuzzleEntity entity)
creates a PuzzleBuildingBlock -
Method Summary
Modifier and TypeMethodDescriptionvoid
defineProperty(String variable, String expression)
defines a propertygets the value of a property<T> T
gets 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 zonevoid
listens to input change eventsvoid
sets 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
-