Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
[deleted comment]
[deleted comment]
In example 3, you meant "Strike(Me, Rock1, Rock1, 1);", right?
Well I don't like your solution much as it would somewhat break the current
genericity of operations (which all take a Human and an array of Entities).
Would
some operations take an additional "how" integer? Would _all_ operations take an
"how" integer, but most of them would ignore it? How could the entity know in
which
range the "how" operator is valid?
I understand the nature of the problem you're describing but, for the moment, I
think
it'd be simpler to have, not different types of "strike" operations, but
different
kinds of rocks (silex, _pierre des champs_, _cailloux_, _galets_, etc.). For the
moment, this means having a lot of "if else if" in Operations.Strike.Update,
but I
don't see a way around this right now.
Original comment by tristanl...@gmail.com
on 2 Dec 2007 at 3:14
Ok, having multiple kinds of rocks is fine with me.
Original comment by glaca...@gmail.com
on 2 Dec 2007 at 5:01
Original comment by glaca...@gmail.com
on 4 Dec 2007 at 3:46
Original issue reported on code.google.com by
glaca...@gmail.com
on 1 Dec 2007 at 4:10