Oolite
Loading...
Searching...
No Matches
OOJSPlayer.h
Go to the documentation of this file.
1
/*
2
3
OOJSPlayer.h
4
5
JavaScript proxy for the player.
6
7
Oolite
8
Copyright (C) 2004-2013 Giles C Williams and contributors
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
MA 02110-1301, USA.
24
25
*/
26
27
#pragma once
28
29
#import "
PlayerEntity.h
"
30
#import <Foundation/Foundation.h>
31
#include <jsapi.h>
32
33
@class
PlayerEntity
;
34
35
void
InitOOJSPlayer
(JSContext* context, JSObject* global);
36
37
JSClass*
JSPlayerClass
(
void
);
38
JSObject*
JSPlayerPrototype
(
void
);
39
JSObject*
JSPlayerObject
(
void
);
40
41
/* All JS functions which talk to the player entity should call
42
OOOPlayerForScripting() to ensure that the script target (for the legacy
43
system) is set correctly. Additionally, all such functions should _always_
44
call OOPlayerForScripting(), even if they end up not using it, to ensure
45
consistent state.
46
*/
47
PlayerEntity
*
OOPlayerForScripting
(
void
);
JSPlayerClass
JSClass * JSPlayerClass(void)
Definition
OOJSPlayer.m:160
InitOOJSPlayer
void InitOOJSPlayer(JSContext *context, JSObject *global)
Definition
OOJSPlayer.m:151
JSPlayerObject
JSObject * JSPlayerObject(void)
Definition
OOJSPlayer.m:170
OOPlayerForScripting
PlayerEntity * OOPlayerForScripting(void)
Definition
OOJSPlayer.m:175
JSPlayerPrototype
JSObject * JSPlayerPrototype(void)
Definition
OOJSPlayer.m:165
PlayerEntity.h
PlayerEntity
Definition
PlayerEntity.h:340
src
Core
Scripting
OOJSPlayer.h
Generated by
1.15.0