Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // PURPOSE : Client side reresentation of the CCharacterHitBox object
- //
- // CREATED : 8/26/02
- //
- // (c) 2002 Monolith Productions, Inc. All Rights Reserved
- //
- // ----------------------------------------------------------------------- //
- #ifndef __HITBOX_H__
- #define __HITBOX_H__
- //
- // Includes...
- //
- class CHitBox
- {
- public: // Methods...
- CHitBox();
- ~CHitBox();
- virtual bool Init( HOBJECT hModel, const LTVector &vDims, const LTVector &vOffset );
- virtual void Update();
- virtual void SetDims( const LTVector &vDims );
- virtual void SetOffset( const LTVector &vOffset );
- virtual void SetCanBeSearched( bool bCanBeSearched );
- const LTVector& GetDims() const { return m_vDims; }
- const LTVector& GetOffset() const { return m_vOffset; }
- HOBJECT GetObject() const { return m_hObject; }
- protected: // Methods...
- void CreateBoundingBox(); // Testing puposes only!
- void UpdateBoundingBox(); // Testing puposes only!
- protected: // Members...
- HOBJECT m_hObject;
- HOBJECT m_hModel; // Object we are associated with
- LTVector m_vDims; // HitBox dimensions
- LTVector m_vOffset; // HitBox offset relative to the position and rotation of our model object
- HOBJECT m_hBoundingBox; // Testing puposes only! The visual model of the hitbox.
- };
- #endif // __HITBOX_H__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement