22 #ifndef SCUMM_HE_MOONBASE_AI_TRAVELER_H 23 #define SCUMM_HE_MOONBASE_AI_TRAVELER_H 25 #include "scumm/he/moonbase/ai_node.h" 29 const int NUM_TO_GEN = 9;
31 const int NUM_POWER_STEPS = 3;
32 const double SIZE_POWER_STEP = .15;
33 const int SIZE_ANGLE_STEP = 45;
34 const int VARIATION_EXTENT = 3;
35 const int DIRECTION_WEIGHT = 5;
39 static int _targetPosX;
40 static int _targetPosY;
44 static int _sizeAngleStep;
63 float calcH()
override;
72 static void setTargetPosX(
int posX) { _targetPosX = posX; }
73 static void setTargetPosY(
int posY) { _targetPosY = posY; }
74 static void setMaxDist(
int maxDist) { _maxDist = maxDist; }
76 void setSourceHub(
int sourceHub) { _sourceHub = sourceHub; }
78 void setPosX(
int posX) { _posX = posX; }
79 void setPosY(
int posY) { _posY = posY; }
80 void setAngleTo(
int angleTo) { _angleTo = angleTo; }
81 void setPowerTo(
int powerTo) { _powerTo = powerTo; }
83 void setWaterSourceX(
int waterSourceX) { _waterSourceX = waterSourceX; }
84 void setWaterSourceY(
int waterSourceY) { _waterSourceY = waterSourceY; }
86 void setWaterDestX(
int waterDestX) { _waterDestX = waterDestX; }
87 void setWaterDestY(
int waterDestY) { _waterDestY = waterDestY; }
89 int getSourceHub()
const {
return _sourceHub; }
91 int getPosX()
const {
return _posX; }
92 int getPosY()
const {
return _posY; }
93 int getAngleTo()
const {
return _angleTo; }
94 int getPowerTo()
const {
return _powerTo; }
96 int getWaterSourceX()
const {
return _waterSourceX; }
97 int getWaterSourceY()
const {
return _waterSourceY; }
98 int getWaterDestX()
const {
return _waterDestX; }
99 int getWaterDestY()
const {
return _waterDestY; }
101 void setDisabled() { _disabled = 1; }
102 void unsetDisabled() { _disabled = 0; }
103 int getDisabled() {
return _disabled; }
105 void adjustPosX(
int offsetX);
106 void adjustPosY(
int offsetY);
107 void adjustXY(
int offsetX,
int offsetY);
109 void enableWaterFlag() { _waterFlag = 1; }
110 void disableWaterFlag() { _waterFlag = 0; }
111 int getWaterFlag()
const {
return _waterFlag; }
113 int numChildrenToGen()
override;
116 int checkSuccess()
override;
117 float calcT()
override;
Definition: ai_traveller.h:37