Copy constructor. The smngr_ and valParser pointers of both objects will point to the same object;
| void SlManipulation::manipulate |
( |
const std::string & |
name, |
|
|
unsigned int |
destination, |
|
|
const std::vector< std::string > & |
parameters |
|
) |
| |
|
virtual |
The actual sprite manipulation, implemented in the derived classes.
Reimplemented in SlRMmoveActiveBy, SlRMmoveBy, SlRMdeactivateIfInside, SlRMactivateIfInside, SlRMdeactivate, SlRMactivate, SlRMswapAt, SlRMtoggleOnOff, SlRMswapIn, SlRMmoveBefore, SlRMmoveAfter, SlSMsetAngle, SlRMinsertBefore, SlSMcolor, SlSMsetOrigin, SlRMinsertAfter, SlSMsetOptions, SlRMappend, SlSMcenterIn, SlSMcenterAt, SlRenderQueueManipulation, and SlSpriteManipulation.
| std::string SlManipulation::name |
( |
| ) |
|
|
inline |
Name can be read but not set. It is defined by the function that the derived class implements so that the correct derived class can be called based on a keyword.
Assignment. The smngr_ and valParser pointers of both objects will point to the same object;
| std::shared_ptr< SlSprite > SlManipulation::verifySprite |
( |
const std::string & |
name, |
|
|
unsigned int |
destination |
|
) |
| |
Checks the existence of the named sprite and the validity of the destinations.
- Return values
-
| sprite | of that name if name and destination valid. |
- Exceptions
-
| std::invalid_argument | if invalid name or destination. |
| std::string SlManipulation::name_ = "manipulation" |
|
protected |
Name of the object must be identical to the keyword used in the configuration file.
The SlSpriteManager that initialized this instance. Needed to find sprites.
Helper class to translate strings read from file into integers
The documentation for this class was generated from the following files: