Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

BattleSprite.h

Go to the documentation of this file.
00001 /*
00002 CS Senior Project 2003
00003 Team : Leftfield
00004 Project : ModernWarfare
00005 Members :
00006 - Russ Christensen              <rchriste@cs.utah.edu>
00007 - Todd Smith                    <tcsmith@cs.utah.edu>
00008 - Usit Duongsaa                 <duongsaa@cs.utah.edu>
00009 Copyright 2003 Russ Christensen, Usit Duongsaa, and Todd Smith. All rights reserved.
00010 
00011 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00012 
00013 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
00014 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
00015 THIS SOFTWARE IS PROVIDED BY RUSS CHRISTENSEN, USIT DUONGSAA, AND TODD SMITH ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RUSS, USIT, TODD OR OTHER CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00016 */
00017 
00023 #ifndef INCLUDE_BATTLESPRITE
00024 #define INCLUDE_BATTLESPRITE
00025 
00026 #include "..\AEngine\AEngine.h"
00027 
00028 //------------------------------------------------------------------------------------
00029 namespace BattleSpriteTypes
00030 {
00031         const int SMOKE_SMALL           =       0;
00032         const int SMOKE_LARGE           =       1;
00033         const int EXPLO_SMALL           =       2;
00034         const int EXPLO_LARGE           =       3;
00035         const int ARTIL_SHELL           =       4;
00036         const int ROCKET_TRAIL          =       5;
00037 };
00038 //------------------------------------------------------------------------------------
00039 class BattleSprite
00040 {
00041 public:
00042         BattleSprite() { type = -1; }
00043         BattleSprite(Vec3D pos, int time, int type )
00044         {
00045                 this->pos = pos;        this->timeRemaining = time;             this->type = type;
00046         }
00047 
00048         Vec3D           pos;
00049         int                     timeRemaining;
00050         int                     type;
00051 };
00052 //------------------------------------------------------------------------------------
00053 void updateParticleList( list<BattleSprite> &sprites );
00054 void renderParticleList( list<BattleSprite> &sprites );
00055 //------------------------------------------------------------------------------------
00056 
00057 #endif

Generated on Wed Apr 23 05:50:14 2003 for Modern Warfare by doxygen1.3-rc2