| 
									
										
										
										
											2017-09-27 17:56:28 +08:00
										 |  |  | #include "..\easy2d.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ActionScaleTo::ActionScaleTo(float duration, float scaleX, float scaleY) : | 
					
						
							|  |  |  | 	ActionScaleBy(duration, 0, 0) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	m_nEndScaleX = scaleX; | 
					
						
							|  |  |  | 	m_nEndScaleY = scaleY; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ActionScaleTo::~ActionScaleTo() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-30 16:18:45 +08:00
										 |  |  | ActionScaleTo * ActionScaleTo::copy() const | 
					
						
							| 
									
										
										
										
											2017-09-27 17:56:28 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2017-10-10 01:14:03 +08:00
										 |  |  | 	return new ActionScaleTo(m_nAnimationInterval / 1000.0f, m_nEndScaleX, m_nEndScaleY); | 
					
						
							| 
									
										
										
										
											2017-09-27 17:56:28 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void ActionScaleTo::_init() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	ActionScaleBy::_init(); | 
					
						
							|  |  |  | 	m_nVariationX = m_nEndScaleX - m_nBeginScaleX; | 
					
						
							|  |  |  | 	m_nVariationY = m_nEndScaleY - m_nBeginScaleY; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void ActionScaleTo::_reset() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	ActionScaleBy::_reset(); | 
					
						
							|  |  |  | } |