28 #ifndef GAME_NOTE_BOOK_H 29 #define GAME_NOTE_BOOK_H 31 #include "hpl1/engine/engine.h" 33 #include "hpl1/penumbra-overture/GameTypes.h" 42 #define eNotebookState_Front 0 43 #define eNotebookState_TaskList 1 44 #define eNotebookState_NoteList 2 45 #define eNotebookState_Note 3 83 mpNotebook = apNotebook;
86 virtual void OnMouseDown(eMButton aButton) {}
88 virtual void OnDraw() {}
90 virtual void OnExit() {}
113 void OnEnterState(
int alLastState);
114 void OnLeaveState(
int alNextState);
116 void OnUpdate(
float afTime);
120 void OnMouseDown(eMButton aButton);
147 void OnEnterState(
int alLastState);
148 void OnLeaveState(
int alNextState);
150 void OnUpdate(
float afTime);
154 void OnMouseDown(eMButton aButton);
177 void OnEnterState(
int alLastState);
178 void OnLeaveState(
int alNextState);
180 void OnUpdate(
float afTime);
182 void OnMouseDown(eMButton aButton);
189 int mlMaxNotesPerPage;
215 void OnEnterState(
int alLastState);
216 void OnLeaveState(
int alNextState);
218 void OnUpdate(
float afTime);
220 void OnMouseDown(eMButton aButton);
269 void Update(
float afTimeStep);
273 void SetMousePos(
const cVector2f &avPos);
274 void AddMousePos(
const cVector2f &avRel);
275 cVector2f GetMousePos() {
return mvMousePos; }
277 void OnMouseDown(eMButton aButton);
278 void OnMouseUp(eMButton aButton);
282 void SetActive(
bool abX);
283 bool IsActive() {
return mbActive; }
285 float GetAlpha() {
return mfAlpha; }
287 void SetBookType(eNotebookType aType);
288 eNotebookType GetBookType() {
return mBookType; }
292 void RemoveNote(
const tString &asName);
293 int GetNoteNum() {
return (
int)mlstNotes.size(); }
297 void RemoveTask(
const tString &asName);
298 int GetTaskNum() {
return (
int)mlstTasks.size(); }
301 void SetSelectedNote(
cNotebook_Note *apNote) { mpSelectedNote = apNote; }
323 eNotebookType mBookType;
325 eCrossHairState mLastCrossHairState;
327 bool mbInventoryWasActive;
337 #endif // GAME_NOTE_BOOK_H Definition: Notebook.h:241
Definition: Notebook.h:56
Definition: Notebook.h:135
Definition: Notebook.h:109
Definition: font_data.h:67
Definition: StateMachine.h:77
Definition: Notebook.h:79
Definition: Notebook.h:211
Definition: GraphicsDrawer.h:77
Definition: Notebook.h:205
Definition: SystemTypes.h:411
Definition: GfxObject.h:38
Definition: Updateable.h:35
Definition: SaveHandler.h:80
Definition: Notebook.h:250
Definition: list_intern.h:51
Definition: Notebook.h:99
Definition: StateMachine.h:41
Definition: Notebook.h:173
Definition: Notebook.h:263
Definition: Notebook.h:143