This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros auxiliares |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros auxiliares |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros auxiliares |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros auxiliares incluídos no enunciado do trabalho prático | |
Update: 2023.04.20 | |
Correção nos métodos start e resume do GameEngine para retornarem true | |
Permite que possa ser feito o register e unregister sem o motor estar parado | |
Update: 2023.05.01 | |
Maze e IMazeElement passam a ser Serializable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pt.isec.pa.shopping_list.model.command; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
public class CommandManager { | |
private Deque<ICommand> history; | |
private Deque<ICommand> redoCmds; | |
//private Stack<ICommand> history; | |
//private Stack<ICommand> redoCmds; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros Auxiliares | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiro auxiliar para criação da lista com histórico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ficheiros com layout da calculadora | |
(aplicar estilo definido com gradiente aos botões correspondentes ao operador) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TicTacToeModel { | |
enum class Players { | |
None, P1, P2 | |
} | |
private lateinit var board: Array<Array<Players>> | |
private var _winsP1 = 0 | |
private var _winsP2 = 0 | |
private var _currentPlayer = Players.None | |
private var _ctrl = 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Utils { | |
companion object { | |
fun getTempFilename(context: Context) : String = | |
File.createTempFile( | |
"image", ".img", | |
context.externalCacheDir | |
).absolutePath | |
fun createFileFromUri( | |
context: Context, |
OlderNewer