mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-26 09:44:40 +00:00
ref #97 Added class boxitem.
This commit is contained in:
parent
0c092ce3d8
commit
4b9c3dd71b
22
src/CrawlTestLvl/private/boxitem.cpp
Normal file
22
src/CrawlTestLvl/private/boxitem.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
//#
|
||||
//# Copyright (C) 2021-2021 QuasarApp.
|
||||
//# Distributed under the GPLv3 software license, see the accompanying
|
||||
//# Everyone is permitted to copy and distribute verbatim copies
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#include "boxitem.h"
|
||||
|
||||
namespace TestLvl {
|
||||
|
||||
BoxItem::BoxItem()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void BoxItem::render(unsigned int tbfMsec)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
25
src/CrawlTestLvl/private/boxitem.h
Normal file
25
src/CrawlTestLvl/private/boxitem.h
Normal file
@ -0,0 +1,25 @@
|
||||
//#
|
||||
//# Copyright (C) 2021-2021 QuasarApp.
|
||||
//# Distributed under the GPLv3 software license, see the accompanying
|
||||
//# Everyone is permitted to copy and distribute verbatim copies
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#ifndef BOXITEM_H
|
||||
#define BOXITEM_H
|
||||
|
||||
#include "box.h"
|
||||
|
||||
namespace TestLvl {
|
||||
|
||||
class BoxItem: public Box {
|
||||
public:
|
||||
BoxItem();
|
||||
|
||||
// IRender interface
|
||||
public:
|
||||
void render(unsigned int tbfMsec);
|
||||
};
|
||||
|
||||
}
|
||||
#endif // BOXITEM_H
|
@ -5,7 +5,7 @@
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#include "box.h"
|
||||
#include "boxitem.h"
|
||||
#include "groupobjbox.h"
|
||||
|
||||
namespace TestLvl {
|
||||
@ -15,26 +15,26 @@ GroupObjBox::GroupObjBox(): CRAWL::IWorldItem("GroupObjBox") {
|
||||
setDistance(20);
|
||||
changeLayout(CRAWL::Refresh::CIRCLE);
|
||||
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new Box);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
add(new BoxItem);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user