ScummVM API documentation
Ultima::Ultima8::GlobalStorage Class Referenceabstract

#include <global_storage.h>

Inheritance diagram for Ultima::Ultima8::GlobalStorage:
Ultima::Ultima8::BitSet Ultima::Ultima8::ByteSet

Public Member Functions

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

Detailed Description

Base class for globals that are accessed by the Usecode. In U8 this is a bitfield, in Crusader it's a byte array.

Member Function Documentation

◆ getEntries()

virtual uint32 Ultima::Ultima8::GlobalStorage::getEntries ( unsigned int  pos,
unsigned int  n 
) const
pure virtual

get a value

Parameters
poszero-based position
nnumber of entries to read
Returns
the value these entries represent

Implemented in Ultima::Ultima8::ByteSet, and Ultima::Ultima8::BitSet.

◆ setEntries()

virtual void Ultima::Ultima8::GlobalStorage::setEntries ( unsigned int  pos,
unsigned int  n,
uint32  val 
)
pure virtual

set a value

Parameters
poszero-based position
nnumber of entries (no greater than one uint32-worth)
valthe value to set

Implemented in Ultima::Ultima8::ByteSet, and Ultima::Ultima8::BitSet.


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