Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.23 KB

README.md

File metadata and controls

33 lines (17 loc) · 1.23 KB

Primitive-Expandable-App

A primitive application that can be expanded by creating java plugin file without changing the source code.

Content description

  • bin - A directory containing class files that are shared bewteen plugins and main application

  • DataFiles - A directory that contains compiled plugins that will be loaded in the main application

  • plugin source file - A directory that contains source code of plugins

  • PrimitiveExpandableApp.class - The main program
  • Element.java - The source code of one of the file from bin directory
  • GamePanel.java - The source code of one of the file from bin directory
  • TemplatePlugin.java - A template for creating new plugins

Creating a new Plugin

  • Copy and paste TemplatePlugin.java in the same directory.

    Rename the duplicate file to [Your Plugin Name].java, open the file and change the class & constructor name to [Your Plugin Name].

    After creating the new plugin compile the plugin with command as: " javac -d . [Your Plugin Name].java "

    (A new Plugin file will be added in DataFile directory)

Run the Program

Start the program with command: " java PrimitiveExpandableApp "