Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
spell.hpp
Go to the documentation of this file.
1#pragma once
2
6
7/*
8 * Different types of spells
9 */
10enum class SpellType {
12 HealOrb,
14};
15
16class Spell : public Item {
17public:
18
24 Spell(glm::vec3 corner, glm::vec3 dimensions, SpellType type);
25
28
29 void useItem(Object* other, ServerGameState& state, int itemSelected) override;
30 void doCollision(Object* other, ServerGameState& state) override;
31
32private:
33
34};
Definition: item.hpp:20
Definition: object.hpp:95
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43
Definition: spell.hpp:16
void useItem(Object *other, ServerGameState &state, int itemSelected) override
Definition: spell.cpp:35
void doCollision(Object *other, ServerGameState &state) override
Code to run when this object collides with another.
Definition: spell.cpp:119
SpellType spellType
Definition: spell.hpp:26
int castLimit
Definition: spell.hpp:27
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glad.h:1531
SpellType
Definition: spell.hpp:10