mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 12:37:13 +00:00
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
25 lines
797 B
C++
25 lines
797 B
C++
#pragma once
|
|
|
|
#include "Item.h"
|
|
|
|
class Player;
|
|
class Level;
|
|
|
|
class BoatItem : public Item {
|
|
public:
|
|
BoatItem(int id);
|
|
|
|
virtual bool TestUse(std::shared_ptr<ItemInstance> itemInstance,
|
|
Level* level, std::shared_ptr<Player> player);
|
|
virtual std::shared_ptr<ItemInstance> use(
|
|
std::shared_ptr<ItemInstance> itemInstance, Level* level,
|
|
std::shared_ptr<Player> player);
|
|
|
|
/*
|
|
* public bool useOn(ItemInstance instance, Player player, Level level,
|
|
* int x, int y, int z, int face) { // if (face != 1) return false; int
|
|
* targetType = level.getTile(x, y, z); if (targetType == Tile.rail.id) {
|
|
* level.addEntity(new Minecart(level, x + 0.5f, y + 0.5f, z + 0.5f));
|
|
* instance.count--; return true; } return false; }
|
|
*/
|
|
}; |