if(!attacking&&!moving)
if(!attacking)
if(!moving)
These two approaches obviously accomplish the same thing. My question is, is one more efficient in terms of saving CPU usage? My first thought is the second way is better because "moving" will only be evaluated if "attacking" returns false. This is just an example, I'm only wanting to know because I've always coded the first way, and I'm trying to improve my techniques
I wouldn't say you're improving your techniques if you're worrying about something this insignificant. In general, you have worse things (CPU-wise) to consider.