containercontrols.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           cargodialog.cpp  -  description
00003                              -------------------
00004     begin                : Tue Oct 24 2000
00005     copyright            : (C) 2000 by Martin Bickel
00006     email                : bickel@asc-hq.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef containercontrolsH
00019 #define containercontrolsH
00020 
00021 #include "containerbase.h"
00022 
00023 class VehicleMovement;
00024 class Player;
00025 class GameMap;
00026 
00027 class ContainerConstControls {
00028       const ContainerBase* container;
00029 
00030       const Player& getPlayer() const;
00031       const GameMap* getMap() const;
00032    public:
00033       ContainerConstControls( const ContainerBase* cb ) : container( cb ) {};
00034 
00035    protected:
00036       bool unitProductionAvailable() const;
00037 
00038    public:
00044       int unitProductionPrerequisites( const VehicleType* type, bool internally ) const;
00045 
00046 };
00047 
00048 
00049 #endif

Generated on Mon May 21 01:26:30 2012 for Advanced Strategic Command by  doxygen 1.5.1