From 17909d029c6a8872b2fddf4e171d7925bbbe9c5c Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 19:27:35 +0100 Subject: Initial commit --- Simulation/GraphicObjs.hpp | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Simulation/GraphicObjs.hpp (limited to 'Simulation/GraphicObjs.hpp') diff --git a/Simulation/GraphicObjs.hpp b/Simulation/GraphicObjs.hpp new file mode 100644 index 0000000..8fab10e --- /dev/null +++ b/Simulation/GraphicObjs.hpp @@ -0,0 +1,56 @@ +#ifndef __GRAPHICOBJS_HPP__ +#define __GRAPHICOBJS_HPP__ + +#include + +class GraphicObjs +{ +protected: + sf::CircleShape zapperPoint = sf::CircleShape(0, 12); + sf::CircleShape zapperShell; + sf::CircleShape zapperNucleus = sf::CircleShape(0, 5); + + sf::CircleShape pelletPoint = sf::CircleShape(0, 6); + sf::CircleShape pelletShell; + sf::CircleShape pelletNucleus = sf::CircleShape(0, 3); + + sf::CircleShape guppiePoint = sf::CircleShape(0, 6); + sf::CircleShape guppieShell = sf::CircleShape(0, 30); + /////////////// + sf::CircleShape eggPoint = sf::CircleShape(0, 6); + sf::CircleShape guppieEgg = sf::CircleShape(0, 60); + /////////////// + sf::Color guppN; + sf::Vector2f visionCone[31]; + sf::Vector2f skinRadius[180]; + sf::Vector2f senseRadius[180]; + ///////////////////////////// + sf::CircleShape gOuterSkin; + /////////////////////////// + sf::ConvexShape beak1; + sf::ConvexShape beak2; + /////////////////////////// + sf::ConvexShape touchCells[30]; + sf::ConvexShape smellCells[30]; + sf::ConvexShape tailMask; + ////////////////////////////// + sf::CircleShape innerBodyMask; + ///////////////////////////// + sf::ConvexShape thrusters[4]; + sf::ConvexShape thrusterMask; + sf::ConvexShape heart; + sf::ConvexShape heartMask; + sf::ConvexShape heartTop; + sf::ConvexShape heartTri; + sf::ConvexShape glandMask; + sf::ConvexShape gland; + sf::ConvexShape eyeMask; + sf::ConvexShape eyeCells[15]; + sf::ConvexShape eyeCavity; + + sf::CircleShape corpsePoint = sf::CircleShape(0, 6); + sf::CircleShape corpseShell; + sf::CircleShape corpseNucleus = sf::CircleShape(0, 4); +}; + +#endif // __GRAPHICOBJS_HPP__ -- cgit v1.2.1