00001 /* -*- Mode: C++; 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 * Intro.h 00009 * MetalWarriors 00010 * $Revision: 1.6 $ 00011 * 00012 * Created by Daniel Aarno on Tue Jan 04 2005. 00013 * Copyright (c) 2003 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 _INTRO_ 00031 #define _INTRO_ 00032 00033 class Model; 00034 00035 class Intro 00036 { 00037 private: 00038 typedef bool (*StateFunc)(); 00039 static Model *logo; 00040 static int texture; 00041 static StateFunc funcAry[]; 00042 00043 public: 00044 static void Init(); 00045 static void Clean(); 00046 static bool Step(); 00047 00048 private: 00049 //The callbacks of the FSM goes here 00050 static bool SweepSpot(); 00051 static void SpinLogo(float angle); 00052 static bool FadeBanner(); 00053 static bool LoadAOSPresents(); 00054 static bool LoadMetalWarriors(); 00055 static bool Delay(); 00056 00057 static void DrawLogo(); 00058 }; 00059 00060 #endif
1.4.7