summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/cli/DiceLangPragma.java
blob: 9bbdf49b7baa99d67698751fbc82065cd20860e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package bjc.dicelang.cli;

import bjc.dicelang.DiceLangEngine;

/**
 * Represents a pragma for the command interface.
 * 
 * @author EVE
 *
 */
public interface DiceLangPragma {
	/**
	 * Execute the pragma.
	 * 
	 * @param lne
	 *        The command line the pragma came from.
	 * @param eng
	 *        The engine we are attached to.
	 * @return Whether or not the pragma succeeded.
	 */
	public boolean execute(String lne, DiceLangEngine eng);

	/**
	 * Get a description on how to use this pragma
	 * 
	 * @return The description on how to use the pragma
	 */
	public String getDescription();

	/**
	 * Get a brief idea on what this pragma does
	 * 
	 * @return A brief description of what this pragma does.
	 */
	public String getBrief();
}