#include <primitive_block.h>
Nevrax France
Definition at line 43 of file pacs/primitive_block.h.
Public Member Functions | |
CPrimitiveDesc () | |
void | serial (NLMISC::IStream &s) |
Data Fields | |
float | Attenuation |
UMovePrimitive::TCollisionMask | CollisionMask |
float | Height |
float | Length [2] |
bool | Obstacle |
UMovePrimitive::TCollisionMask | OcclusionMask |
float | Orientation |
NLMISC::CVector | Position |
UMovePrimitive::TReaction | Reaction |
UMovePrimitive::TTrigger | Trigger |
UMovePrimitive::TType | Type |
UMovePrimitive::TUserData | UserData |
|
Definition at line 37 of file primitive_block_pacs.cpp. References Attenuation, CollisionMask, Obstacle, OcclusionMask, Reaction, and Trigger.
00038 { 00039 Attenuation = 1; 00040 Type = UMovePrimitive::_2DOrientedBox; 00041 Reaction = UMovePrimitive::DoNothing; 00042 Trigger = UMovePrimitive::NotATrigger; 00043 Obstacle = true; 00044 OcclusionMask = 0xffffffff; 00045 CollisionMask = 0xffffffff; 00046 } |
|
Definition at line 50 of file primitive_block_pacs.cpp. References Attenuation, CollisionMask, Obstacle, OcclusionMask, Orientation, Reaction, s, sint, Trigger, and UserData.
00051 { 00052 // Serial the version 00053 sint ver = s.serialVersion (1); 00054 00055 s.xmlPush ("LENGTH"); 00056 s.serial (Length[0]); 00057 s.serial (Length[1]); 00058 s.xmlPop (); 00059 00060 s.xmlSerial (Height, "HEIGHT"); 00061 s.xmlSerial (Attenuation, "ATTENUATION"); 00062 00063 s.xmlPush ("TYPE"); 00064 s.serialEnum (Type); 00065 s.xmlPop (); 00066 00067 s.xmlPush ("REACTION"); 00068 s.serialEnum (Reaction); 00069 s.xmlPop (); 00070 00071 s.xmlPush ("TRIGGER"); 00072 s.serialEnum (Trigger); 00073 s.xmlPop (); 00074 00075 s.xmlSerial (Obstacle, "OBSTACLE"); 00076 s.xmlSerial (OcclusionMask, "OCCLUSION_MASK"); 00077 s.xmlSerial (CollisionMask, "COLLISION_MASK"); 00078 s.xmlSerial (Position, "POSITION"); 00079 s.xmlSerial (Orientation, "ORIENTATION"); 00080 00081 if (ver>=1) 00082 { 00083 s.xmlSerial (UserData, "USER_DATA"); 00084 } 00085 else 00086 { 00087 UserData = 0; 00088 } 00089 } |
|
Definition at line 58 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 76 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 55 of file pacs/primitive_block.h. |
|
Definition at line 52 of file pacs/primitive_block.h. |
|
Definition at line 70 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 73 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 82 of file pacs/primitive_block.h. Referenced by serial(). |
|
Definition at line 79 of file pacs/primitive_block.h. |
|
Definition at line 64 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 67 of file pacs/primitive_block.h. Referenced by CPrimitiveDesc(), and serial(). |
|
Definition at line 61 of file pacs/primitive_block.h. |
|
Definition at line 85 of file pacs/primitive_block.h. Referenced by serial(). |