CGameAreaNotes Class
The structure used for this class is CGameAreaNotes
Quick Ref |
void CGameAreaNotes::CGameAreaNotes() |
void CGameAreaNotes::~CGameAreaNotes() |
void CGameAreaNotes::Add(CString area, unsigned short startX, unsigned short startY, CString szNote, unsigned long dwFlags, unsigned long strRef) |
void CGameAreaNotes::Add() |
int CGameAreaNotes::AddANote(CAreaUserNote* cNote) |
int CGameAreaNotes::AddButton(CPoint ptWorld) |
void CGameAreaNotes::AddPredefinedNote(unsigned long strref, unsigned long flags, CPoint cPoint, int bAddToEnd) |
int CGameAreaNotes::DeleteANote(unsigned long nButtonId) |
CAreaUserNote* CGameAreaNotes::GetNoteAt(CPoint& cPt) |
int CGameAreaNotes::GetNoteButtonColor(unsigned long iD) |
unsigned long CGameAreaNotes::GetNoteButtonText(unsigned long iD) |
void CGameAreaNotes::IntrnlInitialize() |
int CGameAreaNotes::IsANoteThere(CPoint& cPt) |
void CGameAreaNotes::Marshal(unsigned char**& pArea, unsigned long& cnt) |
void CGameAreaNotes::PushNoteToLua(CPoint ptWorld, CPoint ptScreen) |
void CGameAreaNotes::RemoveTextFromNote(unsigned long strref, CPoint cPoint) |
void CGameAreaNotes::Uninitialize() |
int CGameAreaNotes::UpdateButton(CPoint ptWorld, int nID) |
void CGameAreaNotes::UpdateButtonPositions() |
Constructors
Name |
Description |
Constructs a |
|
Destroys a |
CGameAreaNotes::CGameAreaNotes
Constructs a CGameAreaNotes object
void CGameAreaNotes::CGameAreaNotes();
Remarks
Constructs a CGameAreaNotes object
CGameAreaNotes::~CGameAreaNotes
Destroys the CGameAreaNotes object
void CGameAreaNotes::~CGameAreaNotes();
Remarks
Destroys the CGameAreaNotes object
Methods
Name |
Description |
Add notes to an area |
|
Add a note to area |
|
Add a note button |
|
Add a predefined note using a string reference from the tlk table |
|
Delete an existing note button |
|
Get note information at a specified coordinate |
|
Returns note color for a specified note button |
|
Returns note text for a specified note button |
|
Determines if a note exists at the specified coordinates |
|
Push a note at a specified world and screen location to the lua stack |
|
Remove text from an existing note |
|
Refresh and update note button |
|
Update note positions |
CGameAreaNotes::Add
Add notes to an area
void CGameAreaNotes::Add(
CString area,
unsigned short startX,
unsigned short startY,
CString szNote,
unsigned long dwFlags,
unsigned long strRef);
Parameters
CString area - map area name to add notes to
unsigned shortstartX - x coordinate to add note atunsigned shortstartY - y coordinate to add note atCString szNote - the text content of the note to add
unsigned longdwFlags - flagsunsigned longstrRef - string reference
Remarks
CGameAreaNotes::AddANote
Add a note to area
int CGameAreaNotes::AddANote(CAreaUserNote* cNote);
Parameters
CAreaUserNote* cNote - note structure to use for adding a note
Return Value
Returns int
Remarks
CGameAreaNotes::AddPredefinedNote
Add a predefined note using a string reference from the tlk table
void CGameAreaNotes::AddPredefinedNote(
unsigned long strref,
unsigned long flags,
CPoint cPoint,
int bAddToEnd);
Parameters
unsigned longstrref - string reference of existing note defined in tlk table to addunsigned longflags - flagsCPoint cPoint - x and y coordinates to add note at
intbAddToEnd - add note to end or beginning
Remarks
CGameAreaNotes::DeleteANote
Delete an existing note button
int CGameAreaNotes::DeleteANote(unsigned long nButtonId);
Parameters
unsigned longnButtonId - id of note button to delete
Return Value
Returns int
Remarks
CGameAreaNotes::GetNoteAt
Get note information at a specified coordinate
CAreaUserNote* CGameAreaNotes::GetNoteAt(CPoint& cPt);
Parameters
CPoint& cPt - x and y coordinates to return note at this location for
Return Value
Returns CAreaUserNote*
Remarks
CGameAreaNotes::IntrnlInitialize
void CGameAreaNotes::IntrnlInitialize();
Remarks
CGameAreaNotes::IsANoteThere
Determines if a note exists at the specified coordinates
int CGameAreaNotes::IsANoteThere(CPoint& cPt);
Parameters
CPoint& cPt - x and y coordinates to check if a note exists at
Return Value
Returns an int value representing 1 true, or 0 false
Remarks
CGameAreaNotes::Marshal
void CGameAreaNotes::Marshal(
unsigned char**& pArea,
unsigned long& cnt);
Parameters
unsigned char**& pArea - pointer to area
unsigned long& cnt - count
Remarks
CGameAreaNotes::PushNoteToLua
Push a note at a specified world and screen location to the lua stack
void CGameAreaNotes::PushNoteToLua(
CPoint ptWorld,
CPoint ptScreen);
Parameters
Remarks
CGameAreaNotes::RemoveTextFromNote
Remove text from an existing note
void CGameAreaNotes::RemoveTextFromNote(
unsigned long strref,
CPoint cPoint);
Parameters
unsigned longstrref - string reference to remove from noteCPoint cPoint - x and y coordinates of note button
Remarks
CGameAreaNotes::Uninitialize
void CGameAreaNotes::Uninitialize();
Remarks