ScummVM API documentation
Saga2::SpecificActorTarget Class Reference
Inheritance diagram for Saga2::SpecificActorTarget:
Saga2::ActorTarget Saga2::ObjectTarget Saga2::Target

Public Member Functions

 SpecificActorTarget (Actor *actor_)
 
 SpecificActorTarget (Common::SeekableReadStream *stream)
 
int32 archiveSize () const
 
void write (Common::MemoryWriteStreamDynamic *out) const
 
int16 getType () const
 
size_t size () const
 
void clone (void *mem) const
 
bool operator== (const Target &t) const
 
bool isTarget (Actor *testActor) const
 
TilePoint where (GameWorld *world, const TilePoint &tp) const
 
int16 where (GameWorld *world, const TilePoint &tp, TargetLocationArray &tla) const
 
GameObject * object (GameWorld *world, const TilePoint &tp) const
 
int16 object (GameWorld *world, const TilePoint &tp, TargetObjectArray &toa) const
 
Actor * actor (GameWorld *world, const TilePoint &tp) const
 
int16 actor (GameWorld *world, const TilePoint &tp, TargetActorArray &taa) const
 
Actor * getTargetActor () const
 
- Public Member Functions inherited from Saga2::ActorTarget
bool isActorTarget () const
 
bool isTarget (GameObject *testObj) const
 
virtual bool isTarget (Actor *testActor) const =0
 
virtual Actor * actor (GameWorld *world, const TilePoint &tp) const
 
virtual int16 actor (GameWorld *world, const TilePoint &tp, TargetActorArray &taa) const
 
- Public Member Functions inherited from Saga2::ObjectTarget
bool isObjectTarget () const
 
TilePoint where (GameWorld *world, const TilePoint &tp) const
 
int16 where (GameWorld *world, const TilePoint &tp, TargetLocationArray &tla) const
 
virtual bool isTarget (GameObject *testObj) const =0
 
virtual GameObject * object (GameWorld *world, const TilePoint &tp) const
 
virtual int16 object (GameWorld *world, const TilePoint &tp, TargetObjectArray &toa) const
 
- Public Member Functions inherited from Saga2::Target
virtual int32 archiveSize () const =0
 
virtual void write (Common::MemoryWriteStreamDynamic *out) const =0
 
virtual int16 getType () const =0
 
virtual size_t size () const =0
 
virtual void clone (void *mem) const =0
 
virtual bool operator== (const Target &t) const =0
 
bool operator!= (const Target &t) const
 
void * operator new (size_t, void *p)
 
virtual bool isObjectTarget () const
 
virtual bool isActorTarget () const
 
virtual TilePoint where (GameWorld *world, const TilePoint &tp) const =0
 
virtual int16 where (GameWorld *world, const TilePoint &tp, TargetLocationArray &tla) const =0
 

Member Function Documentation

◆ archiveSize()

int32 Saga2::SpecificActorTarget::archiveSize ( ) const
virtual

Implements Saga2::Target.

◆ write()

void Saga2::SpecificActorTarget::write ( Common::MemoryWriteStreamDynamic *  out) const
virtual

Implements Saga2::Target.

◆ getType()

int16 Saga2::SpecificActorTarget::getType ( ) const
virtual

Implements Saga2::Target.

◆ size()

size_t Saga2::SpecificActorTarget::size ( ) const
virtual

Implements Saga2::Target.

◆ clone()

void Saga2::SpecificActorTarget::clone ( void *  mem) const
virtual

Implements Saga2::Target.

◆ operator==()

bool Saga2::SpecificActorTarget::operator== ( const Target &  t) const
virtual

Implements Saga2::Target.

◆ isTarget()

bool Saga2::SpecificActorTarget::isTarget ( Actor *  testActor) const
virtual

Implements Saga2::ActorTarget.

◆ where() [1/2]

TilePoint Saga2::SpecificActorTarget::where ( GameWorld *  world,
const TilePoint &  tp 
) const
virtual

Reimplemented from Saga2::ObjectTarget.

◆ where() [2/2]

int16 Saga2::SpecificActorTarget::where ( GameWorld *  world,
const TilePoint &  tp,
TargetLocationArray &  tla 
) const
virtual

Reimplemented from Saga2::ObjectTarget.

◆ object() [1/2]

GameObject * Saga2::SpecificActorTarget::object ( GameWorld *  world,
const TilePoint &  tp 
) const
virtual

Reimplemented from Saga2::ObjectTarget.

◆ object() [2/2]

int16 Saga2::SpecificActorTarget::object ( GameWorld *  world,
const TilePoint &  tp,
TargetObjectArray &  toa 
) const
virtual

Reimplemented from Saga2::ObjectTarget.

◆ actor() [1/2]

Actor * Saga2::SpecificActorTarget::actor ( GameWorld *  world,
const TilePoint &  tp 
) const
virtual

Reimplemented from Saga2::ActorTarget.

◆ actor() [2/2]

int16 Saga2::SpecificActorTarget::actor ( GameWorld *  world,
const TilePoint &  tp,
TargetActorArray &  taa 
) const
virtual

Reimplemented from Saga2::ActorTarget.


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