StendhalAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
RPEntity: add some public methods
imported>AntumDeluge
RPEntity: add some public methods
Line 383: Line 383:
{{PublicMethod | RPEntity | params=object | desc=Copy constructor. | ret= | rettype= | paramlist=
{{PublicMethod | RPEntity | params=object | desc=Copy constructor. | ret= | rettype= | paramlist=
{{MethodParam | object | type=RPObject | desc=Object to be copied.}} }}
{{MethodParam | object | type=RPObject | desc=Object to be copied.}} }}

{{PublicMethod | setName | params=name | desc=Sets the entity's name attribute. | ret= | rettype= | paramlist=
{{MethodParam | name | type=String | desc=String to be used as name.}} }}

{{PublicMethod | setLevel | params=level | desc=Sets the entity's level. | ret= | rettype= | paramlist=
{{MethodParam | level | type=int | desc=}} }}

{{PublicMethod | addKarma | params=karma | desc=Adds good or bad karma (players only). | ret= | rettype= | paramlist=
{{MethodParam | karma | type=double | desc=Amount to be added (negative amount represents "bad" karma).}} }}

{{PublicMethod | getLevel | params= | desc=Retrieves the entity's current level. | ret= | rettype=int | paramlist=}}

{{PublicMethod | getKarma | params= | desc=Retrieves current karma level. | ret= | rettype=double | paramlist=}}


'''Static public methods:'''
'''Static public methods:'''