23 #ifndef TACTICS3DUTILS_H
24 #define TACTICS3DUTILS_H
39 inline int d6(
int x_=1) {
41 for (
int i = 0; i < x_; i++)
42 roll += (rand() % 6) + 1;
47 if (attr_ > 9)
return attr_ - 9;
48 if (attr_ < 5)
return attr_ - 5;
55 tm* timeInfo = localtime(&rawTime);
56 sprintf(str_,
"%04d%02d%02d%02d%02d", timeInfo->tm_year + 1900, timeInfo->tm_mon + 1, timeInfo->tm_mday, timeInfo->tm_hour, timeInfo->tm_min);
59 inline int calcSpeed(
int dex_,
int str_,
int equipmentWeightInPounds_) {
101 bool updateHUDCircle(Ogre::ManualObject* circle_,
const std::string& windowName_,
115 #endif //TACTICS3DUTILS_H
bool moveCurrCamToWarriorPOV(const Warrior *warrior_)
Definition: Tactics3DUtils.cpp:55
int d6(int x_=1)
Definition: Tactics3DUtils.h:39
void scheduleEvocationObjectCreation(Warrior *warrior_)
Definition: Tactics3DUtils.cpp:312
bool getScreenSpacePoint(const std::string &windowName_, const OpenSkyNet::Math::Point< float, 2 > &cameraSpaceOrigin_, OpenSkyNet::Math::Point< float, 2 > &screenSpaceOrigin_)
Definition: Tactics3DWarrior.h:42
Ogre::ManualObject * createHUDCircle(const std::string &name_, const OpenSkyNet::Math::Point<> &color_, int numPoints_)
Definition: CDVolume.h:225
void createEvocationObject(Warrior *warrior_, const std::string &name_)
bool updateHUDCircle(Ogre::ManualObject *circle_, const std::string &windowName_, const OpenSkyNet::Math::Point< float, 2 > &cameraSpaceOrigin_, float radius_, int numPoints_, OpenSkyNet::Math::Point< float, 2 > &screenSpaceOrigin_)
int calcAttrMod(int attr_)
Definition: Tactics3DUtils.h:46
Ogre::AxisAlignedBox getAABB(const OpenSkyNet::CD::Volume &vol_)
void showDieRollVisualEffects(OpenSkyNet::Core::Object *die_, int roll_)
void getTimeStampStr(char *str_)
Definition: Tactics3DUtils.h:52
bool getCameraSpacePoint(const std::string &windowName_, const OpenSkyNet::Math::Point< float, 2 > &pointInSpread_, OpenSkyNet::Math::Point< float, 2 > &cameraSpaceOrigin_)
void getSuperPowerParams(Warrior *warrior_, CEGUI::Window *warriorWindow_)
Definition: Tactics3DUtils.cpp:120
void getSpecialMoveParams(Warrior *warrior_, CEGUI::Window *warriorWindow_)
Definition: Tactics3DUtils.cpp:87
int calcSpeed(int dex_, int str_, int equipmentWeightInPounds_)
Definition: Tactics3DUtils.h:59
void disableAndHideActionWindow()
Definition: Tactics3DUtils.cpp:151