#include <AnimatedRobot.h>

Public Member Functions | |
| AnimationSegment (BITMAP *image, WaveSound *sound, int newPan, int newPitch, int newVol) | |
| AnimationSegment (BITMAP *image) | |
| virtual | ~AnimationSegment () |
| BITMAP * | getImage () |
| void | playSound () |
Private Attributes | |
| WaveSound * | Sound |
| BITMAP * | Image |
| int | panning |
| int | pitch |
| int | volume |
Created on: Dec 12, 2008 Author: Erik
This class is for an animated robot sprite. It keeps track of its location and direction and the distance of each of its moves (speed). It is meant to cycle through animations that cover the distance that it is moving, and at the end of the move, the robot's position is updated. So the robot's position is just a square on a maze as opposed to a pixel location. This class is used for the lists of animations that are generated for the robot from different commands. It couples sounds that will be triggered at certain animations, so that the imagery and sounds are synced correctly
| AnimationSegment::AnimationSegment | ( | BITMAP * | image, | |
| WaveSound * | sound, | |||
| int | newPan, | |||
| int | newPitch, | |||
| int | newVol | |||
| ) | [inline] |
| AnimationSegment::AnimationSegment | ( | BITMAP * | image | ) | [inline] |
| virtual AnimationSegment::~AnimationSegment | ( | ) | [inline, virtual] |
| BITMAP* AnimationSegment::getImage | ( | ) | [inline] |
| void AnimationSegment::playSound | ( | ) | [inline] |
This sound is called when this segment is first reached
BITMAP* AnimationSegment::Image [private] |
int AnimationSegment::panning [private] |
int AnimationSegment::pitch [private] |
WaveSound* AnimationSegment::Sound [private] |
int AnimationSegment::volume [private] |
1.5.7.1