~ubuntu-branches/ubuntu/maverick/lordsawar/maverick

« back to all changes in this revision

Viewing changes to src/path.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2010-04-10 09:29:33 UTC
  • mfrom: (1.1.9 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100410092933-23uq4dxig30kmtcw
Tags: 0.1.8-1
* New upstream release.
* Add misc:Depends for -data package.
* Bump Standards Version to 3.8.4. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
         * if necessary.
63
63
         *
64
64
         * @param stack        The Stack whose path we validate.
 
65
         * @param enemy_city_avoidance Return false if a path's point is on an
 
66
         * enemy city, or not if this value is non-negative.
 
67
         * @param enemy_stack_avoidance Return false if a path's point is on an
 
68
         * enemy stack, or not if this value is non-negative.
65
69
         *
66
70
         * @return True if path is valid, False if path is blocked and could
67
71
         *         not be recalculated, True if the path was invalid but was
68
72
         *         recalculated succesfully.
69
73
         */
70
74
        //! Validate an existing path.
71
 
        bool checkPath(Stack* stack);
 
75
        bool checkPath(Stack* stack, int enemy_city_avoidance = -1, int enemy_stack_avoidance = -1);
72
76
 
73
77
        /** 
74
78
         * Calculates the path from the stack's position to a destination.