Components

From Victory Engine

Jump to: navigation, search

This page describes the different components that make up the Victory Engine. It only contains those elements that are developed by the Victory Engine team, not possible third-party extensions.

Contents

Core

The core of the engine. Contains the game loop and entity list.

Resource

Framework for keeping track of all the different resources (sprites, textures, sounds, etc). Basically, every object can be a resource. Managing them is done by resource managers, which keep a list of resources with a unique name to find them by.

Listing Resource Manager

The listing resource manager is a resource manager implementation which keeps a list of resource metadata and loads them upon request. Loaders can be registered for different resource types. Resource metadata is read by classes extending ResourceListImporter. Currently an implementation which reads from XML has been made.

Graphics 2D

Display framework for 2D graphics.

Java 2D

Java2D ("AWT") implementation of the above.

Sound

Input

Extra

Geometry

Math

Network

The Managed Connection is a network connection which works by extending a basic stream (such as a TCP socket connection) to allow the sending and receiving of packages. Packages are simply a list of key-value properties. There are three kinds of packages:

  • Message: A notification package, no response required.
  • Request: A package which demands a response from the receiver.
  • Response: Response to above.

Received packages can be processed by setting an event listener. There's no need to create a thread which continuously monitors the connection, this is handled for you.

Particles

Script

Logic

Event