mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-29 15:56:50 +01:00
Full Distribution
This commit is contained in:
52
src/housetile.h
Normal file
52
src/housetile.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Tibia GIMUD Server - a free and open-source MMORPG server emulator
|
||||
* Copyright (C) 2017 Alejandro Mujica <alejandrodemujica@gmail.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef FS_HOUSETILE_H_57D59BEC1CE741D9B142BFC54634505B
|
||||
#define FS_HOUSETILE_H_57D59BEC1CE741D9B142BFC54634505B
|
||||
|
||||
#include "tile.h"
|
||||
|
||||
class House;
|
||||
|
||||
class HouseTile final : public DynamicTile
|
||||
{
|
||||
public:
|
||||
HouseTile(int32_t x, int32_t y, int32_t z, House* house);
|
||||
|
||||
//cylinder implementations
|
||||
ReturnValue queryAdd(int32_t index, const Thing& thing, uint32_t count,
|
||||
uint32_t flags, Creature* actor = nullptr) const final;
|
||||
|
||||
Tile* queryDestination(int32_t& index, const Thing& thing, Item** destItem,
|
||||
uint32_t& flags) final;
|
||||
|
||||
void addThing(int32_t index, Thing* thing) final;
|
||||
void internalAddThing(uint32_t index, Thing* thing) final;
|
||||
|
||||
House* getHouse() {
|
||||
return house;
|
||||
}
|
||||
|
||||
private:
|
||||
void updateHouse(Item* item);
|
||||
|
||||
House* house;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user