ScummVM API documentation
Ultima::Ultima0::PlayerInfo Struct Reference

#include <data.h>

Public Member Functions

void init ()
 
void rollAttributes ()
 
void synchronize (Common::Serializer &s)
 
Direction dungeonDir () const
 
void setDungeonDir (Direction newDir)
 
void dungeonTurnLeft ()
 
void dungeonTurnRight ()
 

Public Attributes

char _name [MAX_NAME+1] = {}
 
Common::Point _worldPos
 
Common::Point _dungeonPos
 
Common::Point _dungeonDir
 
byte _class = '?'
 
int _hpGain = 0
 
int _level = 0
 
int _skill = 0
 
int _task = 0
 
bool _taskCompleted = 0
 
uint32 _luckyNumber = 0
 
int _attr [MAX_ATTR] = {}
 
double _object [MAX_OBJ] = {}
 

Detailed Description

Player structure

Member Function Documentation

◆ dungeonDir()

Direction Ultima::Ultima0::PlayerInfo::dungeonDir ( ) const

Return the dungeon facing direction

◆ setDungeonDir()

void Ultima::Ultima0::PlayerInfo::setDungeonDir ( Direction  newDir)

Sets the dungeon direction

◆ dungeonTurnLeft()

void Ultima::Ultima0::PlayerInfo::dungeonTurnLeft ( )

Turn left in the dungeon

◆ dungeonTurnRight()

void Ultima::Ultima0::PlayerInfo::dungeonTurnRight ( )

Turn right in the dungeon


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