diff options
| author | cflip <cflip@cflip.net> | 2022-02-27 10:55:11 -0700 | 
|---|---|---|
| committer | cflip <cflip@cflip.net> | 2022-02-27 10:55:11 -0700 | 
| commit | bba66a0ccb7281cd6c717fe9784a04a4fcf72700 (patch) | |
| tree | e9689454cde4d42837ab09681215101fc28ed4a6 /src/train.h | |
| parent | 12909a3ea80639a67edd854d441614abdcd4dc12 (diff) | |
Add ClangFormat configuration
Diffstat (limited to 'src/train.h')
| -rw-r--r-- | src/train.h | 17 | 
1 files changed, 9 insertions, 8 deletions
diff --git a/src/train.h b/src/train.h index 13f278a..43892f9 100644 --- a/src/train.h +++ b/src/train.h @@ -14,21 +14,22 @@ class Level;  class Train {  public:  	Train() -		: m_sprite("../res/car.png") {} +		: m_sprite("../res/car.png") { }  	void update(Level&);  	void draw(Bitmap&, int, int); -    void setPosition(int x, int y); +	void setPosition(int x, int y); +  private: -    void nextTile(); +	void nextTile();  	Bitmap m_sprite; -    int x{0}, y{0}; -    float m_speed{0.05f}; -	float m_progress{ 0.f }; +	int x { 0 }, y { 0 }; +	float m_speed { 0.05f }; +	float m_progress { 0.f }; -	CarDirection m_dir{ North }; -    int m_nextX{0}, m_nextY{0}; +	CarDirection m_dir { North }; +	int m_nextX { 0 }, m_nextY { 0 };  };  | 
