StendhalAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
GuidedEntity: add some public methods
Line 304: Line 304:
* Class: {{StendhalFile|master|src/games/stendhal/server/entity/GuidedEntity.java|games.stendhal.server.entity.GuidedEntity}}
* Class: {{StendhalFile|master|src/games/stendhal/server/entity/GuidedEntity.java|games.stendhal.server.entity.GuidedEntity}}
* Inherits: [[StendhalAPI#ActiveEntity|ActiveEntity]]
* Inherits: [[StendhalAPI#ActiveEntity|ActiveEntity]]

'''Public methods:'''

{{PublicMethod | GuidedEntity | desc=Default constructor.}}

{{PublicMethod | GuidedEntity | params=object | descr=Copy Constructor. | paramlist=
{{MethodParam| object | type=RPObject | desc=Object to be copied. }} }}

{{PublicMethod | setBaseSpeed | params=bs | desc=Set entity's normal movement speed. | ret= | rettype= | paramlist=
{{MethodParam| bs | type=double | desc=New normal speed for moving.}} }}

{{PublicMethod | setPath | params=path | desc=Set a path for this entity to follow. | ret= | rettype= | paramlist=
{{MethodParam| path | type=FixedPath | desc=Path to follow.}} }}

{{PublicMethod | setPathAndPosition | params=path | desc=Set path & starting position for entity. | ret= | rettype= | paramlist=
{{MethodParam| path | type=FixedPath | desc=Path to follow.}} }}

{{PublicMethod | getBaseSpeed | params= | desc=Retreives entity's normal movement speed. | ret= | rettype=double | paramlist=}}


== RPEntity ==
== RPEntity ==