Advertisement
dorin98

Untitled

Nov 19th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. [PC] Tema3
  2.  
  3. [Descriere]
  4. Se da o harta MxN pe care se afla P jucatori.
  5. MapCell { player, loot, isObstacle }
  6. Player { name, hp, bag, currItem }
  7. Loot & Bag vor contine Items { range, damage }
  8.  
  9. [Actiuni]
  10. move playerP to X,Y (este impuscat, impusca la randul lui si coleacteaza iteme daca se afla in celula respectiva)
  11. print map (afisaeza mapa curenta)
  12. show score (afiseaza tabela cu playeri, ordonati dupa scor si hp ramas)
  13. reduce map (se elimina prima/ultima coloana/linie)
  14. deploy bomb at X,Y,dmg (va lovi playerii ce se afla la distanta 1 pe cele 8 directii cu dmg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement