ScummVM API documentation
Ultima::Ultima8::ByteSet Class Reference
Inheritance diagram for Ultima::Ultima8::ByteSet:
Ultima::Ultima8::GlobalStorage

Public Member Functions

 ByteSet (unsigned int size)
 
void setSize (unsigned int size) override
 
uint32 getEntries (unsigned int pos, unsigned int n) const override
 
void setEntries (unsigned int pos, unsigned int n, uint32 val) override
 
void save (Common::WriteStream *ws) override
 
bool load (Common::ReadStream *rs, uint32 version) override
 

Member Function Documentation

◆ setSize()

void Ultima::Ultima8::ByteSet::setSize ( unsigned int  size)
overridevirtual

set the size. The old value is cleared

Parameters
sizethe new size (in bytes)

Implements Ultima::Ultima8::GlobalStorage.

◆ getEntries()

uint32 Ultima::Ultima8::ByteSet::getEntries ( unsigned int  pos,
unsigned int  n 
) const
overridevirtual

get a value

Parameters
poszero-based position (in bytes:)
nnumber of bytes (no greater than 2)
Returns
the value these bytes represent

Implements Ultima::Ultima8::GlobalStorage.

◆ setEntries()

void Ultima::Ultima8::ByteSet::setEntries ( unsigned int  pos,
unsigned int  n,
uint32  val 
)
overridevirtual

set a value

Parameters
poszero-based position (in bytes)
nnumber of bytes (no greater than 2)
valthe value to set

Implements Ultima::Ultima8::GlobalStorage.


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