galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::components::Point Class Referencefinal

2D shape. More...

#include <Point.hpp>

+ Inheritance diagram for galaxy::components::Point:
+ Collaboration diagram for galaxy::components::Point:

Public Member Functions

 Point ()
 Constructor.
 
 Point (const nlohmann::json &json)
 JSON constructor.
 
 Point (Point &&)
 Move constructor.
 
Pointoperator= (Point &&)
 Move assignment operator.
 
virtual ~Point ()
 Destructor.
 
nlohmann::json serialize () override
 Serializes object.
 
void deserialize (const nlohmann::json &json) override
 Deserializes from object.
 
- Public Member Functions inherited from galaxy::fs::Serializable
virtual ~Serializable ()
 Destructor.
 
virtual Serializableoperator= (Serializable &&)=default
 Move assignment operator.
 
virtual Serializableoperator= (const Serializable &)=default
 Copy assignment operator.
 

Public Attributes

graphics::Point m_shape
 Shape.
 

Private Member Functions

Pointoperator= (const Point &)=delete
 Copy assignment operator.
 
 Point (const Point &)=delete
 Copy constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from galaxy::fs::Serializable
 Serializable ()
 Constructor.
 

Detailed Description

2D shape.

Definition at line 21 of file Point.hpp.

Constructor & Destructor Documentation

◆ Point() [1/4]

galaxy::components::Point::Point ( )

Constructor.

Definition at line 16 of file Point.cpp.

◆ Point() [2/4]

galaxy::components::Point::Point ( const nlohmann::json & json)

JSON constructor.

Parameters
jsonJSON defining object.

Definition at line 21 of file Point.cpp.

+ Here is the call graph for this function:

◆ Point() [3/4]

galaxy::components::Point::Point ( Point && p)

Move constructor.

Definition at line 27 of file Point.cpp.

◆ ~Point()

galaxy::components::Point::~Point ( )
virtual

Destructor.

Definition at line 43 of file Point.cpp.

◆ Point() [4/4]

galaxy::components::Point::Point ( const Point & )
privatedelete

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

Point & galaxy::components::Point::operator= ( Point && p)

Move assignment operator.

Definition at line 33 of file Point.cpp.

◆ serialize()

nlohmann::json galaxy::components::Point::serialize ( )
nodiscardoverridevirtual

Serializes object.

Returns
JSON object containing data to be serialized.

Implements galaxy::fs::Serializable.

Definition at line 47 of file Point.cpp.

◆ deserialize()

void galaxy::components::Point::deserialize ( const nlohmann::json & json)
overridevirtual

Deserializes from object.

Parameters
jsonJson object to retrieve data from.

Implements galaxy::fs::Serializable.

Definition at line 61 of file Point.cpp.

+ Here is the caller graph for this function:

◆ operator=() [2/2]

Point & galaxy::components::Point::operator= ( const Point & )
privatedelete

Copy assignment operator.

Member Data Documentation

◆ m_shape

graphics::Point galaxy::components::Point::m_shape

Shape.

Definition at line 81 of file Point.hpp.


The documentation for this class was generated from the following files: