| 
									
										
										
										
											2018-05-10 14:03:54 +08:00
										 |  |  | #include "..\e2daction.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | e2d::JumpTo::JumpTo(double duration, const Point & pos, double height, int jumps) | 
					
						
							|  |  |  | 	: JumpBy(duration, Point(), height, jumps) | 
					
						
							|  |  |  | 	, _endPos(pos) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | e2d::JumpTo * e2d::JumpTo::clone() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2018-05-19 01:10:37 +08:00
										 |  |  | 	return GC::create<JumpTo>(_duration, _endPos, _height, _jumps); | 
					
						
							| 
									
										
										
										
											2018-05-10 14:03:54 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void e2d::JumpTo::_init() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	JumpBy::_init(); | 
					
						
							|  |  |  | 	_deltaPos = _endPos - _startPos; | 
					
						
							|  |  |  | } |