aboutsummaryrefslogtreecommitdiff
path: root/cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date')
-rw-r--r--cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?rev=1.2&content-type=text/x-cvsweb-markup&sortby=date/index.html129
1 files changed, 129 insertions, 0 deletions
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 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
+<HEAD><style> A { color:black }</style>
+<!-- hennerik CVSweb $Revision: 1.93 $ -->
+<TITLE>code/nel/samples/pacs/object.h - view - 1.2</TITLE></HEAD>
+<BODY BGCOLOR="#eeeeee">
+<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="object.h?sortby=date"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="object.h?sortby=date">object.h</A>
+ CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?sortby=date">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=date">code</a> / <a href="/cvs/cvsweb.cgi/code/nel/?sortby=date">nel</a> / <a href="/cvs/cvsweb.cgi/code/nel/samples/?sortby=date">samples</a> / <a href="/cvs/cvsweb.cgi/code/nel/samples/pacs/?sortby=date">pacs</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?sortby=date">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=date">code</a> / <a href="/cvs/cvsweb.cgi/code/nel/?sortby=date">nel</a> / <a href="/cvs/cvsweb.cgi/code/nel/samples/?sortby=date">samples</a> / <a href="/cvs/cvsweb.cgi/code/nel/samples/pacs/?sortby=date">pacs</a> / <a href="/cvs/cvsweb.cgi/code/nel/samples/pacs/object.h?sortby=date">object.h</a>&nbsp;(<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nel/samples/pacs/object.h?rev=1.2&amp;sortby=date" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nel/samples/pacs/object.h?rev=1.2','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR>
+Revision <B>1.2</B>, <i>Wed Feb 20 18:07:14 2002 UTC</i> (5 months ago) by <i>lecroart</i>
+<BR>Branch: <b>MAIN</b>
+<BR>CVS Tags: <b>georges_v2, HEAD</b><BR>Changes since <b>1.1: +2 -2
+ lines</b><PRE>
+#FIXED: doxygen warning
+</PRE>
+</td></tr></table><HR noshade><PRE>/** \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 &quot;nel/misc/types_nl.h&quot;
+#include &quot;nel/misc/vector.h&quot;
+#include &quot;nel/misc/vectord.h&quot;
+#include &quot;nel/pacs/u_move_primitive.h&quot;
+#include &quot;nel/pacs/u_global_position.h&quot;
+
+// 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:
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Box constructor
+ &nbsp; &nbsp; &nbsp; &nbsp;CObjectDyn (double width, double depth, double height, double orientation, const NLMISC::CVectorD&amp; pos,
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const NLMISC::CVectorD&amp; speed, bool obstacle, NLPACS::UMoveContainer &amp;container, NL3D::UScene &amp;scene,
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NLPACS::UMovePrimitive::TReaction reaction, uint8 worldImage, uint8 nbImage, uint8 insertWorldImage);
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Cylinder constructor
+ &nbsp; &nbsp; &nbsp; &nbsp;CObjectDyn (double radius, double height, const NLMISC::CVectorD&amp; pos, const NLMISC::CVectorD&amp; speed,
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bool obstacle, NLPACS::UMoveContainer &amp;container, NL3D::UScene &amp;scene,
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NLPACS::UMovePrimitive::TReaction reaction, uint8 worldImage, uint8 nbImage, uint8 insertWorldImage);
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Set position
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;setPos (const NLMISC::CVectorD&amp; pos);
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;setGlobalPos (NLPACS::UGlobalPosition&amp; gpos, NLMISC::CVectorD&amp; pos, uint8 worldimage);
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Set position
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp;setSpeed (const NLMISC::CVectorD&amp; speed);
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Set position
+ &nbsp; &nbsp; &nbsp; &nbsp;const NLMISC::CVectorD&amp; &nbsp; &nbsp; &nbsp; &nbsp;getPos () const
+ &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return _Position;
+ &nbsp; &nbsp; &nbsp; &nbsp;}
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Set position
+ &nbsp; &nbsp; &nbsp; &nbsp;const NLMISC::CVectorD&amp; &nbsp; &nbsp; &nbsp; &nbsp;getSpeed () const
+ &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return _Speed;
+ &nbsp; &nbsp; &nbsp; &nbsp;}
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Simulate
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tryMove (double deltaTime, NLPACS::UMoveContainer &amp;container, uint8 worldImage);
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;doMove (double deltaTime, uint8 worldImage);
+
+ &nbsp; &nbsp; &nbsp; &nbsp;/// Remove object from container
+ &nbsp; &nbsp; &nbsp; &nbsp;void &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;remove (NLPACS::UMoveContainer &amp;container, NL3D::UScene &amp;scene);
+
+private:
+
+ &nbsp; &nbsp; &nbsp; &nbsp;bool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_TryMove;
+ &nbsp; &nbsp; &nbsp; &nbsp;NLMISC::CVectorD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_Position;
+ &nbsp; &nbsp; &nbsp; &nbsp;NLMISC::CVectorD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_TryPosition;
+ &nbsp; &nbsp; &nbsp; &nbsp;NLMISC::CVectorD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_Speed;
+ &nbsp; &nbsp; &nbsp; &nbsp;NLPACS::UMovePrimitive &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*_MovePrimitive;
+ &nbsp; &nbsp; &nbsp; &nbsp;NL3D::UInstance &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*_Instance;
+};
+
+
+#endif // NL_OBJECT_H
+
+/* End of object.h */
+</PRE> \ No newline at end of file