ScummVM API documentation
CGE2::Hero Class Reference
Inheritance diagram for CGE2::Hero:
CGE2::Sprite

Public Types

enum  Dir {
  kNoDir = -1, kSS, kWW, kNN,
  kEE
}
 

Public Member Functions

 Hero (CGE2Engine *vm)
 
void tick () override
 
Spriteexpand () override
 
Spritecontract () override
 
SpritesetContact ()
 
int stepSize ()
 
int distance (V3D pos)
 
int distance (Sprite *spr)
 
void turn (Dir d)
 
void park ()
 
int len (V2D v)
 
bool findWay ()
 
void walkTo (V3D pos)
 
void walkTo (V2D pos)
 
V3D screenToGround (V2D pos)
 
void walkTo (Sprite *spr)
 
void say ()
 
void fun ()
 
void resetFun ()
 
void hStep ()
 
bool lower (Sprite *spr)
 
int cross (const V2D &a, const V2D &b)
 
int mapCross (const V2D &a, const V2D &b)
 
int mapCross (const V3D &a, const V3D &b)
 
Heroother ()
 
Action action ()
 
void reach (int mode)
 
void setCurrent ()
 
void setScene (int c) override
 
void operator++ ()
 
void operator-- ()
 
- Public Member Functions inherited from CGE2::Sprite
bool works (Sprite *spr)
 
bool seqTest (int n)
 
bool active ()
 
 Sprite (CGE2Engine *vm)
 
 Sprite (CGE2Engine *vm, BitmapPtr shp, int cnt)
 
BitmapPtr getShp ()
 
void setShapeList (BitmapPtr shp, int cnt)
 
void moveShapesHi ()
 
void moveShapesLo ()
 
int labVal (Action snq, int lab)
 
void backShow ()
 
void setName (char *newName)
 
char * name ()
 
void gotoxyz (int x, int y, int z=0)
 
void gotoxyz ()
 
void gotoxyz (V2D pos)
 
void gotoxyz_ (V2D pos)
 
void gotoxyz (V3D pos)
 
void center ()
 
void show (uint16 pg)
 
void hide (uint16 pg)
 
void show ()
 
void hide ()
 
BitmapPtr ghost ()
 
void step (int nr=-1)
 
SeqsetSeq (Seq *seq)
 
CommandHandler::CommandsnList (Action type)
 
virtual void touch (uint16 mask, V2D pos)
 
void clrHide ()
 
void sync (Common::Serializer &s)
 

Static Public Member Functions

static int snap (int p, int q, int grid)
 

Public Attributes

BitmapPtr _dim [kDimMax]
 
V3D _trace [kWayMax]
 
enum CGE2::Hero::Dir _dir
 
int _curDim
 
int _tracePtr
 
int _reachStart
 
int _reachCycle
 
int _sayStart
 
int _funStart
 
int _funDel0
 
int _funDel
 
int _maxDist
 
bool _ignoreMap
 
- Public Attributes inherited from CGE2::Sprite
int _ref
 
signed char _scene
 
struct CGE2::Sprite::Flags _flags
 
V2D _pos2D
 
V3D _pos3D
 
V2D _siz
 
uint16 _time
 
struct {
   byte   _ptr
 
   byte   _cnt
 
_actionCtrl [kActions]
 
int _seqPtr
 
int _seqCnt
 
int _shpCnt
 
char _file [kMaxFile]
 
Sprite_prev
 
Sprite_next
 

Additional Inherited Members

- Static Public Attributes inherited from CGE2::Sprite
static byte _constY
 
static byte _follow
 
static Seq _stdSeq8 []
 
static void(* notify )()
 
- Protected Attributes inherited from CGE2::Sprite
SprExt_ext
 
CGE2Engine_vm
 

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