mirror of https://github.com/axmolengine/axmol.git
remove the workaround cast
This commit is contained in:
parent
a71367a7de
commit
3f62a87ef7
|
@ -71,11 +71,6 @@ PhysicsContact* PhysicsContact::construct(PhysicsShape* a, PhysicsShape* b)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
PhysicsContact* PhysicsContact::cast(EventCustom* event) {
|
|
||||||
PhysicsContact* contact = static_cast<PhysicsContact*>(event);
|
|
||||||
return contact;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PhysicsContact::init(PhysicsShape* a, PhysicsShape* b)
|
bool PhysicsContact::init(PhysicsShape* a, PhysicsShape* b)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
|
|
@ -87,8 +87,6 @@ public:
|
||||||
/** get the event code */
|
/** get the event code */
|
||||||
EventCode getEventCode() const { return _eventCode; };
|
EventCode getEventCode() const { return _eventCode; };
|
||||||
|
|
||||||
static PhysicsContact* cast(EventCustom* event);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static PhysicsContact* construct(PhysicsShape* a, PhysicsShape* b);
|
static PhysicsContact* construct(PhysicsShape* a, PhysicsShape* b);
|
||||||
bool init(PhysicsShape* a, PhysicsShape* b);
|
bool init(PhysicsShape* a, PhysicsShape* b);
|
||||||
|
|
Loading…
Reference in New Issue