Discussion:
next unit gameplay
Sébastien Dailly
2014-03-16 09:43:55 UTC
Permalink
Hello,

There is a keyboard shortcut wich allow to select the next unit to play ; but once you did an action with a unit (move, attack), the next time you press the key, cf select for you the first unit in the list. This in boring if the first unit is a bunker, or a unit useless for this turn : each time you do an action, you have to skip those unit manualy, again and again.

With this patch, cf select for you the unit following the one under the cursor. It allow to chain : action - next - action - next…

It does not change the rule or the game strategy, just the gameplay.
--
Sébastien
Sébastien Dailly
2014-03-16 10:00:41 UTC
Permalink
Post by Sébastien Dailly
Hello,
There is a keyboard shortcut wich allow to select the next unit to play ; but once you did an action with a unit (move, attack), the next time you press the key, cf select for you the first unit in the list. This in boring if the first unit is a bunker, or a unit useless for this turn : each time you do an action, you have to skip those unit manualy, again and again.
With this patch, cf select for you the unit following the one under the cursor. It allow to chain : action - next - action - next…
It does not change the rule or the game strategy, just the gameplay.
Sorry, this patch was wrong. This is the effective patch.
--
Sébastien
Jens Granseuer
2014-03-18 18:51:47 UTC
Permalink
Post by Sébastien Dailly
Hello,
There is a keyboard shortcut wich allow to select the next unit to play ; but once you did an action with a unit (move, attack), the next time you press the key, cf select for you the first unit in the list. This in boring if the first unit is a bunker, or a unit useless for this turn : each time you do an action, you have to skip those unit manualy, again and again.
With this patch, cf select for you the unit following the one under the cursor. It allow to chain : action - next - action - next…
It does not change the rule or the game strategy, just the gameplay.
Hi Sébastien, and welcome to CF.

Thanks for your patch. It looks quite useful. Maybe we can even improve
the behaviour a little more. How about this: If you press the shortcut
and there is a unit under the cursor, check whether it is still active
(ie. can be selected but isn't). If so select this unit, otherwise
select the next one in the list (just the way you do now). It currently
feels a little strange that the cursor moves away from the unit it
hovers over even if it would be perfectly legit to select it.

Does that sound good to you?

Sorry if I'm a little slow to respond, btw. I'm somewhat busy these
days...

Jens
Юрий Константинов.
2014-03-18 20:26:50 UTC
Permalink
Better idea indeed. Also, is CF for Tiny Core a possibility?
--
Yuri Constantinoff
Sébastien Dailly
2014-03-18 20:54:03 UTC
Permalink
Post by Jens Granseuer
Hi Sébastien, and welcome to CF.
Thanks for your patch. It looks quite useful. Maybe we can even improve
the behaviour a little more. How about this: If you press the shortcut
and there is a unit under the cursor, check whether it is still active
(ie. can be selected but isn't). If so select this unit, otherwise
select the next one in the list (just the way you do now). It currently
feels a little strange that the cursor moves away from the unit it
hovers over even if it would be perfectly legit to select it.
Does that sound good to you?
Hi Jens,

First, I want to thank you for CF ; the code is very simple and very easy to understand.

Your proposition seems good for me, and I see it as a first step with this functionality, I'll send you the patch.

The second step would be to select only units wich can do something, ie skip any unit wich cannot move nor attack (bunker without target, unit wich cannot move…) but I have to look further in the code for that.
--
Sébastien
Sébastien Dailly
2014-03-18 21:31:35 UTC
Permalink
Hi Sébastien, and welcome to CF.
Thanks for your patch. It looks quite useful. Maybe we can even improve
the behaviour a little more. How about this: If you press the shortcut
and there is a unit under the cursor, check whether it is still active
(ie. can be selected but isn't). If so select this unit, otherwise
select the next one in the list (just the way you do now). It currently
feels a little strange that the cursor moves away from the unit it
hovers over even if it would be perfectly legit to select it.
Does that sound good to you?
Sorry if I'm a little slow to respond, btw. I'm somewhat busy these
days...
Hi,

Tell me if it is satisfying for you.
--
Sébastien
Jens Granseuer
2014-03-24 22:57:02 UTC
Permalink
Post by Sébastien Dailly
Post by Jens Granseuer
Hi Sébastien, and welcome to CF.
Thanks for your patch. It looks quite useful. Maybe we can even improve
the behaviour a little more. How about this: If you press the shortcut
and there is a unit under the cursor, check whether it is still active
(ie. can be selected but isn't). If so select this unit, otherwise
select the next one in the list (just the way you do now). It currently
feels a little strange that the cursor moves away from the unit it
hovers over even if it would be perfectly legit to select it.
Does that sound good to you?
Sorry if I'm a little slow to respond, btw. I'm somewhat busy these
days...
Hi,
Tell me if it is satisfying for you.
Thanks, I've committed a slightly different implementation (and also
fixed an age-old bug hiding in that function...). :-)

Jens

Loading...