Micropolis
SimSprite Class Reference

#include <micropolis.h>

Public Attributes

SimSpritenext
 Pointer to next SimSprite object in the list.
 
std::string name
 Name of the sprite.
 
int type
 Type of the sprite (TRA – BUS).
 
int frame
 Frame (0 means non-active sprite)
 
int x
 X coordinate of the sprite in pixels?
 
int y
 Y coordinate of the sprite in pixels?
 
int width
 
int height
 
int xOffset
 
int yOffset
 
int xHot
 Offset of the hot-spot relative to SimSprite::x?
 
int yHot
 Offset of the hot-spot relative to SimSprite::y?
 
int origX
 
int origY
 
int destX
 Destination X coordinate of the sprite.
 
int destY
 Destination Y coordinate of the sprite.
 
int count
 
int soundCount
 
int dir
 
int newDir
 
int step
 
int flag
 
int control
 
int turn
 
int accel
 
int speed
 

Detailed Description

Sprite in the simulator.

Todo:
SimSprite::name is never set to anything else than "", and only used to detect a non-removed non-active sprite (in a non-robust way).

Definition at line 884 of file micropolis.h.

Member Data Documentation

◆ accel

int SimSprite::accel

Definition at line 912 of file micropolis.h.

◆ control

int SimSprite::control

Definition at line 910 of file micropolis.h.

◆ count

int SimSprite::count

Definition at line 904 of file micropolis.h.

◆ destX

◆ destY

◆ dir

int SimSprite::dir

Definition at line 906 of file micropolis.h.

◆ flag

int SimSprite::flag

Definition at line 909 of file micropolis.h.

◆ frame

◆ height

int SimSprite::height

Definition at line 895 of file micropolis.h.

◆ name

std::string SimSprite::name

Name of the sprite.

Definition at line 889 of file micropolis.h.

Referenced by Micropolis::moveObjects(), and Micropolis::newSprite().

◆ newDir

int SimSprite::newDir

Definition at line 907 of file micropolis.h.

◆ next

◆ origX

int SimSprite::origX

Definition at line 900 of file micropolis.h.

◆ origY

int SimSprite::origY

Definition at line 901 of file micropolis.h.

◆ soundCount

int SimSprite::soundCount

Definition at line 905 of file micropolis.h.

◆ speed

int SimSprite::speed

Definition at line 913 of file micropolis.h.

◆ step

int SimSprite::step

Definition at line 908 of file micropolis.h.

◆ turn

int SimSprite::turn

Definition at line 911 of file micropolis.h.

◆ type

◆ width

int SimSprite::width

Definition at line 894 of file micropolis.h.

◆ x

◆ xHot

◆ xOffset

int SimSprite::xOffset

Definition at line 896 of file micropolis.h.

◆ y

◆ yHot

◆ yOffset

int SimSprite::yOffset

Definition at line 897 of file micropolis.h.


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