TrackedVehicleSprite.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 5 -*- */
00002 
00003 /*
00004  * Combination of a first person action and a real time strategy battle game.
00005  */
00006  
00007 /*
00008  * TrackedVehicleSprite.h
00009  * MetalWarriors
00010  * $Revision: 1.4 $
00011  *
00012  * Created by Erik Ytterberg on Fri Aug 19 2005.
00013  * Copyright (c) 2005 Daniel Aarno and Erik Ytterberg - All rights reserved.
00014  *
00015  *     This program is free software; you can redistribute it and/or modify
00016  *     it under the terms of the GNU General Public License as published by
00017  *     the Free Software Foundation; either version 2 of the License, or
00018  *     (at your option) any later version.
00019  *
00020  *     This program is distributed in the hope that it will be useful,
00021  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  *     GNU General Public License for more details.
00024  *
00025  *     You should have received a copy of the GNU General Public License
00026  *     along with this program; if not, write to the Free Software
00027  *     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00028  */
00029 
00030 #ifndef TRACKEDVEHICLESPRITE_H
00031 #define TRACKEDVEHICLESPRITE_H
00032 
00033 #include "Sprite.h"
00034 #include "Model.h"
00035 #include "GroundVehicleSprite.h"
00036 #include "Driver.h"
00037 #include "CannonTurret.h"
00038 
00039 class Tracks;
00040 
00041 class TrackedVehicleSprite : public GroundVehicleSprite
00042 {
00043      Tracks* tracks;
00044 
00045 public:
00046      TrackedVehicleSprite(int owner, std::string type);
00047      virtual ~TrackedVehicleSprite();
00048   
00049      virtual void update();
00050 
00051      virtual KeyDriver *allocDriver(void) 
00052      { driver =  new KeyDriver; return driver;}
00053 
00054      virtual int paintHud(std::string &hudString);
00055      virtual Packet packObject() const;
00056      virtual void setObject(Packet &p);  
00057 };
00058 
00059 #endif //TRACKEDVEHICLESPRITE_H

Generated on Sun Mar 11 15:33:23 2007 for MetalWarriors by  doxygen 1.4.7