Skip to main content

A Python library for creating and managing entities.

Project description

entyty

entyty is a Python module that defines a framework for managing entities in a game or simulation environment. Entities are objects that can exist on a grid, occupy cells, and perform various actions within the system. The module provides base classes for creating and managing entities in a game or simulation. It also includes a set of subclasses that extend the framework to support grid-based entities. The module relies on the pyglet library for event dispatching/handling.

Package Structure

The "entyty" package consists of the following classes:

  • '_AbstractEntity'

  • '_BaseEntity'

  • 'Entity'

  • 'LogicalEntity'

  • 'VisualEntity'

  • '_AbstractGridEntity'

  • 'GridEntity'

Entities

Entity

  • Entity is a subclass of BaseEntity representing general entities.

LogicalEntity

  • LogicalEntity is a subclass of BaseEntity representing logical entities.

VisualEntity

  • VisualEntity is a subclass of BaseEntity representing visual entities.
  • It includes additional properties for managing an element and a position.

GridEntity

  • GridEntity is a concrete subclass of AbstractGridEntity.
  • It represents grid-based entities and includes methods and properties for managing their movement and actions.
  • Grid entities can occupy cells, move on a grid, and perform actions.

Usage

To use the "entyty" package, you can create subclasses of the provided base classes to define specific entity types in your game or simulation. Customize the properties and methods to suit your needs.

Here's a simple example of how to create an entity:

from entyty import LogicalEntity

class MyEntity(LogicalEntity):
    def __init__(self):
        super().__init__(name='MyEntity', **kwargs)

my_entity = MyEntity()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entyty-0.0.35.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file entyty-0.0.35.tar.gz.

File metadata

  • Download URL: entyty-0.0.35.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0b4+

File hashes

Hashes for entyty-0.0.35.tar.gz
Algorithm Hash digest
SHA256 6a19da5dbe0f4a3e2e0aa830447a00e1e932974435ad48931e8203f2cf47ff8f
MD5 2820835cc4777a0c519eb4693901c4b9
BLAKE2b-256 eaf06418e69a0d1835fbeee684611205f584b4f7818efbe11b0d3fe30cb5c9fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page