dimanche 14 mai 2017

How to compare two objects with random constructors

I made these 2 objects:

    Fighter Lucas = new Fighter (Statistics.punchStrength, 
Statistics.movementSpeed, Statistics.reflex);
    Opponent Simon = new Opponent (Statistics.punchStrength2, 
Statistics.movementSpeed2, Statistics.reflex2);

I want to make them "fight" by comparing their random variables, but I have no idea how to do this.




Aucun commentaire:

Enregistrer un commentaire