Home
last modified time | relevance | path

Searched refs:actorSize (Results 1 – 12 of 12) sorted by relevance

/dports/games/ufoai/ufoai-2.5-source/src/common/
H A Drouting.h60 #define RT_CONN_PX(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 0)) argument
61 #define RT_CONN_NX(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 1)) argument
62 #define RT_CONN_PY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 2)) argument
63 #define RT_CONN_NY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 3)) argument
65 #define RT_CONN_PX_PY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 4)) argument
66 #define RT_CONN_PX_NY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 7)) argument
67 #define RT_CONN_NX_PY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 6)) argument
68 #define RT_CONN_NX_NY(r, actorSize, x, y, z) (r.getConn(actorSize, x, y, z, 5)) argument
70 #define RT_STEPUP_PX(r, actorSize, x, y, z) (r.getStepup(actorSize, x, y, z, 0)) argument
71 #define RT_STEPUP_NX(r, actorSize, x, y, z) (r.getStepup(actorSize, x, y, z, 1)) argument
[all …]
H A Dgrid.cpp117 if (fx + size <= x || x + actorSize <= fx) in Grid_CheckForbidden()
119 if (fy + size <= y || y + actorSize <= fy) in Grid_CheckForbidden()
158 actorSizeEnum_t actorSize; member in Step
283 int toHeight = routing.getCeiling(actorSize, toPos) - routing.getFloor(actorSize, toPos); in checkWalkingDirections()
370 if (routing.getFloor(actorSize, toPos) < 0) { in checkWalkingDirections()
859 SizedPosToVec(pos, actorSize, vec); in Grid_PosToVec()
881 int x, y, z, actorSize, dir; in Grid_RecalcBoxRouting() local
884 for (actorSize = 1; actorSize <= ACTOR_MAX_SIZE; actorSize++) { in Grid_RecalcBoxRouting()
887 rBox.expandXY(actorSize - 1); in Grid_RecalcBoxRouting()
903 for (actorSize = 1; actorSize <= ACTOR_MAX_SIZE; actorSize++) { in Grid_RecalcBoxRouting()
[all …]
H A Drouting.cpp82 this->actorSize = actorSize; in RoutingData()
269 …if (routing.getCeiling(actorSize, pos) - routing.getFloor(actorSize, pos) >= PLAYER_STANDING_HEIGH… in RT_CanActorStandHere()
420 assert(actorSize > ACTOR_SIZE_INVALID && actorSize <= ACTOR_MAX_SIZE); in RT_CheckCell()
569 routing.setFilled(actorSize, x, y, cz + 1, z); in RT_CheckCell()
899 SizedPosToVec(from->cell, rtd->actorSize, start); in RT_FindOpening()
903 SizedPosToVec(pos, rtd->actorSize, end); in RT_FindOpening()
997 SizedPosToVec(pos, rtd->actorSize, end); in RT_MicroTrace()
1434 assert(actorSize > ACTOR_SIZE_INVALID && actorSize <= ACTOR_MAX_SIZE); in RT_UpdateConnectionColumn()
1447 if (ax < 0 || ax > PATHFINDING_WIDTH - actorSize || ay < 0 || y > PATHFINDING_WIDTH - actorSize) { in RT_UpdateConnectionColumn()
1589 routing.getFloor(actorSize, x, y, z), in RT_DebugPathDisplay()
[all …]
H A Dgrid.h47 void Grid_CalcPathing(const Routing &routing, const actorSizeEnum_t actorSize, pathing_t* path, con…
48 bool Grid_FindPath(const Routing &routing, const actorSizeEnum_t actorSize, pathing_t* path, const …
52 unsigned int Grid_Ceiling(const Routing &routing, const actorSizeEnum_t actorSize, const pos3_t pos…
53 int Grid_Floor(const Routing &routing, const actorSizeEnum_t actorSize, const pos3_t pos);
55 pos_t Grid_Fall(const Routing &routing, const actorSizeEnum_t actorSize, const pos3_t pos);
57 void Grid_PosToVec(const Routing &routing, const actorSizeEnum_t actorSize, const pos3_t pos, vec3_…
/dports/games/ufoai/ufoai-2.5-source/src/shared/
H A Dtypedefs.h250 routes[actorSize - 1].setFloor(x, y, z, val); in setFloor()
253 return routes[actorSize - 1].getFloor(pos); in getFloor()
256 return routes[actorSize - 1].getFloor(x, y, z); in getFloor()
260 routes[actorSize - 1].setCeiling(x, y, z, val); in setCeiling()
263 return routes[actorSize - 1].getCeiling(pos); in getCeiling()
266 return routes[actorSize - 1].getCeiling(x, y, z); in getCeiling()
279 routes[actorSize - 1].setConn(x, y, z, dir, val); in setConn()
309 setFloor(actorSize, x, y, z, other.getFloor(actorSize, x - sX, y - sY, z - sZ)); in copyPosData()
310 setCeiling(actorSize, x, y, z, other.getCeiling(actorSize, x - sX, y - sY, z - sZ)); in copyPosData()
313 setConn(actorSize, x, y, z, dir, other.getConn(actorSize, x - sX, y - sY, z - sZ, dir)); in copyPosData()
[all …]
/dports/games/ufoai/ufoai-2.5-source/src/tools/radiant/radiant/pathfinding/
H A DRoutingLumpLoader.cpp74 const int actorSize, const EDirection direction) in evaluateConnectionState() argument
81 route = RT_CONN_NY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
82 stepup = RT_STEPUP_NY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
85 route = RT_CONN_PX_NY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
89 route = RT_CONN_PX(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
90 stepup = RT_STEPUP_PX(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
93 route = RT_CONN_PX_PY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
97 route = RT_CONN_PY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
98 stepup = RT_STEPUP_PY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
101 route = RT_CONN_NX_PY(routing,actorSize,pos[0],pos[1],pos[2]); in evaluateConnectionState()
[all …]
/dports/games/ufoai/ufoai-2.5-source/src/tools/ufo2map/
H A Drouting.cpp49 const int actorSize = unitnum / PATHFINDING_HEIGHT / PATHFINDING_WIDTH / PATHFINDING_WIDTH; in CheckUnit() local
52 if (x > wpMaxs[0] - actorSize || y > wpMaxs[1] - actorSize in CheckUnit()
59 new_z = RT_CheckCell(&mapTiles, Nmap, actorSize + 1, x, y, z, nullptr); in CheckUnit()
91 const int actorSize = unitnum / numDirs / PATHFINDING_WIDTH / PATHFINDING_WIDTH; in CheckConnectionsThread() local
94 if (x > wpMaxs[0] - actorSize || y > wpMaxs[1] - actorSize in CheckConnectionsThread()
101 …Verb_Printf(VERB_EXTRA, "%i %i %i %i (%i, %i, %i) (%i, %i, %i)\n", x, y, dir, actorSize, wpMins[0]… in CheckConnectionsThread()
103 RT_UpdateConnectionColumn(&mapTiles, Nmap, actorSize + 1, x, y, dir, nullptr); in CheckConnectionsThread()
/dports/games/ufoai/ufoai-2.5-source/src/server/
H A Dsv_game.cpp565 static pos_t SV_GridFall (const int actorSize, const pos3_t pos) in SV_GridFall() argument
567 return Grid_Fall(sv->mapData.routing, actorSize, pos); in SV_GridFall()
575 static void SV_GridPosToVec (const int actorSize, const pos3_t pos, vec3_t vec) in SV_GridPosToVec() argument
577 Grid_PosToVec(sv->mapData.routing, actorSize, pos, vec); in SV_GridPosToVec()
580 static void SV_GridCalcPathing (actorSizeEnum_t actorSize, pathing_t* path, const pos3_t from, int … in SV_GridCalcPathing() argument
582 …Grid_CalcPathing(sv->mapData.routing, actorSize, path, from, distance, forbiddenList, forbiddenLis… in SV_GridCalcPathing()
585 static bool SV_CanActorStandHere (const int actorSize, const pos3_t pos) in SV_CanActorStandHere() argument
587 return RT_CanActorStandHere(sv->mapData.routing, actorSize, pos); in SV_CanActorStandHere()
/dports/games/ufoai/ufoai-2.5-source/src/game/
H A Dgame.h221 …void (IMPORT* GridCalcPathing) (actorSizeEnum_t actorSize, pathing_t* path, const pos3_t from, int…
226 pos_t (IMPORT* GridFall) (actorSizeEnum_t actorSize, const pos3_t pos);
227 void (IMPORT* GridPosToVec) (actorSizeEnum_t actorSize, const pos3_t pos, vec3_t vec);
229 bool (IMPORT* CanActorStandHere) (actorSizeEnum_t actorSize, const pos3_t pos);
H A Dg_client.h54 Edict* G_ClientGetFreeSpawnPointForActorSize(const Player &player, const actorSizeEnum_t actorSize);
H A Dg_client.cpp1044 Edict* G_ClientGetFreeSpawnPointForActorSize (const Player &player, const actorSizeEnum_t actorSize) in G_ClientGetFreeSpawnPointForActorSize() argument
1048 if (actorSize == ACTOR_SIZE_NORMAL) { in G_ClientGetFreeSpawnPointForActorSize()
1057 } else if (actorSize == ACTOR_SIZE_2x2) { in G_ClientGetFreeSpawnPointForActorSize()
1070 actorSize); in G_ClientGetFreeSpawnPointForActorSize()
1078 ent->chr.fieldSize = actorSize; in G_ClientGetFreeSpawnPointForActorSize()
/dports/games/ufoai/ufoai-2.5-source/src/client/battlescape/
H A Dcl_actor.cpp1890 actorSizeEnum_t actorSize = ACTOR_SIZE_NORMAL; in CL_AddTargetingBox() local
1892 actorSize = mouseActor->fieldSize; in CL_AddTargetingBox()
1934 actorSize = selActor->fieldSize; in CL_AddTargetingBox()
1943 if (actorSize > ACTOR_SIZE_NORMAL) { in CL_AddTargetingBox()
1944 vec_t inc = UNIT_SIZE * (actorSize - 1); in CL_AddTargetingBox()
2279 const actorSizeEnum_t actorSize = ACTOR_SIZE_NORMAL; in CL_DebugPath_f() local
2289 RT_DebugSpecial(cl.mapTiles, cl.mapData->routing, actorSize, x, y, dir, cl.leInlineModelList); in CL_DebugPath_f()
2291 …bool found = Grid_FindPath(cl.mapData->routing, actorSize, &cl.pathMap, selActor->pos, mousePos, 0… in CL_DebugPath_f()
2302 RT_DebugPathDisplay(cl.mapData->routing, actorSize, x, y, z); in CL_DebugPath_f()