Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2014, 2:49:16 PM (10 years ago)
Author:
smerkli
Message:

Merged modularships branch

Location:
code/branches/presentationFS14
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS14

  • code/branches/presentationFS14/src/orxonox/worldentities/WorldEntity.h

    r9667 r10073  
    7272    {
    7373        friend class Scene;
     74        friend class ModularSpaceShip;
    7475
    7576        public:
     
    206207
    207208            void notifyChildPropsChanged();
     209
     210            inline int getNumAttachedObj()
     211                { return this->children_.size(); }
    208212
    209213        protected:
     
    374378                Condition is that enableCollisionCallback() was called.
    375379            */
    376             virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     380            virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    377381                { return false; } /* With false, Bullet assumes no modification to the collision objects. */
    378382
     
    405409            */
    406410            virtual bool isCollisionTypeLegal(CollisionType type) const = 0;
     411
     412            inline virtual WorldEntityCollisionShape* getWorldEntityCollisionShape()
     413                { return this->collisionShape_; }
    407414
    408415            btRigidBody*  physicalBody_; //!< Bullet rigid body. Everything physical is applied to this instance.
Note: See TracChangeset for help on using the changeset viewer.