![]() |
Core Rules
WoTC AD&D 2nd Edition -- Drakein API Reference
|
#include <IPropertyOb.h>
Public Types | |
| enum | OwnerKind { Owner_None = 0 , Owner_Unknown = 1 , Owner_Family = 2 , Owner_Character = 3 , Owner_Party = 4 } |
| Discriminator for m_owner_id – what kind of catalog the owner-id indexes into. More... | |
Public Member Functions | |
| virtual | ~IPropertyOb () |
| virtual long | GetId () const =0 |
| virtual int | GetOwnerKind () const =0 |
| virtual long | GetOwnerId () const =0 |
| virtual const char * | GetOwnerName () const =0 |
| virtual bool | SetOwner (int kind, long id)=0 |
| Set kind + id together. | |
| virtual void | SetOwnerParty (const char *party_name)=0 |
| Set the owner as Party-by-name. | |
| virtual const char * | GetName () const =0 |
| virtual void | SetName (const char *v)=0 |
| virtual const char * | GetLocation () const =0 |
| virtual void | SetLocation (const char *v)=0 |
| virtual const IDateOb * | GetDateAcquired () const =0 |
| virtual IDateOb * | GetDateAcquired ()=0 |
| virtual void | SetDateAcquired (const IDateOb *v)=0 |
| virtual const IDateOb * | GetDateDisposed () const =0 |
| virtual IDateOb * | GetDateDisposed ()=0 |
| virtual void | SetDateDisposed (const IDateOb *v)=0 |
| virtual long long | GetPrice () const =0 |
| virtual bool | SetPrice (long long v)=0 |
| virtual const char * | GetDispositionMethod () const =0 |
| virtual void | SetDispositionMethod (const char *v)=0 |
| virtual bool | IsDirty () const =0 |
| virtual void | MarkClean ()=0 |
| virtual IPropertyOb * | Clone () const =0 |
Discriminator for m_owner_id – what kind of catalog the owner-id indexes into.
Property is single-source-of-truth for ownership (the property record carries the owner; owners don't carry property lists). See [[drakein-consolidated-sdk-file]] for the design rationale.
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Set kind + id together.
Used for None/Unknown (both fields zeroed/cleared) and Family/Character (id matters, name cleared). Passing Owner_Party here is a no-op for safety; use SetOwnerParty(name) instead.
|
pure virtual |
Set the owner as Party-by-name.
Stores the party name verbatim; zeroes owner_id. Pass a null or empty string to clear (collapses to Owner_None).
|
pure virtual |