 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.atrinik.actions;
22 import java.io.ByteArrayOutputStream;
23 import java.io.IOException;
24 import java.io.OutputStream;
25 import java.net.Socket;
31 import org.jetbrains.annotations.NotNull;
90 private void sendPacket(@NotNull
final ByteArrayOutputStream stream)
throws IOException {
91 final byte[] packet = stream.toByteArray();
92 packet[0] = (byte) ((packet.length - 2) >> 8);
93 packet[1] = (byte) (packet.length - 2);
95 try (Socket socket =
new Socket(
"127.0.0.1", 13327)) {
96 final OutputStream outputStream = socket.getOutputStream();
97 outputStream.write(packet);
98 socket.shutdownOutput();
100 }
catch (
final IOException ex) {
101 throw new IOException(
"127.0.0.1:13327: " + ex.getMessage(), ex);
106 protected void resetMap(@NotNull
final String mapPath)
throws IOException {
107 final ByteArrayOutputStream tmp =
new ByteArrayOutputStream();
121 protected void teleportCharacterToMap(@NotNull
final String mapPath,
final int mapX,
final int mapY)
throws IOException {
122 final ByteArrayOutputStream tmp =
new ByteArrayOutputStream();
133 tmp.write(mapX >> 8);
135 tmp.write(mapY >> 8);
Actions that require a connection to a game server.
static final String APPLICATION_NAME_IDENTIFIER
The name of the application requesting control.
daimonin editor devlib README txt This directory contains some files and libraries for development tools
Base package of all Gridarta classes.
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Java provides two different sets of cryptographic policy files
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from that
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from please keep code indentation accurate This is not just good it helps to keep code readable and in that way dramatically decreases the chance for overlooked bugs Everyone is welcomed to correct indentation errors wherever they are spotted Before you start to do this please double check that your editor is really configured to insert spaces Line feeds may be checked in either in windows or in unix linux style All reasonable text and java editors can deal with both linefeed formats Converting line feeds is but in this case please make sure that only linefeed characters are changed and nothing else is affected Due to the platform independent nature of the editor has the potential to run on almost any given operating system the build process differs greatly between systems as well as java environments In the several people have attempted to add build scripts along with structural changes to optimize the setup on one particular system environment which has led to conflict Please do *not *attempt to change the structure or any directories for the mere purpose of improving a build process or performance in a java environment Build scripts may be placed in the root directory
daimonin editor devlib README txt This directory contains some files and libraries for development similar to indent for C http
void resetMap(@NotNull final String mapPath)
Resets a map identified by the given map path.
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Extension(JCE) architecture allows flexible cryptographic key strength to be configured via the jurisdiction policy files which are referenced by the "crypto.policy" security property in the< java-home >/conf/security/java.security file. By default
Implements Atrinik archetypes.
Daimonin Editor like your to identify any bugs in the that are reported by the debuggers If a problem does exist you can forward the error message that appears in your debugging console you must have built the editor with debug flag To do so
The AbstractServerActions implementation for connecting to an Atrinik server.
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from please keep code indentation accurate This is not just good it helps to keep code readable and in that way dramatically decreases the chance for overlooked bugs Everyone is welcomed to correct indentation errors wherever they are spotted Before you start to do this please double check that your editor is really configured to insert spaces Line feeds may be checked in either in windows or in unix linux style All reasonable text and java editors can deal with both linefeed formats Converting line feeds is but in this case please make sure that only linefeed characters are changed and nothing else is affected Due to the platform independent nature of Java
static final int SERVER_CMD_CONTROL
Command type.
static final int CMD_CONTROL_PLAYER_TELEPORT
Control command sub-type: teleport character to map.
daimonin editor devlib README txt This directory contains some files and libraries for development currently
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
void sendPacket(@NotNull final ByteArrayOutputStream stream)
Send a bytes packet to the Atrinik server instance.
Main package of Gridarta4Atrinik, contains all classes specific to the Atrinik version of the Gridart...
Handles the Atrinik GameObjects.
static final int CMD_CONTROL_MAP
Control command type: control a map.
void teleportCharacterToMap(@NotNull final String mapPath, final int mapX, final int mapY)
Teleports the character to the given map path.
Java(TM) Cryptography Extension Policy Files for the Java(TM) Platform
daimonin editor devlib README txt This directory contains some files and libraries for development similar to indent for C and because many Java developers already have these libraries somewhere else on their system
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from please keep code indentation accurate This is not just good it helps to keep code readable and in that way dramatically decreases the chance for overlooked bugs Everyone is welcomed to correct indentation errors wherever they are spotted Before you start to do this please double check that your editor is really configured to insert spaces Line feeds may be checked in either in windows or in unix linux style All reasonable text and java editors can deal with both linefeed formats Converting line feeds is but in this case please make sure that only linefeed characters are changed and nothing else is affected Due to the platform independent nature of the editor has the potential to run on almost any given operating system the build process differs greatly between systems as well as java environments In the past
Daimonin Editor like your to identify any bugs in the editor
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Java provides two different sets of cryptographic policy and subdirectories can be added edited removed to reflect your import or export control product requirements Within a subdirectory
static final int CMD_CONTROL_PLAYER
Control command type: control a player.
static final String CHARSET_NAME
The charset name for encoding strings in the protocol.
Handles the Atrinik variants of GameObjects and Archetypes.
AtrinikServerActions(@NotNull final FileControl< GameObject, MapArchObject, Archetype > fileControl)
Creates a new instance.
final FileControl< G, A, R > fileControl
The file control for saving maps.
Daimonin Editor Debugging
static final int CMD_CONTROL_MAP_RESET
Control command sub-type: reset a map.
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from please keep code indentation accurate This is not just good it helps to keep code readable and in that way dramatically decreases the chance for overlooked bugs Everyone is welcomed to correct indentation errors wherever they are spotted Before you start to do this please double check that your editor is really configured to insert spaces Line feeds may be checked in either in windows or in unix linux style All reasonable text and java editors can deal with both linefeed formats Converting line feeds is but in this case please make sure that only linefeed characters are changed and nothing else is affected Due to the platform independent nature of the editor has the potential to run on almost any given operating system the build process differs greatly between systems as well as java environments In the several people have attempted to add build scripts along with structural changes to optimize the setup on one particular system environment which has led to conflict Please do *not *attempt to change the structure or any directories for the mere purpose of improving a build process or performance in a java environment Build scripts may be placed in the root it would be especially fine if it is just one or two files but the latter is not required Please excuse me for placing such restriction I and many users of the editor greatly appreciate build scripts We just had some real troubles over this issue in the past and I don t want to have them repeated the editor has relatively high performance requirements I ve spent a lot of extra work to keep everything as fast and memory efficient as possible when you add new data fields or calculations in the archetype please make sure they are as efficient as possible and worth both the time and space they consume Now don t be afraid too much No development would be possible without adding calculations and data at all Just bear in mind unlike for many other open source performance does make a difference for the CrossfireEditor The for as many systems as possible In case you are unexperienced with java and note that the graphics look different on every and with every font They also have different sizes proportions and behave different A seemingly trivial and effectless change can wreck havoc for the same GUI run on another system please don t be totally afraid of it