Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
core::map::Light Struct Reference

Represents a renderable light in a Map. More...

#include <Light.hpp>

Public Member Functions

 Light ()
 Creates an empty light. More...
 
 Light (std::uint16_t radius, const sf::Vector2i &position, const sf::Vector3i &color=DefaultColor)
 Creates a light from the given parameters. More...
 

Public Attributes

std::uint16_t radius
 
sf::Vector2i position
 
sf::Vector3i color
 

Static Public Attributes

static const sf::Vector3i DefaultColor
 

Detailed Description

Represents a renderable light in a Map.

Definition at line 16 of file Light.hpp.

Constructor & Destructor Documentation

◆ Light() [1/2]

core::map::Light::Light ( )

Creates an empty light.

Definition at line 9 of file Light.cpp.

◆ Light() [2/2]

core::map::Light::Light ( std::uint16_t  radius,
const sf::Vector2i &  position,
const sf::Vector3i &  color = DefaultColor 
)

Creates a light from the given parameters.

Parameters
radiusThe radius of the light, in pixels
positionThe position of the light, in pixels
colorThe color of the light

Definition at line 13 of file Light.cpp.

Member Data Documentation

◆ color

sf::Vector3i core::map::Light::color

Definition at line 19 of file Light.hpp.

◆ DefaultColor

const sf::Vector3i core::map::Light::DefaultColor
static

Definition at line 21 of file Light.hpp.

◆ position

sf::Vector2i core::map::Light::position

Definition at line 18 of file Light.hpp.

◆ radius

std::uint16_t core::map::Light::radius

Definition at line 17 of file Light.hpp.


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