1. A system for generating a virtual environment including one or more virtual entities, comprising: an element that operates to couple an electronically executable process configured to manage the virtual environment to a process to control the allocation of one or more resources of an electronic data processing system; the process to manage the virtual environment, wherein the process operates to generate one or more entities that are represented in the virtual environment; and the one or more entities, wherein each entity is associated with an electronically stored data structure and wherein the associated data structure includes an event handler, executable logic, and data storage.