mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-02-17 18:54:10 +00:00
25 lines
467 B
C++
25 lines
467 B
C++
//
|
|
// Created by Louis Auzuret 09/06/21
|
|
//
|
|
|
|
#include "MapInfo.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
MapInfo::MapInfo(Vector3f pos, MapGenerator::BlockType blockType)
|
|
: x(pos.x), y(pos.y), z(pos.z), type(blockType)
|
|
{ }
|
|
|
|
MapInfo::MapInfo(const MapInfo &other)
|
|
: x(other.x), y(other.y), z(other.z), type(other.type)
|
|
{ }
|
|
|
|
MapInfo &MapInfo::operator=(MapInfo &other)
|
|
{
|
|
this->x = other.x;
|
|
this->y = other.y;
|
|
this->z = other.z;
|
|
this->type = other.type;
|
|
return *this;
|
|
}
|
|
} |