Skip to content

Commit

Permalink
path: Add TODOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Apr 13, 2024
1 parent 6dabba6 commit 0b8c551
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libopenage/pathfinding/integration_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ void IntegrationField::integrate_cost(const std::shared_ptr<CostField> &cost_fie
// Set the cost of all target cells to the start value
this->cells[target_idx].cost = INTEGRATED_COST_START;
start_cells.push_back(target_idx);

// TODO: Transfer flags and cost from the other integration field
}
}

Expand Down
3 changes: 3 additions & 0 deletions libopenage/pathfinding/integrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class Integrator {
const std::shared_ptr<IntegrationField> &other_integration_field,
sector_id_t other_sector_id,
const std::shared_ptr<Portal> &portal);

private:
// TODO: Cache created flow fields.
};

} // namespace path
Expand Down
2 changes: 2 additions & 0 deletions libopenage/pathfinding/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace openage::path {
/**
* Movement cost in the cost field.
*
* TODO: Cost stamps
*
* 0: uninitialized
* 1-254: normal cost
* 255: impassable
Expand Down

0 comments on commit 0b8c551

Please sign in to comment.