PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
MatrixAnimator Class Reference

Public Types

enum  MatrixAnimates {
  Nothing =-1, Idle =0, Run, JumpFloat,
  JumpFall, SpinJump, Sliding, Climbing,
  Fire, SitDown, Dig, GrabIdle,
  GrabRun, GrabJump, GrabSitDown, RacoonRun,
  RacoonFloat, RacoonFly, RacoonFlyDown, RacoonTail,
  Swim, SwimUp, OnYoshi, OnYoshiSit,
  PipeUpDown, PipeUpDownRear, SlopeSlide, TanookiStatue,
  SwordAttak, JumpSwordUp, JumpSwordDown, DownSwordAttak,
  Hurted
}
 

Public Member Functions

 MatrixAnimator (int _width, int _height)
 
 MatrixAnimator (const MatrixAnimator &a)
 
void setFrameSequance (QList< MatrixAnimatorFrame > _sequence)
 
void setFrameSpeed (int speed)
 
void setDirection (int _direction, bool force=false)
 
void setSize (int _width, int _height)
 
PGE_SizeF size ()
 
PGE_SizeF sizeOfFrame ()
 
void tickAnimation (float frametime)
 
PGE_RectF curFrame ()
 
PGE_PointF curOffset ()
 
MatrixAnimates curAnimation ()
 
int curFramespeed ()
 
void installAnimationSet (obj_player_calibration &calibration)
 
void playOnce (MatrixAnimates aniName, int _direction, int speed=-1, bool fixed_speed=false, bool locked=false, int skipLastFrames=0)
 
void unlock ()
 
void switchAnimation (MatrixAnimates aniName, int _direction, int speed=-1)
 
MatrixAnimates toEnum (QString aniName)
 

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