Put * on the "uglier but more obvious" side of variable names.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user