0

I want to make a monster for a game

how would i go about doing it, if i want the monster to have 50health and 10 attack. would i make a struct or a class. someone plz provide me with some helpful code

29th May 2018, 7:39 AM
Nislo Mislo
Nislo Mislo - avatar
4 ответов
+ 1
struct monster { short health, attack; monster() : health{50}, attack{10} { } };
29th May 2018, 11:24 AM
Timon Paßlick
0
https://code.sololearn.com/cNe858XAf1u8/?ref=app Just Simple example for it. I wish it will be helpful
29th May 2018, 9:44 AM
김민서
김민서 - avatar
0
not what i wanted
29th May 2018, 9:54 AM
Nislo Mislo
Nislo Mislo - avatar
0
what i wanted
29th May 2018, 11:25 AM
Nislo Mislo
Nislo Mislo - avatar