libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::Entity Class Reference

The Entity class is the base class of everything that is identified by an ID (Target, Variable, List, etc.). More...

#include <scratchcpp/entity.h>

Inheritance diagram for libscratchcpp::Entity:

Public Member Functions

 Entity (const std::string &id)
 
 Entity (const Entity &)=delete
 
virtual ~Entity ()
 
const std::string & id () const
 
void setId (const std::string &newId)
 

Detailed Description

The Entity class is the base class of everything that is identified by an ID (Target, Variable, List, etc.).

Constructor & Destructor Documentation

◆ Entity() [1/2]

Entity::Entity ( const std::string & id)

Constructs Entity.

◆ Entity() [2/2]

libscratchcpp::Entity::Entity ( const Entity & )
delete

◆ ~Entity()

virtual libscratchcpp::Entity::~Entity ( )
inlinevirtual

Member Function Documentation

◆ id()

const std::string & Entity::id ( ) const

Returns the ID.

◆ setId()

void Entity::setId ( const std::string & newId)

Sets the ID.


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