[][src]Module tiny_rpg::entity

A group of structures for creating a very general entity. The entitiy should be able to be anything, walls, zones, enemies, etc.

While it has a builder, the entity itself has a few premade entities for things such as walls.

Structs

Abilities

A structure that holds a bunch of abilities that entities can perform. These abilities need to be checked for somewhere. Again like stats, may become a trait.

EnemyBuilder

Another builder for an entity that builds an Evil entity.

Entity

An Entity can be nearly anything. A field, a wall, a creature. It has values to allow interactions to intermingle. Maybe walls can be teleported, or broken down. Maybe someone can capture a creature and use it later on.

EntityBuilder

Builds an instance of Entity. Requires a position to be set, in order to place the entity. A lot of premade Entities exist in Entity, they don't use the builder for now, but soon should.

Enums

Ability

A list of abilities, again may become a trait though Not completely likely. Entities should be explicit of what they can exactly do so game logic can react appropriately, this can be as simple as moving or as complex as summoning other entities. May get reworked to allow copy. Note to self: Could have some preloaded entities not in the game directly for summoning.

Skin

The possible skins in the game, again could be a trait. For now only has RGB with plans for RGBA very soon.