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
Entityis a subclass ofBaseEntityrepresenting general entities.
LogicalEntity
LogicalEntityis a subclass ofBaseEntityrepresenting logical entities.
VisualEntity
VisualEntityis a subclass ofBaseEntityrepresenting visual entities.- It includes additional properties for managing an element and a position.
GridEntity
GridEntityis a concrete subclass ofAbstractGridEntity.- 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()
Release files for entyty 0.0.54
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| entyty-0.0.54.tar.gz | 9.0 kB | Details |
Release files / entyty-0.0.54.tar.gz
| Download URL | entyty-0.0.54.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c9d712e9fc8f04afb4d2ea38b5f8fba0e7174f257c2bb85719a7e47bd4f787d
|
|
BLAKE2b-256 checksum How to use checksums |
da3c5cc7d7e215828c1b89bf47584f92dfd52a94c683c760363ba77b9fc43a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0b4+
|