AHHHHHHHHHH COMMITED TO GITHUB INSTEAD OF FORGEJO FOR WEEKS
This commit is contained in:
		
							parent
							
								
									d6ef44f3d1
								
							
						
					
					
						commit
						0919005cb2
					
				
					 163 changed files with 3875 additions and 47 deletions
				
			
		
							
								
								
									
										17
									
								
								Code/Steiner/gameWithCards/src/Unit.java
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Code/Steiner/gameWithCards/src/Unit.java
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| public abstract class Unit { | ||||
|     protected int health; | ||||
|     protected int defense; | ||||
|     protected int attack; | ||||
| 
 | ||||
|     public Unit(int health, int defense, int attack) { | ||||
|         this.health = health; | ||||
|         this.defense = defense; | ||||
|         this.attack = attack; | ||||
|     } | ||||
| 
 | ||||
|     public abstract void defend(); | ||||
| 
 | ||||
|     public abstract void attack(); | ||||
| 
 | ||||
|     public abstract void move(); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue