#include <swfsprit.h>
Inheritance diagram for FlashSprite:
Public Member Functions | |
FlashSprite () | |
Default constructor. Ensure that all the variables are set to values that won't cause problems. | |
~FlashSprite () | |
Default destructor. | |
FlashSprite * | GetNext (void) |
Gets a pointer to the next item in the list. | |
void | SetNext (FlashSprite *pNext) |
Sets mpNext (the pointer to the next item in the list) to the FlashSprite pointed to by pNext. | |
FlashSprite * | AddNext (void) |
Creates a new item, adds it to the list after this node, and returns a pointer to this item. | |
void | SetID (WORD ID) |
Sets mID. | |
WORD | GetID (void) |
Returns the ID of the object to be placed. | |
void | SetName (const TCHAR *pName) |
Sets mName. | |
TCHAR * | GetName (void) |
Returns the name of the button. | |
void | SetLayer (LayerState Layer) |
Sets mLayer. | |
LayerState | GetLayer (void) |
Returns the LayerState of the button. | |
BOOL | IsAMatch (const TCHAR *pName, LayerState State) |
If the state and name values match, then the object data which these were related to forms part of this button record, and thus should be incorporated into it. | |
void | SetPlace (FlashPlaceObject *pPlace) |
Sets mpPlace, which is the head of a linked list of FlashPlaceObject records. | |
void | SetTail (FlashPlaceObject *pPlace) |
Sets the value of PlaceTail to be pPlace, so that the list of objects can be extended. | |
FlashPlaceObject * | GetPlace (void) |
Gets a pointer to the head of a FlashPlaceObject list. | |
Private Attributes | |
WORD | mID |
String_256 | mName |
LayerState | mLayer |
FlashSprite * | mpNext |
FlashPlaceObject * | mpPlace |
FlashPlaceObject * | mpPlaceTail |
Definition at line 115 of file swfsprit.h.
|
Default constructor. Ensure that all the variables are set to values that won't cause problems.
Definition at line 116 of file swfsprit.cpp. 00117 { 00118 // Generate initial settings. 00119 mpNext = NULL; 00120 mpPlace = NULL; 00121 mpPlaceTail = NULL; 00122 mID = 0; 00123 mLayer = NO_BUTTON; 00124 mName.Empty (); 00125 }
|
|
Default destructor.
Definition at line 139 of file swfsprit.cpp. 00140 { 00141 // Delete the list of FlashPlaceObject records. 00142 while ( mpPlace != NULL ) 00143 { 00144 FlashPlaceObject *pLast = mpPlace; 00145 mpPlace = mpPlace->GetNext (); 00146 delete pLast; 00147 } 00148 00149 // Reset the other pointers. 00150 mpPlaceTail = NULL; 00151 mpNext = NULL; 00152 }
|
|
Creates a new item, adds it to the list after this node, and returns a pointer to this item.
Definition at line 202 of file swfsprit.cpp. 00203 { 00204 // Do a recursive call: If there is a next object, call the AddNext function within this, 00205 // and attempt to create the new object there. 00206 if ( mpNext != NULL ) 00207 { 00208 return mpNext->AddNext (); 00209 } 00210 else 00211 { 00212 mpNext = new FlashSprite; 00213 return mpNext; 00214 } 00215 }
|
|
Returns the ID of the object to be placed.
Definition at line 246 of file swfsprit.cpp. 00247 { 00248 return mID; 00249 }
|
|
Returns the LayerState of the button.
Definition at line 314 of file swfsprit.cpp. 00315 { 00316 return mLayer; 00317 }
|
|
Returns the name of the button.
Definition at line 280 of file swfsprit.cpp.
|
|
Gets a pointer to the next item in the list.
Definition at line 166 of file swfsprit.cpp. 00167 { 00168 return mpNext; 00169 }
|
|
Gets a pointer to the head of a FlashPlaceObject list.
Definition at line 355 of file swfsprit.cpp. 00356 { 00357 return mpPlace; 00358 }
|
|
If the state and name values match, then the object data which these were related to forms part of this button record, and thus should be incorporated into it.
Definition at line 334 of file swfsprit.cpp. 00336 { 00337 if ( mName.IsIdentical ( pName ) && State == mLayer ) 00338 return TRUE; 00339 else 00340 return FALSE; 00341 }
|
|
Sets mID.
Definition at line 229 of file swfsprit.cpp.
|
|
Sets mLayer.
Definition at line 297 of file swfsprit.cpp.
|
|
Sets mName.
Definition at line 263 of file swfsprit.cpp. 00264 { 00265 mName = pName; 00266 }
|
|
Sets mpNext (the pointer to the next item in the list) to the FlashSprite pointed to by pNext.
Definition at line 184 of file swfsprit.cpp. 00185 { 00186 mpNext = pNext; 00187 }
|
|
Sets mpPlace, which is the head of a linked list of FlashPlaceObject records.
Definition at line 373 of file swfsprit.cpp. 00374 { 00375 mpPlaceTail = mpPlace = pPlace; 00376 }
|
|
Sets the value of PlaceTail to be pPlace, so that the list of objects can be extended.
Definition at line 391 of file swfsprit.cpp. 00392 { 00393 // Check to see whether or not there is a pointer first. If not, create a new record. 00394 if ( mpPlaceTail != NULL ) 00395 { 00396 mpPlaceTail->SetNext ( pPlace ); 00397 mpPlaceTail = pPlace; 00398 } 00399 else 00400 SetPlace ( pPlace ); 00401 }
|
|
Definition at line 143 of file swfsprit.h. |
|
Definition at line 145 of file swfsprit.h. |
|
Definition at line 144 of file swfsprit.h. |
|
Definition at line 146 of file swfsprit.h. |
|
Definition at line 147 of file swfsprit.h. |
|
Definition at line 148 of file swfsprit.h. |