13 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| namespace components {
 | |
|   struct Combat {
 | |
|     int hp;
 | |
|     int damage;
 | |
| 
 | |
|     /* NOTE: This is used to _mark_ entities as dead, to detect ones that have just died. Don't make attack automatically set it.*/
 | |
|     bool dead = false;
 | |
| 
 | |
|     int attack(Combat &target);
 | |
|   };
 | |
| }
 | 
