LAUNCH.CPP
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #include <stdafx.h>
- #include "3dwrap.h"
- #include "tcdirect.h"
- #include "stdio.h"
- #include "personal.h"
- #include "3dshapes.h"
- #include "floor.h"
- #include "command.h"
- #include "levels.h"
- #include "3dtools.h"
- #include "bmpsurf.h"
- #include "landscpe.h"
- DudesWrapper *Game;
- const float MINCAMDIST = 1.0f;
- const float MAXCAMDIST = 7.0f;
- global::global()
- {
- centx = 0;
- centy = 0;
- cx = 0;
- cy = 0;
- detail = 100;
- levelnum = 0;
- levelptr = 0;
- motionless = TRUE;
- pause = 0;
- #ifdef EDITOR
- viewmode = AERIAL;
- #else
- viewmode = CIRCLING;
- #endif
- createtrigtable(sintable,costable);
- hero = new personal();
- aim = new coordinate();
- queue = new drawqueue();
- floor = new floortype();;
- tool3d = new tc3dtools();
- landscapes = new landscapelist();
- bmpsurfs = new bmplist();
- highareas = new highlist();
- }
- global::~global()
- {
- queue->purge();
- delete tool3d;
- delete floor;
- delete levelptr;
- delete queue;
- delete aim;
- delete hero;
- delete landscapes;
- delete bmpsurfs;
- delete highareas;
- }