22#ifndef ULTIMA8_WORLD_TARGETRETICLEPROCESS_H
23#define ULTIMA8_WORLD_TARGETRETICLEPROCESS_H
25#include "ultima/ultima8/kernel/process.h"
26#include "ultima/ultima8/misc/classtype.h"
42 ENABLE_RUNTIME_CLASSTYPE()
52 bool loadData(
Common::ReadStream *rs, uint32 version);
55 void setEnabled(
bool val) {
56 _reticleEnabled = val;
58 bool getEnabled()
const {
59 return _reticleEnabled;
64 static TargetReticleProcess *get_instance() {
68 void toggleReticleStyle();
71 bool findTargetItem();
72 void putTargetReticleOnItem(Item *,
bool last_frame);
77 uint16 _reticleSpriteProcess;
78 Direction _lastTargetDir;
79 uint16 _lastTargetItem;
84 static TargetReticleProcess *_instance;
Definition: target_reticle_process.h:37
void run() override
Notify this process that the item we're targeting has moved.
void itemMoved(Item *item)
Avatar direction changed - force update of finding a new item next frame.
void saveData(Common::WriteStream *ws) override
save Process data
Definition: algorithm.h:29