30class ViewMaster :
public Listener
33 CLASS_PROTOTYPE( ViewMaster );
35 EntityPtr current_viewthing;
39 void Next(
Event *ev );
40 void Prev(
Event *ev );
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
55 Listener::Archive( arc );
57 arc.ArchiveSafePointer( ¤t_viewthing );
62class Viewthing :
public Animate
65 CLASS_PROTOTYPE( Viewthing );
71 byte origSurfaces[MAX_MODEL_SURFACES];
74 void UpdateCvars( qboolean quiet =
false );
75 void PrintTime(
Event *ev );
76 void ThinkEvent(
Event *ev );
77 void LastFrameEvent(
Event *ev );
78 void ToggleAnimateEvent(
Event *ev );
79 void SetModelEvent(
Event *ev );
80 void NextFrameEvent(
Event *ev );
81 void PrevFrameEvent(
Event *ev );
82 void NextAnimEvent(
Event *ev );
83 void PrevAnimEvent(
Event *ev );
84 void ScaleUpEvent(
Event *ev );
85 void ScaleDownEvent(
Event *ev );
86 void SetScaleEvent(
Event *ev );
87 void SetYawEvent(
Event *ev );
88 void SetPitchEvent(
Event *ev );
89 void SetRollEvent(
Event *ev );
90 void SetAnglesEvent(
Event *ev );
91 void AttachModel(
Event *ev );
92 void Delete(
Event *ev );
93 void DetachAll(
Event *ev );
94 void ChangeOrigin(
Event *ev );
95 void SaveSurfaces(
Event *ev );
96 void SetAnim(
Event *ev );
98 void Archive(
Archiver &arc )
override;
101inline void Viewthing::Archive
107 Animate::Archive( arc );
109 arc.ArchiveInteger( &animstate );
110 arc.ArchiveInteger( &frame );
111 arc.ArchiveInteger( &lastframe );
112 arc.ArchiveVector( &baseorigin );
113 arc.ArchiveRaw( origSurfaces,
sizeof( origSurfaces ) );
Definition listener.h:246
Definition viewthing.h:31