StendhalAPI: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge →PassiveNPC: add public methods |
imported>AntumDeluge →NPC: add public members & methods |
||
| Line 410: | Line 410: | ||
* Class: {{StendhalFile|master|src/games/stendhal/server/entity/npc/NPC.java|games.stendhal.server.entity.npc.NPC}} ''(abstract)'' |
* Class: {{StendhalFile|master|src/games/stendhal/server/entity/npc/NPC.java|games.stendhal.server.entity.npc.NPC}} ''(abstract)'' |
||
* Inherits: [[StendhalAPI#DressedEntity|DressedEntity]] |
* Inherits: [[StendhalAPI#DressedEntity|DressedEntity]] |
||
'''Public Members:''' |
|||
{{PublicMember | pauseTurnsRemaining | desc=| type=int}} |
|||
'''Public Methods:''' |
|||
{{PublicMethod | NPC | params= | desc=Default constructor | ret=New instance. | rettype=[[StendhalAPI#NPC|NPC]] | paramlist=}} |
|||
{{PublicMethod | NPC | params=object | desc=Copy constructor. | ret=New instance. | rettype=[[StendhalAPI#NPC|NPC]] | paramlist= |
|||
{{MethodParam | object | type=[[MarauroaAPI#RPObject|RPObject]] | desc=Object to be copied.}} }} |
|||
{{PublicMethod | checkPause | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | getIdea | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | getMovementRange | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | getPerceptionRange | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | getSounds | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | moveRandomly | params= | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | say | params=text | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setIdea | params=idea | desc=Sets the NPC's idea/thought. | ret= | rettype= | paramlist= |
|||
{{MethodParam | idea | type=String | desc=The idea mnemonic, or <code>null</code>.}} }} |
|||
{{PublicMethod | setMovement | params=destEntity, min, max, maxPathRadius | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setMovementRange | params=movementRange | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setPathCompletedPause | params=pause[, dir] | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setPerceptionRange | params=perceptionRange | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setRandomPathFrom | params=x, y, distance | desc=TODO | ret= | rettype= | paramlist=}} |
|||
{{PublicMethod | setSounds | params=sounds | desc=TODO | ret= | rettype= | paramlist=}} |
|||
== PassiveNPC == |
== PassiveNPC == |
||