AnimationSegment Class Reference
[Maze minigame]

#include <AnimatedRobot.h>

Collaboration diagram for AnimationSegment:

Collaboration graph
[legend]

List of all members.

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

WaveSoundSound
BITMAP * Image
int panning
int pitch
int volume


Detailed Description

AnimatedRobot.h

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


Constructor & Destructor Documentation

AnimationSegment::AnimationSegment ( BITMAP *  image,
WaveSound sound,
int  newPan,
int  newPitch,
int  newVol 
) [inline]

AnimationSegment::AnimationSegment ( BITMAP *  image  )  [inline]

virtual AnimationSegment::~AnimationSegment (  )  [inline, virtual]


Member Function Documentation

BITMAP* AnimationSegment::getImage (  )  [inline]

void AnimationSegment::playSound (  )  [inline]

This sound is called when this segment is first reached


Member Data Documentation

BITMAP* AnimationSegment::Image [private]

int AnimationSegment::pitch [private]

int AnimationSegment::volume [private]


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

Generated on Mon Mar 16 14:33:05 2009 for LearningGaming by  doxygen 1.5.7.1