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);
- }