uwu
This commit is contained in:
		
					parent
					
						
							
								b0b395f068
							
						
					
				
			
			
				commit
				
					
						e46929b4b4
					
				
			
		
					 8 changed files with 260 additions and 148 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| package de.lunarakai.minecleaner.game; | ||||
| 
 | ||||
| import org.joml.Vector3i; | ||||
| import org.joml.Vector2i; | ||||
| 
 | ||||
| public class Cell { | ||||
|     public enum CellType { | ||||
|  | @ -11,9 +11,10 @@ public class Cell { | |||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     public Vector3i position; | ||||
|     public Vector2i position; | ||||
|     public CellType type; | ||||
|     public int number; | ||||
|      | ||||
|     public boolean revealed; | ||||
|     public boolean flagged; | ||||
|     public boolean exploded; | ||||
|  | @ -26,4 +27,26 @@ public class Cell { | |||
|         return type; | ||||
|     } | ||||
| 
 | ||||
|     public void setRevealed() { | ||||
|         this.revealed = true; | ||||
|     } | ||||
|     public boolean isRevealed() { | ||||
|         return revealed; | ||||
|     } | ||||
| 
 | ||||
|     public void setFlaggedState(boolean flag) { | ||||
|         this.flagged = flag; | ||||
|     } | ||||
|     public boolean isFlagged() { | ||||
|         return flagged; | ||||
|     } | ||||
| 
 | ||||
|     public void setExploded() { | ||||
|         this.exploded = true; | ||||
|     } | ||||
|     public boolean isExploded() { | ||||
|         return revealed; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue