From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../x-cvsweb-markup&sortby=date/index.html | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date/index.html (limited to 'cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date') diff --git a/cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date/index.html b/cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date/index.html new file mode 100644 index 00000000..641c72eb --- /dev/null +++ b/cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date/index.html @@ -0,0 +1,129 @@ + + + +code/nel/samples/pacs/object.h - view - 1.2 + +
[BACK] Return to object.h + CVS log [TXT][DIR] Up to Nevrax / code / nel / samples / pacs

File: Nevrax / code / nel / samples / pacs / object.h (download)
+Revision 1.2, Wed Feb 20 18:07:14 2002 UTC (5 months ago) by lecroart +
Branch: MAIN +
CVS Tags: georges_v2, HEAD
Changes since 1.1: +2 -2 + lines
+#FIXED: doxygen warning
+
+

/** \file net_layer5/object.h
+ * Objects for the sample. Link between 3d instance and collision primitives.
+ *
+ * $Id: object.h,v 1.2 2002/02/20 18:07:14 lecroart Exp $
+ */
+
+/* Copyright, 2001 Nevrax Ltd.
+ *
+ * This file is part of NEVRAX NEL.
+ * NEVRAX NEL is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+
+ * NEVRAX NEL is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with NEVRAX NEL; see the file COPYING. If not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
+#ifndef NL_OBJECT_H
+#define NL_OBJECT_H
+
+#include "nel/misc/types_nl.h"
+#include "nel/misc/vector.h"
+#include "nel/misc/vectord.h"
+#include "nel/pacs/u_move_primitive.h"
+#include "nel/pacs/u_global_position.h"
+
+// External classes
+
+namespace NLNET
+{
+class CPacsClient;
+};
+
+namespace NLPACS
+{
+class UMoveContainer;
+class UMovePrimitive;
+class UGlobalPosition;
+};
+
+namespace NL3D
+{
+class UScene;
+class UInstance;
+};
+
+/**
+ * object for the test
+ *
+ * \author Cyril 'Hulud' Corvazier
+ * \author Nevrax France
+ * \date 2001
+ */
+class CObjectDyn
+{
+public:
+
+        /// Box constructor
+        CObjectDyn (double width, double depth, double height, double orientation, const NLMISC::CVectorD& pos,
+                const NLMISC::CVectorD& speed, bool obstacle, NLPACS::UMoveContainer &container, NL3D::UScene &scene, 
+                NLPACS::UMovePrimitive::TReaction reaction, uint8 worldImage, uint8 nbImage, uint8 insertWorldImage);
+
+        /// Cylinder constructor
+        CObjectDyn (double radius, double height, const NLMISC::CVectorD& pos, const NLMISC::CVectorD& speed, 
+                bool obstacle, NLPACS::UMoveContainer &container, NL3D::UScene &scene, 
+                NLPACS::UMovePrimitive::TReaction reaction, uint8 worldImage, uint8 nbImage, uint8 insertWorldImage);
+
+        /// Set position
+        void                        setPos (const NLMISC::CVectorD& pos);
+        void                        setGlobalPos (NLPACS::UGlobalPosition& gpos, NLMISC::CVectorD& pos, uint8 worldimage);
+
+        /// Set position
+        void        setSpeed (const NLMISC::CVectorD& speed);
+
+        /// Set position
+        const NLMISC::CVectorD&        getPos () const
+        {
+                return _Position;
+        }
+
+        /// Set position
+        const NLMISC::CVectorD&        getSpeed () const
+        {
+                return _Speed;
+        }
+
+        /// Simulate
+        void                        tryMove (double deltaTime, NLPACS::UMoveContainer &container, uint8 worldImage);
+        void                        doMove (double deltaTime, uint8 worldImage);
+
+        /// Remove object from container
+        void                        remove (NLPACS::UMoveContainer &container, NL3D::UScene &scene);
+
+private:
+
+        bool                                                _TryMove;
+        NLMISC::CVectorD                        _Position;
+        NLMISC::CVectorD                        _TryPosition;
+        NLMISC::CVectorD                        _Speed;
+        NLPACS::UMovePrimitive                *_MovePrimitive;
+        NL3D::UInstance                                *_Instance;
+};
+
+
+#endif // NL_OBJECT_H
+
+/* End of object.h */
+
\ No newline at end of file -- cgit v1.2.1