pds2 / 20191-team-5 Goto Github PK
View Code? Open in Web Editor NEWRepository of the practical project of PDS2 (Information Systems, UFMG), 2019/1
Repository of the practical project of PDS2 (Information Systems, UFMG), 2019/1
create and updating file with project's changes
- self: bool
- index: int
+ Position(self: bool, index: int)
+ isSelf(): bool
+ getIndex(): int
- life: int
- deck: stack<Card>
- hand: vector<Card>
- field: pair<optional<MonsterCard>>
+ Player()
+ drawCard(): void
+ reduceLife(by: int)
+ getLife(): int
+ getHand(): vector<Card>
+ getField(): pair<optional<MonsterCard>>
- attack: int
- defense: int
- mode: Mode
+ MonsterCard(name: string, attack: int, defense: int)
+ toggleMode(): Mode
+ getAttack(): int
+ getDefense(): int
+ getMode(): Mode
Enum: Draw
, Position
, Summon
, Battle
, End
write and update project's makefile.
- players: pair<Player>
- turn: Turn
+ Game()
+ draw(): void
+ toggleMode(position: Position): void
+ summon(cardIndex: int, position: optional<Position>): void
+ attack(monster: Position, target: optional<Position>): void
+ endPhase(): void
+ getPlayers(): pair<Player>
+ getTurn(): Turn
Populate array of cards, shuffle and then return the deck stack.
Use it on the Player constructor.
Enum: NoTarget
, Self
, Opponent
Enum: Attack
, Defense
- description: string
- attackDelta: int
- defenseDelta: int
- lifeDelta: int
- destroy: bool
- target: Target
+ MagicCard(...todas as propriedades)
Elaborar o diagrama de classes inicial
- phase: Phase
- playerIndex: int
- summonedMonster: bool
- summonedMagic: bool
- attacked: pair<bool>
+ Turn(playerIndex: int)
+ endPhase(): void
+ getPhase(): Phase
+ getPlayerIndex(): int
+ hasSummonedMonster: bool
+ hasSummonedMagic: bool
+ hasAttacked(index: int): bool
- name: string
+ Card(name: string)
+ apply(game: Game, position: optional<Position>): void
+ getName(): string
+ getTarget(): Target
+ getDescription(): string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.