diff options
| author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-30 21:03:11 +0100 | 
|---|---|---|
| committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-30 21:03:11 +0100 | 
| commit | 3afcae9dd472ead2d5f2b667fc6479f8ee6db10c (patch) | |
| tree | 9fda1dc74d453a1f68796b5a0987ba5e32339a21 /src/crepe/api | |
| parent | 6ae0b9038e432869b506cbdfe2779e97d3732d87 (diff) | |
make format
Diffstat (limited to 'src/crepe/api')
| -rw-r--r-- | src/crepe/api/Animator.h | 21 | ||||
| -rw-r--r-- | src/crepe/api/LoopManager.cpp | 4 | 
2 files changed, 17 insertions, 8 deletions
| diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h index ede450a..0da0469 100644 --- a/src/crepe/api/Animator.h +++ b/src/crepe/api/Animator.h @@ -68,12 +68,21 @@ private:  public:  	void loop() { this->looping = true; } -	void play() {this->active = true;} -	void pause() {this->active = false;} -	void stop() {this->active = false; this->curr_col = 0; this->curr_row = 0;} -	void set_fps(int fps) {this->fps = fps;} -	void set_cycle_range(int start, int end) {this->cycle_start = start, this->cycle_end = end;} -	void set_anim(int col) {this->curr_row = 0; this->curr_col = col; } +	void play() { this->active = true; } +	void pause() { this->active = false; } +	void stop() { +		this->active = false; +		this->curr_col = 0; +		this->curr_row = 0; +	} +	void set_fps(int fps) { this->fps = fps; } +	void set_cycle_range(int start, int end) { +		this->cycle_start = start, this->cycle_end = end; +	} +	void set_anim(int col) { +		this->curr_row = 0; +		this->curr_col = col; +	}  private:  	//! AnimatorSystem adjust the private member parameters of Animator; diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index 88ca704..51d9122 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -67,7 +67,7 @@ void LoopManager::render() {  	}  } -void LoopManager::update() {  -	LoopTimer & timer = LoopTimer::get_instance();  +void LoopManager::update() { +	LoopTimer & timer = LoopTimer::get_instance();  	this->get_system<AnimatorSystem>().update();  } |