ref #97 Added class boxitem.

This commit is contained in:
IgorekLoschinin 2021-09-18 12:06:37 +03:00
parent 0c092ce3d8
commit 4b9c3dd71b
3 changed files with 68 additions and 21 deletions

View 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)
{
}
}

View 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

View File

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