00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef FLTOBJECT_H
00016 #define FLTOBJECT_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "fltBeadID.h"
00021
00022
00023
00024
00025
00026 class FltObject : public FltBeadID {
00027 public:
00028 FltObject(FltHeader *header);
00029
00030 enum Flags {
00031 F_no_daylight = 0x80000000,
00032 F_no_dusk = 0x40000000,
00033 F_no_night = 0x20000000,
00034 F_no_illuminate = 0x10000000,
00035 F_flat_shaded = 0x08000000,
00036 F_shadow_object = 0x04000000,
00037 };
00038
00039 unsigned int _flags;
00040 int _relative_priority;
00041 int _transparency;
00042 int _special_id1, _special_id2;
00043 int _significance;
00044
00045 protected:
00046 virtual bool extract_record(FltRecordReader &reader);
00047 virtual bool build_record(FltRecordWriter &writer) const;
00048
00049 public:
00050 virtual TypeHandle get_type() const {
00051 return get_class_type();
00052 }
00053 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00054 static TypeHandle get_class_type() {
00055 return _type_handle;
00056 }
00057 static void init_type() {
00058 FltBeadID::init_type();
00059 register_type(_type_handle, "FltObject",
00060 FltBeadID::get_class_type());
00061 }
00062
00063 private:
00064 static TypeHandle _type_handle;
00065 };
00066
00067 #endif
00068
00069