~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, Barry deFreese
  • Date: 2009-10-21 08:02:12 UTC
  • mfrom: (1.1.8 upstream) (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091021080212-wpmd6xdaxrgnn63y
Tags: 0.1.6-1
[ Barry deFreese ]
* New upstream release.
  + Drop libsdl-image1.2 from build-deps, no longer needed.
* Add README.source for quilt patch system.
* Clean up debian/copyright some.
* Bump Standards Version to 3.8.3. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
//
8
8
//  This program is free software; you can redistribute it and/or modify
9
9
//  it under the terms of the GNU General Public License as published by
10
 
//  the Free Software Foundation; either version 2 of the License, or
 
10
//  the Free Software Foundation; either version 3 of the License, or
11
11
//  (at your option) any later version.
12
12
//
13
13
//  This program is distributed in the hope that it will be useful,
23
23
#ifndef FIGHT_H
24
24
#define FIGHT_H
25
25
 
26
 
#include <SDL_types.h>
 
26
#include <gtkmm.h>
27
27
#include <list>
28
28
#include <vector>
29
29
#include <map>
44
44
  //! The round number of the battle.
45
45
  int turn;
46
46
  //! The id of the army who was attacked in this event.
47
 
  Uint32 id;
 
47
  guint32 id;
48
48
  //! The amount of damage that the army sustained.
49
49
  int damage;
50
50
};
136
136
        std::list<Stack*> getDefenders() const {return d_defenders;}
137
137
        
138
138
        //! Get the modified strength bonus of the given Army unit.
139
 
        Uint32 getModifiedStrengthBonus(Army *a);
 
139
        guint32 getModifiedStrengthBonus(Army *a);
140
140
 
141
141
        // CONSTANTS
142
142
        //! The number of rounds the fight lasts.
152
152
        static void orderArmies(std::list<Stack*> stacks, 
153
153
                                std::vector<Army*> &armies);
154
154
 
155
 
        std::map<Uint32, Uint32> getInitialHPs() { return initial_hps; }
 
155
        std::map<guint32, guint32> getInitialHPs() { return initial_hps; }
156
156
        
157
157
        static LocationBox calculateFightBox(Fight &fight);
158
158
    private:
211
211
        //! The defenders in the fight.
212
212
        std::list<Fighter*> d_def_close;
213
213
 
214
 
        std::map<Uint32, Uint32> initial_hps;
 
214
        std::map<guint32, guint32> initial_hps;
215
215
        
216
216
        //! The list of fight events that gets calculated.
217
217
        std::list<FightItem> d_actions;