~ubuntu-branches/ubuntu/precise/lordsawar/precise

« back to all changes in this revision

Viewing changes to src/fight.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2007-10-29 15:38:06 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071029153806-z2j47adhmdjc7wae
Tags: 0.0.4-1
* New upstream release
* Add desktop file and simple manpage for new binary lordsawar-army-editor
* Syntax fixes on manpages
* Move manpages to correct section (6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    public:
54
54
        //! The three possibilities how a fight can end
55
55
        enum Result {DRAW = 0, ATTACKER_WON = 1, DEFENDER_WON = 2};
 
56
        enum FightType {FOR_KICKS = 0, FOR_KEEPS = 1};
56
57
 
57
58
        /** Initializes a fight between two stacks
58
59
          * 
59
60
          * @param attacker         the attacking stack
60
61
          * @param defender         the defending stack
 
62
          * @param type             optionally heal all stacks afterwards
61
63
          */
62
 
        Fight(Stack* attacker, Stack* defender);
 
64
        Fight(Stack* attacker, Stack* defender, FightType type = FOR_KEEPS);
63
65
        ~Fight();
64
66
 
65
67
        
134
136
        
135
137
        int d_turn;
136
138
        Result d_result;
 
139
        FightType d_type;
137
140
};
138
141
 
139
142
#endif // FIGHT_H