- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
LEVEL1.CPP
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:2k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1994-1996 by Anthony J. Carin. All Rights Reserved.
- #include <stdafx.h>
- #include "levels.h"
- #include "antagon.h"
- #include "bmpsurf.h"
- #include "weapon.h"
- level1::level1() : levels()
- {
- Game->SetLevelNum(1);
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }
- void level1::draw()
- {
- levels::draw();
- }
- level2::level2() : level1()
- {
- Game->SetLevelNum(2);
- delete numobj;
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }
- level6::level6() : level1()
- {
- Game->SetLevelNum(6);
- delete numobj;
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }
- level7::level7() : level6()
- {
- Game->SetLevelNum(7);
- delete numobj;
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }
- level8::level8() : level7()
- {
- Game->SetLevelNum(8);
- delete numobj;
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }
- level9::level9() : level1()
- {
- Game->SetLevelNum(9);
- delete numobj;
- numobj = new baseobject(getpath((CString)"levelnum.img"));
- numobj->setto(coordinate(0.0f, 3.0f, 0.0f));
- numobj->setcolor(RGB(random(256), random(256), random(256)));
- Game->DrawQueue()->add(numobj);
- }