Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Private Attributes | List of all members
Actor Class Reference

#include <actor.h>

Public Member Functions

 Actor (int _x, int _y, char _sprite, Uint32 col)
 
int get_x ()
 
int get_y ()
 
char get_char ()
 
Uint32 get_color ()
 

Private Attributes

int x
 
int y
 
char sprite
 
Uint32 color
 

Detailed Description

A basic actor in an animation scene!

Constructor & Destructor Documentation

Actor::Actor ( int  _x,
int  _y,
char  _sprite,
Uint32  col 
)

Constructor for the actor.

Member Function Documentation

int Actor::get_x ( )

Basic accessors.

Member Data Documentation

Uint32 Actor::color
private

The color of the actor. Whoa, that sounds a little racey.

char Actor::sprite
private

The sprite of the animation...wait...this is a char! Hurray for implicit conversions. Note: change this to an int.

int Actor::x
private

The x coordinate of the actor (relative to the coords of the animation).

int Actor::y
private

The y coordinate of the actor (relative to the coords of the animation).


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