SDL2lazy
Public Member Functions | Public Attributes | List of all members
SlEventAction Class Reference

#include <SlEventHandler.h>

Collaboration diagram for SlEventAction:
Collaboration graph
[legend]

Public Member Functions

void act (std::vector< std::string > additionalParams)
 

Public Attributes

SlManipulation * manipulation = nullptr
 
std::string name = ""
 
int destination = 0
 
std::vector< std::string > parameters
 

Detailed Description

This describes a single action that will be taken as a result of an input.

Member Function Documentation

void SlEventAction::act ( std::vector< std::string >  additionalParams)

Calls the SlManipulation

Member Data Documentation

int SlEventAction::destination = 0

The sprite's destination. Warning: have to think of something if one SlEventAction changes the destination number.

SlManipulation* SlEventAction::manipulation = nullptr

The manipulation object that handles the action.

std::string SlEventAction::name = ""

The sprite on which the manipulation will act.

std::vector<std::string> SlEventAction::parameters

The parameters with which the SlManipulation is called.


The documentation for this class was generated from the following files: