| 
									
										
										
										
											2018-04-21 21:24:46 +08:00
										 |  |  | #include "..\e2daction.h"
 | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-27 21:07:43 +08:00
										 |  |  | e2d::ActionScaleTo::ActionScaleTo(double duration, double scale) | 
					
						
							| 
									
										
										
										
											2018-02-07 16:37:12 +08:00
										 |  |  | 	: ActionScaleBy(duration, 0, 0) | 
					
						
							| 
									
										
										
										
											2017-10-21 19:09:31 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-05-08 17:40:36 +08:00
										 |  |  | 	_nEndScaleX = scale; | 
					
						
							|  |  |  | 	_nEndScaleY = scale; | 
					
						
							| 
									
										
										
										
											2017-10-21 19:09:31 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-27 21:07:43 +08:00
										 |  |  | e2d::ActionScaleTo::ActionScaleTo(double duration, double scaleX, double scaleY) | 
					
						
							| 
									
										
										
										
											2018-02-07 16:37:12 +08:00
										 |  |  | 	: ActionScaleBy(duration, 0, 0) | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-05-08 17:40:36 +08:00
										 |  |  | 	_nEndScaleX = scaleX; | 
					
						
							|  |  |  | 	_nEndScaleY = scaleY; | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-07 16:37:12 +08:00
										 |  |  | e2d::ActionScaleTo * e2d::ActionScaleTo::clone() const | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-05-08 17:40:36 +08:00
										 |  |  | 	return new ActionScaleTo(_fDuration, _nEndScaleX, _nEndScaleY); | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-07 16:37:12 +08:00
										 |  |  | void e2d::ActionScaleTo::_init() | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-02-07 16:37:12 +08:00
										 |  |  | 	ActionScaleBy::_init(); | 
					
						
							| 
									
										
										
										
											2018-05-08 17:40:36 +08:00
										 |  |  | 	_nVariationX = _nEndScaleX - _nBeginScaleX; | 
					
						
							|  |  |  | 	_nVariationY = _nEndScaleY - _nBeginScaleY; | 
					
						
							| 
									
										
										
										
											2017-10-19 12:47:36 +08:00
										 |  |  | } |