All pastes #1230668 Raw Edit

Unnamed

public text v1 · immutable
#1230668 ·published 2008-10-19 02:13 UTC
rendered paste body
//a class for each button
class Button {
    char* song; //the song associated with the button
    int *x, *y, *w, *h; //size of button
    char* text; //text on the button
    SDLKey* key; //the key that activates the button
    char* keyTex; //the text to be shown of which key to be pressed
    void draw(); //a function to draw the button
    void playSound(); //play the sound
    Button(char*, int, int, int, int, char*, SDLKey, char*); //constructor
    ~Button(); //destructor
};