$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

BestDepotFinder< NEARLOCATION > Class Template Reference

List of all members.


Public Member Functions

 BestDepotFinder (const CUnit &w, int res, int ran)
 BestDepotFinder (const Vec2i &pos, int res, int ran)
CUnitFind (CUnit **table, const int table_size)
CUnitFind (CUnitCache &cache)

Public Attributes

CUnitbest_depot
const CUnitworker
Vec2i loc

template<const bool NEARLOCATION>
class BestDepotFinder< NEARLOCATION >


Constructor & Destructor Documentation

template<const bool NEARLOCATION>
BestDepotFinder< NEARLOCATION >::BestDepotFinder ( const CUnit w,
int  res,
int  ran 
) [inline]

template<const bool NEARLOCATION>
BestDepotFinder< NEARLOCATION >::BestDepotFinder ( const Vec2i pos,
int  res,
int  ran 
) [inline]


Member Function Documentation

template<const bool NEARLOCATION>
CUnit* BestDepotFinder< NEARLOCATION >::Find ( CUnit **  table,
const int  table_size 
) [inline]

template<const bool NEARLOCATION>
CUnit* BestDepotFinder< NEARLOCATION >::Find ( CUnitCache cache  )  [inline]


Member Data Documentation

template<const bool NEARLOCATION>
const CUnit* BestDepotFinder< NEARLOCATION >::worker

template<const bool NEARLOCATION>
Vec2i BestDepotFinder< NEARLOCATION >::loc

template<const bool NEARLOCATION>
CUnit* BestDepotFinder< NEARLOCATION >::best_depot


The documentation for this class was generated from the following file:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.