Last change
on this file since 8177 was
8177,
checked in by anbueche, 13 years ago
|
added PortalEndPoint and PortalLink, billboard for endpoint implemented
|
-
Property svn:executable set to
*
|
File size:
996 bytes
|
Line | |
---|
1 | #include "PortalLink.h" |
---|
2 | #include "core/XMLPort.h" |
---|
3 | |
---|
4 | namespace orxonox |
---|
5 | { |
---|
6 | CreateFactory(PortalLink); |
---|
7 | |
---|
8 | PortalLink::PortalLink(BaseObject* creator) : BaseObject(creator), fromID_(0), toID_(0), from_(0), to_(0), activationRadius_(20) |
---|
9 | { |
---|
10 | RegisterObject(PortalLink); |
---|
11 | } |
---|
12 | |
---|
13 | PortalLink::~PortalLink() |
---|
14 | { |
---|
15 | } |
---|
16 | |
---|
17 | void PortalLink::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
---|
18 | { |
---|
19 | SUPER(PortalLink, XMLPort, xmlelement, mode); |
---|
20 | XMLPortParam(PortalLink, "fromID", setFromID, getFromID, xmlelement, mode); |
---|
21 | XMLPortParam(PortalLink, "toID", setToID, getToID, xmlelement, mode); |
---|
22 | |
---|
23 | if(mode == XMLPort::LoadObject) |
---|
24 | { |
---|
25 | this->from_ = PortalEndPoint::idMap_s[this->fromID_]; |
---|
26 | this->to_ = PortalEndPoint::idMap_s[this->toID_]; |
---|
27 | recentlyPorted.clear(); |
---|
28 | } |
---|
29 | } |
---|
30 | |
---|
31 | void PortalLink::use(WorldEntity * entity) |
---|
32 | { |
---|
33 | |
---|
34 | } |
---|
35 | void PortalLink::tick(float dt) |
---|
36 | { |
---|
37 | |
---|
38 | } |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.