Put * on the "uglier but more obvious" side of variable names.

This commit is contained in:
2024-05-24 01:12:48 +02:00
parent 91ec7cc507
commit d0c5119d52
2 changed files with 14 additions and 14 deletions

View File

@@ -23,14 +23,14 @@ private:
NodeState state;
int x, y;
Node* parent;
Node *parent;
int distanceFromStart;
int distanceToEnd;
int distanceToEndForClosest;
Node(int x, int y);
void init(Node* parent, int distanceFromStart, const Vector2i &end);
void init(Node *parent, int distanceFromStart, const Vector2i &end);
int total_cost() const;
public:
@@ -59,8 +59,8 @@ private:
Vector2i _trans;
int _width, _height;
bool can_move(const Node* current, int x, int y) const;
TypedArray<Vector2i> generate_path(const Node* current) const;
bool can_move(const Node *current, int x, int y) const;
TypedArray<Vector2i> generate_path(const Node *current) const;
protected:
static void _bind_methods();