enabled touch code for handling choosign blockers on touch interface.
TODO: Please have somebody test on non-Touch device. I don't have one anymore. If it breaks it let me know and I'll make it a compile time option. Seems to work with 2 and 3 blockers. I couldn't get the game to get 4 blockers on the screen, but I think it should work the same. This should be cross platform and not iOS specific
This commit is contained in:
@@ -28,6 +28,8 @@ protected:
|
||||
void addOne(DefenserDamaged* blocker, CombatStep);
|
||||
void removeOne(DefenserDamaged* blocker, CombatStep);
|
||||
void remaskBlkViews(AttackerDamaged* before, AttackerDamaged* after);
|
||||
void shiftLeft( DamagerDamaged* oldActive );
|
||||
void shiftRight( DamagerDamaged* oldActive );
|
||||
int resolve();
|
||||
|
||||
public:
|
||||
@@ -43,7 +45,6 @@ public:
|
||||
virtual bool CheckUserInput(JButton key);
|
||||
virtual int receiveEventPlus(WEvent* e);
|
||||
virtual int receiveEventMinus(WEvent* e);
|
||||
|
||||
typedef vector<AttackerDamaged*>::iterator inner_iterator;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user