30class ViewMaster :
public Listener
33 CLASS_PROTOTYPE(ViewMaster);
35 EntityPtr current_viewthing;
41 void DeleteAll(
Event *ev);
42 void Spawn(
Event *ev);
43 void SetModelEvent(
Event *ev);
44 void PassEvent(
Event *ev);
46 void Archive(
Archiver& arc)
override;
49inline void ViewMaster::Archive(
Archiver& arc)
51 Listener::Archive(arc);
53 arc.ArchiveSafePointer(¤t_viewthing);
58class Viewthing :
public Animate
61 CLASS_PROTOTYPE(Viewthing);
67 byte origSurfaces[MAX_MODEL_SURFACES];
70 void UpdateCvars(qboolean quiet =
false);
71 void PrintTime(
Event *ev);
72 void ThinkEvent(
Event *ev);
73 void LastFrameEvent(
Event *ev);
74 void ToggleAnimateEvent(
Event *ev);
75 void SetModelEvent(
Event *ev);
76 void NextFrameEvent(
Event *ev);
77 void PrevFrameEvent(
Event *ev);
78 void NextAnimEvent(
Event *ev);
79 void PrevAnimEvent(
Event *ev);
80 void ScaleUpEvent(
Event *ev);
81 void ScaleDownEvent(
Event *ev);
82 void SetScaleEvent(
Event *ev);
83 void SetYawEvent(
Event *ev);
84 void SetPitchEvent(
Event *ev);
85 void SetRollEvent(
Event *ev);
86 void SetAnglesEvent(
Event *ev);
87 void AttachModel(
Event *ev);
88 void Delete(
Event *ev);
89 void DetachAll(
Event *ev);
90 void ChangeOrigin(
Event *ev);
91 void SaveSurfaces(
Event *ev);
92 void SetAnim(
Event *ev);
94 void Archive(
Archiver& arc)
override;
97inline void Viewthing::Archive(
Archiver& arc)
99 Animate::Archive(arc);
101 arc.ArchiveInteger(&animstate);
102 arc.ArchiveInteger(&frame);
103 arc.ArchiveInteger(&lastframe);
104 arc.ArchiveVector(&baseorigin);
105 arc.ArchiveRaw(origSurfaces,
sizeof(origSurfaces));
Definition listener.h:246
Definition viewthing.h:31