#pragma once #ifndef UTIL_BATTLESHIP_H #define UTIL_BATTLESHIP_H #include #include #include #include #include #include namespace battleship{ typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef char s8; typedef short s16; typedef int s32; typedef long long s64; enum AppStateType{GUI_STATE, IN_GAME_STATE, ACTIVE_STATE}; class GuiAppState; void makeTitlescreenButtons(GuiAppState*); vb01::Vector2 spaceToScreen(vb01::Vector3); vb01::Vector3 screenToSpace(vb01::Vector2); /* bool isWithinRect(irr::core::vector3df,irr::core::vector3df,irr::core::vector3df,irr::core::vector3df); bool isWithinCuboid(irr::core::vector3df,irr::core::vector3df,irr::core::vector3df,irr::core::vector3df,irr::core::vector3df); */ } #endif