Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions
sharedobject.hpp File Reference
#include <optional>
#include <algorithm>
#include <glm/glm.hpp>
#include "shared/utilities/serialize_macro.hpp"
#include "shared/utilities/typedefs.hpp"
#include "shared/game/stat.hpp"
#include "shared/game/sharedmodel.hpp"
#include "shared/game/celltype.hpp"
#include "shared/game/status.hpp"
#include <chrono>

Go to the source code of this file.

Data Structures

struct  SharedStats
 
struct  SharedStatuses
 
struct  SharedInventory
 
struct  SharedTrapInventory
 
struct  SharedItemInfo
 
struct  SharedWeaponInfo
 
struct  SharedSolidSurface
 
struct  SharedPhysics
 
struct  SharedTrapInfo
 
struct  SharedPlayerInfo
 
struct  SharedPointLightInfo
 
struct  SharedExit
 
struct  SharedDMInfo
 
struct  SharedCompass
 
class  SharedObject
 Representation of the Object class used by ServerGameState, containing exactly the subset of Object data required by the client. More...
 

Typedefs

using UsedItemsMap = std::unordered_map< SpecificID, std::pair< ModelType, double > >
 

Enumerations

enum class  ObjectType {
  Object , SolidSurface , Potion , Player ,
  Enemy , Torchlight , SpikeTrap , DungeonMaster ,
  FireballTrap , Projectile , FloorSpike , Lava ,
  FakeWall , ArrowTrap , TeleporterTrap , Spell ,
  Slime , Minotaur , Python , Item ,
  Exit , Orb , Weapon , WeaponCollider ,
  Mirror
}
 An enum for the type of an object; the fields here should match all class names in the inheritance tree in which Object is the root. More...
 
enum class  SurfaceType { Wall , Floor , Ceiling , Pillar }
 
enum class  AnimState {
  IdleAnim , WalkAnim , SprintAnim , JumpAnim ,
  LandAnim , AttackAnim , DrinkPotionAnim , DeathAnim
}
 

Functions

std::string objectTypeString (ObjectType type)
 Returns a string representation of the ObjectType enum. More...
 

Typedef Documentation

◆ UsedItemsMap

using UsedItemsMap = std::unordered_map<SpecificID, std::pair<ModelType, double> >

Enumeration Type Documentation

◆ AnimState

enum class AnimState
strong
Enumerator
IdleAnim 
WalkAnim 
SprintAnim 
JumpAnim 
LandAnim 
AttackAnim 
DrinkPotionAnim 
DeathAnim 

◆ ObjectType

enum class ObjectType
strong

An enum for the type of an object; the fields here should match all class names in the inheritance tree in which Object is the root.

Enumerator
Object 
SolidSurface 
Potion 
Player 
Enemy 
Torchlight 
SpikeTrap 
DungeonMaster 
FireballTrap 
Projectile 
FloorSpike 
Lava 
FakeWall 
ArrowTrap 
TeleporterTrap 
Spell 
Slime 
Minotaur 
Python 
Item 
Exit 
Orb 
Weapon 
WeaponCollider 
Mirror 

◆ SurfaceType

enum class SurfaceType
strong
Enumerator
Wall 
Floor 
Ceiling 
Pillar 

Function Documentation

◆ objectTypeString()

std::string objectTypeString ( ObjectType  type)

Returns a string representation of the ObjectType enum.

Parameters
typeObjectType enum
Returns
String representation of the given ObjectType enum