ScummVM API documentation
Ultima::Nuvie::TossAnim Class Reference
Inheritance diagram for Ultima::Nuvie::TossAnim:
Ultima::Nuvie::TileAnim Ultima::Nuvie::NuvieAnim Ultima::Nuvie::CallBack

Public Member Functions

 TossAnim (const Tile *tile, const MapCoord &start, const MapCoord &stop, uint16 pixels_per_sec, uint8 stop_flags=0)
 
 TossAnim (Obj *obj, uint16 degrees, const MapCoord &start, const MapCoord &stop, uint16 pixels_per_sec, uint8 stop_flags=0)
 
void init (const Tile *tile, uint16 degrees, const MapCoord &start, const MapCoord &stop, uint16 pixels_per_sec, uint8 stop_flags)
 
void start () override
 
void stop () override
 
uint32 update_position (uint32 max_move=0)
 
void accumulate_moves (float moves, sint32 &x_move, sint32 &y_move, sint8 xdir, sint8 ydir)
 
virtual void hit_target ()
 
virtual void hit_object (Obj *obj)
 
virtual void hit_actor (Actor *actor)
 
virtual void hit_blocking (const MapCoord &obj_loc)
 
- Public Member Functions inherited from Ultima::Nuvie::TileAnim
void get_offset (uint32 &x_add, uint32 &y_add) const
 
sint32 get_tile_id (PositionedTile *find_tile)
 
void move (uint32 x, uint32 y, uint32 add_x=0, uint32 add_y=0) override
 
void shift (sint32 sx, sint32 sy) override
 
void shift_tile (uint32 ptile_num, sint32 sx, sint32 sy)
 
void move_tile (PositionedTile *ptile, uint32 x, uint32 y)
 
PositionedTileadd_tile (Tile *tile, sint16 x, sint16 y, uint16 add_x=0, uint16 add_y=0)
 
void remove_tile (uint32 i=0)
 
void remove_tile (PositionedTile *p_tile)
 
- Public Member Functions inherited from Ultima::Nuvie::NuvieAnim
void pause ()
 
void unpause ()
 
bool is_paused () const
 
uint32 get_id () const
 
void set_safe_to_delete (bool val)
 
void set_velocity (sint32 sx, sint32 sy)
 
void set_velocity_for_speed (sint16 xdir, sint16 ydir, uint32 spd)
 
uint16 message (uint16 msg, void *msg_data=nullptr, void *my_data=nullptr)
 
- Public Member Functions inherited from Ultima::Nuvie::CallBack
virtual uint16 callback (uint16 msg, CallBack *caller, void *data=nullptr)
 
uint16 message (uint16 msg, void *msg_data=nullptr, void *my_data=nullptr)
 
void set_user_data (void *user_data)
 
void set_target (CallBack *t)
 

Protected Member Functions

bool update () override
 
MapCoord get_location () override
 
void display () override
 
- Protected Member Functions inherited from Ultima::Nuvie::NuvieAnim
void update_position ()
 

Protected Attributes

ActorManageractor_manager
 
ObjManagerobj_manager
 
Mapmap
 
MapCoordsrc
 
MapCoordtarget
 
uint32 start_px
 
uint32 start_py
 
uint32 target_px
 
uint32 target_py
 
uint8 mapwindow_level
 
uint16 speed
 
Tiletoss_tile
 
uint8 blocking
 
uint8 tile_center
 
float tanS
 
sint16 old_relpos
 
float x_left
 
float y_left
 
uint16 x_dist
 
uint16 y_dist
 
- Protected Attributes inherited from Ultima::Nuvie::TileAnim
MapWindow_mapWindow
 
uint32 _tx
 
uint32 _ty
 
uint32 _px
 
uint32 _py
 
vector< PositionedTile * > _tiles
 
- Protected Attributes inherited from Ultima::Nuvie::NuvieAnim
AnimManageranim_manager
 
uint32 id_n
 
sint32 vel_x
 
sint32 vel_y
 
uint32 px
 
uint32 py
 
uint32 last_move_time
 
bool safe_to_delete
 
bool updated
 
bool running
 
bool paused
 
bool top_anim
 
- Protected Attributes inherited from Ultima::Nuvie::CallBack
char * callback_user_data
 
CallBackcallback_target
 

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