mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Missed the file.
This commit is contained in:
		
							
								
								
									
										22
									
								
								lib/CObstacleInstance.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								lib/CObstacleInstance.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | #include "StdInc.h" | ||||||
|  | #include "CObstacleInstance.h" | ||||||
|  | #include "CHeroHandler.h" | ||||||
|  | #include "VCMI_Lib.h" | ||||||
|  |  | ||||||
|  | CObstacleInstance::CObstacleInstance() | ||||||
|  | { | ||||||
|  | 	isAbsoluteObstacle = false; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | const CObstacleInfo & CObstacleInstance::getInfo() const | ||||||
|  | { | ||||||
|  | 	if(isAbsoluteObstacle) | ||||||
|  | 		return VLC->heroh->absoluteObstacles[ID]; | ||||||
|  |  | ||||||
|  | 	return VLC->heroh->obstacles[ID]; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | std::vector<BattleHex> CObstacleInstance::getBlocked() const | ||||||
|  | { | ||||||
|  | 	return getInfo().getBlocked(pos); | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user