Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
orb.hpp
Go to the documentation of this file.
1#pragma once
2
8#include <chrono>
9
10class Orb : public Item {
11public:
18 Orb(glm::vec3 corner, glm::vec3 dimensions, const PointLightProperties& properties);
19
20 void doCollision(Object* other, ServerGameState& state) override;
21 void useItem(Object* other, ServerGameState& state, int itemSelected) override;
22
23 void dropItem(Object* other, ServerGameState& state, int itemSelected, float dropDistance) override;
24
25 SharedObject toShared() override;
26private:
27 PointLightProperties properties;
28};
Definition: item.hpp:20
Definition: object.hpp:95
Definition: orb.hpp:10
void dropItem(Object *other, ServerGameState &state, int itemSelected, float dropDistance) override
Definition: orb.cpp:72
SharedObject toShared() override
Generates a SharedObject representation of this object.
Definition: orb.cpp:98
void doCollision(Object *other, ServerGameState &state) override
Code to run when this object collides with another.
Definition: orb.cpp:14
void useItem(Object *other, ServerGameState &state, int itemSelected) override
Definition: orb.cpp:50
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43
Representation of the Object class used by ServerGameState, containing exactly the subset of Object d...
Definition: sharedobject.hpp:302
Definition: point_light.hpp:5