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

Public Member Functions

 BitSet (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 bits) override
 
void save (Common::WriteStream *ws) override
 
bool load (Common::ReadStream *rs, uint32 version) override
 

Member Function Documentation

◆ setSize()

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

set the size. The old value is cleared

Parameters
sizethe new size (in bits)

Implements Ultima::Ultima8::GlobalStorage.

◆ getEntries()

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

get a value

Parameters
poszero-based position (in bits)
nnumber of bits (no greater than 32)
Returns
the value these bits represent

Implements Ultima::Ultima8::GlobalStorage.

◆ setEntries()

void Ultima::Ultima8::BitSet::setEntries ( unsigned int  pos,
unsigned int  n,
uint32  bits 
)
overridevirtual

set a value

Parameters
poszero-based position (in bits)
nnumber of bits (no greater than 32)
bitsthe value to set

Implements Ultima::Ultima8::GlobalStorage.


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