commit d5c99aad5eef1f2f2b52f97d439c278f51ecf355 Author: Song Minjae Date: Fri Feb 5 13:36:35 2016 +0900 First commit Former-commit-id: 9340873f9cfb15264004c32d6e4b8f8bd6828d94 Former-commit-id: 1916747c109876aa064412e01204c3aeda9bbbc0 diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 000000000..ae652224d --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +Terrarum_renewed \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml new file mode 100644 index 000000000..94dd25709 --- /dev/null +++ b/.idea/codeStyleSettings.xml @@ -0,0 +1,34 @@ + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 000000000..96cc43efa --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 000000000..e7bedf337 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 000000000..97626ba45 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml new file mode 100644 index 000000000..e9b373787 --- /dev/null +++ b/.idea/libraries/lib.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..18d93cc08 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..ab7a10c04 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 000000000..e96534fb2 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Terrarum_renewed.iml b/Terrarum_renewed.iml new file mode 100644 index 000000000..07e3eebf9 --- /dev/null +++ b/Terrarum_renewed.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/hs_err_pid61524.log b/hs_err_pid61524.log new file mode 100644 index 000000000..d226affce --- /dev/null +++ b/hs_err_pid61524.log @@ -0,0 +1,514 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x00007fff827c74e9, pid=61524, tid=2571 +# +# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops) +# Problematic frame: +# C [libobjc.A.dylib+0x14e9] objc_msgSend+0x29 +# +# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again +# +# If you would like to submit a bug report, please visit: +# http://bugreport.sun.com/bugreport/crash.jsp +# The crash happened outside the Java Virtual Machine in native code. +# See problematic frame for where to report the bug. +# + +--------------- T H R E A D --------------- + +Current thread (0x00007ff8d30cc800): JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff51695000,0x00007fff51e95000)] + +siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000 + +Registers: +RAX=0x0000000000000000, RBX=0x00007ff8d1f66f70, RCX=0x0000000127cd0be0, RDX=0x0000000127cd05e0 +RSP=0x00007fff51e8f478, RBP=0x00007fff51e8f4a0, RSI=0x00007fff95f71245, RDI=0x00007ff8d1e54e40 +R8 =0x000000000000001f, R9 =0xffffffffffffffff, R10=0x0000000000000000, R11=0x00007ff8d2007000 +R12=0x0000000000000094, R13=0x00007ff8d1e52b10, R14=0x00007ff8d1e54e40, R15=0x0000000000000000 +RIP=0x00007fff827c74e9, EFLAGS=0x0000000000010246, ERR=0x0000000000000004 + TRAPNO=0x000000000000000e + +Top of Stack: (sp=0x00007fff51e8f478) +0x00007fff51e8f478: 000000012986c598 00007ff8d1f66f70 +0x00007fff51e8f488: 00000001298a0c60 00007ff8d1e52b10 +0x00007fff51e8f498: 00007ff8d1f66f70 00007fff51e8f980 +0x00007fff51e8f4a8: 00007fff955c07c3 0000000000000000 +0x00007fff51e8f4b8: 0000000000000000 408e000000000000 +0x00007fff51e8f4c8: 4080e00000000000 0000000000000000 +0x00007fff51e8f4d8: 0000000000000000 408e000000000000 +0x00007fff51e8f4e8: 4080e00000000000 0000000000000000 +0x00007fff51e8f4f8: 0000000000000000 408e000000000000 +0x00007fff51e8f508: 4081900000000000 401c000000000000 +0x00007fff51e8f518: 4080f80000000000 0000000000000000 +0x00007fff51e8f528: 0000000000000000 00007fff95f307e1 +0x00007fff51e8f538: 4080f80000000000 402c000000000000 +0x00007fff51e8f548: 00007ff8d1f68ee0 0000000100000000 +0x00007fff51e8f558: 0000000000000000 00007ff8d1e53270 +0x00007fff51e8f568: 0000000000000000 0000000000000000 +0x00007fff51e8f578: 00007fff51e8f700 00007fff51e8f6d0 +0x00007fff51e8f588: 00007fff955c5050 401c000000000000 +0x00007fff51e8f598: 4080f80000000000 00007fff51e8f6d0 +0x00007fff51e8f5a8: 00007fff955c7302 401c000000000000 +0x00007fff51e8f5b8: 4080f80000000000 402c000000000000 +0x00007fff51e8f5c8: 4030000000000000 0000000000000000 +0x00007fff51e8f5d8: 0000000000000000 408e000000000000 +0x00007fff51e8f5e8: 4081900000000000 401c000000000000 +0x00007fff51e8f5f8: 4080f80000000000 402c000000000000 +0x00007fff51e8f608: 4030000000000000 0000000000000000 +0x00007fff51e8f618: 0000000000000000 000000010dd8a800 +0x00007fff51e8f628: 0000000000000013 00007ff8d1da40c0 +0x00007fff51e8f638: 0000000000000003 0000000000000a40 +0x00007fff51e8f648: 000000010dd85000 00007fff51e8f6f0 +0x00007fff51e8f658: 00007fff80c13dfc 0000000000000000 +0x00007fff51e8f668: 0000000000000000 0000000000000a41 + +Instructions: (pc=0x00007fff827c74e9) +0x00007fff827c74c9: 01 2e 75 66 49 bb f8 ff ff ff ff 7f 00 00 4c 23 +0x00007fff827c74d9: 1f 49 89 f2 45 23 53 18 49 c1 e2 04 4d 03 53 10 +0x00007fff827c74e9: 49 3b 32 75 04 41 ff 62 08 49 83 3a 01 76 0d 49 +0x00007fff827c74f9: 83 c2 10 49 3b 32 75 f1 41 ff 62 08 72 40 4d 8b + +Register to memory mapping: + +RAX=0x0000000000000000 is an unknown value +RBX=0x00007ff8d1f66f70 is an unknown value +RCX=0x0000000127cd0be0 is an unknown value +RDX=0x0000000127cd05e0 is an unknown value +RSP=0x00007fff51e8f478 is pointing into the stack for thread: 0x00007ff8d30cc800 +RBP=0x00007fff51e8f4a0 is pointing into the stack for thread: 0x00007ff8d30cc800 +RSI=0x00007fff95f71245: -[NSTitlebarContainerView transparent]+0x6302d in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit at 0x00007fff954e9000 +RDI=0x00007ff8d1e54e40 is an unknown value +R8 =0x000000000000001f is an unknown value +R9 =0xffffffffffffffff is an unknown value +R10=0x0000000000000000 is an unknown value +R11=0x00007ff8d2007000 is a thread +R12=0x0000000000000094 is an unknown value +R13=0x00007ff8d1e52b10 is an unknown value +R14=0x00007ff8d1e54e40 is an unknown value +R15=0x0000000000000000 is an unknown value + + +Stack: [0x00007fff51695000,0x00007fff51e95000], sp=0x00007fff51e8f478, free space=8169k +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +C [libobjc.A.dylib+0x14e9] objc_msgSend+0x29 +C [AppKit+0xd77c3] -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x6e2 +C [AppKit+0xd87b1] -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x16d0 +C [AppKit+0xd6c0c] -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x14e +C [AppKit+0xd31ef] -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]+0x991 +C [AppKit+0x8d971] -[NSView displayIfNeeded]+0x79e +C [AppKit+0x8d19c] -[NSWindow displayIfNeeded]+0xe8 +C [AppKit+0x8096da] ___NSWindowGetDisplayCycleObserver_block_invoke6367+0x1dc +C [AppKit+0x4500d6] __37+[NSDisplayCycle currentDisplayCycle]_block_invoke+0x2e2 +C [QuartzCore+0x173b5d] CA::Transaction::run_commit_handlers(CATransactionPhase)+0x55 +C [QuartzCore+0xdc7c] CA::Context::commit_transaction(CA::Transaction*)+0xa0 +C [QuartzCore+0xda24] CA::Transaction::commit()+0x1fc +C [QuartzCore+0x1c917] CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)+0x47 +C [CoreFoundation+0x7de37] __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x17 +C [CoreFoundation+0x7dda7] __CFRunLoopDoObservers+0x187 +C [CoreFoundation+0x6f358] CFRunLoopRunSpecific+0x148 +C [HIToolbox+0x30935] RunCurrentEventLoopInMode+0xeb +C [HIToolbox+0x30677] ReceiveNextEventCommon+0xb8 +C [HIToolbox+0x305af] _BlockUntilNextEventMatchingListInModeWithFilter+0x47 +C [AppKit+0x8a0ee] _DPSNextEvent+0x42b +C [AppKit+0x456943] -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0x1c6 +C [libosxapp.dylib+0x242a] -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:]+0x7c +C [AppKit+0x7ffc8] -[NSApplication run]+0x2aa +C [libosxapp.dylib+0x223e] +[NSApplicationAWT runAWTLoopWithApp:]+0x9c +C [libawt_lwawt.dylib+0x4494f] -[AWTStarter starter:]+0x389 +C [Foundation+0x8dd4b] __NSThreadPerformPerform+0x117 +C [CoreFoundation+0x7e5c1] __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11 +C [CoreFoundation+0x7041c] __CFRunLoopDoSources0+0x22c +C [CoreFoundation+0x6f93f] __CFRunLoopRun+0x39f +C [CoreFoundation+0x6f338] CFRunLoopRunSpecific+0x128 +C [java+0x56cc] CreateExecutionEnvironment+0x367 +C [java+0x165c] JLI_Launch+0x7a0 +C [java+0x768a] main+0x65 +C [java+0xeb4] start+0x34 +C 0x0000000000000009 + + +--------------- P R O C E S S --------------- + +Java Threads: ( => current thread ) + 0x00007ff8d3a44800 JavaThread "Java2D Queue Flusher" daemon [_thread_blocked, id=65287, stack(0x000070000155f000,0x000070000165f000)] + 0x00007ff8d29bf000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=64263, stack(0x000070000145c000,0x000070000155c000)] + 0x00007ff8d28cc800 JavaThread "AWT-Shutdown" [_thread_blocked, id=27179, stack(0x00007000012d6000,0x00007000013d6000)] +=>0x00007ff8d30cc800 JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff51695000,0x00007fff51e95000)] + 0x00007ff8d305a000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=19459, stack(0x0000700000fc7000,0x00007000010c7000)] + 0x00007ff8d3054800 JavaThread "Service Thread" daemon [_thread_blocked, id=18435, stack(0x0000700000dc1000,0x0000700000ec1000)] + 0x00007ff8d382f000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=17923, stack(0x0000700000cbe000,0x0000700000dbe000)] + 0x00007ff8d3810000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=17411, stack(0x0000700000bbb000,0x0000700000cbb000)] + 0x00007ff8d3027000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=16899, stack(0x0000700000ab8000,0x0000700000bb8000)] + 0x00007ff8d3813800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12815, stack(0x00007000009b5000,0x0000700000ab5000)] + 0x00007ff8d2817000 JavaThread "Finalizer" daemon [_thread_blocked, id=12291, stack(0x000070000082f000,0x000070000092f000)] + 0x00007ff8d2018000 JavaThread "Reference Handler" daemon [_thread_blocked, id=11779, stack(0x000070000072c000,0x000070000082c000)] + 0x00007ff8d2007000 JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +Other Threads: + 0x00007ff8d301e000 VMThread [stack: 0x0000700000629000,0x0000700000729000] [id=11267] + 0x00007ff8d3055800 WatcherThread [stack: 0x0000700000ec4000,0x0000700000fc4000] [id=18947] + +VM state:not at safepoint (normal execution) + +VM Mutex/Monitor currently owned by a thread: None + +Heap: + PSYoungGen total 38400K, used 21314K [0x0000000795580000, 0x0000000798000000, 0x00000007c0000000) + eden space 33280K, 64% used [0x0000000795580000,0x0000000796a509e8,0x0000000797600000) + from space 5120K, 0% used [0x0000000797b00000,0x0000000797b00000,0x0000000798000000) + to space 5120K, 0% used [0x0000000797600000,0x0000000797600000,0x0000000797b00000) + ParOldGen total 87552K, used 0K [0x0000000740000000, 0x0000000745580000, 0x0000000795580000) + object space 87552K, 0% used [0x0000000740000000,0x0000000740000000,0x0000000745580000) + Metaspace used 9624K, capacity 9761K, committed 10112K, reserved 1058816K + class space used 1020K, capacity 1053K, committed 1152K, reserved 1048576K + +Card table byte_map: [0x000000011ecdb000,0x000000011f0dc000] byte_map_base: 0x000000011b2db000 + +Marking Bits: (ParMarkBitMap*) 0x000000010f29c330 + Begin Bits: [0x000000011f387000, 0x0000000121387000) + End Bits: [0x0000000121387000, 0x0000000123387000) + +Polling page: 0x000000010e10a000 + +CodeCache: size=245760Kb used=3077Kb max_used=3088Kb free=242682Kb + bounds [0x000000010f91b000, 0x000000010fc2b000, 0x000000011e91b000] + total_blobs=1318 nmethods=805 adapters=428 + compilation: enabled + +Compilation events (10 events): +Event: 9.544 Thread 0x00007ff8d382f000 798 ! 3 org.lwjgl.input.Keyboard::poll (47 bytes) +Event: 9.545 Thread 0x00007ff8d382f000 nmethod 798 0x000000010fc18410 code [0x000000010fc186a0, 0x000000010fc19968] +Event: 9.560 Thread 0x00007ff8d382f000 799 3 java.nio.ByteBuffer::put (55 bytes) +Event: 9.560 Thread 0x00007ff8d382f000 nmethod 799 0x000000010fc1a4d0 code [0x000000010fc1a680, 0x000000010fc1ac68] +Event: 9.560 Thread 0x00007ff8d382f000 802 3 java.util.LinkedHashMap::afterNodeAccess (116 bytes) +Event: 9.561 Thread 0x00007ff8d382f000 nmethod 802 0x000000010fc1af50 code [0x000000010fc1b0e0, 0x000000010fc1b5b0] +Event: 9.561 Thread 0x00007ff8d382f000 800 ! 3 org.lwjgl.opengl.Display::isCloseRequested (38 bytes) +Event: 9.561 Thread 0x00007ff8d382f000 nmethod 800 0x000000010fc1b710 code [0x000000010fc1b8c0, 0x000000010fc1c068] +Event: 9.561 Thread 0x00007ff8d382f000 801 ! 3 org.lwjgl.opengl.MacOSXDisplay::isCloseRequested (26 bytes) +Event: 9.562 Thread 0x00007ff8d382f000 nmethod 801 0x000000010fc1c390 code [0x000000010fc1c500, 0x000000010fc1c7f0] + +GC Heap History (0 events): +No events + +Deoptimization events (4 events): +Event: 5.121 Thread 0x00007ff8d2007000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000010fb30a04 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253 +Event: 5.121 Thread 0x00007ff8d2007000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000010fb30a04 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253 +Event: 5.121 Thread 0x00007ff8d2007000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000010fb30a04 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253 +Event: 5.121 Thread 0x00007ff8d2007000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000010fb30a04 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253 + +Internal exceptions (10 events): +Event: 5.071 Thread 0x00007ff8d2007000 Exception (0x0000000796858898) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.071 Thread 0x00007ff8d2007000 Exception (0x000000079685eea0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.268 Thread 0x00007ff8d2007000 Exception (0x00000007969aae58) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.269 Thread 0x00007ff8d2007000 Exception (0x00000007969aecf0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.292 Thread 0x00007ff8d2007000 Exception (0x00000007969b3180) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.292 Thread 0x00007ff8d2007000 Exception (0x00000007969b6f78) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.293 Thread 0x00007ff8d2007000 Exception (0x00000007969bb240) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.295 Thread 0x00007ff8d2007000 Exception (0x00000007969c3680) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 5.301 Thread 0x00007ff8d2007000 Exception (0x00000007969c7018) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 9.619 Thread 0x00007ff8d2007000 Exception (0x0000000796a08628) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] + +Events (10 events): +Event: 5.293 loading class org/newdawn/slick/Music +Event: 5.293 loading class org/newdawn/slick/Music done +Event: 5.295 loading class com/Torvald/Terrarum/MapDrawer +Event: 5.295 loading class com/Torvald/Terrarum/MapDrawer done +Event: 5.299 loading class java/util/LinkedList$ListItr +Event: 5.299 loading class java/util/LinkedList$ListItr done +Event: 5.300 loading class org/newdawn/slick/AngelCodeFont$DisplayList +Event: 5.300 loading class org/newdawn/slick/AngelCodeFont$DisplayList done +Event: 9.618 loading class org/lwjgl/opengl/CallbackUtil +Event: 9.618 loading class org/lwjgl/opengl/CallbackUtil done + + +Dynamic libraries: +0x00000000005e7000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa +0x00000000005e7000 /System/Library/Frameworks/Security.framework/Versions/A/Security +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices +0x00000000005e7000 /usr/lib/libz.1.dylib +0x00000000005e7000 /usr/lib/libSystem.B.dylib +0x00000000005e7000 /usr/lib/libobjc.A.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x00000000005e7000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation +0x00000000005e7000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x00000000005e7000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData +0x00000000005e7000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices +0x00000000005e7000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation +0x00000000005e7000 /usr/lib/libScreenReader.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate +0x00000000005e7000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface +0x00000000005e7000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox +0x00000000005e7000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit +0x00000000005e7000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore +0x00000000005e7000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x00000000005e7000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition +0x00000000005e7000 /usr/lib/libauto.dylib +0x00000000005e7000 /usr/lib/libicucore.A.dylib +0x00000000005e7000 /usr/lib/libxml2.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI +0x00000000005e7000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio +0x00000000005e7000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration +0x00000000005e7000 /usr/lib/liblangid.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport +0x00000000005e7000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit +0x00000000005e7000 /usr/lib/libDiagnosticMessagesClient.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices +0x00000000005e7000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis +0x00000000005e7000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL +0x00000000005e7000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics +0x00000000005e7000 /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage +0x00000000005e7000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO +0x00000000005e7000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup +0x00000000005e7000 /usr/lib/libextension.dylib +0x00000000005e7000 /usr/lib/libarchive.2.dylib +0x00000000005e7000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork +0x00000000005e7000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration +0x00000000005e7000 /usr/lib/libCRFSuite.dylib +0x00000000005e7000 /usr/lib/libc++.1.dylib +0x00000000005e7000 /usr/lib/libc++abi.dylib +0x00000000005e7000 /usr/lib/system/libcache.dylib +0x00000000005e7000 /usr/lib/system/libcommonCrypto.dylib +0x00000000005e7000 /usr/lib/system/libcompiler_rt.dylib +0x00000000005e7000 /usr/lib/system/libcopyfile.dylib +0x00000000005e7000 /usr/lib/system/libcorecrypto.dylib +0x00000000005e7000 /usr/lib/system/libdispatch.dylib +0x00000000005e7000 /usr/lib/system/libdyld.dylib +0x00000000005e7000 /usr/lib/system/libkeymgr.dylib +0x00000000005e7000 /usr/lib/system/liblaunch.dylib +0x00000000005e7000 /usr/lib/system/libmacho.dylib +0x00000000005e7000 /usr/lib/system/libquarantine.dylib +0x00000000005e7000 /usr/lib/system/libremovefile.dylib +0x00000000005e7000 /usr/lib/system/libsystem_asl.dylib +0x00000000005e7000 /usr/lib/system/libsystem_blocks.dylib +0x00000000005e7000 /usr/lib/system/libsystem_c.dylib +0x00000000005e7000 /usr/lib/system/libsystem_configuration.dylib +0x00000000005e7000 /usr/lib/system/libsystem_coreservices.dylib +0x00000000005e7000 /usr/lib/system/libsystem_coretls.dylib +0x00000000005e7000 /usr/lib/system/libsystem_dnssd.dylib +0x00000000005e7000 /usr/lib/system/libsystem_info.dylib +0x00000000005e7000 /usr/lib/system/libsystem_kernel.dylib +0x00000000005e7000 /usr/lib/system/libsystem_m.dylib +0x00000000005e7000 /usr/lib/system/libsystem_malloc.dylib +0x00000000005e7000 /usr/lib/system/libsystem_network.dylib +0x00000000005e7000 /usr/lib/system/libsystem_networkextension.dylib +0x00000000005e7000 /usr/lib/system/libsystem_notify.dylib +0x00000000005e7000 /usr/lib/system/libsystem_platform.dylib +0x00000000005e7000 /usr/lib/system/libsystem_pthread.dylib +0x00000000005e7000 /usr/lib/system/libsystem_sandbox.dylib +0x00000000005e7000 /usr/lib/system/libsystem_secinit.dylib +0x00000000005e7000 /usr/lib/system/libsystem_trace.dylib +0x00000000005e7000 /usr/lib/system/libunc.dylib +0x00000000005e7000 /usr/lib/system/libunwind.dylib +0x00000000005e7000 /usr/lib/system/libxpc.dylib +0x00000000005e7000 /usr/lib/libenergytrace.dylib +0x00000000005e7000 /usr/lib/libbsm.0.dylib +0x00000000005e7000 /usr/lib/system/libkxld.dylib +0x00000000005e7000 /usr/lib/libxar.1.dylib +0x00000000005e7000 /usr/lib/libsqlite3.dylib +0x00000000005e7000 /usr/lib/libpam.2.dylib +0x00000000005e7000 /usr/lib/libOpenScriptingUtil.dylib +0x00000000005e7000 /usr/lib/libbz2.1.0.dylib +0x00000000005e7000 /usr/lib/liblzma.5.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList +0x00000000005e7000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS +0x00000000005e7000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth +0x00000000005e7000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport +0x00000000005e7000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC +0x00000000005e7000 /usr/lib/libmecabra.dylib +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis +0x00000000005e7000 /System/Library/Frameworks/Metal.framework/Versions/A/Metal +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib +0x00000000005e7000 /usr/lib/libcups.2.dylib +0x00000000005e7000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos +0x00000000005e7000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS +0x00000000005e7000 /usr/lib/libresolv.9.dylib +0x00000000005e7000 /usr/lib/libiconv.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal +0x00000000005e7000 /usr/lib/libheimdal-asn1.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory +0x00000000005e7000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth +0x00000000005e7000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory +0x00000000005e7000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation +0x00000000005e7000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling +0x00000000005e7000 /usr/lib/libmarisa.dylib +0x00000000005e7000 /usr/lib/libChineseTokenizer.dylib +0x00000000005e7000 /usr/lib/libcmph.dylib +0x00000000005e7000 /usr/lib/libcompression.dylib +0x00000000005e7000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement +0x00000000005e7000 /usr/lib/libxslt.1.dylib +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink +0x00000000005e7000 /usr/lib/libFosl_dynamic.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL +0x00000000005e7000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport +0x00000000005e7000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices +0x00000000005e7000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 +0x00000000005e7000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN +0x00000000005e7000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi +0x00000000005e7000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth +0x00000000005e7000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary +0x00000000005e7000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication +0x00000000005e7000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication +0x00000000005e7000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore +0x00000000534b6000 /System/Library/CoreServices/Encodings/libKoreanConverter.dylib +0x000000010ea00000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib +0x000000010e011000 /usr/lib/libstdc++.6.dylib +0x000000010e0c8000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libverify.dylib +0x000000010e0d6000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjava.dylib +0x000000010e114000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libzip.dylib +0x00000001251af000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport +0x000000010e1e9000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation +0x00000001251ca000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon +0x00000001251d7000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI +0x0000000126c36000 /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/libbreakgen64.jnilib +0x0000000126c39000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libnet.dylib +0x0000000126c98000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt.dylib +0x0000000126d47000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libmlib_image.dylib +0x0000000126e13000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt_lwawt.dylib +0x0000000126ec6000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libosxapp.dylib +0x00000000005e7000 /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib +0x0000000127ab8000 /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages +0x00000000005e7000 /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording +0x00000000005e7000 /usr/lib/libcsfde.dylib +0x00000000005e7000 /usr/lib/libcurl.4.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit +0x00000000005e7000 /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage +0x00000000005e7000 /usr/lib/libCoreStorage.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin +0x00000000005e7000 /usr/lib/libutil.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice +0x00000000005e7000 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP +0x00000000005e7000 /usr/lib/libsasl2.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon +0x00000000005e7000 /usr/lib/libcrypto.0.9.8.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP +0x00000000005e7000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent +0x00000001287e2000 cl_kernels +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls +0x00000000005e7000 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore +0x00000000005e7000 /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration +0x00000000005e7000 /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer +0x00000000005e7000 /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper +0x00000000005e7000 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService +0x00000000005e7000 /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore +0x00000000005e7000 /usr/lib/libodfde.dylib +0x00000001297fc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libfontmanager.dylib +0x0000000129862000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/liblwjgl.dylib +0x0000000127cd6000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjawt.dylib +0x0000000129900000 /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib +0x0000000129ae8000 /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver +0x00000000005e7000 /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib +0x000000012a1af000 /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat +0x000000012af86000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/libjinput-osx.dylib +0x000000012af8b000 /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib +0x000000012bff2000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libnio.dylib + +VM Arguments: +jvm_args: -Djava.library.path=/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native -Didea.launcher.port=7538 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15 CE.app/Contents/bin -Dfile.encoding=UTF-8 +java_command: com.intellij.rt.execution.application.AppMain com.Torvald.Terrarum.Terrarum +java_class_path (initial): /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/C +Launcher Type: SUN_STANDARD + +Environment Variables: +PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin +SHELL=/bin/bash +DISPLAY=/private/tmp/com.apple.launchd.8AA461ZLSp/org.macosforge.xquartz:0 + +Signal Handlers: +SIGSEGV: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO +SIGBUS: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGFPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGPIPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGXFSZ: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGILL: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none +SIGUSR2: [libjvm.dylib+0x45a62a], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO +SIGHUP: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGINT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGTERM: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGQUIT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO + + +--------------- S Y S T E M --------------- + +OS:Bsduname:Darwin 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64 +rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity +load average:1.46 1.80 1.89 + +CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv + +Memory: 4k page, physical 8388608k(1128448k free) + +/proc/meminfo: + + +vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for bsd-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:37:47 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) + +time: Mon Jan 4 03:45:59 2016 +elapsed time: 9 seconds (0d 0h 0m 9s) + diff --git a/hs_err_pid67196.log b/hs_err_pid67196.log new file mode 100644 index 000000000..4a64a948c --- /dev/null +++ b/hs_err_pid67196.log @@ -0,0 +1,514 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x00007fff827d28df, pid=67196, tid=2571 +# +# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops) +# Problematic frame: +# C [libobjc.A.dylib+0xc8df] objc_storeWeak+0x104 +# +# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again +# +# If you would like to submit a bug report, please visit: +# http://bugreport.sun.com/bugreport/crash.jsp +# The crash happened outside the Java Virtual Machine in native code. +# See problematic frame for where to report the bug. +# + +--------------- T H R E A D --------------- + +Current thread (0x00007fee7a076800): JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff50f3e000,0x00007fff5173e000)] + +siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000003d04273160 + +Registers: +RAX=0x0000000000000000, RBX=0x00007fff70ef3e80, RCX=0x0000000000000a0b, RDX=0x00007ffffffffff8 +RSP=0x00007fff517388d0, RBP=0x00007fff51738940, RSI=0x0000003d04273140, RDI=0x00007fff70ef3e80 +R8 =0x00007fff863ba9fb, R9 =0x00007fee78545280, R10=0x000000000000005a, R11=0x0000000000000012 +R12=0x00007fee78580250, R13=0x0000000000000000, R14=0x00007fff70ef5480, R15=0x0000000000000000 +RIP=0x00007fff827d28df, EFLAGS=0x0000000000010202, ERR=0x0000000000000004 + TRAPNO=0x000000000000000e + +Top of Stack: (sp=0x00007fff517388d0) +0x00007fff517388d0: ffff801187abad80 00007fee78580080 +0x00007fff517388e0: 0000000000001600 0000000000000000 +0x00007fff517388f0: 0000000000000000 0000000000000000 +0x00007fff51738900: 00007fee7876e980 000000000000002c +0x00007fff51738910: 0000000000000004 00007fee78545280 +0x00007fff51738920: 0000000000000000 00007fee7854c6d0 +0x00007fff51738930: 00007fee78580080 00007fee7876e980 +0x00007fff51738940: 00007fff51738980 00007fff863b1807 +0x00007fff51738950: 00007fee78545280 0000000000000000 +0x00007fff51738960: 00007fee7876e980 00007fff827c74c0 +0x00007fff51738970: 00007fee78545280 00007fff749c9b48 +0x00007fff51738980: 00007fff517389b0 00007fff957e2561 +0x00007fff51738990: 00007fff51738a28 00007fff827c74c0 +0x00007fff517389a0: 00007fee7876e980 00007fee78545280 +0x00007fff517389b0: 00007fff517389e0 00007fff95b3aa00 +0x00007fff517389c0: 0000000000000000 0000000000000094 +0x00007fff517389d0: 00007fff51738a28 0000000000000001 +0x00007fff517389e0: 00007fff51738a10 00007fff95d1e659 +0x00007fff517389f0: 00007fee78545280 00007fee7876e980 +0x00007fff51738a00: 00007fee78545280 0000000000000000 +0x00007fff51738a10: 00007fff51738a70 00007fff957e2204 +0x00007fff51738a20: 0000000000000000 00007fff73f3a0a0 +0x00007fff51738a30: 0000000042000000 00007fff95b3a92a +0x00007fff51738a40: 00007fff74736200 0000000000000000 +0x00007fff51738a50: 00007fee7876e980 00007fee78545280 +0x00007fff51738a60: 00007fee78545280 00007fee7876e980 +0x00007fff51738a70: 00007fff51738aa0 0000000129fe3586 +0x00007fff51738a80: 00007fee78545280 000000012a017c60 +0x00007fff51738a90: 00007fee7854c6d0 00007fee78545280 +0x00007fff51738aa0: 00007fff51738f80 00007fff955c07c3 +0x00007fff51738ab0: 0000000000000000 0000000000000000 +0x00007fff51738ac0: 408e000000000000 4086800000000000 + +Instructions: (pc=0x00007fff827d28df) +0x00007fff827d28bf: 48 8b 30 48 21 d6 eb 0f 48 8b 45 a8 48 8d 0d 0e +0x00007fff827d28cf: 4d 66 ee 48 8b 34 c1 48 8b 45 b8 48 39 c6 74 48 +0x00007fff827d28df: 48 8b 46 20 48 89 c1 48 21 d1 48 8b 49 08 f6 01 +0x00007fff827d28ef: 01 75 0a 48 8b 06 48 21 d0 48 8b 40 20 48 21 d0 + +Register to memory mapping: + +RAX=0x0000000000000000 is an unknown value +RBX=0x00007fff70ef3e80: _ZN12_GLOBAL__N_1L12SideTableBufE+0 in /usr/lib/libobjc.A.dylib at 0x00007fff827c6000 +RCX=0x0000000000000a0b is an unknown value +RDX=0x00007ffffffffff8 is an unknown value +RSP=0x00007fff517388d0 is pointing into the stack for thread: 0x00007fee7a076800 +RBP=0x00007fff51738940 is pointing into the stack for thread: 0x00007fee7a076800 +RSI=0x0000003d04273140 is an unknown value +RDI=0x00007fff70ef3e80: _ZN12_GLOBAL__N_1L12SideTableBufE+0 in /usr/lib/libobjc.A.dylib at 0x00007fff827c6000 +R8 =0x00007fff863ba9fb: storeARCWeakAt+0 in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation at 0x00007fff8639c000 +R9 =0x00007fee78545280 is an unknown value +R10=0x000000000000005a is an unknown value +R11=0x0000000000000012 is an unknown value +R12=0x00007fee78580250 is an unknown value +R13=0x0000000000000000 is an unknown value +R14=0x00007fff70ef5480: _ZN12_GLOBAL__N_1L12SideTableBufE+0x1600 in /usr/lib/libobjc.A.dylib at 0x00007fff827c6000 +R15=0x0000000000000000 is an unknown value + + +Stack: [0x00007fff50f3e000,0x00007fff5173e000], sp=0x00007fff517388d0, free space=8170k +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +C [libobjc.A.dylib+0xc8df] objc_storeWeak+0x104 +C [Foundation+0x15807] -[NSConcreteMapTable setObject:forKey:]+0x6e +C [AppKit+0x2f9561] -[NSView(NSOpenGLContextAssociation) _setOpenGLContext:]+0xf2 +C [AppKit+0x651a00] __27-[NSOpenGLContext setView:]_block_invoke+0xd6 +C [AppKit+0x835659] NSPerformVisuallyAtomicChange+0x93 +C [AppKit+0x2f9204] -[NSOpenGLContext setView:]+0x77 +C [liblwjgl.dylib+0xa586] -[MacOSXOpenGLView lockFocus]+0x76 +C [AppKit+0xd77c3] -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x6e2 +C [AppKit+0xd87b1] -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x16d0 +C [AppKit+0xd6c0c] -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x14e +C [AppKit+0xd31ef] -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]+0x991 +C [AppKit+0x8d971] -[NSView displayIfNeeded]+0x79e +C [AppKit+0x8d19c] -[NSWindow displayIfNeeded]+0xe8 +C [AppKit+0x8096da] ___NSWindowGetDisplayCycleObserver_block_invoke6367+0x1dc +C [AppKit+0x4500d6] __37+[NSDisplayCycle currentDisplayCycle]_block_invoke+0x2e2 +C [QuartzCore+0x173b5d] CA::Transaction::run_commit_handlers(CATransactionPhase)+0x55 +C [QuartzCore+0xdc7c] CA::Context::commit_transaction(CA::Transaction*)+0xa0 +C [QuartzCore+0xda24] CA::Transaction::commit()+0x1fc +C [QuartzCore+0x1c917] CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)+0x47 +C [CoreFoundation+0x7de37] __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x17 +C [CoreFoundation+0x7dda7] __CFRunLoopDoObservers+0x187 +C [CoreFoundation+0x6f358] CFRunLoopRunSpecific+0x148 +C [HIToolbox+0x30935] RunCurrentEventLoopInMode+0xeb +C [HIToolbox+0x30677] ReceiveNextEventCommon+0xb8 +C [HIToolbox+0x305af] _BlockUntilNextEventMatchingListInModeWithFilter+0x47 +C [AppKit+0x8a0ee] _DPSNextEvent+0x42b +C [AppKit+0x456943] -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0x1c6 +C [libosxapp.dylib+0x242a] -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:]+0x7c +C [AppKit+0x7ffc8] -[NSApplication run]+0x2aa +C [libosxapp.dylib+0x223e] +[NSApplicationAWT runAWTLoopWithApp:]+0x9c +C [libawt_lwawt.dylib+0x4494f] -[AWTStarter starter:]+0x389 +C [Foundation+0x8dd4b] __NSThreadPerformPerform+0x117 +C [CoreFoundation+0x7e5c1] __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11 +C [CoreFoundation+0x7041c] __CFRunLoopDoSources0+0x22c +C [CoreFoundation+0x6f93f] __CFRunLoopRun+0x39f +C [CoreFoundation+0x6f338] CFRunLoopRunSpecific+0x128 +C [java+0x56cc] CreateExecutionEnvironment+0x367 +C [java+0x165c] JLI_Launch+0x7a0 +C [java+0x768a] main+0x65 +C [java+0xeb4] start+0x34 +C 0x0000000000000009 + + +--------------- P R O C E S S --------------- + +Java Threads: ( => current thread ) + 0x00007fee798be000 JavaThread "AWT-Shutdown" [_thread_blocked, id=30227, stack(0x00007000012d6000,0x00007000013d6000)] +=>0x00007fee7a076800 JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff50f3e000,0x00007fff5173e000)] + 0x00007fee7989d000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=19459, stack(0x0000700000fc7000,0x00007000010c7000)] + 0x00007fee79055800 JavaThread "Service Thread" daemon [_thread_blocked, id=18435, stack(0x0000700000dc1000,0x0000700000ec1000)] + 0x00007fee7984e800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=17923, stack(0x0000700000cbe000,0x0000700000dbe000)] + 0x00007fee7984d800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=17411, stack(0x0000700000bbb000,0x0000700000cbb000)] + 0x00007fee7984c000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=16899, stack(0x0000700000ab8000,0x0000700000bb8000)] + 0x00007fee7881a800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12815, stack(0x00007000009b5000,0x0000700000ab5000)] + 0x00007fee7a019000 JavaThread "Finalizer" daemon [_thread_blocked, id=12291, stack(0x000070000082f000,0x000070000092f000)] + 0x00007fee7a000800 JavaThread "Reference Handler" daemon [_thread_blocked, id=11779, stack(0x000070000072c000,0x000070000082c000)] + 0x00007fee79803000 JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +Other Threads: + 0x00007fee78811000 VMThread [stack: 0x0000700000629000,0x0000700000729000] [id=11267] + 0x00007fee79061000 WatcherThread [stack: 0x0000700000ec4000,0x0000700000fc4000] [id=18947] + +VM state:not at safepoint (normal execution) + +VM Mutex/Monitor currently owned by a thread: None + +Heap: + PSYoungGen total 38400K, used 18648K [0x0000000795580000, 0x0000000798000000, 0x00000007c0000000) + eden space 33280K, 56% used [0x0000000795580000,0x00000007967b6160,0x0000000797600000) + from space 5120K, 0% used [0x0000000797b00000,0x0000000797b00000,0x0000000798000000) + to space 5120K, 0% used [0x0000000797600000,0x0000000797600000,0x0000000797b00000) + ParOldGen total 87552K, used 0K [0x0000000740000000, 0x0000000745580000, 0x0000000795580000) + object space 87552K, 0% used [0x0000000740000000,0x0000000740000000,0x0000000745580000) + Metaspace used 7299K, capacity 7407K, committed 7424K, reserved 1056768K + class space used 735K, capacity 760K, committed 768K, reserved 1048576K + +Card table byte_map: [0x000000011f3c0000,0x000000011f7c1000] byte_map_base: 0x000000011b9c0000 + +Marking Bits: (ParMarkBitMap*) 0x000000010f000330 + Begin Bits: [0x000000011fa6c000, 0x0000000121a6c000) + End Bits: [0x0000000121a6c000, 0x0000000123a6c000) + +Polling page: 0x000000010f77c000 + +CodeCache: size=245760Kb used=2880Kb max_used=2880Kb free=242879Kb + bounds [0x0000000110000000, 0x00000001102e0000, 0x000000011f000000] + total_blobs=1164 nmethods=760 adapters=319 + compilation: enabled + +Compilation events (10 events): +Event: 9.147 Thread 0x00007fee7984e800 755 3 org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer::setAntiAlias (32 bytes) +Event: 9.148 Thread 0x00007fee7984e800 nmethod 755 0x00000001102cca90 code [0x00000001102ccd40, 0x00000001102cdbb8] +Event: 9.148 Thread 0x00007fee7984e800 756 3 com.Torvald.Terrarum.Actors.Player::render (32 bytes) +Event: 9.149 Thread 0x00007fee7984e800 nmethod 756 0x00000001102ce6d0 code [0x00000001102ce880, 0x00000001102ced78] +Event: 9.156 Thread 0x00007fee7984e800 760 3 java.nio.ByteBuffer::put (55 bytes) +Event: 9.157 Thread 0x00007fee7984e800 nmethod 760 0x00000001102cefd0 code [0x00000001102cf1a0, 0x00000001102cf768] +Event: 9.157 Thread 0x00007fee7984e800 761 ! 3 org.lwjgl.opengl.Display::isCloseRequested (38 bytes) +Event: 9.157 Thread 0x00007fee7984e800 nmethod 761 0x00000001102cfa50 code [0x00000001102cfc00, 0x00000001102d03a8] +Event: 9.157 Thread 0x00007fee7984e800 762 ! 3 org.lwjgl.opengl.MacOSXDisplay::isCloseRequested (26 bytes) +Event: 9.157 Thread 0x00007fee7984e800 nmethod 762 0x00000001102d0710 code [0x00000001102d0880, 0x00000001102d0b70] + +GC Heap History (0 events): +No events + +Deoptimization events (0 events): +No events + +Internal exceptions (10 events): +Event: 4.789 Thread 0x00007fee79803000 Exception (0x00000007966cd910) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.804 Thread 0x00007fee79803000 Exception (0x00000007966d3778) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.829 Thread 0x00007fee79803000 Exception (0x00000007966e47f8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.847 Thread 0x00007fee79803000 Exception (0x00000007966e8850) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.848 Thread 0x00007fee79803000 Exception (0x00000007966ece98) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.866 Thread 0x00007fee79803000 Exception (0x00000007966f0cb8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.877 Thread 0x00007fee79803000 Exception (0x00000007966f5100) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.879 Thread 0x00007fee79803000 Exception (0x00000007966fd540) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.892 Thread 0x00007fee79803000 Exception (0x00000007967013f0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 4.899 Thread 0x00007fee79803000 Exception (0x0000000796706f58) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] + +Events (10 events): +Event: 4.892 loading class org/newdawn/slick/AngelCodeFont$DisplayList +Event: 4.892 loading class org/newdawn/slick/AngelCodeFont$DisplayList done +Event: 4.899 loading class com/jme3/math/FastMath +Event: 4.899 loading class com/jme3/math/FastMath done +Event: 4.925 loading class java/util/Random +Event: 4.925 loading class java/util/Random done +Event: 4.925 loading class java/util/concurrent/atomic/AtomicLong +Event: 4.925 loading class java/util/concurrent/atomic/AtomicLong done +Event: 9.298 loading class org/lwjgl/opengl/CallbackUtil +Event: 9.298 loading class org/lwjgl/opengl/CallbackUtil done + + +Dynamic libraries: +0x00000000005e7000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa +0x00000000005e7000 /System/Library/Frameworks/Security.framework/Versions/A/Security +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices +0x00000000005e7000 /usr/lib/libz.1.dylib +0x00000000005e7000 /usr/lib/libSystem.B.dylib +0x00000000005e7000 /usr/lib/libobjc.A.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x00000000005e7000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation +0x00000000005e7000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x00000000005e7000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData +0x00000000005e7000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices +0x00000000005e7000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation +0x00000000005e7000 /usr/lib/libScreenReader.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate +0x00000000005e7000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface +0x00000000005e7000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox +0x00000000005e7000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit +0x00000000005e7000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore +0x00000000005e7000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x00000000005e7000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition +0x00000000005e7000 /usr/lib/libauto.dylib +0x00000000005e7000 /usr/lib/libicucore.A.dylib +0x00000000005e7000 /usr/lib/libxml2.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI +0x00000000005e7000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio +0x00000000005e7000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration +0x00000000005e7000 /usr/lib/liblangid.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport +0x00000000005e7000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit +0x00000000005e7000 /usr/lib/libDiagnosticMessagesClient.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices +0x00000000005e7000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis +0x00000000005e7000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL +0x00000000005e7000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics +0x00000000005e7000 /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage +0x00000000005e7000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO +0x00000000005e7000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup +0x00000000005e7000 /usr/lib/libextension.dylib +0x00000000005e7000 /usr/lib/libarchive.2.dylib +0x00000000005e7000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork +0x00000000005e7000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration +0x00000000005e7000 /usr/lib/libCRFSuite.dylib +0x00000000005e7000 /usr/lib/libc++.1.dylib +0x00000000005e7000 /usr/lib/libc++abi.dylib +0x00000000005e7000 /usr/lib/system/libcache.dylib +0x00000000005e7000 /usr/lib/system/libcommonCrypto.dylib +0x00000000005e7000 /usr/lib/system/libcompiler_rt.dylib +0x00000000005e7000 /usr/lib/system/libcopyfile.dylib +0x00000000005e7000 /usr/lib/system/libcorecrypto.dylib +0x00000000005e7000 /usr/lib/system/libdispatch.dylib +0x00000000005e7000 /usr/lib/system/libdyld.dylib +0x00000000005e7000 /usr/lib/system/libkeymgr.dylib +0x00000000005e7000 /usr/lib/system/liblaunch.dylib +0x00000000005e7000 /usr/lib/system/libmacho.dylib +0x00000000005e7000 /usr/lib/system/libquarantine.dylib +0x00000000005e7000 /usr/lib/system/libremovefile.dylib +0x00000000005e7000 /usr/lib/system/libsystem_asl.dylib +0x00000000005e7000 /usr/lib/system/libsystem_blocks.dylib +0x00000000005e7000 /usr/lib/system/libsystem_c.dylib +0x00000000005e7000 /usr/lib/system/libsystem_configuration.dylib +0x00000000005e7000 /usr/lib/system/libsystem_coreservices.dylib +0x00000000005e7000 /usr/lib/system/libsystem_coretls.dylib +0x00000000005e7000 /usr/lib/system/libsystem_dnssd.dylib +0x00000000005e7000 /usr/lib/system/libsystem_info.dylib +0x00000000005e7000 /usr/lib/system/libsystem_kernel.dylib +0x00000000005e7000 /usr/lib/system/libsystem_m.dylib +0x00000000005e7000 /usr/lib/system/libsystem_malloc.dylib +0x00000000005e7000 /usr/lib/system/libsystem_network.dylib +0x00000000005e7000 /usr/lib/system/libsystem_networkextension.dylib +0x00000000005e7000 /usr/lib/system/libsystem_notify.dylib +0x00000000005e7000 /usr/lib/system/libsystem_platform.dylib +0x00000000005e7000 /usr/lib/system/libsystem_pthread.dylib +0x00000000005e7000 /usr/lib/system/libsystem_sandbox.dylib +0x00000000005e7000 /usr/lib/system/libsystem_secinit.dylib +0x00000000005e7000 /usr/lib/system/libsystem_trace.dylib +0x00000000005e7000 /usr/lib/system/libunc.dylib +0x00000000005e7000 /usr/lib/system/libunwind.dylib +0x00000000005e7000 /usr/lib/system/libxpc.dylib +0x00000000005e7000 /usr/lib/libenergytrace.dylib +0x00000000005e7000 /usr/lib/libbsm.0.dylib +0x00000000005e7000 /usr/lib/system/libkxld.dylib +0x00000000005e7000 /usr/lib/libxar.1.dylib +0x00000000005e7000 /usr/lib/libsqlite3.dylib +0x00000000005e7000 /usr/lib/libpam.2.dylib +0x00000000005e7000 /usr/lib/libOpenScriptingUtil.dylib +0x00000000005e7000 /usr/lib/libbz2.1.0.dylib +0x00000000005e7000 /usr/lib/liblzma.5.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices +0x00000000005e7000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList +0x00000000005e7000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS +0x00000000005e7000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth +0x00000000005e7000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport +0x00000000005e7000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC +0x00000000005e7000 /usr/lib/libmecabra.dylib +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis +0x00000000005e7000 /System/Library/Frameworks/Metal.framework/Versions/A/Metal +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib +0x00000000005e7000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib +0x00000000005e7000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib +0x00000000005e7000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib +0x00000000005e7000 /usr/lib/libcups.2.dylib +0x00000000005e7000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos +0x00000000005e7000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS +0x00000000005e7000 /usr/lib/libresolv.9.dylib +0x00000000005e7000 /usr/lib/libiconv.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal +0x00000000005e7000 /usr/lib/libheimdal-asn1.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory +0x00000000005e7000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth +0x00000000005e7000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory +0x00000000005e7000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation +0x00000000005e7000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling +0x00000000005e7000 /usr/lib/libmarisa.dylib +0x00000000005e7000 /usr/lib/libChineseTokenizer.dylib +0x00000000005e7000 /usr/lib/libcmph.dylib +0x00000000005e7000 /usr/lib/libcompression.dylib +0x00000000005e7000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement +0x00000000005e7000 /usr/lib/libxslt.1.dylib +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink +0x00000000005e7000 /usr/lib/libFosl_dynamic.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL +0x00000000005e7000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport +0x00000000005e7000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices +0x00000000005e7000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 +0x00000000005e7000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN +0x00000000005e7000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi +0x00000000005e7000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth +0x00000000005e7000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary +0x00000000005e7000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication +0x00000000005e7000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication +0x00000000005e7000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore +0x0000000053c0d000 /System/Library/CoreServices/Encodings/libKoreanConverter.dylib +0x000000010e764000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib +0x000000010f683000 /usr/lib/libstdc++.6.dylib +0x000000010f73a000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libverify.dylib +0x000000010f748000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjava.dylib +0x000000010f786000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libzip.dylib +0x00000001258ef000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport +0x000000012590a000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation +0x000000012591f000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon +0x000000012592c000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print +0x00000000005e7000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI +0x000000012738d000 /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/libbreakgen64.jnilib +0x0000000127390000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libnet.dylib +0x00000001273ef000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt.dylib +0x000000012749e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libmlib_image.dylib +0x000000012756a000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt_lwawt.dylib +0x000000012761d000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libosxapp.dylib +0x00000000005e7000 /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib +0x000000012822f000 /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib +0x00000000005e7000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages +0x00000000005e7000 /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording +0x00000000005e7000 /usr/lib/libcsfde.dylib +0x00000000005e7000 /usr/lib/libcurl.4.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit +0x00000000005e7000 /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage +0x00000000005e7000 /usr/lib/libCoreStorage.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin +0x00000000005e7000 /usr/lib/libutil.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice +0x00000000005e7000 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP +0x00000000005e7000 /usr/lib/libsasl2.2.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon +0x00000000005e7000 /usr/lib/libcrypto.0.9.8.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP +0x00000000005e7000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent +0x0000000128f59000 cl_kernels +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib +0x00000000005e7000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib +0x00000000005e7000 /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls +0x00000000005e7000 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore +0x00000000005e7000 /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration +0x00000000005e7000 /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer +0x00000000005e7000 /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper +0x00000000005e7000 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService +0x00000000005e7000 /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore +0x00000000005e7000 /usr/lib/libodfde.dylib +0x0000000129f73000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libfontmanager.dylib +0x0000000129fd9000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/liblwjgl.dylib +0x000000012844d000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjawt.dylib +0x000000012a077000 /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine +0x00000000005e7000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib +0x000000012a25f000 /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver +0x00000000005e7000 /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib +0x000000012a926000 /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat +0x000000012b911000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/libjinput-osx.dylib +0x000000012b916000 /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib + +VM Arguments: +jvm_args: -Djava.library.path=/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native -Didea.launcher.port=7542 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15 CE.app/Contents/bin -Dfile.encoding=UTF-8 +java_command: com.intellij.rt.execution.application.AppMain com.Torvald.Terrarum.Terrarum +java_class_path (initial): /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/C +Launcher Type: SUN_STANDARD + +Environment Variables: +PATH=/usr/bin:/bin:/usr/sbin:/sbin +SHELL=/bin/bash +DISPLAY=/private/tmp/com.apple.launchd.8AA461ZLSp/org.macosforge.xquartz:0 + +Signal Handlers: +SIGSEGV: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO +SIGBUS: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGFPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGPIPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGXFSZ: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGILL: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none +SIGUSR2: [libjvm.dylib+0x45a62a], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO +SIGHUP: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGINT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGTERM: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGQUIT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO + + +--------------- S Y S T E M --------------- + +OS:Bsduname:Darwin 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64 +rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity +load average:1.40 1.49 1.51 + +CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv + +Memory: 4k page, physical 8388608k(37276k free) + +/proc/meminfo: + + +vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for bsd-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:37:47 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) + +time: Wed Jan 13 13:33:07 2016 +elapsed time: 9 seconds (0d 0h 0m 9s) + diff --git a/hs_err_pid72889.log b/hs_err_pid72889.log new file mode 100644 index 000000000..6a83d0f03 --- /dev/null +++ b/hs_err_pid72889.log @@ -0,0 +1,636 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x000000011dc23597, pid=72889, tid=5891 +# +# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops) +# Problematic frame: +# C [AppleIntelHD4000GraphicsGLDriver+0x44c597] IntelTextureObj::getSurfaceHeapOffset(unsigned int, IntelStateHeaps*, unsigned int&, bool&)+0xb +# +# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again +# +# If you would like to submit a bug report, please visit: +# http://bugreport.sun.com/bugreport/crash.jsp +# The crash happened outside the Java Virtual Machine in native code. +# See problematic frame for where to report the bug. +# + +--------------- T H R E A D --------------- + +Current thread (0x00007fbc5a80a800): JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000070 + +Registers: +RAX=0x00007fbc5c0f8230, RBX=0x0000000000000000, RCX=0x0000700000218840, RDX=0x00007fbc5c0fb178 +RSP=0x0000700000218790, RBP=0x00007000002187a0, RSI=0x0000000000000001, RDI=0x0000000000000040 +R8 =0x000070000021883f, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0xffff8044c26a0bf8 +R12=0x0000000000000000, R13=0x00007fbc5c0f7400, R14=0x0000000000000001, R15=0x0000000000000040 +RIP=0x000000011dc23597, EFLAGS=0x0000000000010202, ERR=0x0000000000000004 + TRAPNO=0x000000000000000e + +Top of Stack: (sp=0x0000700000218790) +0x0000700000218790: 0000000000000000 0000000000000001 +0x00007000002187a0: 0000700000218870 000000011dc380eb +0x00007000002187b0: 0000000000000000 0000000810009010 +0x00007000002187c0: 0000000000000004 00007fbc5c0fdd48 +0x00007000002187d0: 0000000404002404 0000000000000001 +0x00007000002187e0: 000000007a000003 0000000000000008 +0x00007000002187f0: 00007fbc5c0fb178 00007fbc5c0fdb40 +0x0000700000218800: 00007fbc5a4a7440 00007fbc5c0f7400 +0x0000700000218810: 00007fbc5a4a6240 0000000000000015 +0x0000700000218820: 0000000000000000 0000000000001980 +0x0000700000218830: 00007fbc5c0f8230 000000011dc2ac98 +0x0000700000218840: 0000000000000000 0000000000000004 +0x0000700000218850: 21fffff7ffffffff 00007fbc5c0fdd48 +0x0000700000218860: 0000000000000020 00007fbc5c0f8230 +0x0000700000218870: 0000700000218a10 000000011dc32ab6 +0x0000700000218880: 00007fbc5c0f7400 0000000000000000 +0x0000700000218890: 00007fbc5a4a61e0 00007fbc5ba00e00 +0x00007000002188a0: 00007fbc5c0f8284 00007fbc5c0f7400 +0x00007000002188b0: 00007fbc5c0fad98 00007fbc5c0fad94 +0x00007000002188c0: 00007fbc5ba00e38 00007fbc5c0f8284 +0x00007000002188d0: 00007fbc5c100c48 0000020000000000 +0x00007000002188e0: 0f30000a00108031 00007fbc5d800810 +0x00007000002188f0: 0000000000000000 0000002000000000 +0x0000700000218900: 0000000000000000 0000000000000001 +0x0000700000218910: 00007fbc5c100d30 0000000000000001 +0x0000700000218920: 00007fbc5d800810 000000011eb0ec80 +0x0000700000218930: 0120fc0000000000 21fffff7ffffffff +0x0000700000218940: 0000000000000c80 0000000700000000 +0x0000700000218950: 0000000000000000 0000000000000000 +0x0000700000218960: 0000000000000000 0000000000000000 +0x0000700000218970: 0000000000000000 ffffffffffffffff +0x0000700000218980: ffffffffffffffff ffffffffffffffff + +Instructions: (pc=0x000000011dc23597) +0x000000011dc23577: 90 2a fd ff ff 63 fd ff ff e6 fd ff ff 5f fe ff +0x000000011dc23587: ff f1 fe ff ff 55 48 89 e5 41 56 53 44 8b 4a 60 +0x000000011dc23597: 44 8b 5f 30 39 b7 28 0f 00 00 75 2d 48 39 97 18 +0x000000011dc235a7: 0f 00 00 75 24 41 83 fb 01 41 0f 94 c2 44 3b 8f + +Register to memory mapping: + +RAX=0x00007fbc5c0f8230 is an unknown value +RBX=0x0000000000000000 is an unknown value +RCX=0x0000700000218840 is pointing into the stack for thread: 0x00007fbc5a80a800 +RDX=0x00007fbc5c0fb178 is an unknown value +RSP=0x0000700000218790 is pointing into the stack for thread: 0x00007fbc5a80a800 +RBP=0x00007000002187a0 is pointing into the stack for thread: 0x00007fbc5a80a800 +RSI=0x0000000000000001 is an unknown value +RDI=0x0000000000000040 is an unknown value +R8 =0x000070000021883f is pointing into the stack for thread: 0x00007fbc5a80a800 +R9 =0x0000000000000000 is an unknown value +R10=0x0000000000000000 is an unknown value +R11=0xffff8044c26a0bf8 is an unknown value +R12=0x0000000000000000 is an unknown value +R13=0x00007fbc5c0f7400 is an unknown value +R14=0x0000000000000001 is an unknown value +R15=0x0000000000000040 is an unknown value + + +Stack: [0x000070000011a000,0x000070000021a000], sp=0x0000700000218790, free space=1017k +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +C [AppleIntelHD4000GraphicsGLDriver+0x44c597] IntelTextureObj::getSurfaceHeapOffset(unsigned int, IntelStateHeaps*, unsigned int&, bool&)+0xb +C [AppleIntelHD4000GraphicsGLDriver+0x4610eb] void updateBindingTable(Gen7Context*, unsigned int, IGFX::SGfx3DStateBindingTablePointers_Gen7&)+0x813 +C [AppleIntelHD4000GraphicsGLDriver+0x45bab6] Gen7Context::ProgramPipeline()+0x33d8 +C [AppleIntelHD4000GraphicsGLDriver+0x3c1c07] glrIntelBeginPrimitiveBuffer+0xa2 +C [GLEngine+0x12f68a] gleBeginPrimitiveTCLFunc+0x4e +j org.lwjgl.opengl.GL11.nglBegin(IJ)V+0 +j org.lwjgl.opengl.GL11.glBegin(I)V+15 +j org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer.glBegin(I)V+1 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/geom/ShapeRenderer$PointCallback;)V+9 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+29 +j org.newdawn.slick.Graphics.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+9 +j com.Torvald.Terrarum.Game.drawSkybox(Lorg/newdawn/slick/Graphics;)V+31 +j com.Torvald.Terrarum.Game.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+29 +j com.Torvald.Terrarum.Terrarum.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+2 +j org.newdawn.slick.GameContainer.updateAndRender(I)V+310 +j org.newdawn.slick.AppGameContainer.gameLoop()V+33 +j org.newdawn.slick.AppGameContainer.start()V+17 +j com.Torvald.Terrarum.Terrarum.main([Ljava/lang/String;)V+64 +v ~StubRoutines::call_stub +V [libjvm.dylib+0x2d429e] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x6ae +V [libjvm.dylib+0x4a2b90] Reflection::invoke(instanceKlassHandle, methodHandle, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*)+0xdf8 +V [libjvm.dylib+0x4a30a8] Reflection::invoke_method(oopDesc*, Handle, objArrayHandle, Thread*)+0x16c +V [libjvm.dylib+0x322984] JVM_InvokeMethod+0x166 +j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 +j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 +j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 +j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56 +j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+180 +v ~StubRoutines::call_stub +V [libjvm.dylib+0x2d429e] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x6ae +V [libjvm.dylib+0x309377] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x1bf +V [libjvm.dylib+0x302571] jni_CallStaticVoidMethod+0x15d +C [java+0x2c82] JavaMain+0x998 +C [libsystem_pthread.dylib+0x3c13] _pthread_body+0x83 +C [libsystem_pthread.dylib+0x3b90] _pthread_body+0x0 +C [libsystem_pthread.dylib+0x1375] thread_start+0xd +C 0x0000000000000000 + +Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) +j org.lwjgl.opengl.GL11.nglBegin(IJ)V+0 +j org.lwjgl.opengl.GL11.glBegin(I)V+15 +j org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer.glBegin(I)V+1 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/geom/ShapeRenderer$PointCallback;)V+9 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+29 +j org.newdawn.slick.Graphics.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+9 +j com.Torvald.Terrarum.Game.drawSkybox(Lorg/newdawn/slick/Graphics;)V+31 +j com.Torvald.Terrarum.Game.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+29 +j com.Torvald.Terrarum.Terrarum.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+2 +j org.newdawn.slick.GameContainer.updateAndRender(I)V+310 +j org.newdawn.slick.AppGameContainer.gameLoop()V+33 +j org.newdawn.slick.AppGameContainer.start()V+17 +j com.Torvald.Terrarum.Terrarum.main([Ljava/lang/String;)V+64 +v ~StubRoutines::call_stub +j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 +j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 +j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 +j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56 +j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+180 +v ~StubRoutines::call_stub + +--------------- P R O C E S S --------------- + +Java Threads: ( => current thread ) + 0x00007fbc5aa1b000 JavaThread "AWT-Shutdown" [_thread_blocked, id=34311, stack(0x00007000011d0000,0x00007000012d0000)] + 0x00007fbc5b0d1000 JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff5d8d6000,0x00007fff5e0d6000)] + 0x00007fbc5b076800 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=19715, stack(0x000070000104a000,0x000070000114a000)] + 0x00007fbc5b02e800 JavaThread "Service Thread" daemon [_thread_blocked, id=18691, stack(0x0000700000e44000,0x0000700000f44000)] + 0x00007fbc5a863800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=18179, stack(0x0000700000d41000,0x0000700000e41000)] + 0x00007fbc5a863000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=17667, stack(0x0000700000c3e000,0x0000700000d3e000)] + 0x00007fbc5a861000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=17155, stack(0x0000700000b3b000,0x0000700000c3b000)] + 0x00007fbc5a819800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=13323, stack(0x0000700000a38000,0x0000700000b38000)] + 0x00007fbc5b007800 JavaThread "Finalizer" daemon [_thread_blocked, id=12291, stack(0x000070000082f000,0x000070000092f000)] + 0x00007fbc5c045800 JavaThread "Reference Handler" daemon [_thread_blocked, id=11779, stack(0x000070000072c000,0x000070000082c000)] +=>0x00007fbc5a80a800 JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +Other Threads: + 0x00007fbc5a80b000 VMThread [stack: 0x0000700000629000,0x0000700000729000] [id=11267] + 0x00007fbc5c034800 WatcherThread [stack: 0x0000700000f47000,0x0000700001047000] [id=19203] + +VM state:not at safepoint (normal execution) + +VM Mutex/Monitor currently owned by a thread: None + +Heap: + PSYoungGen total 173056K, used 70337K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 57% used [0x0000000795580000,0x0000000799a30438,0x000000079cd00000) + from space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + to space 50688K, 0% used [0x00000007a0480000,0x00000007a0480000,0x00000007a3600000) + ParOldGen total 214016K, used 55323K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x0000000743606cd8,0x000000074d100000) + Metaspace used 8346K, capacity 8553K, committed 8704K, reserved 1056768K + class space used 848K, capacity 903K, committed 1024K, reserved 1048576K + +Card table byte_map: [0x00000001129c0000,0x0000000112dc1000] byte_map_base: 0x000000010efc0000 + +Marking Bits: (ParMarkBitMap*) 0x0000000102668330 + Begin Bits: [0x000000011306c000, 0x000000011506c000) + End Bits: [0x000000011506c000, 0x000000011706c000) + +Polling page: 0x0000000102d2d000 + +CodeCache: size=245760Kb used=3044Kb max_used=3064Kb free=242715Kb + bounds [0x0000000103600000, 0x0000000103900000, 0x0000000112600000] + total_blobs=1239 nmethods=804 adapters=350 + compilation: enabled + +Compilation events (10 events): +Event: 16.426 Thread 0x00007fbc5a863800 792 3 java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry:: (14 bytes) +Event: 16.427 Thread 0x00007fbc5a863800 nmethod 792 0x00000001038eb6d0 code [0x00000001038eb860, 0x00000001038ebc88] +Event: 16.427 Thread 0x00007fbc5a863800 793 3 java.lang.invoke.MethodType::makeImpl (66 bytes) +Event: 16.428 Thread 0x00007fbc5a863800 nmethod 793 0x00000001038f2a10 code [0x00000001038f2c00, 0x00000001038f3468] +Event: 16.428 Thread 0x00007fbc5a863800 803 ! 3 java.util.AbstractList$Itr::next (45 bytes) +Event: 16.428 Thread 0x00007fbc5a863800 nmethod 803 0x00000001038f3790 code [0x00000001038f3960, 0x00000001038f3f78] +Event: 16.428 Thread 0x00007fbc5a863800 804 3 java.util.AbstractList$Itr::checkForComodification (23 bytes) +Event: 16.429 Thread 0x00007fbc5a863800 nmethod 804 0x00000001038eed50 code [0x00000001038eeec0, 0x00000001038ef0e8] +Event: 16.429 Thread 0x00007fbc5a863800 801 3 java.lang.invoke.LambdaForm::argument (35 bytes) +Event: 16.430 Thread 0x00007fbc5a863800 nmethod 801 0x00000001038f4250 code [0x00000001038f4400, 0x00000001038f48d8] + +GC Heap History (10 events): +Event: 9.580 GC heap before +{Heap before GC invocations=7 (full 2): + PSYoungGen total 71680K, used 5090K [0x0000000795580000, 0x00000007a3180000, 0x00000007c0000000) + eden space 66560K, 0% used [0x0000000795580000,0x0000000795580000,0x0000000799680000) + from space 5120K, 99% used [0x0000000799680000,0x0000000799b789c0,0x0000000799b80000) + to space 52224K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3180000) + ParOldGen total 175104K, used 174877K [0x0000000740000000, 0x000000074ab00000, 0x0000000795580000) + object space 175104K, 99% used [0x0000000740000000,0x000000074aac76b8,0x000000074ab00000) + Metaspace used 7773K, capacity 7929K, committed 8064K, reserved 1056768K + class space used 787K, capacity 827K, committed 896K, reserved 1048576K +Event: 9.610 GC heap after +Heap after GC invocations=7 (full 2): + PSYoungGen total 71680K, used 0K [0x0000000795580000, 0x00000007a3180000, 0x00000007c0000000) + eden space 66560K, 0% used [0x0000000795580000,0x0000000795580000,0x0000000799680000) + from space 5120K, 0% used [0x0000000799680000,0x0000000799680000,0x0000000799b80000) + to space 52224K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3180000) + ParOldGen total 214016K, used 114262K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746f95a80,0x000000074d100000) + Metaspace used 7773K, capacity 7929K, committed 8064K, reserved 1056768K + class space used 787K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.066 GC heap before +{Heap before GC invocations=8 (full 2): + PSYoungGen total 71680K, used 8362K [0x0000000795580000, 0x00000007a3180000, 0x00000007c0000000) + eden space 66560K, 12% used [0x0000000795580000,0x0000000795daaad8,0x0000000799680000) + from space 5120K, 0% used [0x0000000799680000,0x0000000799680000,0x0000000799b80000) + to space 52224K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3180000) + ParOldGen total 214016K, used 114262K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746f95a80,0x000000074d100000) + Metaspace used 7879K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +Event: 16.070 GC heap after +Heap after GC invocations=8 (full 2): + PSYoungGen total 174592K, used 6723K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 52224K, 12% used [0x000000079fe80000,0x00000007a0510cd0,0x00000007a3180000) + to space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + ParOldGen total 214016K, used 114262K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746f95a80,0x000000074d100000) + Metaspace used 7879K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.070 GC heap before +{Heap before GC invocations=9 (full 3): + PSYoungGen total 174592K, used 6723K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 52224K, 12% used [0x000000079fe80000,0x00000007a0510cd0,0x00000007a3180000) + to space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + ParOldGen total 214016K, used 114262K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746f95a80,0x000000074d100000) + Metaspace used 7879K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +Event: 16.108 GC heap after +Heap after GC invocations=9 (full 3): + PSYoungGen total 174592K, used 0K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 52224K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3180000) + to space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + ParOldGen total 214016K, used 55285K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd4c0,0x000000074d100000) + Metaspace used 7879K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.143 GC heap before +{Heap before GC invocations=10 (full 3): + PSYoungGen total 174592K, used 2368K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 1% used [0x0000000795580000,0x00000007957d00c8,0x000000079cd00000) + from space 52224K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3180000) + to space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + ParOldGen total 214016K, used 55285K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd4c0,0x000000074d100000) + Metaspace used 8002K, capacity 8217K, committed 8320K, reserved 1056768K + class space used 808K, capacity 859K, committed 896K, reserved 1048576K +Event: 16.144 GC heap after +Heap after GC invocations=10 (full 3): + PSYoungGen total 173056K, used 96K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 50688K, 0% used [0x000000079cd00000,0x000000079cd18000,0x000000079fe80000) + to space 50688K, 0% used [0x00000007a0480000,0x00000007a0480000,0x00000007a3600000) + ParOldGen total 214016K, used 55285K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd4c0,0x000000074d100000) + Metaspace used 8002K, capacity 8217K, committed 8320K, reserved 1056768K + class space used 808K, capacity 859K, committed 896K, reserved 1048576K +} +Event: 16.144 GC heap before +{Heap before GC invocations=11 (full 4): + PSYoungGen total 173056K, used 96K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 50688K, 0% used [0x000000079cd00000,0x000000079cd18000,0x000000079fe80000) + to space 50688K, 0% used [0x00000007a0480000,0x00000007a0480000,0x00000007a3600000) + ParOldGen total 214016K, used 55285K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd4c0,0x000000074d100000) + Metaspace used 8002K, capacity 8217K, committed 8320K, reserved 1056768K + class space used 808K, capacity 859K, committed 896K, reserved 1048576K +Event: 16.163 GC heap after +Heap after GC invocations=11 (full 4): + PSYoungGen total 173056K, used 0K [0x0000000795580000, 0x00000007a3600000, 0x00000007c0000000) + eden space 122368K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd00000) + from space 50688K, 0% used [0x000000079cd00000,0x000000079cd00000,0x000000079fe80000) + to space 50688K, 0% used [0x00000007a0480000,0x00000007a0480000,0x00000007a3600000) + ParOldGen total 214016K, used 55323K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x0000000743606cd8,0x000000074d100000) + Metaspace used 8002K, capacity 8217K, committed 8320K, reserved 1056768K + class space used 808K, capacity 859K, committed 896K, reserved 1048576K +} + +Deoptimization events (0 events): +No events + +Internal exceptions (10 events): +Event: 16.386 Thread 0x00007fbc5a80a800 Exception (0x000000079981d388) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.386 Thread 0x00007fbc5a80a800 Exception (0x0000000799825bb8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.387 Thread 0x00007fbc5a80a800 Exception (0x000000079982adc8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.387 Thread 0x00007fbc5a80a800 Exception (0x00000007998361c8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.388 Thread 0x00007fbc5a80a800 Exception (0x000000079983bfc0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.389 Thread 0x00007fbc5a80a800 Exception (0x00000007998414b0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.389 Thread 0x00007fbc5a80a800 Exception (0x0000000799846cc0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.401 Thread 0x00007fbc5a80a800 Exception (0x000000079996dac0) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.402 Thread 0x00007fbc5a80a800 Exception (0x0000000799972b28) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.426 Thread 0x00007fbc5a80a800 Exception (0x00000007999929d8) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] + +Events (10 events): +Event: 16.424 loading class org/newdawn/slick/GameContainer +Event: 16.424 loading class org/newdawn/slick/GameContainer done +Event: 16.424 loading class org/newdawn/slick/GameContainer +Event: 16.424 loading class org/newdawn/slick/GameContainer done +Event: 16.425 loading class org/newdawn/slick/GameContainer +Event: 16.425 loading class org/newdawn/slick/GameContainer done +Event: 16.425 loading class org/newdawn/slick/GameContainer +Event: 16.425 loading class org/newdawn/slick/GameContainer done +Event: 16.425 loading class com/Torvald/Terrarum/GameControl/KeyToggler +Event: 16.425 loading class com/Torvald/Terrarum/GameControl/KeyToggler done + + +Dynamic libraries: +0x0000000009bc5000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa +0x0000000009bc5000 /System/Library/Frameworks/Security.framework/Versions/A/Security +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices +0x0000000009bc5000 /usr/lib/libz.1.dylib +0x0000000009bc5000 /usr/lib/libSystem.B.dylib +0x0000000009bc5000 /usr/lib/libobjc.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x0000000009bc5000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation +0x0000000009bc5000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x0000000009bc5000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData +0x0000000009bc5000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation +0x0000000009bc5000 /usr/lib/libScreenReader.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate +0x0000000009bc5000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface +0x0000000009bc5000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox +0x0000000009bc5000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit +0x0000000009bc5000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore +0x0000000009bc5000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x0000000009bc5000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition +0x0000000009bc5000 /usr/lib/libauto.dylib +0x0000000009bc5000 /usr/lib/libicucore.A.dylib +0x0000000009bc5000 /usr/lib/libxml2.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI +0x0000000009bc5000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio +0x0000000009bc5000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration +0x0000000009bc5000 /usr/lib/liblangid.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport +0x0000000009bc5000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit +0x0000000009bc5000 /usr/lib/libDiagnosticMessagesClient.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis +0x0000000009bc5000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL +0x0000000009bc5000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics +0x0000000009bc5000 /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage +0x0000000009bc5000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO +0x0000000009bc5000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup +0x0000000009bc5000 /usr/lib/libextension.dylib +0x0000000009bc5000 /usr/lib/libarchive.2.dylib +0x0000000009bc5000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork +0x0000000009bc5000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration +0x0000000009bc5000 /usr/lib/libCRFSuite.dylib +0x0000000009bc5000 /usr/lib/libc++.1.dylib +0x0000000009bc5000 /usr/lib/libc++abi.dylib +0x0000000009bc5000 /usr/lib/system/libcache.dylib +0x0000000009bc5000 /usr/lib/system/libcommonCrypto.dylib +0x0000000009bc5000 /usr/lib/system/libcompiler_rt.dylib +0x0000000009bc5000 /usr/lib/system/libcopyfile.dylib +0x0000000009bc5000 /usr/lib/system/libcorecrypto.dylib +0x0000000009bc5000 /usr/lib/system/libdispatch.dylib +0x0000000009bc5000 /usr/lib/system/libdyld.dylib +0x0000000009bc5000 /usr/lib/system/libkeymgr.dylib +0x0000000009bc5000 /usr/lib/system/liblaunch.dylib +0x0000000009bc5000 /usr/lib/system/libmacho.dylib +0x0000000009bc5000 /usr/lib/system/libquarantine.dylib +0x0000000009bc5000 /usr/lib/system/libremovefile.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_asl.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_blocks.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_c.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_configuration.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_coreservices.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_coretls.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_dnssd.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_info.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_kernel.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_m.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_malloc.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_network.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_networkextension.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_notify.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_platform.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_pthread.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_sandbox.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_secinit.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_trace.dylib +0x0000000009bc5000 /usr/lib/system/libunc.dylib +0x0000000009bc5000 /usr/lib/system/libunwind.dylib +0x0000000009bc5000 /usr/lib/system/libxpc.dylib +0x0000000009bc5000 /usr/lib/libenergytrace.dylib +0x0000000009bc5000 /usr/lib/libbsm.0.dylib +0x0000000009bc5000 /usr/lib/system/libkxld.dylib +0x0000000009bc5000 /usr/lib/libxar.1.dylib +0x0000000009bc5000 /usr/lib/libsqlite3.dylib +0x0000000009bc5000 /usr/lib/libpam.2.dylib +0x0000000009bc5000 /usr/lib/libOpenScriptingUtil.dylib +0x0000000009bc5000 /usr/lib/libbz2.1.0.dylib +0x0000000009bc5000 /usr/lib/liblzma.5.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList +0x0000000009bc5000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS +0x0000000009bc5000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth +0x0000000009bc5000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport +0x0000000009bc5000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC +0x0000000009bc5000 /usr/lib/libmecabra.dylib +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis +0x0000000009bc5000 /System/Library/Frameworks/Metal.framework/Versions/A/Metal +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib +0x0000000009bc5000 /usr/lib/libcups.2.dylib +0x0000000009bc5000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos +0x0000000009bc5000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS +0x0000000009bc5000 /usr/lib/libresolv.9.dylib +0x0000000009bc5000 /usr/lib/libiconv.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal +0x0000000009bc5000 /usr/lib/libheimdal-asn1.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory +0x0000000009bc5000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth +0x0000000009bc5000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory +0x0000000009bc5000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation +0x0000000009bc5000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling +0x0000000009bc5000 /usr/lib/libmarisa.dylib +0x0000000009bc5000 /usr/lib/libChineseTokenizer.dylib +0x0000000009bc5000 /usr/lib/libcmph.dylib +0x0000000009bc5000 /usr/lib/libcompression.dylib +0x0000000009bc5000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement +0x0000000009bc5000 /usr/lib/libxslt.1.dylib +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink +0x0000000009bc5000 /usr/lib/libFosl_dynamic.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL +0x0000000009bc5000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport +0x0000000009bc5000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 +0x0000000009bc5000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN +0x0000000009bc5000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi +0x0000000009bc5000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth +0x0000000009bc5000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary +0x0000000009bc5000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication +0x0000000009bc5000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication +0x0000000009bc5000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore +0x0000000047275000 /System/Library/CoreServices/Encodings/libKoreanConverter.dylib +0x0000000101dcc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib +0x0000000009bc5000 /usr/lib/libstdc++.6.dylib +0x0000000102ceb000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libverify.dylib +0x0000000102cf9000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjava.dylib +0x0000000102d37000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libzip.dylib +0x0000000118eb4000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport +0x0000000118ecf000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation +0x0000000102dec000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon +0x0000000118ee4000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI +0x000000011a94d000 /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/libbreakgen64.jnilib +0x000000011a950000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libnet.dylib +0x000000011a9af000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt.dylib +0x000000011aa5e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libmlib_image.dylib +0x000000011ab2a000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt_lwawt.dylib +0x000000011abdd000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libosxapp.dylib +0x0000000009bc5000 /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages +0x0000000009bc5000 /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording +0x0000000009bc5000 /usr/lib/libcsfde.dylib +0x0000000009bc5000 /usr/lib/libcurl.4.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit +0x0000000009bc5000 /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage +0x0000000009bc5000 /usr/lib/libCoreStorage.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin +0x0000000009bc5000 /usr/lib/libutil.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice +0x0000000009bc5000 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP +0x0000000009bc5000 /usr/lib/libsasl2.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon +0x0000000009bc5000 /usr/lib/libcrypto.0.9.8.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP +0x0000000009bc5000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent +0x000000011c609000 cl_kernels +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls +0x0000000009bc5000 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore +0x0000000009bc5000 /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer +0x0000000009bc5000 /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper +0x0000000009bc5000 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService +0x0000000009bc5000 /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore +0x0000000009bc5000 /usr/lib/libodfde.dylib +0x000000011d6c9000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libfontmanager.dylib +0x000000011d72f000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/liblwjgl.dylib +0x000000011bafd000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjawt.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib +0x000000011d7d7000 /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver +0x0000000009bc5000 /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat +0x000000011ef55000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/libjinput-osx.dylib +0x000000011ef5a000 /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib +0x000000011c1b1000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libmanagement.dylib + +VM Arguments: +jvm_args: -Djava.library.path=/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-linux.jar:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-mac.jar:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-windows.jar -Didea.launcher.port=7541 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15 CE.app/Contents/bin -Dfile.encoding=UTF-8 +java_command: com.intellij.rt.execution.application.AppMain com.Torvald.Terrarum.Terrarum +java_class_path (initial): /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/C +Launcher Type: SUN_STANDARD + +Environment Variables: +PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin +SHELL=/bin/bash +DISPLAY=/private/tmp/com.apple.launchd.JUiwxfWmS1/org.macosforge.xquartz:0 + +Signal Handlers: +SIGSEGV: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO +SIGBUS: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGFPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGPIPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGXFSZ: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGILL: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none +SIGUSR2: [libjvm.dylib+0x45a62a], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO +SIGHUP: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGINT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGTERM: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGQUIT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO + + +--------------- S Y S T E M --------------- + +OS:Bsduname:Darwin 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64 +rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity +load average:2.34 2.11 2.05 + +CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv + +Memory: 4k page, physical 8388608k(17172k free) + +/proc/meminfo: + + +vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for bsd-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:37:47 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) + +time: Sat Jan 30 01:21:27 2016 +elapsed time: 16 seconds (0d 0h 0m 16s) + diff --git a/hs_err_pid72937.log b/hs_err_pid72937.log new file mode 100644 index 000000000..f5583d2d7 --- /dev/null +++ b/hs_err_pid72937.log @@ -0,0 +1,636 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x000000011fd34597, pid=72937, tid=5891 +# +# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops) +# Problematic frame: +# C [AppleIntelHD4000GraphicsGLDriver+0x44c597] _ZN15IntelTextureObj20getSurfaceHeapOffsetEjP15IntelStateHeapsRjRb+0xb +# +# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again +# +# If you would like to submit a bug report, please visit: +# http://bugreport.sun.com/bugreport/crash.jsp +# The crash happened outside the Java Virtual Machine in native code. +# See problematic frame for where to report the bug. +# + +--------------- T H R E A D --------------- + +Current thread (0x00007fc5ea802000): JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000070 + +Registers: +RAX=0x00007fc5ea984c30, RBX=0x0000000000000000, RCX=0x0000700000218840, RDX=0x00007fc5ea987b78 +RSP=0x0000700000218790, RBP=0x00007000002187a0, RSI=0x0000000000000001, RDI=0x0000000000000040 +R8 =0x000070000021883f, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0xffff803b35f251f8 +R12=0x0000000000000000, R13=0x00007fc5ea983e00, R14=0x0000000000000001, R15=0x0000000000000040 +RIP=0x000000011fd34597, EFLAGS=0x0000000000010202, ERR=0x0000000000000004 + TRAPNO=0x000000000000000e + +Top of Stack: (sp=0x0000700000218790) +0x0000700000218790: 0000000000000000 0000000000000001 +0x00007000002187a0: 0000700000218870 000000011fd490eb +0x00007000002187b0: 0000000000000000 0000000810009010 +0x00007000002187c0: 0000000000000004 00007fc5ea98a748 +0x00007000002187d0: 0000000404002404 0000000000000001 +0x00007000002187e0: 000000007a000003 0000000000000008 +0x00007000002187f0: 00007fc5ea987b78 00007fc5ea98a540 +0x0000700000218800: 00007fc5e9496780 00007fc5ea983e00 +0x0000700000218810: 00007fc5e949a5d0 0000000000000015 +0x0000700000218820: 0000000000000000 0000000000001980 +0x0000700000218830: 00007fc5ea984c30 000000011fd3bc98 +0x0000700000218840: 0000000000000000 0000000000000004 +0x0000700000218850: 21fffff7ffffffff 00007fc5ea98a748 +0x0000700000218860: 0000000000000020 00007fc5ea984c30 +0x0000700000218870: 0000700000218a10 000000011fd43ab6 +0x0000700000218880: 00007fc5ea983e00 0000000000000000 +0x0000700000218890: 00007fc5e9498cf0 00007fc5ea155400 +0x00007000002188a0: 00007fc5ea984c84 00007fc5ea983e00 +0x00007000002188b0: 00007fc5ea987798 00007fc5ea987794 +0x00007000002188c0: 00007fc5ea155438 00007fc5ea984c84 +0x00007000002188d0: 00007fc5ea98d648 0000020000000000 +0x00007000002188e0: 0f30000a00108031 00007fc5ec001410 +0x00007000002188f0: 0000000000000000 0000002000000000 +0x0000700000218900: 0000000000000000 0000000000000001 +0x0000700000218910: 00007fc5ea98d730 0000000000000001 +0x0000700000218920: 00007fc5ec001410 0000000120c1fc80 +0x0000700000218930: 0120fc0000000000 21fffff7ffffffff +0x0000700000218940: 0000000000000c80 0000000700000000 +0x0000700000218950: 0000000000000000 0000000000000000 +0x0000700000218960: 0000000000000000 0000000000000000 +0x0000700000218970: 0000000000000000 ffffffffffffffff +0x0000700000218980: ffffffffffffffff ffffffffffffffff + +Instructions: (pc=0x000000011fd34597) +0x000000011fd34577: 90 2a fd ff ff 63 fd ff ff e6 fd ff ff 5f fe ff +0x000000011fd34587: ff f1 fe ff ff 55 48 89 e5 41 56 53 44 8b 4a 60 +0x000000011fd34597: 44 8b 5f 30 39 b7 28 0f 00 00 75 2d 48 39 97 18 +0x000000011fd345a7: 0f 00 00 75 24 41 83 fb 01 41 0f 94 c2 44 3b 8f + +Register to memory mapping: + +RAX=0x00007fc5ea984c30 is an unknown value +RBX=0x0000000000000000 is an unknown value +RCX=0x0000700000218840 is pointing into the stack for thread: 0x00007fc5ea802000 +RDX=0x00007fc5ea987b78 is an unknown value +RSP=0x0000700000218790 is pointing into the stack for thread: 0x00007fc5ea802000 +RBP=0x00007000002187a0 is pointing into the stack for thread: 0x00007fc5ea802000 +RSI=0x0000000000000001 is an unknown value +RDI=0x0000000000000040 is an unknown value +R8 =0x000070000021883f is pointing into the stack for thread: 0x00007fc5ea802000 +R9 =0x0000000000000000 is an unknown value +R10=0x0000000000000000 is an unknown value +R11=0xffff803b35f251f8 is an unknown value +R12=0x0000000000000000 is an unknown value +R13=0x00007fc5ea983e00 is an unknown value +R14=0x0000000000000001 is an unknown value +R15=0x0000000000000040 is an unknown value + + +Stack: [0x000070000011a000,0x000070000021a000], sp=0x0000700000218790, free space=1017k +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +C [AppleIntelHD4000GraphicsGLDriver+0x44c597] _ZN15IntelTextureObj20getSurfaceHeapOffsetEjP15IntelStateHeapsRjRb+0xb +C [AppleIntelHD4000GraphicsGLDriver+0x4610eb] _Z18updateBindingTableIN4IGFX36SGfx3DStateBindingTablePointers_Gen7EEvP11Gen7ContextjRT_+0x813 +C [AppleIntelHD4000GraphicsGLDriver+0x45bab6] _ZN11Gen7Context15ProgramPipelineEv+0x33d8 +C [AppleIntelHD4000GraphicsGLDriver+0x3c1c07] glrIntelBeginPrimitiveBuffer+0xa2 +C [GLEngine+0x12f68a] gleBeginPrimitiveTCLFunc+0x4e +j org.lwjgl.opengl.GL11.nglBegin(IJ)V+0 +j org.lwjgl.opengl.GL11.glBegin(I)V+15 +j org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer.glBegin(I)V+1 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/geom/ShapeRenderer$PointCallback;)V+9 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+29 +j org.newdawn.slick.Graphics.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+9 +j com.Torvald.Terrarum.Game.drawSkybox(Lorg/newdawn/slick/Graphics;)V+31 +j com.Torvald.Terrarum.Game.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+29 +j com.Torvald.Terrarum.Terrarum.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+2 +j org.newdawn.slick.GameContainer.updateAndRender(I)V+310 +j org.newdawn.slick.AppGameContainer.gameLoop()V+33 +j org.newdawn.slick.AppGameContainer.start()V+17 +j com.Torvald.Terrarum.Terrarum.main([Ljava/lang/String;)V+64 +v ~StubRoutines::call_stub +V [libjvm.dylib+0x2d429e] +V [libjvm.dylib+0x4a2b90] +V [libjvm.dylib+0x4a30a8] +V [libjvm.dylib+0x322984] +j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 +j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 +j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 +j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56 +j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+180 +v ~StubRoutines::call_stub +V [libjvm.dylib+0x2d429e] +V [libjvm.dylib+0x309377] +V [libjvm.dylib+0x302571] +C [java+0x2c82] JavaMain+0x998 +C [libsystem_pthread.dylib+0x3c13] _pthread_body+0x83 +C [libsystem_pthread.dylib+0x3b90] _pthread_body+0x0 +C [libsystem_pthread.dylib+0x1375] thread_start+0xd +C 0x0000000000000000 + +Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) +j org.lwjgl.opengl.GL11.nglBegin(IJ)V+0 +j org.lwjgl.opengl.GL11.glBegin(I)V+15 +j org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer.glBegin(I)V+1 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/geom/ShapeRenderer$PointCallback;)V+9 +j org.newdawn.slick.geom.ShapeRenderer.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+29 +j org.newdawn.slick.Graphics.fill(Lorg/newdawn/slick/geom/Shape;Lorg/newdawn/slick/ShapeFill;)V+9 +j com.Torvald.Terrarum.Game.drawSkybox(Lorg/newdawn/slick/Graphics;)V+31 +j com.Torvald.Terrarum.Game.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+29 +j com.Torvald.Terrarum.Terrarum.render(Lorg/newdawn/slick/GameContainer;Lorg/newdawn/slick/Graphics;)V+2 +j org.newdawn.slick.GameContainer.updateAndRender(I)V+310 +j org.newdawn.slick.AppGameContainer.gameLoop()V+33 +j org.newdawn.slick.AppGameContainer.start()V+17 +j com.Torvald.Terrarum.Terrarum.main([Ljava/lang/String;)V+64 +v ~StubRoutines::call_stub +j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 +j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 +j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 +j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56 +j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+180 +v ~StubRoutines::call_stub + +--------------- P R O C E S S --------------- + +Java Threads: ( => current thread ) + 0x00007fc5e9a13000 JavaThread "AWT-Shutdown" [_thread_blocked, id=14607, stack(0x0000700001253000,0x0000700001353000)] + 0x00007fc5ea09b800 JavaThread "AppKit Thread" daemon [_thread_in_native, id=2571, stack(0x00007fff5b7c5000,0x00007fff5bfc5000)] + 0x00007fc5ea82a000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=19459, stack(0x000070000104a000,0x000070000114a000)] + 0x00007fc5eb08d800 JavaThread "Service Thread" daemon [_thread_blocked, id=18435, stack(0x0000700000e44000,0x0000700000f44000)] + 0x00007fc5eb067800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=17923, stack(0x0000700000d41000,0x0000700000e41000)] + 0x00007fc5ea017800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=17411, stack(0x0000700000c3e000,0x0000700000d3e000)] + 0x00007fc5eb066800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=16899, stack(0x0000700000b3b000,0x0000700000c3b000)] + 0x00007fc5eb05f000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14351, stack(0x0000700000a38000,0x0000700000b38000)] + 0x00007fc5ea00c000 JavaThread "Finalizer" daemon [_thread_blocked, id=12291, stack(0x000070000082f000,0x000070000092f000)] + 0x00007fc5e9819800 JavaThread "Reference Handler" daemon [_thread_blocked, id=11779, stack(0x000070000072c000,0x000070000082c000)] +=>0x00007fc5ea802000 JavaThread "main" [_thread_in_native, id=5891, stack(0x000070000011a000,0x000070000021a000)] + +Other Threads: + 0x00007fc5ea00b800 VMThread [stack: 0x0000700000629000,0x0000700000729000] [id=11267] + 0x00007fc5eb02a800 WatcherThread [stack: 0x0000700000f47000,0x0000700001047000] [id=18947] + +VM state:not at safepoint (normal execution) + +VM Mutex/Monitor currently owned by a thread: None + +Heap: + PSYoungGen total 173056K, used 70645K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 57% used [0x0000000795580000,0x0000000799a7d638,0x000000079cd80000) + from space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + to space 50176K, 0% used [0x00000007a0400000,0x00000007a0400000,0x00000007a3500000) + ParOldGen total 214016K, used 55323K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x0000000743606c28,0x000000074d100000) + Metaspace used 8337K, capacity 8553K, committed 8704K, reserved 1056768K + class space used 851K, capacity 903K, committed 1024K, reserved 1048576K + +Card table byte_map: [0x0000000114a13000,0x0000000114e14000] byte_map_base: 0x0000000111013000 + +Marking Bits: (ParMarkBitMap*) 0x0000000104779330 + Begin Bits: [0x00000001150bf000, 0x00000001170bf000) + End Bits: [0x00000001170bf000, 0x00000001190bf000) + +Polling page: 0x0000000104dfc000 + +CodeCache: size=245760Kb used=2922Kb max_used=2938Kb free=242837Kb + bounds [0x0000000105653000, 0x0000000105933000, 0x0000000114653000] + total_blobs=1218 nmethods=783 adapters=350 + compilation: enabled + +Compilation events (10 events): +Event: 16.895 Thread 0x00007fc5eb067800 777 3 java.util.AbstractList$Itr::hasNext (20 bytes) +Event: 16.895 Thread 0x00007fc5eb067800 nmethod 777 0x0000000105921b50 code [0x0000000105921cc0, 0x0000000105921f48] +Event: 16.895 Thread 0x00007fc5eb067800 771 3 java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry:: (14 bytes) +Event: 16.896 Thread 0x00007fc5eb067800 nmethod 771 0x0000000105921390 code [0x0000000105921520, 0x0000000105921948] +Event: 16.896 Thread 0x00007fc5eb067800 776 3 java.lang.invoke.MethodType$ConcurrentWeakInternSet::get (54 bytes) +Event: 16.897 Thread 0x00007fc5eb067800 nmethod 776 0x00000001059251d0 code [0x0000000105925400, 0x0000000105926098] +Event: 16.897 Thread 0x00007fc5eb067800 775 3 java.util.Arrays$ArrayList::get (7 bytes) +Event: 16.897 Thread 0x00007fc5eb067800 nmethod 775 0x0000000105924dd0 code [0x0000000105924f40, 0x00000001059250d0] +Event: 16.897 Thread 0x00007fc5eb067800 773 1 java.lang.invoke.MethodHandle::type (5 bytes) +Event: 16.897 Thread 0x00007fc5eb067800 nmethod 773 0x0000000105929250 code [0x00000001059293a0, 0x00000001059294b0] + +GC Heap History (10 events): +Event: 10.123 GC heap before +{Heap before GC invocations=7 (full 2): + PSYoungGen total 71680K, used 5090K [0x0000000795580000, 0x00000007a3100000, 0x00000007c0000000) + eden space 66560K, 0% used [0x0000000795580000,0x0000000795580000,0x0000000799680000) + from space 5120K, 99% used [0x0000000799680000,0x0000000799b789d0,0x0000000799b80000) + to space 51712K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3100000) + ParOldGen total 175616K, used 175044K [0x0000000740000000, 0x000000074ab80000, 0x0000000795580000) + object space 175616K, 99% used [0x0000000740000000,0x000000074aaf1298,0x000000074ab80000) + Metaspace used 7779K, capacity 7929K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +Event: 10.150 GC heap after +Heap after GC invocations=7 (full 2): + PSYoungGen total 71680K, used 0K [0x0000000795580000, 0x00000007a3100000, 0x00000007c0000000) + eden space 66560K, 0% used [0x0000000795580000,0x0000000795580000,0x0000000799680000) + from space 5120K, 0% used [0x0000000799680000,0x0000000799680000,0x0000000799b80000) + to space 51712K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3100000) + ParOldGen total 214016K, used 114500K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746fd1198,0x000000074d100000) + Metaspace used 7779K, capacity 7929K, committed 8064K, reserved 1056768K + class space used 789K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.555 GC heap before +{Heap before GC invocations=8 (full 2): + PSYoungGen total 71680K, used 8377K [0x0000000795580000, 0x00000007a3100000, 0x00000007c0000000) + eden space 66560K, 12% used [0x0000000795580000,0x0000000795dae620,0x0000000799680000) + from space 5120K, 0% used [0x0000000799680000,0x0000000799680000,0x0000000799b80000) + to space 51712K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3100000) + ParOldGen total 214016K, used 114500K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746fd1198,0x000000074d100000) + Metaspace used 7882K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 792K, capacity 827K, committed 896K, reserved 1048576K +Event: 16.559 GC heap after +Heap after GC invocations=8 (full 2): + PSYoungGen total 174592K, used 6531K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 51712K, 12% used [0x000000079fe80000,0x00000007a04e0c70,0x00000007a3100000) + to space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + ParOldGen total 214016K, used 114500K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746fd1198,0x000000074d100000) + Metaspace used 7882K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 792K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.559 GC heap before +{Heap before GC invocations=9 (full 3): + PSYoungGen total 174592K, used 6531K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 51712K, 12% used [0x000000079fe80000,0x00000007a04e0c70,0x00000007a3100000) + to space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + ParOldGen total 214016K, used 114500K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 53% used [0x0000000740000000,0x0000000746fd1198,0x000000074d100000) + Metaspace used 7882K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 792K, capacity 827K, committed 896K, reserved 1048576K +Event: 16.600 GC heap after +Heap after GC invocations=9 (full 3): + PSYoungGen total 174592K, used 0K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 51712K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3100000) + to space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + ParOldGen total 214016K, used 55284K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd380,0x000000074d100000) + Metaspace used 7882K, capacity 7993K, committed 8064K, reserved 1056768K + class space used 792K, capacity 827K, committed 896K, reserved 1048576K +} +Event: 16.637 GC heap before +{Heap before GC invocations=10 (full 3): + PSYoungGen total 174592K, used 2378K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 1% used [0x0000000795580000,0x00000007957d2ae0,0x000000079cd80000) + from space 51712K, 0% used [0x000000079fe80000,0x000000079fe80000,0x00000007a3100000) + to space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + ParOldGen total 214016K, used 55284K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd380,0x000000074d100000) + Metaspace used 8004K, capacity 8153K, committed 8320K, reserved 1056768K + class space used 811K, capacity 859K, committed 896K, reserved 1048576K +Event: 16.638 GC heap after +Heap after GC invocations=10 (full 3): + PSYoungGen total 173056K, used 96K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 50176K, 0% used [0x000000079cd80000,0x000000079cd98000,0x000000079fe80000) + to space 50176K, 0% used [0x00000007a0400000,0x00000007a0400000,0x00000007a3500000) + ParOldGen total 214016K, used 55284K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd380,0x000000074d100000) + Metaspace used 8004K, capacity 8153K, committed 8320K, reserved 1056768K + class space used 811K, capacity 859K, committed 896K, reserved 1048576K +} +Event: 16.638 GC heap before +{Heap before GC invocations=11 (full 4): + PSYoungGen total 173056K, used 96K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 50176K, 0% used [0x000000079cd80000,0x000000079cd98000,0x000000079fe80000) + to space 50176K, 0% used [0x00000007a0400000,0x00000007a0400000,0x00000007a3500000) + ParOldGen total 214016K, used 55284K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x00000007435fd380,0x000000074d100000) + Metaspace used 8004K, capacity 8153K, committed 8320K, reserved 1056768K + class space used 811K, capacity 859K, committed 896K, reserved 1048576K +Event: 16.655 GC heap after +Heap after GC invocations=11 (full 4): + PSYoungGen total 173056K, used 0K [0x0000000795580000, 0x00000007a3500000, 0x00000007c0000000) + eden space 122880K, 0% used [0x0000000795580000,0x0000000795580000,0x000000079cd80000) + from space 50176K, 0% used [0x000000079cd80000,0x000000079cd80000,0x000000079fe80000) + to space 50176K, 0% used [0x00000007a0400000,0x00000007a0400000,0x00000007a3500000) + ParOldGen total 214016K, used 55323K [0x0000000740000000, 0x000000074d100000, 0x0000000795580000) + object space 214016K, 25% used [0x0000000740000000,0x0000000743606c28,0x000000074d100000) + Metaspace used 8004K, capacity 8153K, committed 8320K, reserved 1056768K + class space used 811K, capacity 859K, committed 896K, reserved 1048576K +} + +Deoptimization events (0 events): +No events + +Internal exceptions (10 events): +Event: 16.852 Thread 0x00007fc5ea802000 Exception (0x00000007996c5420) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.853 Thread 0x00007fc5ea802000 Exception (0x00000007996cdc50) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.853 Thread 0x00007fc5ea802000 Exception (0x00000007996d2e60) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.854 Thread 0x00007fc5ea802000 Exception (0x00000007996de260) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.855 Thread 0x00007fc5ea802000 Exception (0x00000007996e4058) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.855 Thread 0x00007fc5ea802000 Exception (0x00000007996e9548) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.855 Thread 0x00007fc5ea802000 Exception (0x00000007996eed58) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.863 Thread 0x00007fc5ea802000 Exception (0x00000007998dd710) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.864 Thread 0x00007fc5ea802000 Exception (0x00000007998e2778) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] +Event: 16.893 Thread 0x00007fc5ea802000 Exception (0x0000000799902598) thrown at [/HUDSON3/workspace/8-2-build-macosx-x86_64/jdk8u20/1074/hotspot/src/share/vm/prims/jvm.cpp, line 1275] + +Events (10 events): +Event: 16.890 loading class org/newdawn/slick/GameContainer +Event: 16.890 loading class org/newdawn/slick/GameContainer done +Event: 16.891 loading class org/newdawn/slick/GameContainer +Event: 16.891 loading class org/newdawn/slick/GameContainer done +Event: 16.891 loading class org/newdawn/slick/GameContainer +Event: 16.891 loading class org/newdawn/slick/GameContainer done +Event: 16.892 loading class org/newdawn/slick/GameContainer +Event: 16.892 loading class org/newdawn/slick/GameContainer done +Event: 16.892 loading class com/Torvald/Terrarum/GameControl/KeyToggler +Event: 16.892 loading class com/Torvald/Terrarum/GameControl/KeyToggler done + + +Dynamic libraries: +0x0000000009bc5000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa +0x0000000009bc5000 /System/Library/Frameworks/Security.framework/Versions/A/Security +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices +0x0000000009bc5000 /usr/lib/libz.1.dylib +0x0000000009bc5000 /usr/lib/libSystem.B.dylib +0x0000000009bc5000 /usr/lib/libobjc.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x0000000009bc5000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation +0x0000000009bc5000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x0000000009bc5000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData +0x0000000009bc5000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation +0x0000000009bc5000 /usr/lib/libScreenReader.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate +0x0000000009bc5000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface +0x0000000009bc5000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox +0x0000000009bc5000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit +0x0000000009bc5000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore +0x0000000009bc5000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x0000000009bc5000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition +0x0000000009bc5000 /usr/lib/libauto.dylib +0x0000000009bc5000 /usr/lib/libicucore.A.dylib +0x0000000009bc5000 /usr/lib/libxml2.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI +0x0000000009bc5000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio +0x0000000009bc5000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration +0x0000000009bc5000 /usr/lib/liblangid.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport +0x0000000009bc5000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit +0x0000000009bc5000 /usr/lib/libDiagnosticMessagesClient.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis +0x0000000009bc5000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL +0x0000000009bc5000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics +0x0000000009bc5000 /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage +0x0000000009bc5000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO +0x0000000009bc5000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup +0x0000000009bc5000 /usr/lib/libextension.dylib +0x0000000009bc5000 /usr/lib/libarchive.2.dylib +0x0000000009bc5000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork +0x0000000009bc5000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration +0x0000000009bc5000 /usr/lib/libCRFSuite.dylib +0x0000000009bc5000 /usr/lib/libc++.1.dylib +0x0000000009bc5000 /usr/lib/libc++abi.dylib +0x0000000009bc5000 /usr/lib/system/libcache.dylib +0x0000000009bc5000 /usr/lib/system/libcommonCrypto.dylib +0x0000000009bc5000 /usr/lib/system/libcompiler_rt.dylib +0x0000000009bc5000 /usr/lib/system/libcopyfile.dylib +0x0000000009bc5000 /usr/lib/system/libcorecrypto.dylib +0x0000000009bc5000 /usr/lib/system/libdispatch.dylib +0x0000000009bc5000 /usr/lib/system/libdyld.dylib +0x0000000009bc5000 /usr/lib/system/libkeymgr.dylib +0x0000000009bc5000 /usr/lib/system/liblaunch.dylib +0x0000000009bc5000 /usr/lib/system/libmacho.dylib +0x0000000009bc5000 /usr/lib/system/libquarantine.dylib +0x0000000009bc5000 /usr/lib/system/libremovefile.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_asl.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_blocks.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_c.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_configuration.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_coreservices.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_coretls.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_dnssd.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_info.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_kernel.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_m.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_malloc.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_network.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_networkextension.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_notify.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_platform.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_pthread.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_sandbox.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_secinit.dylib +0x0000000009bc5000 /usr/lib/system/libsystem_trace.dylib +0x0000000009bc5000 /usr/lib/system/libunc.dylib +0x0000000009bc5000 /usr/lib/system/libunwind.dylib +0x0000000009bc5000 /usr/lib/system/libxpc.dylib +0x0000000009bc5000 /usr/lib/libenergytrace.dylib +0x0000000009bc5000 /usr/lib/libbsm.0.dylib +0x0000000009bc5000 /usr/lib/system/libkxld.dylib +0x0000000009bc5000 /usr/lib/libxar.1.dylib +0x0000000009bc5000 /usr/lib/libsqlite3.dylib +0x0000000009bc5000 /usr/lib/libpam.2.dylib +0x0000000009bc5000 /usr/lib/libOpenScriptingUtil.dylib +0x0000000009bc5000 /usr/lib/libbz2.1.0.dylib +0x0000000009bc5000 /usr/lib/liblzma.5.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices +0x0000000009bc5000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList +0x0000000009bc5000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS +0x0000000009bc5000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth +0x0000000009bc5000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport +0x0000000009bc5000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC +0x0000000009bc5000 /usr/lib/libmecabra.dylib +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis +0x0000000009bc5000 /System/Library/Frameworks/Metal.framework/Versions/A/Metal +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib +0x0000000009bc5000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib +0x0000000009bc5000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib +0x0000000009bc5000 /usr/lib/libcups.2.dylib +0x0000000009bc5000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos +0x0000000009bc5000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS +0x0000000009bc5000 /usr/lib/libresolv.9.dylib +0x0000000009bc5000 /usr/lib/libiconv.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal +0x0000000009bc5000 /usr/lib/libheimdal-asn1.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory +0x0000000009bc5000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth +0x0000000009bc5000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory +0x0000000009bc5000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation +0x0000000009bc5000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling +0x0000000009bc5000 /usr/lib/libmarisa.dylib +0x0000000009bc5000 /usr/lib/libChineseTokenizer.dylib +0x0000000009bc5000 /usr/lib/libcmph.dylib +0x0000000009bc5000 /usr/lib/libcompression.dylib +0x0000000009bc5000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement +0x0000000009bc5000 /usr/lib/libxslt.1.dylib +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink +0x0000000009bc5000 /usr/lib/libFosl_dynamic.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL +0x0000000009bc5000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport +0x0000000009bc5000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices +0x0000000009bc5000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 +0x0000000009bc5000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN +0x0000000009bc5000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi +0x0000000009bc5000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth +0x0000000009bc5000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary +0x0000000009bc5000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication +0x0000000009bc5000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication +0x0000000009bc5000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore +0x0000000049386000 /System/Library/CoreServices/Encodings/libKoreanConverter.dylib +0x0000000103edd000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/server/libjvm.dylib +0x0000000009bc5000 /usr/lib/libstdc++.6.dylib +0x0000000105600000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libverify.dylib +0x000000010560e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjava.dylib +0x000000010564a000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libzip.dylib +0x000000011afb2000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport +0x000000011afcd000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation +0x000000011afe2000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon +0x000000011afef000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print +0x0000000009bc5000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI +0x000000011ca5e000 /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/libbreakgen64.jnilib +0x000000011ca61000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libnet.dylib +0x000000011cac0000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt.dylib +0x000000011cb6f000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libmlib_image.dylib +0x000000011cc3b000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libawt_lwawt.dylib +0x000000011ccee000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/./libosxapp.dylib +0x0000000009bc5000 /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib +0x0000000009bc5000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages +0x0000000009bc5000 /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording +0x0000000009bc5000 /usr/lib/libcsfde.dylib +0x0000000009bc5000 /usr/lib/libcurl.4.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit +0x0000000009bc5000 /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage +0x0000000009bc5000 /usr/lib/libCoreStorage.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin +0x0000000009bc5000 /usr/lib/libutil.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice +0x0000000009bc5000 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP +0x0000000009bc5000 /usr/lib/libsasl2.2.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon +0x0000000009bc5000 /usr/lib/libcrypto.0.9.8.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP +0x0000000009bc5000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent +0x000000011e71a000 cl_kernels +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib +0x0000000009bc5000 /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls +0x0000000009bc5000 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore +0x0000000009bc5000 /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration +0x0000000009bc5000 /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer +0x0000000009bc5000 /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper +0x0000000009bc5000 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService +0x0000000009bc5000 /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore +0x0000000009bc5000 /usr/lib/libodfde.dylib +0x000000011f7da000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libfontmanager.dylib +0x000000011f840000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/liblwjgl.dylib +0x000000011dc0e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libjawt.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib +0x000000011f8e8000 /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver +0x0000000009bc5000 /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib +0x0000000009bc5000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat +0x0000000120ebc000 /Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native/libjinput-osx.dylib +0x0000000120ec1000 /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib +0x0000000124529000 /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/libmanagement.dylib + +VM Arguments: +jvm_args: -Djava.library.path=/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/native:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-linux.jar:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-mac.jar:/Users/minjaesong/Documents/workspace/Terrarum_renewed/lib/natives-windows.jar -Didea.launcher.port=7542 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15 CE.app/Contents/bin -Dfile.encoding=UTF-8 +java_command: com.intellij.rt.execution.application.AppMain com.Torvald.Terrarum.Terrarum +java_class_path (initial): /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/C +Launcher Type: SUN_STANDARD + +Environment Variables: +PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin +SHELL=/bin/bash +DISPLAY=/private/tmp/com.apple.launchd.JUiwxfWmS1/org.macosforge.xquartz:0 + +Signal Handlers: +SIGSEGV: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO +SIGBUS: [libjvm.dylib+0x578fd7], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGFPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGPIPE: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGXFSZ: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGILL: [libjvm.dylib+0x45ab0c], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none +SIGUSR2: [libjvm.dylib+0x45a62a], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO +SIGHUP: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGINT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGTERM: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO +SIGQUIT: [libjvm.dylib+0x458bfd], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO + + +--------------- S Y S T E M --------------- + +OS:Bsduname:Darwin 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64 +rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity +load average:2.63 2.21 2.09 + +CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv + +Memory: 4k page, physical 8388608k(254564k free) + +/proc/meminfo: + + +vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for bsd-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:37:47 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) + +time: Sat Jan 30 01:22:06 2016 +elapsed time: 16 seconds (0d 0h 0m 16s) + diff --git a/lib/apidocs/allclasses-frame.html b/lib/apidocs/allclasses-frame.html new file mode 100644 index 000000000..b88501187 --- /dev/null +++ b/lib/apidocs/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + +All Classes (Apache Commons CSV 1.2 API) + + + +

All Classes

+
+ +
+ + diff --git a/lib/apidocs/allclasses-noframe.html b/lib/apidocs/allclasses-noframe.html new file mode 100644 index 000000000..6ed857e01 --- /dev/null +++ b/lib/apidocs/allclasses-noframe.html @@ -0,0 +1,22 @@ + + + + + +All Classes (Apache Commons CSV 1.2 API) + + + +

All Classes

+
+ +
+ + diff --git a/lib/apidocs/constant-values.html b/lib/apidocs/constant-values.html new file mode 100644 index 000000000..67c352bc8 --- /dev/null +++ b/lib/apidocs/constant-values.html @@ -0,0 +1,113 @@ + + + + + +Constant Field Values (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/deprecated-list.html b/lib/apidocs/deprecated-list.html new file mode 100644 index 000000000..cf6b35ea5 --- /dev/null +++ b/lib/apidocs/deprecated-list.html @@ -0,0 +1,113 @@ + + + + + +Deprecated List (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/help-doc.html b/lib/apidocs/help-doc.html new file mode 100644 index 000000000..808d528d7 --- /dev/null +++ b/lib/apidocs/help-doc.html @@ -0,0 +1,214 @@ + + + + + +API Help (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/index-all.html b/lib/apidocs/index-all.html new file mode 100644 index 000000000..5b77282a1 --- /dev/null +++ b/lib/apidocs/index-all.html @@ -0,0 +1,615 @@ + + + + + +Index (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
C D E F G H I M N O P Q R S T V W  + + +

C

+
+
close() - Method in class org.apache.commons.csv.CSVParser
+
+
Closes resources.
+
+
close() - Method in class org.apache.commons.csv.CSVPrinter
+
 
+
CSVFormat - Class in org.apache.commons.csv
+
+
Specifies the format of a CSV file and parses input.
+
+
CSVFormat.Predefined - Enum in org.apache.commons.csv
+
+
Predefines formats.
+
+
CSVParser - Class in org.apache.commons.csv
+
+
Parses CSV files according to the specified format.
+
+
CSVParser(Reader, CSVFormat) - Constructor for class org.apache.commons.csv.CSVParser
+
+
Customized CSV parser using the given CSVFormat
+
+
CSVParser(Reader, CSVFormat, long, long) - Constructor for class org.apache.commons.csv.CSVParser
+
+
Customized CSV parser using the given CSVFormat
+
+
CSVPrinter - Class in org.apache.commons.csv
+
+
Prints values in a CSV format.
+
+
CSVPrinter(Appendable, CSVFormat) - Constructor for class org.apache.commons.csv.CSVPrinter
+
+
Creates a printer that will print values to the given stream following the CSVFormat.
+
+
CSVRecord - Class in org.apache.commons.csv
+
+
A CSV record parsed from a CSV file.
+
+
+ + + +

D

+
+
DEFAULT - Static variable in class org.apache.commons.csv.CSVFormat
+
+
Standard comma separated format, as for CSVFormat.RFC4180 but allowing empty lines.
+
+
+ + + +

E

+
+
equals(Object) - Method in class org.apache.commons.csv.CSVFormat
+
 
+
EXCEL - Static variable in class org.apache.commons.csv.CSVFormat
+
+
Excel file format (using a comma as the value delimiter).
+
+
+ + + +

F

+
+
flush() - Method in class org.apache.commons.csv.CSVPrinter
+
+
Flushes the underlying stream.
+
+
format(Object...) - Method in class org.apache.commons.csv.CSVFormat
+
+
Formats the specified values.
+
+
+ + + +

G

+
+
get(Enum<?>) - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns a value by Enum.
+
+
get(int) - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns a value by index.
+
+
get(String) - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns a value by name.
+
+
getAllowMissingColumnNames() - Method in class org.apache.commons.csv.CSVFormat
+
+
Specifies whether missing column names are allowed when parsing the header line.
+
+
getCharacterPosition() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns the start position of this record as a character position in the source stream.
+
+
getComment() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns the comment for this record, if any.
+
+
getCommentMarker() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the character marking the start of a line comment.
+
+
getCurrentLineNumber() - Method in class org.apache.commons.csv.CSVParser
+
+
Returns the current line number in the input stream.
+
+
getDelimiter() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the character delimiting the values (typically ';', ',' or '\t').
+
+
getEscapeCharacter() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the escape character.
+
+
getFormat() - Method in enum org.apache.commons.csv.CSVFormat.Predefined
+
+
Gets the format.
+
+
getHeader() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns a copy of the header array.
+
+
getHeaderComments() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns a copy of the header comment array.
+
+
getHeaderMap() - Method in class org.apache.commons.csv.CSVParser
+
+
Returns a copy of the header map that iterates in column order.
+
+
getIgnoreEmptyLines() - Method in class org.apache.commons.csv.CSVFormat
+
+
Specifies whether empty lines between records are ignored when parsing input.
+
+
getIgnoreSurroundingSpaces() - Method in class org.apache.commons.csv.CSVFormat
+
+
Specifies whether spaces around values are ignored when parsing input.
+
+
getNullString() - Method in class org.apache.commons.csv.CSVFormat
+
+
Gets the String to convert to and from null.
+
+
getOut() - Method in class org.apache.commons.csv.CSVPrinter
+
+
Gets the target Appendable.
+
+
getQuoteCharacter() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the character used to encapsulate values containing special characters.
+
+
getQuoteMode() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the quote policy output fields.
+
+
getRecordNumber() - Method in class org.apache.commons.csv.CSVParser
+
+
Returns the current record number in the input stream.
+
+
getRecordNumber() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns the number of this record in the parsed CSV file.
+
+
getRecords() - Method in class org.apache.commons.csv.CSVParser
+
+
Parses the CSV input according to the given format and returns the content as a list of + CSVRecords.
+
+
getRecordSeparator() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns the record separator delimiting output records.
+
+
getSkipHeaderRecord() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns whether to skip the header record.
+
+
+ + + +

H

+
+
hashCode() - Method in class org.apache.commons.csv.CSVFormat
+
 
+
+ + + +

I

+
+
isClosed() - Method in class org.apache.commons.csv.CSVParser
+
+
Gets whether this parser is closed.
+
+
isCommentMarkerSet() - Method in class org.apache.commons.csv.CSVFormat
+
+
Specifies whether comments are supported by this format.
+
+
isConsistent() - Method in class org.apache.commons.csv.CSVRecord
+
+
Tells whether the record size matches the header size.
+
+
isEscapeCharacterSet() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns whether escape are being processed.
+
+
isMapped(String) - Method in class org.apache.commons.csv.CSVRecord
+
+
Checks whether a given column is mapped, i.e.
+
+
isNullStringSet() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns whether a nullString has been defined.
+
+
isQuoteCharacterSet() - Method in class org.apache.commons.csv.CSVFormat
+
+
Returns whether a quoteChar has been defined.
+
+
isSet(String) - Method in class org.apache.commons.csv.CSVRecord
+
+
Checks whether a given columns is mapped and has a value.
+
+
iterator() - Method in class org.apache.commons.csv.CSVParser
+
+
Returns an iterator on the records.
+
+
iterator() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns an iterator over the values of this record.
+
+
+ + + +

M

+
+
MYSQL - Static variable in class org.apache.commons.csv.CSVFormat
+
+
Default MySQL format used by the SELECT INTO OUTFILE and LOAD DATA INFILE operations.
+
+
+ + + +

N

+
+
newFormat(char) - Static method in class org.apache.commons.csv.CSVFormat
+
+
Creates a new CSV format with the specified delimiter.
+
+
+ + + +

O

+
+
org.apache.commons.csv - package org.apache.commons.csv
+
+
Apache Commons CSV Format Support.
+
+
+ + + +

P

+
+
parse(Reader) - Method in class org.apache.commons.csv.CSVFormat
+
+
Parses the specified content.
+
+
parse(File, Charset, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
+
+
Creates a parser for the given File.
+
+
parse(String, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
+
+
Creates a parser for the given String.
+
+
parse(URL, Charset, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
+
+
Creates a parser for the given URL.
+
+
print(Appendable) - Method in class org.apache.commons.csv.CSVFormat
+
+
Prints to the specified output.
+
+
print(Object) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints the string as the next value on the line.
+
+
printComment(String) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints a comment on a new line among the delimiter separated values.
+
+
println() - Method in class org.apache.commons.csv.CSVPrinter
+
+
Outputs the record separator.
+
+
printRecord(Iterable<?>) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints the given values a single record of delimiter separated values followed by the record separator.
+
+
printRecord(Object...) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints the given values a single record of delimiter separated values followed by the record separator.
+
+
printRecords(Iterable<?>) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints all the objects in the given collection handling nested collections/arrays as records.
+
+
printRecords(Object...) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints all the objects in the given array handling nested collections/arrays as records.
+
+
printRecords(ResultSet) - Method in class org.apache.commons.csv.CSVPrinter
+
+
Prints all the objects in the given JDBC result set.
+
+
+ + + +

Q

+
+
QuoteMode - Enum in org.apache.commons.csv
+
+
Defines quote behavior when printing.
+
+
+ + + +

R

+
+
RFC4180 - Static variable in class org.apache.commons.csv.CSVFormat
+
+
Comma separated format as defined by RFC 4180.
+
+
+ + + +

S

+
+
size() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns the number of values in this record.
+
+
+ + + +

T

+
+
TDF - Static variable in class org.apache.commons.csv.CSVFormat
+
+
Tab-delimited format.
+
+
toMap() - Method in class org.apache.commons.csv.CSVRecord
+
+
Copies this record into a new Map.
+
+
toString() - Method in class org.apache.commons.csv.CSVFormat
+
 
+
toString() - Method in class org.apache.commons.csv.CSVRecord
+
+
Returns a string representation of the contents of this record.
+
+
+ + + +

V

+
+
valueOf(String) - Static method in enum org.apache.commons.csv.CSVFormat.Predefined
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in class org.apache.commons.csv.CSVFormat
+
+
Gets one of the predefined formats from CSVFormat.Predefined.
+
+
valueOf(String) - Static method in enum org.apache.commons.csv.QuoteMode
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum org.apache.commons.csv.CSVFormat.Predefined
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.apache.commons.csv.QuoteMode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
+ + + +

W

+
+
withAllowMissingColumnNames() - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the missing column names behavior of the format to true
+
+
withAllowMissingColumnNames(boolean) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the missing column names behavior of the format.
+
+
withCommentMarker(char) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the comment start marker of the format to the specified character.
+
+
withCommentMarker(Character) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the comment start marker of the format to the specified character.
+
+
withDelimiter(char) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the delimiter of the format to the specified character.
+
+
withEscape(char) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the escape character of the format to the specified character.
+
+
withEscape(Character) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the escape character of the format to the specified character.
+
+
withHeader(String...) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the header of the format.
+
+
withHeader(ResultSet) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the header of the format.
+
+
withHeader(ResultSetMetaData) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the header of the format.
+
+
withHeaderComments(Object...) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the header comments of the format.
+
+
withIgnoreEmptyLines() - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the empty line skipping behavior of the format to true.
+
+
withIgnoreEmptyLines(boolean) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the empty line skipping behavior of the format.
+
+
withIgnoreSurroundingSpaces() - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the trimming behavior of the format to true.
+
+
withIgnoreSurroundingSpaces(boolean) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the trimming behavior of the format.
+
+
withNullString(String) - Method in class org.apache.commons.csv.CSVFormat
+
+
Performs conversions to and from null for strings on input and output.
+
+
withQuote(char) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the quoteChar of the format to the specified character.
+
+
withQuote(Character) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the quoteChar of the format to the specified character.
+
+
withQuoteMode(QuoteMode) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the output quote policy of the format to the specified value.
+
+
withRecordSeparator(char) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the record separator of the format to the specified character.
+
+
withRecordSeparator(String) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets the record separator of the format to the specified String.
+
+
withSkipHeaderRecord() - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets skipping the header record to true.
+
+
withSkipHeaderRecord(boolean) - Method in class org.apache.commons.csv.CSVFormat
+
+
Sets whether to skip the header record.
+
+
+C D E F G H I M N O P Q R S T V W 
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/index.html b/lib/apidocs/index.html new file mode 100644 index 000000000..02cc5070a --- /dev/null +++ b/lib/apidocs/index.html @@ -0,0 +1,71 @@ + + + + + +Apache Commons CSV 1.2 API + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="org/apache/commons/csv/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/lib/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html b/lib/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html new file mode 100644 index 000000000..2da341809 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html @@ -0,0 +1,382 @@ + + + + + +CSVFormat.Predefined (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Enum CSVFormat.Predefined

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CSVFormat.Predefined[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CSVFormat.Predefined c : CSVFormat.Predefined.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CSVFormat.Predefined valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      + + + +
        +
      • +

        getFormat

        +
        public CSVFormat getFormat()
        +
        Gets the format.
        +
        Returns:
        the format.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/CSVFormat.html b/lib/apidocs/org/apache/commons/csv/CSVFormat.html new file mode 100644 index 000000000..0bd657756 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/CSVFormat.html @@ -0,0 +1,1501 @@ + + + + + +CSVFormat (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Class CSVFormat

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public final class CSVFormat
    +extends Object
    +implements Serializable
    +
    Specifies the format of a CSV file and parses input. + +

    Using predefined formats

    + +

    + You can use one of the predefined formats: +

    + + + +

    + For example: +

    + +
    + CSVParser parser = CSVFormat.EXCEL.parse(reader);
    + 
    + +

    + The CSVParser provides static methods to parse other input types, for example: +

    + +
    + CSVParser parser = CSVParser.parse(file, StandardCharsets.US_ASCII, CSVFormat.EXCEL);
    + 
    + +

    Defining formats

    + +

    + You can extend a format by calling the with methods. For example: +

    + +
    + CSVFormat.EXCEL.withNullString("N/A").withIgnoreSurroundingSpaces(true);
    + 
    + +

    Defining column names

    + +

    + To define the column names you want to use to access records, write: +

    + +
    + CSVFormat.EXCEL.withHeader("Col1", "Col2", "Col3");
    + 
    + +

    + Calling withHeader(String...) let's you use the given names to address values in a CSVRecord, and + assumes that your CSV source does not contain a first record that also defines column names. + + If it does, then you are overriding this metadata with your names and you should skip the first record by calling + withSkipHeaderRecord(boolean) with true. +

    + +

    Parsing

    + +

    + You can use a format directly to parse a reader. For example, to parse an Excel file with columns header, write: +

    + +
    + Reader in = ...;
    + CSVFormat.EXCEL.withHeader("Col1", "Col2", "Col3").parse(in);
    + 
    + +

    + For other input types, like resources, files, and URLs, use the static methods on CSVParser. +

    + +

    Referencing columns safely

    + +

    + If your source contains a header record, you can simplify your code and safely reference columns, by using + withHeader(String...) with no arguments: +

    + +
    + CSVFormat.EXCEL.withHeader();
    + 
    + +

    + This causes the parser to read the first record and use its values as column names. + + Then, call one of the CSVRecord get method that takes a String column name argument: +

    + +
    + String value = record.get("Col1");
    + 
    + +

    + This makes your code impervious to changes in column order in the CSV file. +

    + +

    Notes

    + +

    + This class is immutable. +

    +
    Version:
    +
    $Id: CSVFormat.java 1695190 2015-08-11 02:14:33Z ggregory $
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newFormat

        +
        public static CSVFormat newFormat(char delimiter)
        +
        Creates a new CSV format with the specified delimiter. + +

        + Use this method if you want to create a CSVFormat from scratch. All fields but the delimiter will be initialized + with null/false. +

        +
        Parameters:
        delimiter - the char used for value separation, must not be a line break character
        +
        Returns:
        a new CSV format.
        +
        Throws:
        +
        IllegalArgumentException - if the delimiter is a line break character
        See Also:
        DEFAULT, +RFC4180, +MYSQL, +EXCEL, +TDF
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CSVFormat valueOf(String format)
        +
        Gets one of the predefined formats from CSVFormat.Predefined.
        +
        Parameters:
        format - name
        +
        Returns:
        one of the predefined formats
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object obj)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        format

        +
        public String format(Object... values)
        +
        Formats the specified values.
        +
        Parameters:
        values - the values to format
        +
        Returns:
        the formatted values
        +
      • +
      + + + +
        +
      • +

        getCommentMarker

        +
        public Character getCommentMarker()
        +
        Returns the character marking the start of a line comment.
        +
        Returns:
        the comment start marker, may be null
        +
      • +
      + + + +
        +
      • +

        getDelimiter

        +
        public char getDelimiter()
        +
        Returns the character delimiting the values (typically ';', ',' or '\t').
        +
        Returns:
        the delimiter character
        +
      • +
      + + + +
        +
      • +

        getEscapeCharacter

        +
        public Character getEscapeCharacter()
        +
        Returns the escape character.
        +
        Returns:
        the escape character, may be null
        +
      • +
      + + + +
        +
      • +

        getHeader

        +
        public String[] getHeader()
        +
        Returns a copy of the header array.
        +
        Returns:
        a copy of the header array; null if disabled, the empty array if to be read from the file
        +
      • +
      + + + +
        +
      • +

        getHeaderComments

        +
        public String[] getHeaderComments()
        +
        Returns a copy of the header comment array.
        +
        Returns:
        a copy of the header comment array; null if disabled.
        +
      • +
      + + + +
        +
      • +

        getAllowMissingColumnNames

        +
        public boolean getAllowMissingColumnNames()
        +
        Specifies whether missing column names are allowed when parsing the header line.
        +
        Returns:
        true if missing column names are allowed when parsing the header line, false to throw an + IllegalArgumentException.
        +
      • +
      + + + +
        +
      • +

        getIgnoreEmptyLines

        +
        public boolean getIgnoreEmptyLines()
        +
        Specifies whether empty lines between records are ignored when parsing input.
        +
        Returns:
        true if empty lines between records are ignored, false if they are turned into empty + records.
        +
      • +
      + + + +
        +
      • +

        getIgnoreSurroundingSpaces

        +
        public boolean getIgnoreSurroundingSpaces()
        +
        Specifies whether spaces around values are ignored when parsing input.
        +
        Returns:
        true if spaces around values are ignored, false if they are treated as part of the value.
        +
      • +
      + + + +
        +
      • +

        getNullString

        +
        public String getNullString()
        +
        Gets the String to convert to and from null. +
          +
        • + Reading: Converts strings equal to the given nullString to null when reading + records.
        • +
        • + Writing: Writes null as the given nullString when writing records.
        • +
        +
        Returns:
        the String to convert to and from null. No substitution occurs if null
        +
      • +
      + + + +
        +
      • +

        getQuoteCharacter

        +
        public Character getQuoteCharacter()
        +
        Returns the character used to encapsulate values containing special characters.
        +
        Returns:
        the quoteChar character, may be null
        +
      • +
      + + + +
        +
      • +

        getQuoteMode

        +
        public QuoteMode getQuoteMode()
        +
        Returns the quote policy output fields.
        +
        Returns:
        the quote policy
        +
      • +
      + + + +
        +
      • +

        getRecordSeparator

        +
        public String getRecordSeparator()
        +
        Returns the record separator delimiting output records.
        +
        Returns:
        the record separator
        +
      • +
      + + + +
        +
      • +

        getSkipHeaderRecord

        +
        public boolean getSkipHeaderRecord()
        +
        Returns whether to skip the header record.
        +
        Returns:
        whether to skip the header record.
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        isCommentMarkerSet

        +
        public boolean isCommentMarkerSet()
        +
        Specifies whether comments are supported by this format. + + Note that the comment introducer character is only recognized at the start of a line.
        +
        Returns:
        true is comments are supported, false otherwise
        +
      • +
      + + + +
        +
      • +

        isEscapeCharacterSet

        +
        public boolean isEscapeCharacterSet()
        +
        Returns whether escape are being processed.
        +
        Returns:
        true if escapes are processed
        +
      • +
      + + + +
        +
      • +

        isNullStringSet

        +
        public boolean isNullStringSet()
        +
        Returns whether a nullString has been defined.
        +
        Returns:
        true if a nullString is defined
        +
      • +
      + + + +
        +
      • +

        isQuoteCharacterSet

        +
        public boolean isQuoteCharacterSet()
        +
        Returns whether a quoteChar has been defined.
        +
        Returns:
        true if a quoteChar is defined
        +
      • +
      + + + +
        +
      • +

        parse

        +
        public CSVParser parse(Reader in)
        +                throws IOException
        +
        Parses the specified content. + +

        + See also the various static parse methods on CSVParser. +

        +
        Parameters:
        in - the input stream
        +
        Returns:
        a parser over a stream of CSVRecords.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        print

        +
        public CSVPrinter print(Appendable out)
        +                 throws IOException
        +
        Prints to the specified output. + +

        + See also CSVPrinter. +

        +
        Parameters:
        out - the output
        +
        Returns:
        a printer to an output
        +
        Throws:
        +
        IOException - thrown if the optional header cannot be printed.
        +
      • +
      + + + + + + + +
        +
      • +

        withCommentMarker

        +
        public CSVFormat withCommentMarker(char commentMarker)
        +
        Sets the comment start marker of the format to the specified character. + + Note that the comment start character is only recognized at the start of a line.
        +
        Parameters:
        commentMarker - the comment start marker
        +
        Returns:
        A new CSVFormat that is equal to this one but with the specified character as the comment start marker
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withCommentMarker

        +
        public CSVFormat withCommentMarker(Character commentMarker)
        +
        Sets the comment start marker of the format to the specified character. + + Note that the comment start character is only recognized at the start of a line.
        +
        Parameters:
        commentMarker - the comment start marker, use null to disable
        +
        Returns:
        A new CSVFormat that is equal to this one but with the specified character as the comment start marker
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withDelimiter

        +
        public CSVFormat withDelimiter(char delimiter)
        +
        Sets the delimiter of the format to the specified character.
        +
        Parameters:
        delimiter - the delimiter character
        +
        Returns:
        A new CSVFormat that is equal to this with the specified character as delimiter
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withEscape

        +
        public CSVFormat withEscape(char escape)
        +
        Sets the escape character of the format to the specified character.
        +
        Parameters:
        escape - the escape character
        +
        Returns:
        A new CSVFormat that is equal to his but with the specified character as the escape character
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withEscape

        +
        public CSVFormat withEscape(Character escape)
        +
        Sets the escape character of the format to the specified character.
        +
        Parameters:
        escape - the escape character, use null to disable
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified character as the escape character
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withHeader

        +
        public CSVFormat withHeader(String... header)
        +
        Sets the header of the format. The header can either be parsed automatically from the input file with: + +
        + CSVFormat format = aformat.withHeader();
        + 
        + + or specified manually with: + +
        + CSVFormat format = aformat.withHeader("name", "email", "phone");
        + 
        +

        + The header is also used by the CSVPrinter.. +

        +
        Parameters:
        header - the header, null if disabled, empty if parsed automatically, user specified otherwise.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified header
        See Also:
        withSkipHeaderRecord(boolean)
        +
      • +
      + + + +
        +
      • +

        withHeader

        +
        public CSVFormat withHeader(ResultSet resultSet)
        +                     throws SQLException
        +
        Sets the header of the format. The header can either be parsed automatically from the input file with: + +
        + CSVFormat format = aformat.withHeader();
        + 
        + + or specified manually with: + +
        + CSVFormat format = aformat.withHeader(resultSet);
        + 
        +

        + The header is also used by the CSVPrinter.. +

        +
        Parameters:
        resultSet - the resultSet for the header, null if disabled, empty if parsed automatically, user specified + otherwise.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified header
        +
        Throws:
        +
        SQLException - SQLException if a database access error occurs or this method is called on a closed result set.
        Since:
        +
        1.1
        +
      • +
      + + + +
        +
      • +

        withHeader

        +
        public CSVFormat withHeader(ResultSetMetaData metaData)
        +                     throws SQLException
        +
        Sets the header of the format. The header can either be parsed automatically from the input file with: + +
        + CSVFormat format = aformat.withHeader();
        + 
        + + or specified manually with: + +
        + CSVFormat format = aformat.withHeader(metaData);
        + 
        +

        + The header is also used by the CSVPrinter.. +

        +
        Parameters:
        metaData - the metaData for the header, null if disabled, empty if parsed automatically, user specified + otherwise.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified header
        +
        Throws:
        +
        SQLException - SQLException if a database access error occurs or this method is called on a closed result set.
        Since:
        +
        1.1
        +
      • +
      + + + +
        +
      • +

        withHeaderComments

        +
        public CSVFormat withHeaderComments(Object... headerComments)
        +
        Sets the header comments of the format. The comments will be printed first, before the headers. This setting is + ignored by the parser. + +
        + CSVFormat format = aformat.withHeaderComments("Generated by Apache Commons CSV 1.1.", new Date());
        + 
        +
        Parameters:
        headerComments - the headerComments which will be printed by the Printer before the actual CSV data.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified header
        Since:
        +
        1.1
        +
        See Also:
        withSkipHeaderRecord(boolean)
        +
      • +
      + + + +
        +
      • +

        withAllowMissingColumnNames

        +
        public CSVFormat withAllowMissingColumnNames()
        +
        Sets the missing column names behavior of the format to true
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified missing column names behavior.
        Since:
        +
        1.1
        +
        See Also:
        withAllowMissingColumnNames(boolean)
        +
      • +
      + + + +
        +
      • +

        withAllowMissingColumnNames

        +
        public CSVFormat withAllowMissingColumnNames(boolean allowMissingColumnNames)
        +
        Sets the missing column names behavior of the format.
        +
        Parameters:
        allowMissingColumnNames - the missing column names behavior, true to allow missing column names in the header line, + false to cause an IllegalArgumentException to be thrown.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified missing column names behavior.
        +
      • +
      + + + +
        +
      • +

        withIgnoreEmptyLines

        +
        public CSVFormat withIgnoreEmptyLines()
        +
        Sets the empty line skipping behavior of the format to true.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified empty line skipping behavior.
        Since:
        +
        withIgnoreEmptyLines(boolean), 1.1
        +
      • +
      + + + +
        +
      • +

        withIgnoreEmptyLines

        +
        public CSVFormat withIgnoreEmptyLines(boolean ignoreEmptyLines)
        +
        Sets the empty line skipping behavior of the format.
        +
        Parameters:
        ignoreEmptyLines - the empty line skipping behavior, true to ignore the empty lines between the records, + false to translate empty lines to empty records.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified empty line skipping behavior.
        +
      • +
      + + + +
        +
      • +

        withIgnoreSurroundingSpaces

        +
        public CSVFormat withIgnoreSurroundingSpaces()
        +
        Sets the trimming behavior of the format to true.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified trimming behavior.
        Since:
        +
        1.1
        +
        See Also:
        withIgnoreSurroundingSpaces(boolean)
        +
      • +
      + + + +
        +
      • +

        withIgnoreSurroundingSpaces

        +
        public CSVFormat withIgnoreSurroundingSpaces(boolean ignoreSurroundingSpaces)
        +
        Sets the trimming behavior of the format.
        +
        Parameters:
        ignoreSurroundingSpaces - the trimming behavior, true to remove the surrounding spaces, false to leave the + spaces as is.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified trimming behavior.
        +
      • +
      + + + +
        +
      • +

        withNullString

        +
        public CSVFormat withNullString(String nullString)
        +
        Performs conversions to and from null for strings on input and output. +
          +
        • + Reading: Converts strings equal to the given nullString to null when reading + records.
        • +
        • + Writing: Writes null as the given nullString when writing records.
        • +
        +
        Parameters:
        nullString - the String to convert to and from null. No substitution occurs if null
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified null conversion string.
        +
      • +
      + + + +
        +
      • +

        withQuote

        +
        public CSVFormat withQuote(char quoteChar)
        +
        Sets the quoteChar of the format to the specified character.
        +
        Parameters:
        quoteChar - the quoteChar character
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified character as quoteChar
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withQuote

        +
        public CSVFormat withQuote(Character quoteChar)
        +
        Sets the quoteChar of the format to the specified character.
        +
        Parameters:
        quoteChar - the quoteChar character, use null to disable
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified character as quoteChar
        +
        Throws:
        +
        IllegalArgumentException - thrown if the specified character is a line break
        +
      • +
      + + + +
        +
      • +

        withQuoteMode

        +
        public CSVFormat withQuoteMode(QuoteMode quoteModePolicy)
        +
        Sets the output quote policy of the format to the specified value.
        +
        Parameters:
        quoteModePolicy - the quote policy to use for output.
        +
        Returns:
        A new CSVFormat that is equal to this but with the specified quote policy
        +
      • +
      + + + +
        +
      • +

        withRecordSeparator

        +
        public CSVFormat withRecordSeparator(char recordSeparator)
        +
        Sets the record separator of the format to the specified character. + +

        + Note: This setting is only used during printing and does not affect parsing. Parsing currently + only works for inputs with '\n', '\r' and "\r\n" +

        +
        Parameters:
        recordSeparator - the record separator to use for output.
        +
        Returns:
        A new CSVFormat that is equal to this but with the the specified output record separator
        +
      • +
      + + + +
        +
      • +

        withRecordSeparator

        +
        public CSVFormat withRecordSeparator(String recordSeparator)
        +
        Sets the record separator of the format to the specified String. + +

        + Note: This setting is only used during printing and does not affect parsing. Parsing currently + only works for inputs with '\n', '\r' and "\r\n" +

        +
        Parameters:
        recordSeparator - the record separator to use for output.
        +
        Returns:
        A new CSVFormat that is equal to this but with the the specified output record separator
        +
        Throws:
        +
        IllegalArgumentException - if recordSeparator is none of CR, LF or CRLF
        +
      • +
      + + + + + + + +
        +
      • +

        withSkipHeaderRecord

        +
        public CSVFormat withSkipHeaderRecord(boolean skipHeaderRecord)
        +
        Sets whether to skip the header record.
        +
        Parameters:
        skipHeaderRecord - whether to skip the header record.
        +
        Returns:
        A new CSVFormat that is equal to this but with the the specified skipHeaderRecord setting.
        See Also:
        withHeader(String...)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/CSVParser.html b/lib/apidocs/org/apache/commons/csv/CSVParser.html new file mode 100644 index 000000000..0fbb6f900 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/CSVParser.html @@ -0,0 +1,625 @@ + + + + + +CSVParser (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Class CSVParser

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Closeable, AutoCloseable, Iterable<CSVRecord>
    +
    +
    +
    +
    public final class CSVParser
    +extends Object
    +implements Iterable<CSVRecord>, Closeable
    +
    Parses CSV files according to the specified format. + + Because CSV appears in many different dialects, the parser supports many formats by allowing the + specification of a CSVFormat. + + The parser works record wise. It is not possible to go back, once a record has been parsed from the input stream. + +

    Creating instances

    +

    + There are several static factory methods that can be used to create instances for various types of resources: +

    + +

    + Alternatively parsers can also be created by passing a Reader directly to the sole constructor. + + For those who like fluent APIs, parsers can be created using CSVFormat.parse(java.io.Reader) as a shortcut: +

    +
    + for(CSVRecord record : CSVFormat.EXCEL.parse(in)) {
    +     ...
    + }
    + 
    + +

    Parsing record wise

    +

    + To parse a CSV input from a file, you write: +

    + +
    + File csvData = new File("/path/to/csv");
    + CSVParser parser = CSVParser.parse(csvData, CSVFormat.RFC4180);
    + for (CSVRecord csvRecord : parser) {
    +     ...
    + }
    + 
    + +

    + This will read the parse the contents of the file using the + RFC 4180 format. +

    + +

    + To parse CSV input in a format like Excel, you write: +

    + +
    + CSVParser parser = CSVParser.parse(csvData, CSVFormat.EXCEL);
    + for (CSVRecord csvRecord : parser) {
    +     ...
    + }
    + 
    + +

    + If the predefined formats don't match the format at hands, custom formats can be defined. More information about + customising CSVFormats is available in CSVFormat JavaDoc. +

    + +

    Parsing into memory

    +

    + If parsing record wise is not desired, the contents of the input can be read completely into memory. +

    + +
    + Reader in = new StringReader("a;b\nc;d");
    + CSVParser parser = new CSVParser(in, CSVFormat.EXCEL);
    + List<CSVRecord> list = parser.getRecords();
    + 
    + +

    + There are two constraints that have to be kept in mind: +

    + +
      +
    1. Parsing into memory starts at the current position of the parser. If you have already parsed records from + the input, those records will not end up in the in memory representation of your CSV data.
    2. +
    3. Parsing into memory may consume a lot of system resources depending on the input. For example if you're + parsing a 150MB file of CSV data the contents will be read completely into memory.
    4. +
    + +

    Notes

    +

    + Internal parser state is completely covered by the format and the reader-state. +

    +
    Version:
    +
    $Id: CSVParser.java 1695167 2015-08-10 21:08:58Z ggregory $
    +
    See Also:
    package documentation for more details
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CSVParser

        +
        public CSVParser(Reader reader,
        +         CSVFormat format)
        +          throws IOException
        +
        Customized CSV parser using the given CSVFormat + +

        + If you do not read all records from the given reader, you should call close() on the parser, + unless you close the reader. +

        +
        Parameters:
        reader - a Reader containing CSV-formatted input. Must not be null.
        format - the CSVFormat used for CSV parsing. Must not be null.
        +
        Throws:
        +
        IllegalArgumentException - If the parameters of the format are inconsistent or if either reader or format are null.
        +
        IOException - If there is a problem reading the header or skipping the first record
        +
      • +
      + + + +
        +
      • +

        CSVParser

        +
        public CSVParser(Reader reader,
        +         CSVFormat format,
        +         long characterOffset,
        +         long recordNumber)
        +          throws IOException
        +
        Customized CSV parser using the given CSVFormat + +

        + If you do not read all records from the given reader, you should call close() on the parser, + unless you close the reader. +

        +
        Parameters:
        reader - a Reader containing CSV-formatted input. Must not be null.
        format - the CSVFormat used for CSV parsing. Must not be null.
        characterOffset - Lexer offset when the parser does not start parsing at the beginning of the source.
        recordNumber - The next record number to assign
        +
        Throws:
        +
        IllegalArgumentException - If the parameters of the format are inconsistent or if either reader or format are null.
        +
        IOException - If there is a problem reading the header or skipping the first record
        Since:
        +
        1.1
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static CSVParser parse(File file,
        +              Charset charset,
        +              CSVFormat format)
        +                       throws IOException
        +
        Creates a parser for the given File. + +

        Note: This method internally creates a FileReader using + FileReader.FileReader(java.io.File) which in turn relies on the default encoding of the JVM that + is executing the code. If this is insufficient create a URL to the file and use + parse(URL, Charset, CSVFormat)

        +
        Parameters:
        file - a CSV file. Must not be null.
        charset - A charset
        format - the CSVFormat used for CSV parsing. Must not be null.
        +
        Returns:
        a new parser
        +
        Throws:
        +
        IllegalArgumentException - If the parameters of the format are inconsistent or if either file or format are null.
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        parse

        +
        public static CSVParser parse(String string,
        +              CSVFormat format)
        +                       throws IOException
        +
        Creates a parser for the given String.
        +
        Parameters:
        string - a CSV string. Must not be null.
        format - the CSVFormat used for CSV parsing. Must not be null.
        +
        Returns:
        a new parser
        +
        Throws:
        +
        IllegalArgumentException - If the parameters of the format are inconsistent or if either string or format are null.
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        parse

        +
        public static CSVParser parse(URL url,
        +              Charset charset,
        +              CSVFormat format)
        +                       throws IOException
        +
        Creates a parser for the given URL. + +

        + If you do not read all records from the given url, you should call close() on the parser, unless + you close the url. +

        +
        Parameters:
        url - a URL. Must not be null.
        charset - the charset for the resource. Must not be null.
        format - the CSVFormat used for CSV parsing. Must not be null.
        +
        Returns:
        a new parser
        +
        Throws:
        +
        IllegalArgumentException - If the parameters of the format are inconsistent or if either url, charset or format are null.
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + + + + + +
        +
      • +

        getCurrentLineNumber

        +
        public long getCurrentLineNumber()
        +
        Returns the current line number in the input stream. + +

        + ATTENTION: If your CSV input has multi-line values, the returned number does not correspond to + the record number. +

        +
        Returns:
        current line number
        +
      • +
      + + + +
        +
      • +

        getHeaderMap

        +
        public Map<String,Integer> getHeaderMap()
        +
        Returns a copy of the header map that iterates in column order. +

        + The map keys are column names. The map values are 0-based indices. +

        +
        Returns:
        a copy of the header map that iterates in column order.
        +
      • +
      + + + +
        +
      • +

        getRecordNumber

        +
        public long getRecordNumber()
        +
        Returns the current record number in the input stream. + +

        + ATTENTION: If your CSV input has multi-line values, the returned number does not correspond to + the line number. +

        +
        Returns:
        current record number
        +
      • +
      + + + +
        +
      • +

        getRecords

        +
        public List<CSVRecord> getRecords()
        +                           throws IOException
        +
        Parses the CSV input according to the given format and returns the content as a list of + CSVRecords. + +

        + The returned content starts at the current parse-position in the stream. +

        +
        Returns:
        list of CSVRecords, may be empty
        +
        Throws:
        +
        IOException - on parse error or input read-failure
        +
      • +
      + + + +
        +
      • +

        isClosed

        +
        public boolean isClosed()
        +
        Gets whether this parser is closed.
        +
        Returns:
        whether this parser is closed.
        +
      • +
      + + + +
        +
      • +

        iterator

        +
        public Iterator<CSVRecord> iterator()
        +
        Returns an iterator on the records. + +

        IOExceptions occurring during the iteration are wrapped in a + RuntimeException. + If the parser is closed a call to next() will throw a + NoSuchElementException.

        +
        +
        Specified by:
        +
        iterator in interface Iterable<CSVRecord>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/CSVPrinter.html b/lib/apidocs/org/apache/commons/csv/CSVPrinter.html new file mode 100644 index 000000000..e116a6e04 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/CSVPrinter.html @@ -0,0 +1,563 @@ + + + + + +CSVPrinter (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Class CSVPrinter

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CSVPrinter(Appendable out, + CSVFormat format) +
      Creates a printer that will print values to the given stream following the CSVFormat.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      voidflush() +
      Flushes the underlying stream.
      +
      AppendablegetOut() +
      Gets the target Appendable.
      +
      voidprint(Object value) +
      Prints the string as the next value on the line.
      +
      voidprintComment(String comment) +
      Prints a comment on a new line among the delimiter separated values.
      +
      voidprintln() +
      Outputs the record separator.
      +
      voidprintRecord(Iterable<?> values) +
      Prints the given values a single record of delimiter separated values followed by the record separator.
      +
      voidprintRecord(Object... values) +
      Prints the given values a single record of delimiter separated values followed by the record separator.
      +
      voidprintRecords(Iterable<?> values) +
      Prints all the objects in the given collection handling nested collections/arrays as records.
      +
      voidprintRecords(Object... values) +
      Prints all the objects in the given array handling nested collections/arrays as records.
      +
      voidprintRecords(ResultSet resultSet) +
      Prints all the objects in the given JDBC result set.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CSVPrinter

        +
        public CSVPrinter(Appendable out,
        +          CSVFormat format)
        +           throws IOException
        +
        Creates a printer that will print values to the given stream following the CSVFormat. +

        + Currently, only a pure encapsulation format or a pure escaping format is supported. Hybrid formats (encapsulation + and escaping with a different character) are not supported. +

        +
        Parameters:
        out - stream to which to print. Must not be null.
        format - the CSV format. Must not be null.
        +
        Throws:
        +
        IOException - thrown if the optional header cannot be printed.
        +
        IllegalArgumentException - thrown if the parameters of the format are inconsistent or if either out or format are null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        flush

        +
        public void flush()
        +           throws IOException
        +
        Flushes the underlying stream.
        +
        +
        Specified by:
        +
        flush in interface Flushable
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        getOut

        +
        public Appendable getOut()
        +
        Gets the target Appendable.
        +
        Returns:
        the target Appendable.
        +
      • +
      + + + +
        +
      • +

        print

        +
        public void print(Object value)
        +           throws IOException
        +
        Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
        +
        Parameters:
        value - value to be output.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printComment

        +
        public void printComment(String comment)
        +                  throws IOException
        +
        Prints a comment on a new line among the delimiter separated values. + +

        + Comments will always begin on a new line and occupy a least one full line. The character specified to start + comments and a space will be inserted at the beginning of each new line in the comment. +

        + + If comments are disabled in the current CSV format this method does nothing.
        +
        Parameters:
        comment - the comment to output
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        println

        +
        public void println()
        +             throws IOException
        +
        Outputs the record separator.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printRecord

        +
        public void printRecord(Iterable<?> values)
        +                 throws IOException
        +
        Prints the given values a single record of delimiter separated values followed by the record separator. + +

        + The values will be quoted if needed. Quotes and newLine characters will be escaped. This method adds the record + separator to the output after printing the record, so there is no need to call println(). +

        +
        Parameters:
        values - values to output.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printRecord

        +
        public void printRecord(Object... values)
        +                 throws IOException
        +
        Prints the given values a single record of delimiter separated values followed by the record separator. + +

        + The values will be quoted if needed. Quotes and newLine characters will be escaped. This method adds the record + separator to the output after printing the record, so there is no need to call println(). +

        +
        Parameters:
        values - values to output.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printRecords

        +
        public void printRecords(Iterable<?> values)
        +                  throws IOException
        +
        Prints all the objects in the given collection handling nested collections/arrays as records. + +

        + If the given collection only contains simple objects, this method will print a single record like + printRecord(Iterable). If the given collections contains nested collections/arrays those nested elements + will each be printed as records using printRecord(Object...). +

        + +

        + Given the following data structure: +

        + +
        + 
        + List<String[]> data = ...
        + data.add(new String[]{ "A", "B", "C" });
        + data.add(new String[]{ "1", "2", "3" });
        + data.add(new String[]{ "A1", "B2", "C3" });
        + 
        + 
        + +

        + Calling this method will print: +

        + +
        + 
        + A, B, C
        + 1, 2, 3
        + A1, B2, C3
        + 
        + 
        +
        Parameters:
        values - the values to print.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printRecords

        +
        public void printRecords(Object... values)
        +                  throws IOException
        +
        Prints all the objects in the given array handling nested collections/arrays as records. + +

        + If the given array only contains simple objects, this method will print a single record like + printRecord(Object...). If the given collections contains nested collections/arrays those nested + elements will each be printed as records using printRecord(Object...). +

        + +

        + Given the following data structure: +

        + +
        + 
        + String[][] data = new String[3][]
        + data[0] = String[]{ "A", "B", "C" };
        + data[1] = new String[]{ "1", "2", "3" };
        + data[2] = new String[]{ "A1", "B2", "C3" };
        + 
        + 
        + +

        + Calling this method will print: +

        + +
        + 
        + A, B, C
        + 1, 2, 3
        + A1, B2, C3
        + 
        + 
        +
        Parameters:
        values - the values to print.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
      • +
      + + + +
        +
      • +

        printRecords

        +
        public void printRecords(ResultSet resultSet)
        +                  throws SQLException,
        +                         IOException
        +
        Prints all the objects in the given JDBC result set.
        +
        Parameters:
        resultSet - result set the values to print.
        +
        Throws:
        +
        IOException - If an I/O error occurs
        +
        SQLException - if a database access error occurs
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/CSVRecord.html b/lib/apidocs/org/apache/commons/csv/CSVRecord.html new file mode 100644 index 000000000..7a4fc51dd --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/CSVRecord.html @@ -0,0 +1,464 @@ + + + + + +CSVRecord (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Class CSVRecord

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public String get(Enum<?> e)
        +
        Returns a value by Enum.
        +
        Parameters:
        e - an enum
        +
        Returns:
        the String at the given enum String
        +
      • +
      + + + +
        +
      • +

        get

        +
        public String get(int i)
        +
        Returns a value by index.
        +
        Parameters:
        i - a column index (0-based)
        +
        Returns:
        the String at the given index
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacterPosition

        +
        public long getCharacterPosition()
        +
        Returns the start position of this record as a character position in the source stream. This may or may not + correspond to the byte position depending on the character set.
        +
        Returns:
        the position of this record in the source stream.
        +
      • +
      + + + +
        +
      • +

        getComment

        +
        public String getComment()
        +
        Returns the comment for this record, if any.
        +
        Returns:
        the comment for this record, or null if no comment for this record is available.
        +
      • +
      + + + +
        +
      • +

        getRecordNumber

        +
        public long getRecordNumber()
        +
        Returns the number of this record in the parsed CSV file. + +

        + ATTENTION: If your CSV input has multi-line values, the returned number does not correspond to + the current line number of the parser that created this record. +

        +
        Returns:
        the number of this record.
        See Also:
        CSVParser.getCurrentLineNumber()
        +
      • +
      + + + +
        +
      • +

        isConsistent

        +
        public boolean isConsistent()
        +
        Tells whether the record size matches the header size. + +

        + Returns true if the sizes for this record match and false if not. Some programs can export files that fail this + test but still produce parsable files. +

        +
        Returns:
        true of this record is valid, false if not
        +
      • +
      + + + +
        +
      • +

        isMapped

        +
        public boolean isMapped(String name)
        +
        Checks whether a given column is mapped, i.e. its name has been defined to the parser.
        +
        Parameters:
        name - the name of the column to be retrieved.
        +
        Returns:
        whether a given column is mapped.
        +
      • +
      + + + +
        +
      • +

        isSet

        +
        public boolean isSet(String name)
        +
        Checks whether a given columns is mapped and has a value.
        +
        Parameters:
        name - the name of the column to be retrieved.
        +
        Returns:
        whether a given columns is mapped and has a value
        +
      • +
      + + + +
        +
      • +

        iterator

        +
        public Iterator<String> iterator()
        +
        Returns an iterator over the values of this record.
        +
        +
        Specified by:
        +
        iterator in interface Iterable<String>
        +
        Returns:
        an iterator over the values of this record.
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Returns the number of values in this record.
        +
        Returns:
        the number of values.
        +
      • +
      + + + +
        +
      • +

        toMap

        +
        public Map<String,String> toMap()
        +
        Copies this record into a new Map. The new map is not connect
        +
        Returns:
        A new Map. The map is empty if the record has no headers.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString()
        +
        Returns a string representation of the contents of this record. The result is constructed by comment, mapping, + recordNumber and by passing the internal values array to Arrays.toString(Object[]).
        +
        +
        Overrides:
        +
        toString in class Object
        +
        Returns:
        a String representation of this record.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/QuoteMode.html b/lib/apidocs/org/apache/commons/csv/QuoteMode.html new file mode 100644 index 000000000..acfdc6f39 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/QuoteMode.html @@ -0,0 +1,359 @@ + + + + + +QuoteMode (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + + +
+
org.apache.commons.csv
+

Enum QuoteMode

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<QuoteMode>
    +
    +
    +
    +
    public enum QuoteMode
    +extends Enum<QuoteMode>
    +
    Defines quote behavior when printing.
    +
    Version:
    +
    $Id: QuoteMode.java 1694977 2015-08-10 07:05:58Z ggregory $
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        ALL

        +
        public static final QuoteMode ALL
        +
        Quotes all fields.
        +
      • +
      + + + +
        +
      • +

        MINIMAL

        +
        public static final QuoteMode MINIMAL
        +
        Quotes fields which contain special characters such as a delimiter, quotes character or any of the characters in + line separator.
        +
      • +
      + + + +
        +
      • +

        NON_NUMERIC

        +
        public static final QuoteMode NON_NUMERIC
        +
        Quotes all non-numeric fields.
        +
      • +
      + + + +
        +
      • +

        NONE

        +
        public static final QuoteMode NONE
        +
        Never quotes fields. When the delimiter occurs in data, the printer prefixes it with the current escape + character. If the escape character is not set, format validation throws an exception.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static QuoteMode[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (QuoteMode c : QuoteMode.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static QuoteMode valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.Predefined.html b/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.Predefined.html new file mode 100644 index 000000000..468f8952a --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.Predefined.html @@ -0,0 +1,147 @@ + + + + + +Uses of Class org.apache.commons.csv.CSVFormat.Predefined (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.CSVFormat.Predefined

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.html b/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.html new file mode 100644 index 000000000..c59b1a3ca --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/CSVFormat.html @@ -0,0 +1,389 @@ + + + + + +Uses of Class org.apache.commons.csv.CSVFormat (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.CSVFormat

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/CSVParser.html b/lib/apidocs/org/apache/commons/csv/class-use/CSVParser.html new file mode 100644 index 000000000..304e31f9b --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/CSVParser.html @@ -0,0 +1,163 @@ + + + + + +Uses of Class org.apache.commons.csv.CSVParser (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.CSVParser

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/CSVPrinter.html b/lib/apidocs/org/apache/commons/csv/class-use/CSVPrinter.html new file mode 100644 index 000000000..fcae04bb4 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/CSVPrinter.html @@ -0,0 +1,140 @@ + + + + + +Uses of Class org.apache.commons.csv.CSVPrinter (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.CSVPrinter

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/CSVRecord.html b/lib/apidocs/org/apache/commons/csv/class-use/CSVRecord.html new file mode 100644 index 000000000..d3fb753ff --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/CSVRecord.html @@ -0,0 +1,147 @@ + + + + + +Uses of Class org.apache.commons.csv.CSVRecord (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.CSVRecord

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/class-use/QuoteMode.html b/lib/apidocs/org/apache/commons/csv/class-use/QuoteMode.html new file mode 100644 index 000000000..2c9522535 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/class-use/QuoteMode.html @@ -0,0 +1,168 @@ + + + + + +Uses of Class org.apache.commons.csv.QuoteMode (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
org.apache.commons.csv.QuoteMode

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/package-frame.html b/lib/apidocs/org/apache/commons/csv/package-frame.html new file mode 100644 index 000000000..242664d6a --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/package-frame.html @@ -0,0 +1,26 @@ + + + + + +org.apache.commons.csv (Apache Commons CSV 1.2 API) + + + +

org.apache.commons.csv

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/lib/apidocs/org/apache/commons/csv/package-summary.html b/lib/apidocs/org/apache/commons/csv/package-summary.html new file mode 100644 index 000000000..922fb1ae0 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/package-summary.html @@ -0,0 +1,243 @@ + + + + + +org.apache.commons.csv (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Package org.apache.commons.csv

+
+
Apache Commons CSV Format Support.
+
+

See: Description

+
+
+ + + + +

Package org.apache.commons.csv Description

+
Apache Commons CSV Format Support. + +

CSV are widely used as interfaces to legacy systems or manual data-imports. + CSV stands for "Comma Separated Values" (or sometimes "Character Separated + Values"). The CSV data format is defined in + RFC 4180 + but many dialects exist.

+ +

Common to all file dialects is its basic structure: The CSV data-format + is record oriented, whereas each record starts on a new textual line. A + record is build of a list of values. Keep in mind that not all records + must have an equal number of values:

+
+       csv    := records*
+       record := values*
+ 
+ +

The following list contains the CSV aspects the Commons CSV parser supports:

+
+
Separators (for lines)
+
The record separators are hardcoded and cannot be changed. The must be '\r', '\n' or '\r\n'.
+ +
Delimiter (for values)
+
The delimiter for values is freely configurable (default ',').
+ +
Comments
+
Some CSV-dialects support a simple comment syntax. A comment is a record + which must start with a designated character (the commentStarter). A record + of this kind is treated as comment and gets removed from the input (default none)
+ +
Encapsulator
+
Two encapsulator characters (default '"') are used to enclose -> complex values.
+ +
Simple values
+
A simple value consist of all characters (except the delimiter) until + (but not including) the next delimiter or a record-terminator. Optionally + all surrounding whitespaces of a simple value can be ignored (default: true).
+ +
Complex values
+
Complex values are encapsulated within a pair of the defined encapsulator characters. + The encapsulator itself must be escaped or doubled when used inside complex values. + Complex values preserve all kind of formatting (including newlines -> multiline-values)
+ +
Empty line skipping
+
Optionally empty lines in CSV files can be skipped. + Otherwise, empty lines will return a record with a single empty value.
+
+ +

In addition to individually defined dialects, two predefined dialects (strict-csv, and excel-csv) + can be set directly.

+ +

Example usage:

+
+ Reader in = new StringReader("a,b,c");
+ for (CSVRecord record : CSVFormat.DEFAULT.parse(in)) {
+     for (String field : record) {
+         System.out.print("\"" + field + "\", ");
+     }
+     System.out.println();
+ }
+ 
+
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/package-tree.html b/lib/apidocs/org/apache/commons/csv/package-tree.html new file mode 100644 index 000000000..501d31e01 --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/package-tree.html @@ -0,0 +1,138 @@ + + + + + +org.apache.commons.csv Class Hierarchy (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package org.apache.commons.csv

+
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/org/apache/commons/csv/package-use.html b/lib/apidocs/org/apache/commons/csv/package-use.html new file mode 100644 index 000000000..0c4e1337c --- /dev/null +++ b/lib/apidocs/org/apache/commons/csv/package-use.html @@ -0,0 +1,158 @@ + + + + + +Uses of Package org.apache.commons.csv (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
org.apache.commons.csv

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/overview-tree.html b/lib/apidocs/overview-tree.html new file mode 100644 index 000000000..0b948c09e --- /dev/null +++ b/lib/apidocs/overview-tree.html @@ -0,0 +1,142 @@ + + + + + +Class Hierarchy (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/package-list b/lib/apidocs/package-list new file mode 100644 index 000000000..4af504f78 --- /dev/null +++ b/lib/apidocs/package-list @@ -0,0 +1 @@ +org.apache.commons.csv diff --git a/lib/apidocs/resources/background.gif b/lib/apidocs/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/lib/apidocs/resources/background.gif differ diff --git a/lib/apidocs/resources/tab.gif b/lib/apidocs/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/lib/apidocs/resources/tab.gif differ diff --git a/lib/apidocs/resources/titlebar.gif b/lib/apidocs/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/lib/apidocs/resources/titlebar.gif differ diff --git a/lib/apidocs/resources/titlebar_end.gif b/lib/apidocs/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/lib/apidocs/resources/titlebar_end.gif differ diff --git a/lib/apidocs/serialized-form.html b/lib/apidocs/serialized-form.html new file mode 100644 index 000000000..d7843fca5 --- /dev/null +++ b/lib/apidocs/serialized-form.html @@ -0,0 +1,233 @@ + + + + + +Serialized Form (Apache Commons CSV 1.2 API) + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + diff --git a/lib/apidocs/stylesheet.css b/lib/apidocs/stylesheet.css new file mode 100644 index 000000000..0e0d70c19 --- /dev/null +++ b/lib/apidocs/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/lib/commons-csv-1.2.jar b/lib/commons-csv-1.2.jar new file mode 100644 index 000000000..1b26424fd Binary files /dev/null and b/lib/commons-csv-1.2.jar differ diff --git a/lib/gson-2.5-javadoc.jar b/lib/gson-2.5-javadoc.jar new file mode 100644 index 000000000..db7c5f5aa Binary files /dev/null and b/lib/gson-2.5-javadoc.jar differ diff --git a/lib/gson-2.5.jar b/lib/gson-2.5.jar new file mode 100644 index 000000000..5c35c5d5c Binary files /dev/null and b/lib/gson-2.5.jar differ diff --git a/lib/ibxm.jar b/lib/ibxm.jar new file mode 100644 index 000000000..619d26e14 Binary files /dev/null and b/lib/ibxm.jar differ diff --git a/lib/javadoc/allclasses-frame.html b/lib/javadoc/allclasses-frame.html new file mode 100644 index 000000000..3a40b15c9 --- /dev/null +++ b/lib/javadoc/allclasses-frame.html @@ -0,0 +1,637 @@ + + + + + + +All Classes (Slick - The 2D Library) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractComponent +
+AiffData +
+AlphaMapTest +
+AngelCodeFont +
+Animation +
+AnimationTest +
+AntiAliasTest +
+AppGameContainer +
+AppletGameContainer +
+AStarHeuristic +
+AStarPathFinder +
+Audio +
+AudioImpl +
+AudioLoader +
+BasicCommand +
+BasicComponent +
+BasicGame +
+BasicGameState +
+BasicTriangulator +
+BigImage +
+BigImageTest +
+BigSpriteSheetTest +
+BlobbyTransition +
+Bootstrap +
+BufferedImageUtil +
+CachedRender +
+CachedRenderTest +
+CanvasContainerTest +
+CanvasGameContainer +
+CanvasSizeTest +
+Circle +
+ClasspathLocation +
+ClipTest +
+ClosestHeuristic +
+ClosestSquaredHeuristic +
+Color +
+ColorEffect +
+CombinedTransition +
+Command +
+ComponentListener +
+CompositeImageData +
+CompositeIOException +
+ConfigurableEffect +
+ConfigurableEffect.Value +
+ConfigurableEmitter +
+ConfigurableEmitter.Value +
+ConfigurableEmitterFactory +
+Control +
+ControlledInputReciever +
+ControllerButtonControl +
+ControllerDirectionControl +
+ControllerListener +
+CopyAreaAlphaTest +
+CrossStateTransition +
+CursorLoader +
+Curve +
+CurveTest +
+DefaultLineStripRenderer +
+DefaultLogSystem +
+DeferredLoadingTest +
+DeferredResource +
+DeferredSound +
+DeferredTexture +
+DefsProcessor +
+Diagram +
+DistanceFieldTest +
+DoubleClickTest +
+DuplicateEmitterTest +
+Effect +
+EffectUtil +
+ElementProcessor +
+Ellipse +
+EllipseProcessor +
+EmptyImageData +
+EmptyTransition +
+Entity +
+FadeInTransition +
+FadeOutTransition +
+FastTrig +
+FBOGraphics +
+Figure +
+FileMuffin +
+FileSystemLocation +
+FilterEffect +
+FireEmitter +
+FlashTest +
+Font +
+FontPerformanceTest +
+FontTest +
+FontUtils +
+Game +
+GameContainer +
+GameData +
+GameState +
+GeomAccuracyTest +
+GeomTest +
+GeomUtil +
+GeomUtilListener +
+GeomUtilTest +
+GeomUtilTileTest +
+GLUtils +
+Glyph +
+GlyphPage +
+Gradient +
+GradientEffect +
+GradientFill +
+GradientImageTest +
+GradientTest +
+Graphics +
+GraphicsFactory +
+GraphicsTest +
+GroupProcessor +
+GUIContext +
+GUITest +
+HieroSettings +
+HorizontalSplitTransition +
+Image +
+ImageBuffer +
+ImageBufferEndianTest +
+ImageBufferTest +
+ImageCornerTest +
+ImageData +
+ImageDataFactory +
+ImageGraphicsTest +
+ImageIOImageData +
+ImageIOWriter +
+ImageMemTest +
+ImageOut +
+ImageOutTest +
+ImageReadTest +
+ImageTest +
+ImageWriter +
+ImageWriterFactory +
+ImmediateModeOGLRenderer +
+InkscapeLoader +
+InkscapeNonGeometricData +
+InkscapeTest +
+Input +
+InputAdapter +
+InputListener +
+InputProvider +
+InputProviderListener +
+InputProviderTest +
+InputTest +
+InternalTextureLoader +
+Inventory +
+IsoTiledTest +
+Item +
+ItemContainer +
+KeyControl +
+KeyListener +
+KeyRepeatTest +
+LameTest +
+Layer +
+Line +
+LinearGradientFill +
+LineProcessor +
+LineRenderTest +
+LineStripRenderer +
+Link +
+LoadableImageData +
+Loader +
+LoadingList +
+LocatedImage +
+Log +
+LogSystem +
+ManhattanHeuristic +
+MannTriangulator +
+MaskUtil +
+MODSound +
+MorphShape +
+MorphShapeTest +
+MorphSVGTest +
+MouseButtonControl +
+MouseListener +
+MouseOverArea +
+Mover +
+Muffin +
+Music +
+MusicListener +
+MusicListenerTest +
+NavMesh +
+NavMeshBuilder +
+NavMeshTest +
+NavPath +
+NeatTriangulator +
+NonGeometricData +
+NullAudio +
+ObjectParserTest +
+ObjectTreeParser +
+OggData +
+OggDecoder +
+OggInputStream +
+OpenALStreamPlayer +
+OperationNotSupportedException +
+OutlineEffect +
+OutlineWobbleEffect +
+OutlineZigzagEffect +
+OverTriangulator +
+PackedSheetTest +
+PackedSpriteSheet +
+ParsingException +
+Particle +
+ParticleEmitter +
+ParticleIO +
+ParticleSystem +
+ParticleTest +
+Path +
+Path +
+PathFinder +
+PathFindingContext +
+PathProcessor +
+PBufferGraphics +
+PBufferUniqueGraphics +
+PedigreeTest +
+PNGDecoder +
+PNGDecoder.Format +
+PNGImageData +
+Point +
+Polygon +
+PolygonProcessor +
+PolygonTest +
+PureFontTest +
+QuadBasedLineStripRenderer +
+RadialGradientFill +
+Rectangle +
+RectProcessor +
+Renderable +
+Renderer +
+ResourceLoader +
+ResourceLocation +
+RotateTransition +
+RoundedRectangle +
+SavedState +
+SavedStateTest +
+ScalableGame +
+ScalableTest +
+SelectTransition +
+SGL +
+ShadowEffect +
+Shape +
+ShapeFill +
+ShapeRenderer +
+ShapeTest +
+SimpleDiagramRenderer +
+SlickCallable +
+SlickCallableTest +
+SlickException +
+SlickXMLException +
+Sound +
+SoundPositionTest +
+SoundStore +
+SoundTest +
+SoundURLTest +
+Space +
+SpriteSheet +
+SpriteSheetFont +
+SpriteSheetFontTest +
+StateBasedGame +
+StateBasedTest +
+Stats +
+StreamSound +
+SVGMorph +
+TestBox +
+TestState1 +
+TestState2 +
+TestState3 +
+TestUtils +
+TexCoordGenerator +
+TextField +
+Texture +
+TextureImpl +
+TextureLoader +
+TexturePaintTest +
+TGAImageData +
+TGAWriter +
+TileBasedMap +
+TiledMap +
+TileMapTest +
+TileSet +
+Transform +
+TransformTest +
+TransformTest2 +
+Transition +
+TransitionTest +
+TransparentColorTest +
+Triangulator +
+TrueTypeFont +
+TrueTypeFontPerformanceTest +
+UnicodeFont +
+UnicodeFont.DisplayList +
+UnicodeFontTest +
+UseProcessor +
+Util +
+VAOGLRenderer +
+Vector2f +
+VerticalSplitTransition +
+WaveData +
+WebstartMuffin +
+XMLElement +
+XMLElementList +
+XMLPackedSheet +
+XMLParser +
+XMLTest +
+
+ + + diff --git a/lib/javadoc/allclasses-noframe.html b/lib/javadoc/allclasses-noframe.html new file mode 100644 index 000000000..bd844ad91 --- /dev/null +++ b/lib/javadoc/allclasses-noframe.html @@ -0,0 +1,637 @@ + + + + + + +All Classes (Slick - The 2D Library) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractComponent +
+AiffData +
+AlphaMapTest +
+AngelCodeFont +
+Animation +
+AnimationTest +
+AntiAliasTest +
+AppGameContainer +
+AppletGameContainer +
+AStarHeuristic +
+AStarPathFinder +
+Audio +
+AudioImpl +
+AudioLoader +
+BasicCommand +
+BasicComponent +
+BasicGame +
+BasicGameState +
+BasicTriangulator +
+BigImage +
+BigImageTest +
+BigSpriteSheetTest +
+BlobbyTransition +
+Bootstrap +
+BufferedImageUtil +
+CachedRender +
+CachedRenderTest +
+CanvasContainerTest +
+CanvasGameContainer +
+CanvasSizeTest +
+Circle +
+ClasspathLocation +
+ClipTest +
+ClosestHeuristic +
+ClosestSquaredHeuristic +
+Color +
+ColorEffect +
+CombinedTransition +
+Command +
+ComponentListener +
+CompositeImageData +
+CompositeIOException +
+ConfigurableEffect +
+ConfigurableEffect.Value +
+ConfigurableEmitter +
+ConfigurableEmitter.Value +
+ConfigurableEmitterFactory +
+Control +
+ControlledInputReciever +
+ControllerButtonControl +
+ControllerDirectionControl +
+ControllerListener +
+CopyAreaAlphaTest +
+CrossStateTransition +
+CursorLoader +
+Curve +
+CurveTest +
+DefaultLineStripRenderer +
+DefaultLogSystem +
+DeferredLoadingTest +
+DeferredResource +
+DeferredSound +
+DeferredTexture +
+DefsProcessor +
+Diagram +
+DistanceFieldTest +
+DoubleClickTest +
+DuplicateEmitterTest +
+Effect +
+EffectUtil +
+ElementProcessor +
+Ellipse +
+EllipseProcessor +
+EmptyImageData +
+EmptyTransition +
+Entity +
+FadeInTransition +
+FadeOutTransition +
+FastTrig +
+FBOGraphics +
+Figure +
+FileMuffin +
+FileSystemLocation +
+FilterEffect +
+FireEmitter +
+FlashTest +
+Font +
+FontPerformanceTest +
+FontTest +
+FontUtils +
+Game +
+GameContainer +
+GameData +
+GameState +
+GeomAccuracyTest +
+GeomTest +
+GeomUtil +
+GeomUtilListener +
+GeomUtilTest +
+GeomUtilTileTest +
+GLUtils +
+Glyph +
+GlyphPage +
+Gradient +
+GradientEffect +
+GradientFill +
+GradientImageTest +
+GradientTest +
+Graphics +
+GraphicsFactory +
+GraphicsTest +
+GroupProcessor +
+GUIContext +
+GUITest +
+HieroSettings +
+HorizontalSplitTransition +
+Image +
+ImageBuffer +
+ImageBufferEndianTest +
+ImageBufferTest +
+ImageCornerTest +
+ImageData +
+ImageDataFactory +
+ImageGraphicsTest +
+ImageIOImageData +
+ImageIOWriter +
+ImageMemTest +
+ImageOut +
+ImageOutTest +
+ImageReadTest +
+ImageTest +
+ImageWriter +
+ImageWriterFactory +
+ImmediateModeOGLRenderer +
+InkscapeLoader +
+InkscapeNonGeometricData +
+InkscapeTest +
+Input +
+InputAdapter +
+InputListener +
+InputProvider +
+InputProviderListener +
+InputProviderTest +
+InputTest +
+InternalTextureLoader +
+Inventory +
+IsoTiledTest +
+Item +
+ItemContainer +
+KeyControl +
+KeyListener +
+KeyRepeatTest +
+LameTest +
+Layer +
+Line +
+LinearGradientFill +
+LineProcessor +
+LineRenderTest +
+LineStripRenderer +
+Link +
+LoadableImageData +
+Loader +
+LoadingList +
+LocatedImage +
+Log +
+LogSystem +
+ManhattanHeuristic +
+MannTriangulator +
+MaskUtil +
+MODSound +
+MorphShape +
+MorphShapeTest +
+MorphSVGTest +
+MouseButtonControl +
+MouseListener +
+MouseOverArea +
+Mover +
+Muffin +
+Music +
+MusicListener +
+MusicListenerTest +
+NavMesh +
+NavMeshBuilder +
+NavMeshTest +
+NavPath +
+NeatTriangulator +
+NonGeometricData +
+NullAudio +
+ObjectParserTest +
+ObjectTreeParser +
+OggData +
+OggDecoder +
+OggInputStream +
+OpenALStreamPlayer +
+OperationNotSupportedException +
+OutlineEffect +
+OutlineWobbleEffect +
+OutlineZigzagEffect +
+OverTriangulator +
+PackedSheetTest +
+PackedSpriteSheet +
+ParsingException +
+Particle +
+ParticleEmitter +
+ParticleIO +
+ParticleSystem +
+ParticleTest +
+Path +
+Path +
+PathFinder +
+PathFindingContext +
+PathProcessor +
+PBufferGraphics +
+PBufferUniqueGraphics +
+PedigreeTest +
+PNGDecoder +
+PNGDecoder.Format +
+PNGImageData +
+Point +
+Polygon +
+PolygonProcessor +
+PolygonTest +
+PureFontTest +
+QuadBasedLineStripRenderer +
+RadialGradientFill +
+Rectangle +
+RectProcessor +
+Renderable +
+Renderer +
+ResourceLoader +
+ResourceLocation +
+RotateTransition +
+RoundedRectangle +
+SavedState +
+SavedStateTest +
+ScalableGame +
+ScalableTest +
+SelectTransition +
+SGL +
+ShadowEffect +
+Shape +
+ShapeFill +
+ShapeRenderer +
+ShapeTest +
+SimpleDiagramRenderer +
+SlickCallable +
+SlickCallableTest +
+SlickException +
+SlickXMLException +
+Sound +
+SoundPositionTest +
+SoundStore +
+SoundTest +
+SoundURLTest +
+Space +
+SpriteSheet +
+SpriteSheetFont +
+SpriteSheetFontTest +
+StateBasedGame +
+StateBasedTest +
+Stats +
+StreamSound +
+SVGMorph +
+TestBox +
+TestState1 +
+TestState2 +
+TestState3 +
+TestUtils +
+TexCoordGenerator +
+TextField +
+Texture +
+TextureImpl +
+TextureLoader +
+TexturePaintTest +
+TGAImageData +
+TGAWriter +
+TileBasedMap +
+TiledMap +
+TileMapTest +
+TileSet +
+Transform +
+TransformTest +
+TransformTest2 +
+Transition +
+TransitionTest +
+TransparentColorTest +
+Triangulator +
+TrueTypeFont +
+TrueTypeFontPerformanceTest +
+UnicodeFont +
+UnicodeFont.DisplayList +
+UnicodeFontTest +
+UseProcessor +
+Util +
+VAOGLRenderer +
+Vector2f +
+VerticalSplitTransition +
+WaveData +
+WebstartMuffin +
+XMLElement +
+XMLElementList +
+XMLPackedSheet +
+XMLParser +
+XMLTest +
+
+ + + diff --git a/lib/javadoc/constant-values.html b/lib/javadoc/constant-values.html new file mode 100644 index 000000000..c705618e3 --- /dev/null +++ b/lib/javadoc/constant-values.html @@ -0,0 +1,1932 @@ + + + + + + +Constant Field Values (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+org.newdawn.*
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.Image
+public static final intBOTTOM_LEFT3
+public static final intBOTTOM_RIGHT2
+public static final intFILTER_LINEAR1
+public static final intFILTER_NEAREST2
+public static final intTOP_LEFT0
+public static final intTOP_RIGHT1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.Input
+public static final intANY_CONTROLLER-1
+public static final intKEY_011
+public static final intKEY_12
+public static final intKEY_23
+public static final intKEY_34
+public static final intKEY_45
+public static final intKEY_56
+public static final intKEY_67
+public static final intKEY_78
+public static final intKEY_89
+public static final intKEY_910
+public static final intKEY_A30
+public static final intKEY_ADD78
+public static final intKEY_APOSTROPHE40
+public static final intKEY_APPS221
+public static final intKEY_AT145
+public static final intKEY_AX150
+public static final intKEY_B48
+public static final intKEY_BACK14
+public static final intKEY_BACKSLASH43
+public static final intKEY_C46
+public static final intKEY_CAPITAL58
+public static final intKEY_CIRCUMFLEX144
+public static final intKEY_COLON146
+public static final intKEY_COMMA51
+public static final intKEY_CONVERT121
+public static final intKEY_D32
+public static final intKEY_DECIMAL83
+public static final intKEY_DELETE211
+public static final intKEY_DIVIDE181
+public static final intKEY_DOWN208
+public static final intKEY_E18
+public static final intKEY_END207
+public static final intKEY_ENTER28
+public static final intKEY_EQUALS13
+public static final intKEY_ESCAPE1
+public static final intKEY_F33
+public static final intKEY_F159
+public static final intKEY_F1068
+public static final intKEY_F1187
+public static final intKEY_F1288
+public static final intKEY_F13100
+public static final intKEY_F14101
+public static final intKEY_F15102
+public static final intKEY_F260
+public static final intKEY_F361
+public static final intKEY_F462
+public static final intKEY_F563
+public static final intKEY_F664
+public static final intKEY_F765
+public static final intKEY_F866
+public static final intKEY_F967
+public static final intKEY_G34
+public static final intKEY_GRAVE41
+public static final intKEY_H35
+public static final intKEY_HOME199
+public static final intKEY_I23
+public static final intKEY_INSERT210
+public static final intKEY_J36
+public static final intKEY_K37
+public static final intKEY_KANA112
+public static final intKEY_KANJI148
+public static final intKEY_L38
+public static final intKEY_LALT56
+public static final intKEY_LBRACKET26
+public static final intKEY_LCONTROL29
+public static final intKEY_LEFT203
+public static final intKEY_LMENU56
+public static final intKEY_LSHIFT42
+public static final intKEY_LWIN219
+public static final intKEY_M50
+public static final intKEY_MINUS12
+public static final intKEY_MULTIPLY55
+public static final intKEY_N49
+public static final intKEY_NEXT209
+public static final intKEY_NOCONVERT123
+public static final intKEY_NUMLOCK69
+public static final intKEY_NUMPAD082
+public static final intKEY_NUMPAD179
+public static final intKEY_NUMPAD280
+public static final intKEY_NUMPAD381
+public static final intKEY_NUMPAD475
+public static final intKEY_NUMPAD576
+public static final intKEY_NUMPAD677
+public static final intKEY_NUMPAD771
+public static final intKEY_NUMPAD872
+public static final intKEY_NUMPAD973
+public static final intKEY_NUMPADCOMMA179
+public static final intKEY_NUMPADENTER156
+public static final intKEY_NUMPADEQUALS141
+public static final intKEY_O24
+public static final intKEY_P25
+public static final intKEY_PAUSE197
+public static final intKEY_PERIOD52
+public static final intKEY_POWER222
+public static final intKEY_PRIOR201
+public static final intKEY_Q16
+public static final intKEY_R19
+public static final intKEY_RALT184
+public static final intKEY_RBRACKET27
+public static final intKEY_RCONTROL157
+public static final intKEY_RETURN28
+public static final intKEY_RIGHT205
+public static final intKEY_RMENU184
+public static final intKEY_RSHIFT54
+public static final intKEY_RWIN220
+public static final intKEY_S31
+public static final intKEY_SCROLL70
+public static final intKEY_SEMICOLON39
+public static final intKEY_SLASH53
+public static final intKEY_SLEEP223
+public static final intKEY_SPACE57
+public static final intKEY_STOP149
+public static final intKEY_SUBTRACT74
+public static final intKEY_SYSRQ183
+public static final intKEY_T20
+public static final intKEY_TAB15
+public static final intKEY_U22
+public static final intKEY_UNDERLINE147
+public static final intKEY_UNLABELED151
+public static final intKEY_UP200
+public static final intKEY_V47
+public static final intKEY_W17
+public static final intKEY_X45
+public static final intKEY_Y21
+public static final intKEY_YEN125
+public static final intKEY_Z44
+public static final intMOUSE_LEFT_BUTTON0
+public static final intMOUSE_MIDDLE_BUTTON2
+public static final intMOUSE_RIGHT_BUTTON1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.command.ControllerButtonControl
+protected static final intBUTTON_EVENT0
+protected static final intDOWN_EVENT4
+protected static final intLEFT_EVENT1
+protected static final intRIGHT_EVENT2
+protected static final intUP_EVENT3
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.command.ControllerDirectionControl
+protected static final intBUTTON_EVENT0
+protected static final intDOWN_EVENT4
+protected static final intLEFT_EVENT1
+protected static final intRIGHT_EVENT2
+protected static final intUP_EVENT3
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.font.GlyphPage
+public static final intMAX_GLYPH_SIZE256
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.font.effects.ShadowEffect
+public static final intNUM_KERNELS16
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.geom.Ellipse
+protected static final intDEFAULT_SEGMENT_COUNT50
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.geom.RoundedRectangle
+public static final intALL15
+public static final intBOTTOM_LEFT8
+public static final intBOTTOM_RIGHT4
+public static final intTOP_LEFT1
+public static final intTOP_RIGHT2
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.openal.DeferredSound
+public static final intAIF4
+public static final intMOD3
+public static final intOGG1
+public static final intWAV2
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.openal.OpenALStreamPlayer
+public static final intBUFFER_COUNT3
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.opengl.renderer.Renderer
+public static final intDEFAULT_LINE_STRIP_RENDERER3
+public static final intIMMEDIATE_RENDERER1
+public static final intQUAD_BASED_LINE_STRIP_RENDERER4
+public static final intVERTEX_ARRAY_RENDERER2
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.opengl.renderer.SGL
+public static final intGL_ALWAYS519
+public static final intGL_BGRA32993
+public static final intGL_BLEND3042
+public static final intGL_CLAMP10496
+public static final intGL_CLIP_PLANE012288
+public static final intGL_CLIP_PLANE112289
+public static final intGL_CLIP_PLANE212290
+public static final intGL_CLIP_PLANE312291
+public static final intGL_COLOR_BUFFER_BIT16384
+public static final intGL_COLOR_CLEAR_VALUE3106
+public static final intGL_COLOR_SUM_EXT33880
+public static final intGL_COMPILE4864
+public static final intGL_COMPILE_AND_EXECUTE4865
+public static final intGL_DEPTH_BUFFER_BIT256
+public static final intGL_DEPTH_TEST2929
+public static final intGL_DST_ALPHA772
+public static final intGL_EQUAL514
+public static final intGL_LINE_SMOOTH2848
+public static final intGL_LINE_STRIP3
+public static final intGL_LINE_WIDTH2849
+public static final intGL_LINEAR9729
+public static final intGL_LINES1
+public static final intGL_MAX_TEXTURE_SIZE3379
+public static final intGL_MIRROR_CLAMP_TO_EDGE_EXT34627
+public static final intGL_MODELVIEW_MATRIX2982
+public static final intGL_MODULATE8448
+public static final intGL_NEAREST9728
+public static final intGL_NOTEQUAL517
+public static final intGL_ONE1
+public static final intGL_ONE_MINUS_DST_ALPHA773
+public static final intGL_ONE_MINUS_SRC_ALPHA771
+public static final intGL_ONE_MINUS_SRC_COLOR769
+public static final intGL_POINT_SMOOTH2832
+public static final intGL_POINTS0
+public static final intGL_POLYGON_SMOOTH2881
+public static final intGL_QUADS7
+public static final intGL_RGB6407
+public static final intGL_RGBA6408
+public static final intGL_RGBA1632859
+public static final intGL_RGBA86408
+public static final intGL_SCISSOR_TEST3089
+public static final intGL_SRC_ALPHA770
+public static final intGL_SRC_COLOR768
+public static final intGL_TEXTURE_2D3553
+public static final intGL_TEXTURE_ENV8960
+public static final intGL_TEXTURE_ENV_MODE8704
+public static final intGL_TEXTURE_MAG_FILTER10240
+public static final intGL_TEXTURE_MIN_FILTER10241
+public static final intGL_TEXTURE_WRAP_S10242
+public static final intGL_TEXTURE_WRAP_T10243
+public static final intGL_TRIANGLE_FAN6
+public static final intGL_TRIANGLES4
+public static final intGL_UNSIGNED_BYTE5121
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.newdawn.slick.opengl.renderer.VAOGLRenderer
+public static final intMAX_VERTS5000
+public static final intNONE-1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.particles.Particle
+public static final intINHERIT_POINTS1
+public static final intUSE_POINTS2
+public static final intUSE_QUADS3
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.newdawn.slick.particles.ParticleSystem
+public static final intBLEND_ADDITIVE1
+public static final intBLEND_COMBINE2
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.svg.Figure
+public static final intELLIPSE1
+public static final intLINE2
+public static final intPATH4
+public static final intPOLYGON5
+public static final intRECTANGLE3
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.svg.NonGeometricData
+public static final java.lang.StringFILL"fill"
+public static final java.lang.StringID"id"
+public static final java.lang.StringNONE"none"
+public static final java.lang.StringOPACITY"opacity"
+public static final java.lang.StringSTROKE"stroke"
+public static final java.lang.StringSTROKE_DASHARRAY"stroke-dasharray"
+public static final java.lang.StringSTROKE_DASHOFFSET"stroke-dashoffset"
+public static final java.lang.StringSTROKE_MITERLIMIT"stroke-miterlimit"
+public static final java.lang.StringSTROKE_OPACITY"stroke-opacity"
+public static final java.lang.StringSTROKE_WIDTH"stroke-width"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.svg.inkscape.Util
+public static final java.lang.StringINKSCAPE"http://www.inkscape.org/namespaces/inkscape"
+public static final java.lang.StringSODIPODI"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+public static final java.lang.StringXLINK"http://www.w3.org/1999/xlink"
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.tests.states.TestState1
+public static final intID1
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.tests.states.TestState2
+public static final intID2
+ +

+ +

+ + + + + + + + + + + + +
org.newdawn.slick.tests.states.TestState3
+public static final intID3
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.newdawn.slick.tiled.TiledMap
+protected static final intISOMETRIC2
+protected static final intORTHOGONAL1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.newdawn.slick.util.FontUtils.Alignment
+public static final intCENTER2
+public static final intJUSTIFY4
+public static final intLEFT1
+public static final intRIGHT3
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/deprecated-list.html b/lib/javadoc/deprecated-list.html new file mode 100644 index 000000000..8948c813c --- /dev/null +++ b/lib/javadoc/deprecated-list.html @@ -0,0 +1,181 @@ + + + + + + +Deprecated List (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + +
+Deprecated Classes
org.newdawn.slick.gui.BasicComponent +
+            
+  +

+ + + + + + + + + + + +
+Deprecated Methods
org.newdawn.slick.Input.enableKeyRepeat(int, int) +
+            
org.newdawn.slick.Animation.updateNoDraw() +
+            
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/help-doc.html b/lib/javadoc/help-doc.html new file mode 100644 index 000000000..c20f968a4 --- /dev/null +++ b/lib/javadoc/help-doc.html @@ -0,0 +1,223 @@ + + + + + + +API Help (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/index-all.html b/lib/javadoc/index-all.html new file mode 100644 index 000000000..4c9af9c4a --- /dev/null +++ b/lib/javadoc/index-all.html @@ -0,0 +1,10905 @@ + + + + + + +Index (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I J K L M N O P Q R S T U V W X Y
+

+A

+
+
a - +Variable in class org.newdawn.slick.Color +
The alpha component of the colour +
ABGR - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
AbstractComponent - Class in org.newdawn.slick.gui
The utility class to handle all the input related gubbins for basic GUI + components
AbstractComponent(GUIContext) - +Constructor for class org.newdawn.slick.gui.AbstractComponent +
Create a new component +
add(Color) - +Method in class org.newdawn.slick.Color +
Add another colour to this one +
add(MannTriangulator.Point) - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Add a point to the bag +
add(double) - +Method in class org.newdawn.slick.geom.Vector2f +
Adjust this vector by a given angle +
add(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Add a vector to this vector +
add(DeferredResource) - +Method in class org.newdawn.slick.loading.LoadingList +
Add a resource to be loaded at some later date +
add(LoadableImageData) - +Method in class org.newdawn.slick.opengl.CompositeImageData +
Add a potentional source of image data +
add(XMLElement) - +Method in class org.newdawn.slick.util.xml.XMLElementList +
Add an element to the list +
addAllTo(Collection) - +Method in class org.newdawn.slick.util.xml.XMLElementList +
Add all the elements in this list to another collection +
addAsciiGlyphs() - +Method in class org.newdawn.slick.UnicodeFont +
Queues the glyphs in the ASCII character set (codepoints 32 through 255) to be loaded. +
addAttribute(String, String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Add a configured style attribute into the data set +
addColorPoint(float, Color) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Add a point in the colour cycle +
addControllerListener(ControllerListener) - +Method in class org.newdawn.slick.Input +
Add a controller listener to be notified of controller input events +
addElementMapping(String, Class) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Add a mapping between XML element name and class name +
addElementProcessor(ElementProcessor) - +Static method in class org.newdawn.slick.svg.InkscapeLoader +
Add an ElementProcessor which will be passed + each element read as the Inkscape SVG document is processed. +
addEmitter(ParticleEmitter) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Add a particle emitter to be used on this system +
addException(Exception) - +Method in exception org.newdawn.slick.opengl.CompositeIOException +
Add an exception that caused this exceptino +
addFigure(Figure) - +Method in class org.newdawn.slick.svg.Diagram +
Add a figure to the diagram +
addFrame(int, int, int) - +Method in class org.newdawn.slick.Animation +
Add animation frame to the animation. +
addFrame(Image, int) - +Method in class org.newdawn.slick.Animation +
Add animation frame to the animation +
addGame(Class) - +Method in class org.newdawn.slick.tests.TestBox +
Add a game to the box +
addGlyphs(int, int) - +Method in class org.newdawn.slick.UnicodeFont +
Queues the glyphs in the specified codepoint range (inclusive) to be loaded. +
addGlyphs(String) - +Method in class org.newdawn.slick.UnicodeFont +
Queues the glyphs in the specified text to be loaded. +
addGradient(String, Gradient) - +Method in class org.newdawn.slick.svg.Diagram +
Add gradient to the diagram +
addIgnoredElement(String) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Add a name to the list of elements ignored +
addKeyListener(KeyListener) - +Method in class org.newdawn.slick.Input +
Add a key listener to be notified of key input events +
addListener(InputProviderListener) - +Method in class org.newdawn.slick.command.InputProvider +
Add a listener to the provider. +
addListener(ComponentListener) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Add a component listener to be informed when the component sees fit. +
addListener(InputListener) - +Method in class org.newdawn.slick.Input +
Add a listener to be notified of input events +
addListener(MusicListener) - +Method in class org.newdawn.slick.Music +
Add a listener to this music +
addMouseListener(MouseListener) - +Method in class org.newdawn.slick.Input +
Add a mouse listener to be notified of mouse input events +
addNeheGlyphs() - +Method in class org.newdawn.slick.UnicodeFont +
Queues the glyphs in the NEHE character set (codepoints 32 through 128) to be loaded. +
addPatternDef(String, String) - +Method in class org.newdawn.slick.svg.Diagram +
Add a pattern definition basd on a image +
addPoint(float, float) - +Method in class org.newdawn.slick.geom.Polygon +
Add a point to the polygon +
addPolyPoint(float, float) - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Add a point describing the polygon to be triangulated +
addPolyPoint(float, float) - +Method in class org.newdawn.slick.geom.MannTriangulator +
  +
addPolyPoint(float, float) - +Method in class org.newdawn.slick.geom.NeatTriangulator +
Add a point to the polygon +
addPolyPoint(float, float) - +Method in class org.newdawn.slick.geom.OverTriangulator +
  +
addPolyPoint(float, float) - +Method in interface org.newdawn.slick.geom.Triangulator +
Add a point that forms part of the outer polygon +
addPrimaryListener(InputListener) - +Method in class org.newdawn.slick.Input +
Add a listener to be notified of input events. +
addResourceLocation(ResourceLocation) - +Static method in class org.newdawn.slick.util.ResourceLoader +
Add a location that will be searched for resources +
addShape(Shape) - +Method in class org.newdawn.slick.geom.MorphShape +
Add a subsequent shape that we should morph too in order +
addSpace(Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Add a single space to the mesh +
addState(GameState) - +Method in class org.newdawn.slick.state.StateBasedGame +
Add a state to the game. +
addStep(float, Color) - +Method in class org.newdawn.slick.svg.Gradient +
Add a colour step/stop to the gradient +
addStep(Diagram) - +Method in class org.newdawn.slick.svg.SVGMorph +
Add a subsquent step to the morphing +
addToClosed(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Add a node to the closed list +
addToCopy(Color) - +Method in class org.newdawn.slick.Color +
Add another colour to this one +
addToOpen(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Add a node to the open list +
addTransition(Transition) - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
Add a transition to the list that will be combined to form + the final transition +
adjust - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
True if we need to adjust particles for movement +
adjustColor(float, float, float, float) - +Method in class org.newdawn.slick.particles.Particle +
Adjust (add) the color of the particle +
adjustColor(int, int, int, int) - +Method in class org.newdawn.slick.particles.Particle +
Adjust (add) the color of the particle +
adjustLife(float) - +Method in class org.newdawn.slick.particles.Particle +
Adjust the life othe particle +
adjustPosition(float, float) - +Method in class org.newdawn.slick.particles.Particle +
Adjust (add) the position of this particle +
adjustSize(float) - +Method in class org.newdawn.slick.particles.Particle +
Adjust the size of the particle +
adjustVelocity(float, float) - +Method in class org.newdawn.slick.particles.Particle +
Adjust (add) the direction of this particle +
adjustx - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The amount to adjust on the x axis +
adjusty - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The amount to adjust on the y axis +
AIF - +Static variable in class org.newdawn.slick.openal.DeferredSound +
Indicate a AIF to be loaded +
AiffData - Class in org.newdawn.slick.openal
Utitlity class for loading wavefiles.
ALL - +Static variable in class org.newdawn.slick.geom.RoundedRectangle +
Indicates the all cornders should be rounded +
allListeners - +Variable in class org.newdawn.slick.Input +
A list of listeners to be notified of input events +
alpha - +Variable in class org.newdawn.slick.Image +
The alpha to draw the image at +
ALPHA - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
alpha - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
Whiskas - Interpolated value for alpha +
AlphaMapTest - Class in org.newdawn.slick.tests
A test to demonstrate world clipping as opposed to screen clipping
AlphaMapTest() - +Constructor for class org.newdawn.slick.tests.AlphaMapTest +
Create a new tester for the clip plane based clipping +
alphaScale - +Variable in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
The global colour scale +
alphaSupport - +Variable in class org.newdawn.slick.AppGameContainer +
Alpha background supported +
alphaSupport - +Variable in class org.newdawn.slick.AppletGameContainer +
Alpha background supported +
alwaysRender - +Variable in class org.newdawn.slick.GameContainer +
True if we should render when not focused +
AngelCodeFont - Class in org.newdawn.slick
A font implementation that will parse BMFont format font files.
AngelCodeFont(String, Image) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
AngelCodeFont(String, String) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
AngelCodeFont(String, Image, boolean) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
AngelCodeFont(String, String, boolean) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
AngelCodeFont(String, InputStream, InputStream) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
AngelCodeFont(String, InputStream, InputStream, boolean) - +Constructor for class org.newdawn.slick.AngelCodeFont +
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +
angle - +Variable in class org.newdawn.slick.Image +
Angle to rotate the image to. +
angularOffset - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The angular offset +
Animation - Class in org.newdawn.slick
A utility to hold and render animations
Animation() - +Constructor for class org.newdawn.slick.Animation +
Create an empty animation +
Animation(Image[], int) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation from a set of images +
Animation(Image[], int[]) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation from a set of images +
Animation(boolean) - +Constructor for class org.newdawn.slick.Animation +
Create an empty animation +
Animation(Image[], int, boolean) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation from a set of images +
Animation(Image[], int[], boolean) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation from a set of images +
Animation(SpriteSheet, int) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation based on the sprite from a sheet. +
Animation(SpriteSheet, int, int, int, int, boolean, int, boolean) - +Constructor for class org.newdawn.slick.Animation +
Create a new animation based on a selection of sprites from a sheet +
Animation(SpriteSheet, int[], int[]) - +Constructor for class org.newdawn.slick.Animation +
Creates a new Animation where each frame is a sub-image of SpriteSheet ss. +
AnimationTest - Class in org.newdawn.slick.tests
A test for basic animation rendering
AnimationTest() - +Constructor for class org.newdawn.slick.tests.AnimationTest +
Create a new image rendering test +
AntiAliasTest - Class in org.newdawn.slick.tests
Test to view the effects of antialiasing on cirles
AntiAliasTest() - +Constructor for class org.newdawn.slick.tests.AntiAliasTest +
Create the test +
ANY_CONTROLLER - +Static variable in class org.newdawn.slick.Input +
The controller index to pass to check all controllers +
appendStep(int, int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Append a step to the path. +
AppGameContainer - Class in org.newdawn.slick
A game container that will display the game as an stand alone + application.
AppGameContainer(Game) - +Constructor for class org.newdawn.slick.AppGameContainer +
Create a new container wrapping a game +
AppGameContainer(Game, int, int, boolean) - +Constructor for class org.newdawn.slick.AppGameContainer +
Create a new container wrapping a game +
AppletGameContainer - Class in org.newdawn.slick
A game container that displays the game as an applet.
AppletGameContainer() - +Constructor for class org.newdawn.slick.AppletGameContainer +
  +
AppletGameContainer.ConsolePanel - Class in org.newdawn.slick
A basic console to display an error message if the applet crashes.
AppletGameContainer.ConsolePanel(Exception) - +Constructor for class org.newdawn.slick.AppletGameContainer.ConsolePanel +
Create a new panel to display the console output +
AppletGameContainer.Container - Class in org.newdawn.slick
A game container to provide the applet context
AppletGameContainer.Container(Game) - +Constructor for class org.newdawn.slick.AppletGameContainer.Container +
Create a new container wrapped round the game +
AppletGameContainer.ContainerPanel - Class in org.newdawn.slick
Create a new panel to display the GL context
AppletGameContainer.ContainerPanel(AppletGameContainer.Container) - +Constructor for class org.newdawn.slick.AppletGameContainer.ContainerPanel +
Create a new panel +
applyGLLineFixes() - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
applyGLLineFixes() - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Check if we should apply default line fixes +
applyGLLineFixes() - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
AStarHeuristic - Interface in org.newdawn.slick.util.pathfinding
The description of a class providing a cost for a given tile based + on a target location and entity being moved.
AStarPathFinder - Class in org.newdawn.slick.util.pathfinding
A path finder implementation that uses the AStar heuristic based algorithm + to determine a path.
AStarPathFinder(TileBasedMap, int, boolean) - +Constructor for class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Create a path finder with the default heuristic - closest to target. +
AStarPathFinder(TileBasedMap, int, boolean, AStarHeuristic) - +Constructor for class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Create a path finder +
atEnd() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
Audio - Interface in org.newdawn.slick.openal
The description of of audio data loaded by the AudioLoader
AudioImpl - Class in org.newdawn.slick.openal
A sound that can be played through OpenAL
AudioImpl() - +Constructor for class org.newdawn.slick.openal.AudioImpl +
  +
AudioLoader - Class in org.newdawn.slick.openal
A utility to provide a simple and rational interface to the + slick internals
AudioLoader() - +Constructor for class org.newdawn.slick.openal.AudioLoader +
  +
available() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
+
+

+B

+
+
b - +Variable in class org.newdawn.slick.Color +
The blue component of the colour +
BasicCommand - Class in org.newdawn.slick.command
A simple named command
BasicCommand(String) - +Constructor for class org.newdawn.slick.command.BasicCommand +
Create a new basic command +
BasicComponent - Class in org.newdawn.slick.gui
Deprecated.  
BasicComponent(GUIContext) - +Constructor for class org.newdawn.slick.gui.BasicComponent +
Deprecated. Create a new component +
BasicGame - Class in org.newdawn.slick
A basic implementation of a game to take out the boring bits
BasicGame(String) - +Constructor for class org.newdawn.slick.BasicGame +
Create a new basic game +
BasicGameState - Class in org.newdawn.slick.state
A simple state used an adapter so we don't have to implement all the event methods + every time.
BasicGameState() - +Constructor for class org.newdawn.slick.state.BasicGameState +
  +
basicTriangulation() - +Method in class org.newdawn.slick.geom.NeatTriangulator +
Perform simple triangulation +
BasicTriangulator - Class in org.newdawn.slick.geom
Triangulates a polygon into triangles - duh.
BasicTriangulator() - +Constructor for class org.newdawn.slick.geom.BasicTriangulator +
Create a new triangulator +
BGRA - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
BigImage - Class in org.newdawn.slick
An image implementation that handles loaded images that are larger than the + maximum texture size supported by the card.
BigImage(String) - +Constructor for class org.newdawn.slick.BigImage +
Create a new big image by loading it from the specified reference +
BigImage(String, int) - +Constructor for class org.newdawn.slick.BigImage +
Create a new big image by loading it from the specified reference +
BigImage(String, int, int) - +Constructor for class org.newdawn.slick.BigImage +
Create a new big image by loading it from the specified reference +
BigImage(LoadableImageData, ByteBuffer, int) - +Constructor for class org.newdawn.slick.BigImage +
Create a new big image by loading it from the specified image data +
BigImage(LoadableImageData, ByteBuffer, int, int) - +Constructor for class org.newdawn.slick.BigImage +
Create a new big image by loading it from the specified image data +
BigImageTest - Class in org.newdawn.slick.tests
A test for basic image rendering
BigImageTest() - +Constructor for class org.newdawn.slick.tests.BigImageTest +
Create a new image rendering test +
BigSpriteSheetTest - Class in org.newdawn.slick.tests
A test for big images used as sprites sheets
BigSpriteSheetTest() - +Constructor for class org.newdawn.slick.tests.BigSpriteSheetTest +
Create a new image rendering test +
bind() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
bind() - +Method in class org.newdawn.slick.Color +
Bind this colour to the GL context +
bind() - +Method in class org.newdawn.slick.Image +
Bind to the texture of this image +
bind() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
bind() - +Method in interface org.newdawn.slick.opengl.Texture +
Bind the GL context to a texture +
bind() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
bindCommand(Control, Command) - +Method in class org.newdawn.slick.command.InputProvider +
Bind an command to a control. +
bindNone() - +Static method in class org.newdawn.slick.opengl.TextureImpl +
Clear the binding of the texture +
black - +Static variable in class org.newdawn.slick.Color +
The fixed colour black +
BLEND_ADDITIVE - +Static variable in class org.newdawn.slick.particles.ParticleSystem +
The blending mode for the glowy style +
BLEND_COMBINE - +Static variable in class org.newdawn.slick.particles.ParticleSystem +
The blending mode for the normal style +
BlobbyTransition - Class in org.newdawn.slick.state.transition
A transition that causes the previous state to rotate and scale down into + the new state.
BlobbyTransition() - +Constructor for class org.newdawn.slick.state.transition.BlobbyTransition +
Create a new transition +
BlobbyTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.BlobbyTransition +
Create a new transition +
blocked(PathFindingContext, int, int) - +Method in interface org.newdawn.slick.util.pathfinding.TileBasedMap +
Check if the given location is blocked, i.e. +
blue - +Static variable in class org.newdawn.slick.Color +
The fixed colour blue +
booleanValue(String, boolean, String) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Prompts the user for boolean value +
Bootstrap - Class in org.newdawn.slick.util
Utility class to wrap up starting a game in a single line
Bootstrap() - +Constructor for class org.newdawn.slick.util.Bootstrap +
  +
BOTTOM_LEFT - +Static variable in class org.newdawn.slick.geom.RoundedRectangle +
Indicates the bottom left corner should be rounded +
BOTTOM_LEFT - +Static variable in class org.newdawn.slick.Image +
The bottom left corner identifier +
BOTTOM_RIGHT - +Static variable in class org.newdawn.slick.geom.RoundedRectangle +
Indicates the bottom right corner should be rounded +
BOTTOM_RIGHT - +Static variable in class org.newdawn.slick.Image +
The bottom right corner identifier +
boundingCircleRadius - +Variable in class org.newdawn.slick.geom.Shape +
Radius of a circle that can completely enclose this shape. +
brighter() - +Method in class org.newdawn.slick.Color +
Make a brighter instance of this colour +
brighter(float) - +Method in class org.newdawn.slick.Color +
Make a brighter instance of this colour +
BUFFER_COUNT - +Static variable in class org.newdawn.slick.openal.OpenALStreamPlayer +
The number of buffers to maintain +
BufferedImageUtil - Class in org.newdawn.slick.util
This is a utility class that allows you to convert a BufferedImage into a + texture.
BufferedImageUtil() - +Constructor for class org.newdawn.slick.util.BufferedImageUtil +
  +
build(TileBasedMap) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Build a navigation mesh based on a tile map +
build(TileBasedMap, boolean) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Build a navigation mesh based on a tile map +
+
+

+C

+
+
CachedRender - Class in org.newdawn.slick
A set of rendering that is cached onto the graphics card and hopefully + is quicker to render.
CachedRender(Runnable) - +Constructor for class org.newdawn.slick.CachedRender +
Create a new cached render that will build the specified + operations on to a video card resource +
CachedRenderTest - Class in org.newdawn.slick.tests
A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
CachedRenderTest() - +Constructor for class org.newdawn.slick.tests.CachedRenderTest +
Create a new simple test for cached rendering (aka display lists) +
calculateRadius() - +Method in class org.newdawn.slick.geom.Circle +
  +
calculateRadius() - +Method in class org.newdawn.slick.geom.Ellipse +
  +
calculateRadius() - +Method in class org.newdawn.slick.geom.Point +
  +
calculateRadius() - +Method in class org.newdawn.slick.geom.Shape +
Calculate the radius of a circle that can completely enclose this shape. +
calculateTriangles() - +Method in class org.newdawn.slick.geom.Shape +
Calculate the triangles that can fill this shape +
call() - +Method in class org.newdawn.slick.opengl.SlickCallable +
Cause this callable to perform it's GL operations (@see performGLOperations()). +
canMerge(Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Check if the given space can be merged with this one. +
canSecondaryColor() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
canSecondaryColor() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
  +
canTextureMirrorClamp() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
canTextureMirrorClamp() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Check if the mirror clamp extension is available +
canvas - +Variable in class org.newdawn.slick.AppletGameContainer +
The GL Canvas used for this container +
CanvasContainerTest - Class in org.newdawn.slick.tests
A test for the AWT Canvas container
CanvasContainerTest() - +Constructor for class org.newdawn.slick.tests.CanvasContainerTest +
Create a new image rendering test +
CanvasGameContainer - Class in org.newdawn.slick
A game container that displays the game on an AWT Canvas.
CanvasGameContainer(Game) - +Constructor for class org.newdawn.slick.CanvasGameContainer +
Create a new panel +
CanvasGameContainer(Game, boolean) - +Constructor for class org.newdawn.slick.CanvasGameContainer +
Create a new panel +
CanvasSizeTest - Class in org.newdawn.slick.tests
Quick test to confirm canvas size is reported correctly
CanvasSizeTest() - +Constructor for class org.newdawn.slick.tests.CanvasSizeTest +
Create test +
center - +Variable in class org.newdawn.slick.geom.Shape +
Center point of the polygon. +
CENTER - +Static variable in class org.newdawn.slick.util.FontUtils.Alignment +
Center alignment +
centerX - +Variable in class org.newdawn.slick.Image +
The x coordinate of the centre of rotation +
centerY - +Variable in class org.newdawn.slick.Image +
The y coordinate of the centre of rotation +
channels - +Variable in class org.newdawn.slick.openal.OggData +
The number of channels in the sound file +
checkGLContext() - +Static method in class org.newdawn.slick.opengl.GLUtils +
Check that we're in the right place to be doing GL operations +
checkPoints() - +Method in class org.newdawn.slick.geom.Shape +
Check the dirty flag and create points as necessary. +
checkVerboseLogSetting() - +Static method in class org.newdawn.slick.util.Log +
Check if the system property org.newdawn.slick.verboseLog is set to true. +
Circle - Class in org.newdawn.slick.geom
A simple Circle geometry
Circle(float, float, float) - +Constructor for class org.newdawn.slick.geom.Circle +
Create a new circle based on its radius +
Circle(float, float, float, int) - +Constructor for class org.newdawn.slick.geom.Circle +
Create a new circle based on its radius +
clampTexture() - +Method in class org.newdawn.slick.Image +
Clamp the loaded texture to it's edges +
ClasspathLocation - Class in org.newdawn.slick.util
A resource location that searches the classpath
ClasspathLocation() - +Constructor for class org.newdawn.slick.util.ClasspathLocation +
  +
clear() - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Clear all the points from this bag +
clear() - +Method in class org.newdawn.slick.geom.NeatTriangulator +
Clear the triangulator status +
clear() - +Method in class org.newdawn.slick.Graphics +
Clear the graphics context +
clear() - +Method in class org.newdawn.slick.openal.SoundStore +
Clear out the sound store contents +
clear(String) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Remove a particular named image from the cache +
clear() - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Clear out the cached textures +
clear() - +Method in class org.newdawn.slick.SavedState +
Will delete all current data held in Score +
clear(TileBasedMap, Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Check if a particular space is clear of blockages +
clearAlphaMap() - +Method in class org.newdawn.slick.Graphics +
Clear the state of the alpha map across the entire screen. +
clearClip() - +Method in class org.newdawn.slick.Graphics +
Clear the clipping being applied. +
clearCommand(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Clear all the controls that have been configured for a given command +
clearControlPressedRecord() - +Method in class org.newdawn.slick.Input +
Clear the state for isControlPressed method. +
clearCost() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Clear the costing values across the whole map +
clearEachFrame - +Variable in class org.newdawn.slick.GameContainer +
True if we should clear the screen each frame +
clearGlyphs() - +Method in class org.newdawn.slick.UnicodeFont +
Clears all loaded and queued glyphs. +
clearKeyPressedRecord() - +Method in class org.newdawn.slick.Input +
Clear the state for the isKeyPressed method. +
clearMousePressedRecord() - +Method in class org.newdawn.slick.Input +
Clear the state for the isMousePressed method. +
clearWorldClip() - +Method in class org.newdawn.slick.Graphics +
Clear world clipping setup. +
ClipTest - Class in org.newdawn.slick.tests
A test to demonstrate world clipping as opposed to screen clipping
ClipTest() - +Constructor for class org.newdawn.slick.tests.ClipTest +
Create a new tester for the clip plane based clipping +
close() - +Method in class org.newdawn.slick.geom.Path +
Close the path to form a polygon +
close() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
closed() - +Method in class org.newdawn.slick.geom.Curve +
True if this is a closed shape +
closed() - +Method in class org.newdawn.slick.geom.Line +
  +
closed() - +Method in class org.newdawn.slick.geom.Path +
True if this is a closed shape +
closed() - +Method in class org.newdawn.slick.geom.Polygon +
  +
closed() - +Method in class org.newdawn.slick.geom.Shape +
True if this is a closed shape +
closeRequested() - +Method in class org.newdawn.slick.BasicGame +
  +
closeRequested() - +Method in interface org.newdawn.slick.Game +
Notification that a game close has been requested +
closeRequested() - +Method in class org.newdawn.slick.ScalableGame +
  +
closeRequested() - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
ClosestHeuristic - Class in org.newdawn.slick.util.pathfinding.heuristics
A heuristic that uses the tile that is closest to the target + as the next best tile.
ClosestHeuristic() - +Constructor for class org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic +
  +
ClosestSquaredHeuristic - Class in org.newdawn.slick.util.pathfinding.heuristics
A heuristic that uses the tile that is closest to the target + as the next best tile.
ClosestSquaredHeuristic() - +Constructor for class org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic +
  +
col - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord +
The color at this position +
collides(Shape, Shape) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
Check if two shapes collide +
Color - Class in org.newdawn.slick
A simple wrapper round the values required for a colour
Color(Color) - +Constructor for class org.newdawn.slick.Color +
Copy constructor +
Color(FloatBuffer) - +Constructor for class org.newdawn.slick.Color +
Create a component based on the first 4 elements of a float buffer +
Color(float, float, float) - +Constructor for class org.newdawn.slick.Color +
Create a 3 component colour +
Color(float, float, float, float) - +Constructor for class org.newdawn.slick.Color +
Create a 4 component colour +
Color(int, int, int) - +Constructor for class org.newdawn.slick.Color +
Create a 3 component colour +
Color(int, int, int, int) - +Constructor for class org.newdawn.slick.Color +
Create a 4 component colour +
Color(int) - +Constructor for class org.newdawn.slick.Color +
Create a colour from an evil integer packed 0xAARRGGBB. +
color(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
color(float, float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Apply a colour to the next vertex +
color(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
color - +Variable in class org.newdawn.slick.particles.Particle +
The colour of the particle +
colorAt(Shape, float, float) - +Method in class org.newdawn.slick.fills.GradientFill +
Get the colour that should be applied at the specified location +
colorAt(float, float) - +Method in class org.newdawn.slick.fills.GradientFill +
Get the colour that should be applied at the specified location +
colorAt(Shape, float, float) - +Method in interface org.newdawn.slick.ShapeFill +
Get the colour that should be applied at the specified location +
ColorEffect - Class in org.newdawn.slick.font.effects
Makes glyphs a solid color.
ColorEffect() - +Constructor for class org.newdawn.slick.font.effects.ColorEffect +
Default constructor for injection +
ColorEffect(Color) - +Constructor for class org.newdawn.slick.font.effects.ColorEffect +
Create a new effect to colour the text +
colors - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The color range +
colorValue(String, Color) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Prompts the user for a colour value +
CombinedTransition - Class in org.newdawn.slick.state.transition
A transition thats built of a set of other transitions which are chained + together to build the overall effect.
CombinedTransition() - +Constructor for class org.newdawn.slick.state.transition.CombinedTransition +
Create an empty transition +
Command - Interface in org.newdawn.slick.command
The description of a action feedback from the abstract input system.
completed - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
True if the system has completed due to a wrap up +
completed() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Check if this emitter has completed it's cycle +
completed() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
completed() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Check if this emitter has completed it's cycle +
componentActivated(AbstractComponent) - +Method in interface org.newdawn.slick.gui.ComponentListener +
Notification that a component has been activated (button clicked, + text field entered, etc) +
componentActivated(AbstractComponent) - +Method in class org.newdawn.slick.tests.GUITest +
  +
componentActivated(AbstractComponent) - +Method in class org.newdawn.slick.tests.SavedStateTest +
  +
ComponentListener - Interface in org.newdawn.slick.gui
A descritpion of a class responding to events occuring on a GUI component
CompositeImageData - Class in org.newdawn.slick.opengl
A composite data source that checks multiple loaders in order of + preference
CompositeImageData() - +Constructor for class org.newdawn.slick.opengl.CompositeImageData +
  +
CompositeIOException - Exception in org.newdawn.slick.opengl
A collection of IOException that failed image data loading
CompositeIOException() - +Constructor for exception org.newdawn.slick.opengl.CompositeIOException +
Create a new composite IO Exception +
computeAngles() - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Compute the angles for the points in this bag +
concatenate(Transform) - +Method in class org.newdawn.slick.geom.Transform +
Update this Transform by concatenating the given Transform to this one. +
condition - +Variable in class org.newdawn.slick.tests.xml.Item +
The condition value injected by the XML parser +
ConfigurableEffect - Interface in org.newdawn.slick.font.effects
An effect that has a number of configuration values.
ConfigurableEffect.Value - Interface in org.newdawn.slick.font.effects
Represents a configurable value for an effect.
ConfigurableEmitter - Class in org.newdawn.slick.particles
An emitter than can be externally configured.
ConfigurableEmitter(String) - +Constructor for class org.newdawn.slick.particles.ConfigurableEmitter +
Create a new emitter configurable externally +
ConfigurableEmitter.ColorRecord - Class in org.newdawn.slick.particles
A single element in the colour range of this emitter
ConfigurableEmitter.ColorRecord(float, Color) - +Constructor for class org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord +
Create a new record +
ConfigurableEmitter.LinearInterpolator - Class in org.newdawn.slick.particles
A value computed based on linear interpolation between a set of points
ConfigurableEmitter.LinearInterpolator(ArrayList, int, int) - +Constructor for class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Create a new interpolated value +
ConfigurableEmitter.RandomValue - Class in org.newdawn.slick.particles
A configurable simple linear random value
ConfigurableEmitter.Range - Class in org.newdawn.slick.particles
A simple bean describing a range of values
ConfigurableEmitter.SimpleValue - Class in org.newdawn.slick.particles
A configurable simple single value
ConfigurableEmitter.Value - Interface in org.newdawn.slick.particles
a general interface to provide a general value :]
ConfigurableEmitterFactory - Interface in org.newdawn.slick.particles
A description of any class that can create Configurable Emitters during the ParticleIO + load phase.
configureEdging(boolean) - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
configureEdging(boolean) - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
configureEdging(boolean) - +Method in interface org.newdawn.slick.opengl.LoadableImageData +
Configure the edging that can be used to make texture edges + loop more cleanly +
configureEdging(boolean) - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
configureEdging(boolean) - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
considerDoubleClick(int, int, int) - +Method in class org.newdawn.slick.Input +
Notification that the mouse has been pressed and hence we + should consider what we're doing with double clicking +
consumed - +Variable in class org.newdawn.slick.Input +
True if the event has been consumed +
consumeEvent() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Consume the event currently being processed +
consumeEvent() - +Method in class org.newdawn.slick.Input +
Notification from an event handle that an event has been consumed +
container - +Variable in class org.newdawn.slick.AppletGameContainer +
The actual container implementation +
container - +Variable in class org.newdawn.slick.CanvasGameContainer +
The actual container implementation +
container - +Variable in class org.newdawn.slick.gui.AbstractComponent +
The game container +
contains(float, float) - +Method in class org.newdawn.slick.geom.Circle +
Check if a point is contained by this circle +
contains(Vector2f) - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Check if the point provided was contained +
contains(float, float) - +Method in class org.newdawn.slick.geom.Rectangle +
Check if this rectangle contains a point +
contains(float, float, float, float, float, float) - +Static method in class org.newdawn.slick.geom.Rectangle +
Check if a rectangle contains a point (static to use it everywhere) +
contains(Shape) - +Method in class org.newdawn.slick.geom.Shape +
Check if the shape passed is entirely contained within + this shape. +
contains(float, float) - +Method in class org.newdawn.slick.geom.Shape +
Check if this polygon contains the given point +
contains(int) - +Method in class org.newdawn.slick.tiled.TileSet +
Check if this tileset contains a particular tile +
contains(float, float) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Check if this space contains a given point +
contains(int, int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Check if this path contains the given step +
contains(XMLElement) - +Method in class org.newdawn.slick.util.xml.XMLElementList +
Check if this list contains the given element +
contour - +Variable in class org.newdawn.slick.geom.MannTriangulator +
The outer countour of the shape +
Control - Interface in org.newdawn.slick.command
Marker class for abstract input controls
ControlledInputReciever - Interface in org.newdawn.slick
Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
controllerButton - +Variable in class org.newdawn.slick.BasicGame +
The state of the button controlls +
ControllerButtonControl - Class in org.newdawn.slick.command
A control indicating that a gamepad/joystick button must be pressed + or released to invoke an command.
ControllerButtonControl(int, int) - +Constructor for class org.newdawn.slick.command.ControllerButtonControl +
Create a new control based on a controller input +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerButtonPressed(int, int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that a button control has been pressed on + the controller. +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerButtonPressed(int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerButtonReleased(int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerButtonReleased(int, int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that a button control has been released on + the controller. +
controllerButtonReleased(int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerButtonReleased(int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerButtonReleased(int, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerButtonReleased(int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
ControllerDirectionControl - Class in org.newdawn.slick.command
A control indicating that a particular direction must be pressed or released + on a controller to cause the command to fire
ControllerDirectionControl(int, ControllerDirectionControl.Direction) - +Constructor for class org.newdawn.slick.command.ControllerDirectionControl +
Create a new input that indicates a direcitonal control must be pressed +
controllerDown - +Variable in class org.newdawn.slick.BasicGame +
The state of the down control +
controllerDownPressed(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerDownPressed(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the down control has been pressed on + the controller. +
controllerDownPressed(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerDownPressed(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerDownPressed(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerDownPressed(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerDownReleased(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerDownReleased(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the down control has been released on + the controller. +
controllerDownReleased(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerDownReleased(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerDownReleased(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerDownReleased(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerLeft - +Variable in class org.newdawn.slick.BasicGame +
The state of the left control +
controllerLeftPressed(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerLeftPressed(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the left control has been pressed on + the controller. +
controllerLeftPressed(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerLeftPressed(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerLeftPressed(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerLeftPressed(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerLeftReleased(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerLeftReleased(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the left control has been released on + the controller. +
controllerLeftReleased(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerLeftReleased(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerLeftReleased(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerLeftReleased(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
ControllerListener - Interface in org.newdawn.slick
Description of classes capable of responding to controller events
controllerListeners - +Variable in class org.newdawn.slick.Input +
The listener to nofiy of controller events +
controllerRight - +Variable in class org.newdawn.slick.BasicGame +
The state of the right control +
controllerRightPressed(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerRightPressed(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the right control has been pressed on + the controller. +
controllerRightPressed(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerRightPressed(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerRightPressed(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerRightPressed(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerRightReleased(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerRightReleased(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the right control has been released on + the controller. +
controllerRightReleased(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerRightReleased(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerRightReleased(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerRightReleased(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerUp - +Variable in class org.newdawn.slick.BasicGame +
The state of the up control +
controllerUpPressed(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerUpPressed(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the up control has been pressed on + the controller. +
controllerUpPressed(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerUpPressed(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerUpPressed(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerUpPressed(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controllerUpReleased(int) - +Method in class org.newdawn.slick.BasicGame +
  +
controllerUpReleased(int) - +Method in interface org.newdawn.slick.ControllerListener +
Notification that the up control has been released on + the controller. +
controllerUpReleased(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
controllerUpReleased(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
controllerUpReleased(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
controllerUpReleased(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
controlPressed(Command) - +Method in interface org.newdawn.slick.command.InputProviderListener +
A control representing an control was pressed relating to a given command. +
controlPressed(Command) - +Method in class org.newdawn.slick.tests.InputProviderTest +
  +
controlReleased(Command) - +Method in interface org.newdawn.slick.command.InputProviderListener +
A control representing an control was released relating to a given command. +
controlReleased(Command) - +Method in class org.newdawn.slick.tests.InputProviderTest +
  +
copy() - +Method in class org.newdawn.slick.Animation +
Create a copy of this animation. +
copy() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
copy() - +Method in class org.newdawn.slick.geom.Polygon +
Provide a copy of this polygon +
copy() - +Method in class org.newdawn.slick.geom.Vector2f +
Return a copy of this vector +
copy() - +Method in class org.newdawn.slick.Image +
Get a copy of this image. +
copyArea(Image, int, int) - +Method in class org.newdawn.slick.Graphics +
Copy an area of the rendered screen into an image. +
CopyAreaAlphaTest - Class in org.newdawn.slick.tests
A test to demonstrate world clipping as opposed to screen clipping
CopyAreaAlphaTest() - +Constructor for class org.newdawn.slick.tests.CopyAreaAlphaTest +
Create a new tester for the clip plane based clipping +
corners - +Variable in class org.newdawn.slick.Image +
The colours for each of the corners +
cos(double) - +Static method in class org.newdawn.slick.util.FastTrig +
Get the cosine of an angle +
countPoints() - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Get the number of points in the bag +
create(URL) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified url +
create(String) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified in the classpath +
create(InputStream) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified inputstream +
create(byte[]) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified bytes +
create(ByteBuffer) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified ByetBuffer. +
create(AudioInputStream) - +Static method in class org.newdawn.slick.openal.AiffData +
Creates a AiffData container from the specified stream +
create(URL) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified url +
create(String) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified in the classpath +
create(InputStream) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified inputstream +
create(byte[]) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified bytes +
create(ByteBuffer) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified ByetBuffer. +
create(AudioInputStream) - +Static method in class org.newdawn.slick.openal.WaveData +
Creates a WaveData container from the specified stream +
createEmitter(String) - +Method in interface org.newdawn.slick.particles.ConfigurableEmitterFactory +
Create a configurable emitter that will be populated with + loaded data +
createIntBuffer(int) - +Static method in class org.newdawn.slick.opengl.InternalTextureLoader +
Creates an integer buffer to hold specified ints + - strictly a utility method +
createIntBuffer(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Creates an integer buffer to hold specified ints + - strictly a utility method +
createParticle(ParticleSystem) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Create a particle specific to this system, override for your own implementations. +
createPoints() - +Method in class org.newdawn.slick.geom.Curve +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Ellipse +
Generate the points to outline this ellipse. +
createPoints() - +Method in class org.newdawn.slick.geom.Line +
  +
createPoints() - +Method in class org.newdawn.slick.geom.MorphShape +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Path +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Point +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Polygon +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Rectangle +
  +
createPoints() - +Method in class org.newdawn.slick.geom.RoundedRectangle +
  +
createPoints() - +Method in class org.newdawn.slick.geom.Shape +
Subclasses implement this to create the points of the shape. +
createPoly(float, float) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
createRotateTransform(float) - +Static method in class org.newdawn.slick.geom.Transform +
Create a new rotation Transform +
createRotateTransform(float, float, float) - +Static method in class org.newdawn.slick.geom.Transform +
Create a new rotation Transform around the specified point +
createScaleTransform(float, float) - +Static method in class org.newdawn.slick.geom.Transform +
Create an new scaling Transform +
createTexture(int, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Create an empty texture +
createTexture(int, int, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Create an empty texture +
createTextureID() - +Static method in class org.newdawn.slick.opengl.InternalTextureLoader +
Create a new texture ID +
createTranslateTransform(float, float) - +Static method in class org.newdawn.slick.geom.Transform +
Create a new translation Transform +
CrossStateTransition - Class in org.newdawn.slick.state.transition
A transition that will combine two states into one effect.
CrossStateTransition(GameState) - +Constructor for class org.newdawn.slick.state.transition.CrossStateTransition +
Create a cross state transitions +
currentGraphics - +Static variable in class org.newdawn.slick.Graphics +
The last graphics context in use +
CursorLoader - Class in org.newdawn.slick.opengl
A utility to load cursors (thanks go to Kappa for the animated cursor + loader)
Curve - Class in org.newdawn.slick.geom
A beizer curve implementation.
Curve(Vector2f, Vector2f, Vector2f, Vector2f) - +Constructor for class org.newdawn.slick.geom.Curve +
Create a new curve with the default segments (20) +
Curve(Vector2f, Vector2f, Vector2f, Vector2f, int) - +Constructor for class org.newdawn.slick.geom.Curve +
Create a new curve +
CurveTest - Class in org.newdawn.slick.tests
A rudimentry test of loading SVG from inkscape
CurveTest() - +Constructor for class org.newdawn.slick.tests.CurveTest +
Create a new test for inkscape loading +
curveTo(float, float, float, float, float, float) - +Method in class org.newdawn.slick.geom.Path +
Add a curve to the specified location (using the default segments 10) +
curveTo(float, float, float, float, float, float, int) - +Method in class org.newdawn.slick.geom.Path +
Add a curve to the specified location (specifing the number of segments) +
cyan - +Static variable in class org.newdawn.slick.Color +
The fixed colour cyan +
+
+

+D

+
+
darker() - +Method in class org.newdawn.slick.Color +
Make a darker instance of this colour +
darker(float) - +Method in class org.newdawn.slick.Color +
Make a darker instance of this colour +
darkGray - +Static variable in class org.newdawn.slick.Color +
The fixed colour dark gray +
data - +Variable in class org.newdawn.slick.openal.AiffData +
actual AIFF data +
data - +Variable in class org.newdawn.slick.openal.OggData +
The data that has been read from the OGG file +
data - +Variable in class org.newdawn.slick.openal.WaveData +
actual wave data +
data - +Variable in class org.newdawn.slick.tiled.Layer +
The tile data representing this data, index 0 = tileset, index 1 = tile + id +
deactivate() - +Method in class org.newdawn.slick.gui.TextField +
Deactivate the key input handling for this field +
debug(String) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log a debug message +
debug(String) - +Static method in class org.newdawn.slick.util.Log +
Log a debug message +
debug(String) - +Method in interface org.newdawn.slick.util.LogSystem +
Log a debug message +
decideTextureFormat(PNGDecoder.Format) - +Method in class org.newdawn.slick.opengl.PNGDecoder +
Computes the implemented format conversion for the desired format. +
decode(String) - +Static method in class org.newdawn.slick.Color +
Decode a number in a string and process it as a colour + reference. +
decode(ByteBuffer, int, PNGDecoder.Format) - +Method in class org.newdawn.slick.opengl.PNGDecoder +
  +
DEFAULT_FONT - +Static variable in class org.newdawn.slick.Graphics +
The default font to use +
DEFAULT_LINE_STRIP_RENDERER - +Static variable in class org.newdawn.slick.opengl.renderer.Renderer +
The indicator for direct GL line renderer (the default) +
DEFAULT_SEGMENT_COUNT - +Static variable in class org.newdawn.slick.geom.Ellipse +
Default number of segments to draw this ellipse with +
DefaultLineStripRenderer - Class in org.newdawn.slick.opengl.renderer
The default version of the renderer relies of GL calls to do everything.
DefaultLineStripRenderer() - +Constructor for class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
DefaultLogSystem - Class in org.newdawn.slick.util
The default implementation that just spits the messages out to stdout
DefaultLogSystem() - +Constructor for class org.newdawn.slick.util.DefaultLogSystem +
  +
DeferredLoadingTest - Class in org.newdawn.slick.tests
A test for deferred loading.
DeferredLoadingTest() - +Constructor for class org.newdawn.slick.tests.DeferredLoadingTest +
Create a new image rendering test +
DeferredResource - Interface in org.newdawn.slick.loading
A description of any class providing a resource handle that be loaded + at a later date (i.e.
DeferredSound - Class in org.newdawn.slick.openal
A sound implementation that can load the actual sound file at a later + point.
DeferredSound(String, InputStream, int) - +Constructor for class org.newdawn.slick.openal.DeferredSound +
Create a new sound on request to load +
DeferredTexture - Class in org.newdawn.slick.opengl
A texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it
DeferredTexture(InputStream, String, boolean, int, int[]) - +Constructor for class org.newdawn.slick.opengl.DeferredTexture +
Create a new deferred texture +
defineMask() - +Static method in class org.newdawn.slick.util.MaskUtil +
Start defining the screen mask. +
DefsProcessor - Class in org.newdawn.slick.svg.inkscape
A processor for the defs node
DefsProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.DefsProcessor +
  +
destroy() - +Method in class org.newdawn.slick.AppGameContainer +
Destroy the app game container +
destroy() - +Method in class org.newdawn.slick.AppletGameContainer +
  +
destroy() - +Method in class org.newdawn.slick.BigImage +
Destroy the image and release any native resources. +
destroy() - +Method in class org.newdawn.slick.CachedRender +
Destroy this cached render +
destroy() - +Method in class org.newdawn.slick.Graphics +
Dispose this graphics context, this will release any underlying resourses. +
destroy() - +Method in class org.newdawn.slick.Image +
Destroy the image and release any native resources. +
destroy() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
  +
destroy() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
  +
destroy() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
  +
destroy() - +Method in class org.newdawn.slick.UnicodeFont +
Releases all resources used by this UnicodeFont. +
destroyed - +Variable in class org.newdawn.slick.Image +
True if the image has been destroyed +
Diagram - Class in org.newdawn.slick.svg
A diagram read from SVG containing multiple figures
Diagram(float, float) - +Constructor for class org.newdawn.slick.svg.Diagram +
Create a new empty diagram +
diagram - +Variable in class org.newdawn.slick.svg.SimpleDiagramRenderer +
The diagram to be rendered +
disable() - +Method in class org.newdawn.slick.Graphics +
Disable rendering to this graphics context +
disable() - +Method in class org.newdawn.slick.openal.SoundStore +
Disable use of the Sound Store +
disable() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
  +
disable() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
  +
disable() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
  +
disableControllers() - +Static method in class org.newdawn.slick.Input +
Disables support for controllers. +
disableKeyRepeat() - +Method in class org.newdawn.slick.Input +
Disable key repeat for this input context +
displayParent - +Variable in class org.newdawn.slick.AppletGameContainer +
The parent of the display +
dispose() - +Method in class org.newdawn.slick.CanvasGameContainer +
Dispose the container and any resources it holds +
dispose() - +Method in class org.newdawn.slick.openal.AiffData +
Disposes the Aiffdata +
dispose() - +Method in class org.newdawn.slick.openal.WaveData +
Disposes the wavedata +
distance(Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Get the shortest distance from a point to this line +
distance(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Get the distance from this point to another +
distance2(float, float) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Link +
Get the distance squared from this link to the given position +
DistanceFieldTest - Class in org.newdawn.slick.tests
A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
DistanceFieldTest() - +Constructor for class org.newdawn.slick.tests.DistanceFieldTest +
Create a new tester for the clip plane based clipping +
distanceSquared(Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Get the shortest distance squared from a point to this line +
distanceSquared(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Get the distance from this point to another, squared. +
doesIntersectSegment(Vector2f, Vector2f) - +Method in class org.newdawn.slick.geom.MannTriangulator.PointBag +
Check if the points in this bag form a path intersecting + with the specified path +
done() - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Check if the playback is complete. +
doPaste(String) - +Method in class org.newdawn.slick.gui.TextField +
Do the paste into the field, overrideable for custom behaviour +
dot(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Dot this vector against another +
DoubleClickTest - Class in org.newdawn.slick.tests
The double click testing
DoubleClickTest() - +Constructor for class org.newdawn.slick.tests.DoubleClickTest +
Create the test game +
doUndo(int, String) - +Method in class org.newdawn.slick.gui.TextField +
Do the undo of the paste, overrideable for custom behaviour +
DOWN - +Static variable in class org.newdawn.slick.command.ControllerDirectionControl +
The direction indicating we're waiting for the user to press down +
draw() - +Method in class org.newdawn.slick.Animation +
Draw the animation to the screen +
draw(float, float) - +Method in class org.newdawn.slick.Animation +
Draw the animation at a specific location +
draw(float, float, Color) - +Method in class org.newdawn.slick.Animation +
Draw the animation at a specific location +
draw(float, float, float, float) - +Method in class org.newdawn.slick.Animation +
Draw the animation +
draw(float, float, float, float, Color) - +Method in class org.newdawn.slick.Animation +
Draw the animation +
draw() - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float) - +Method in class org.newdawn.slick.BigImage +
  +
draw(float, float, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in class org.newdawn.slick.font.effects.ColorEffect +
  +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in interface org.newdawn.slick.font.effects.Effect +
Called to draw the effect. +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in class org.newdawn.slick.font.effects.FilterEffect +
  +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
  +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
  +
draw(BufferedImage, Graphics2D, UnicodeFont, Glyph) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
  +
draw(Shape) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the outline of the given shape. +
draw(Shape, ShapeFill) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the outline of the given shape. +
draw(Shape, ShapeFill) - +Method in class org.newdawn.slick.Graphics +
Draw the outline of the given shape. +
draw(Shape) - +Method in class org.newdawn.slick.Graphics +
Draw the outline of the given shape. +
draw() - +Method in class org.newdawn.slick.Image +
Draw this image at the current location +
draw(float, float) - +Method in class org.newdawn.slick.Image +
Draw this image at the specified location +
draw(float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw this image at the specified location +
draw(float, float, float) - +Method in class org.newdawn.slick.Image +
Draw the image with a given scale +
draw(float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw the image with a given scale +
draw(float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size +
draw(float, float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size +
draw(float, float, float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw a section of this image at a particular location and scale on the screen +
draw(float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw a section of this image at a particular location and scale on the screen +
draw(float, float, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw a section of this image at a particular location and scale on the screen +
draw(float, float) - +Method in interface org.newdawn.slick.Renderable +
Draw this artefact at the given location +
draw() - +Method in class org.newdawn.slick.util.LocatedImage +
Draw the image based on the current configured state +
drawAnimation(Animation, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw an animation to this graphics context +
drawAnimation(Animation, float, float, Color) - +Method in class org.newdawn.slick.Graphics +
Draw an animation to this graphics context +
drawArc(float, float, float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw an oval to the canvas +
drawArc(float, float, float, float, int, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw an oval to the canvas +
drawCenter(Font, String, int, int, int) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw text center justified +
drawCenter(Font, String, int, int, int, Color) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw text center justified +
drawCentered(float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawCentered(float, float) - +Method in class org.newdawn.slick.Image +
Draw the image based on it's center +
drawDisplayList(float, float, String, Color, int, int) - +Method in class org.newdawn.slick.UnicodeFont +
Identical to UnicodeFont.drawString(float, float, String, Color, int, int) but returns a + DisplayList which provides access to the width and height of the text drawn. +
drawEmbedded(float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawEmbedded(float, float, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
drawEmbedded(float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawEmbedded(float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw this image as part of a collection of images +
drawEmbedded(float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. +
drawEmbedded(float, float, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. +
drawFlash(float, float, float, float) - +Method in class org.newdawn.slick.Animation +
Draw the animation +
drawFlash(float, float, float, float, Color) - +Method in class org.newdawn.slick.Animation +
Draw the animation +
drawFlash(float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawFlash(float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawFlash(float, float, float, float, Color) - +Method in class org.newdawn.slick.BigImage +
  +
drawFlash(float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size as a silohette +
drawFlash(float, float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size as a silohette +
drawFlash(float, float) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size in a white silohette +
drawGradientLine(float, float, float, float, float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a line with a gradient between the two points. +
drawGradientLine(float, float, Color, float, float, Color) - +Method in class org.newdawn.slick.Graphics +
Draw a line with a gradient between the two points. +
drawImage(Image, float, float, Color) - +Method in class org.newdawn.slick.Graphics +
Draw an image to the screen +
drawImage(Image, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw an image to the screen +
drawImage(Image, float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a section of an image at a particular location and scale on the + screen +
drawImage(Image, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a section of an image at a particular location and scale on the + screen +
drawImage(Image, float, float, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.Graphics +
Draw a section of an image at a particular location and scale on the + screen +
drawImage(Image, float, float, float, float, float, float, Color) - +Method in class org.newdawn.slick.Graphics +
Draw a section of an image at a particular location and scale on the + screen +
drawLeft(Font, String, int, int) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw text left justified +
drawLine(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a line on the canvas in the current colour +
drawOffMask() - +Static method in class org.newdawn.slick.util.MaskUtil +
Start drawing only off the masked area +
drawOnMask() - +Static method in class org.newdawn.slick.util.MaskUtil +
Start drawing only on the masked area +
drawOval(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw an oval to the canvas +
drawOval(float, float, float, float, int) - +Method in class org.newdawn.slick.Graphics +
Draw an oval to the canvas +
drawRect(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a rectangle to the canvas in the current colour +
drawRight(Font, String, int, int, int) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw text right justified +
drawRight(Font, String, int, int, int, Color) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw text right justified +
drawRoundRect(float, float, float, float, int) - +Method in class org.newdawn.slick.Graphics +
Draw a rounded rectangle +
drawRoundRect(float, float, float, float, int, int) - +Method in class org.newdawn.slick.Graphics +
Draw a rounded rectangle +
drawSheared(float, float, float, float) - +Method in class org.newdawn.slick.BigImage +
  +
drawSheared(float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size +
drawSheared(float, float, float, float, Color) - +Method in class org.newdawn.slick.Image +
Draw this image at a specified location and size +
drawString(float, float, String) - +Method in class org.newdawn.slick.AngelCodeFont +
  +
drawString(float, float, String, Color) - +Method in class org.newdawn.slick.AngelCodeFont +
  +
drawString(float, float, String, Color, int, int) - +Method in class org.newdawn.slick.AngelCodeFont +
  +
drawString(float, float, String) - +Method in interface org.newdawn.slick.Font +
Draw a string to the screen +
drawString(float, float, String, Color) - +Method in interface org.newdawn.slick.Font +
Draw a string to the screen +
drawString(float, float, String, Color, int, int) - +Method in interface org.newdawn.slick.Font +
Draw part of a string to the screen. +
drawString(String, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw a string to the screen using the current font +
drawString(float, float, String) - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
drawString(float, float, String, Color) - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
drawString(float, float, String, Color, int, int) - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
drawString(float, float, String, Color) - +Method in class org.newdawn.slick.TrueTypeFont +
Draw a string +
drawString(float, float, String, Color, int, int) - +Method in class org.newdawn.slick.TrueTypeFont +
  +
drawString(float, float, String) - +Method in class org.newdawn.slick.TrueTypeFont +
Draw a string +
drawString(float, float, String, Color, int, int) - +Method in class org.newdawn.slick.UnicodeFont +
  +
drawString(float, float, String) - +Method in class org.newdawn.slick.UnicodeFont +
  +
drawString(float, float, String, Color) - +Method in class org.newdawn.slick.UnicodeFont +
  +
drawString(Font, String, int, int, int, int, Color) - +Static method in class org.newdawn.slick.util.FontUtils +
Draw a string +
drawWarped(float, float, float, float, float, float, float, float) - +Method in class org.newdawn.slick.Image +
Draw the image in a warper rectangle. +
dummy - +Variable in class org.newdawn.slick.particles.ParticleSystem +
The dummy particle to return should no more particles be available +
dump(String) - +Method in class org.newdawn.slick.tests.xml.Entity +
Dump this object to sysout +
dump(String) - +Method in class org.newdawn.slick.tests.xml.GameData +
Dump this object to sysout +
dump(String) - +Method in class org.newdawn.slick.tests.xml.Inventory +
Dump this object to sysout +
dump(String) - +Method in class org.newdawn.slick.tests.xml.Item +
Dump this object to sysout +
dump(String) - +Method in class org.newdawn.slick.tests.xml.ItemContainer +
Dump this object to sysout +
dump(String) - +Method in class org.newdawn.slick.tests.xml.Stats +
Dump this object to sysout +
duplicate() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Create a duplicate of this emitter. +
duplicate() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Create a duplicate of this system. +
DuplicateEmitterTest - Class in org.newdawn.slick.tests
A test for duplicating a ConfigurableEmitter several times
DuplicateEmitterTest() - +Constructor for class org.newdawn.slick.tests.DuplicateEmitterTest +
Create a new DuplicateEmitterTest +
+
+

+E

+
+
EDGE_SCALE - +Variable in class org.newdawn.slick.geom.GeomUtil +
The tolerance for determining direction change +
Effect - Interface in org.newdawn.slick.font.effects
A graphical effect that is applied to glyphs in a UnicodeFont.
EffectUtil - Class in org.newdawn.slick.font.effects
Provides utility methods for effects.
EffectUtil() - +Constructor for class org.newdawn.slick.font.effects.EffectUtil +
  +
ElementProcessor - Interface in org.newdawn.slick.svg.inkscape
The description of a module which processes a single XML element from a SVG (inkscape) + document.
Ellipse - Class in org.newdawn.slick.geom
An ellipse meeting the Shape contract.
Ellipse(float, float, float, float) - +Constructor for class org.newdawn.slick.geom.Ellipse +
Creates a new Ellipse object. +
Ellipse(float, float, float, float, int) - +Constructor for class org.newdawn.slick.geom.Ellipse +
Creates a new Ellipse object. +
ELLIPSE - +Static variable in class org.newdawn.slick.svg.Figure +
Ellipse Type +
EllipseProcessor - Class in org.newdawn.slick.svg.inkscape
Processor for and nodes marked as arcs
EllipseProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.EllipseProcessor +
  +
emitCount - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The number of particles that will be emitted +
emitters - +Variable in class org.newdawn.slick.particles.ParticleSystem +
The list of emittered producing and controlling particles +
EmptyImageData - Class in org.newdawn.slick.opengl
An image data implementation which represents an empty texture
EmptyImageData(int, int) - +Constructor for class org.newdawn.slick.opengl.EmptyImageData +
Create an empty image data source +
EmptyTransition - Class in org.newdawn.slick.state.transition
A transition that has no effect and instantly finishes.
EmptyTransition() - +Constructor for class org.newdawn.slick.state.transition.EmptyTransition +
  +
enable() - +Method in class org.newdawn.slick.Graphics +
Enable rendering to this graphics context +
enable() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
  +
enable() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
  +
enable() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
  +
enableKeyRepeat(int, int) - +Method in class org.newdawn.slick.Input +
Deprecated.   +
enableKeyRepeat() - +Method in class org.newdawn.slick.Input +
Enable key repeat for this input context. +
enableSharedContext() - +Static method in class org.newdawn.slick.GameContainer +
Enable shared OpenGL context. +
enableStencil() - +Static method in class org.newdawn.slick.GameContainer +
  +
end() - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
end() - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
End the line strips +
end() - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
endAlpha - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The ending alpha value +
endUse() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
endUse() - +Method in class org.newdawn.slick.Image +
End the use of this sprite sheet and release the lock. +
endUse() - +Method in class org.newdawn.slick.SpriteSheet +
  +
ensureInverted() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
ensureInverted() - +Method in class org.newdawn.slick.Image +
Make sure the texture cordinates are inverse on the y axis +
enter(GameContainer, StateBasedGame) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
enter(GameContainer, StateBasedGame) - +Method in interface org.newdawn.slick.state.GameState +
Notification that we've entered this game state +
enterOrtho() - +Method in class org.newdawn.slick.GameContainer +
Enter the orthographic mode +
enterOrtho(int, int) - +Method in class org.newdawn.slick.GameContainer +
Enter the orthographic mode +
enterOrtho() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
Enter the orthographic mode +
enterOrtho() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
Enter the orthographic mode +
enterOrtho() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
Enter the orthographic mode +
enterOrtho(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
enterOrtho(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Enter orthographic mode +
enterSafeBlock() - +Static method in class org.newdawn.slick.opengl.SlickCallable +
Enter a safe block ensuring that all the OpenGL state that slick + uses is safe before touching the GL state directly. +
enterState(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
Enter a particular game state with no transition +
enterState(int, Transition, Transition) - +Method in class org.newdawn.slick.state.StateBasedGame +
Enter a particular game state with the transitions provided +
Entity - Class in org.newdawn.slick.tests.xml
A test example of some object data that can be configured via XML
Entity() - +Constructor for class org.newdawn.slick.tests.xml.Entity +
  +
EPSILON - +Variable in class org.newdawn.slick.geom.GeomUtil +
The tolerance for determining changes and steps +
equals(Object) - +Method in class org.newdawn.slick.Color +
  +
equals(Object) - +Method in class org.newdawn.slick.command.BasicCommand +
  +
equals(Object) - +Method in class org.newdawn.slick.command.KeyControl +
  +
equals(Object) - +Method in class org.newdawn.slick.command.MouseButtonControl +
  +
equals(Object) - +Method in class org.newdawn.slick.geom.Vector2f +
  +
equals(Object) - +Method in class org.newdawn.slick.util.pathfinding.Path.Step +
  +
error(String, Throwable) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log an error +
error(Throwable) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log an error +
error(String) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log an error +
error(String, Throwable) - +Static method in class org.newdawn.slick.util.Log +
Log an error +
error(Throwable) - +Static method in class org.newdawn.slick.util.Log +
Log an error +
error(String) - +Static method in class org.newdawn.slick.util.Log +
Log an error +
error(String, Throwable) - +Method in interface org.newdawn.slick.util.LogSystem +
Log an error +
error(Throwable) - +Method in interface org.newdawn.slick.util.LogSystem +
Log an error +
error(String) - +Method in interface org.newdawn.slick.util.LogSystem +
Log an error +
exit() - +Method in class org.newdawn.slick.GameContainer +
Cause the game to exit and shutdown cleanly +
exitMe - +Static variable in class org.newdawn.slick.tests.ImageTest +
True if the test should just exit first time round, used for testing shared contexts +
+
+

+F

+
+
fade(int, float, boolean) - +Method in class org.newdawn.slick.Music +
Fade this music to the volume specified +
FadeInTransition - Class in org.newdawn.slick.state.transition
A transition to fade in from a given colour
FadeInTransition() - +Constructor for class org.newdawn.slick.state.transition.FadeInTransition +
Create a new fade in transition +
FadeInTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.FadeInTransition +
Create a new fade in transition +
FadeInTransition(Color, int) - +Constructor for class org.newdawn.slick.state.transition.FadeInTransition +
Create a new fade in transition +
FadeOutTransition - Class in org.newdawn.slick.state.transition
A transition to fade out to a given colour
FadeOutTransition() - +Constructor for class org.newdawn.slick.state.transition.FadeOutTransition +
Create a new fade out transition +
FadeOutTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.FadeOutTransition +
Create a new fade out transition +
FadeOutTransition(Color, int) - +Constructor for class org.newdawn.slick.state.transition.FadeOutTransition +
Create a new fade out transition +
FastTrig - Class in org.newdawn.slick.util
Utility to handle Java's odd trig performance issues
FastTrig() - +Constructor for class org.newdawn.slick.util.FastTrig +
  +
FBOGraphics - Class in org.newdawn.slick.opengl.pbuffer
A graphics implementation that renders to an FBO
FBOGraphics(Image) - +Constructor for class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
Create a new graphics context around an FBO +
Figure - Class in org.newdawn.slick.svg
A figure that is part of diagram loaded from SVG
Figure(int, Shape, NonGeometricData, Transform) - +Constructor for class org.newdawn.slick.svg.Figure +
Create a new figure +
FileMuffin - Class in org.newdawn.slick.muffin
An implementation of the muffin load/save mechanism based around using the + local file system.
FileMuffin() - +Constructor for class org.newdawn.slick.muffin.FileMuffin +
  +
FileSystemLocation - Class in org.newdawn.slick.util
A resource loading location that searches somewhere on the classpath
FileSystemLocation(File) - +Constructor for class org.newdawn.slick.util.FileSystemLocation +
Create a new resoruce location based on the file system +
fill(Shape) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in. +
fill(Shape, ShapeFill) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in. +
fill(Shape, ShapeFill) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in. +
fill(Shape) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in. +
FILL - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The fill type +
fill(Space, float, float, float) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Fill the spaces based on the cost from a given starting point +
fillArc(float, float, float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Fill an arc to the canvas (a wedge) +
fillArc(float, float, float, float, int, float, float) - +Method in class org.newdawn.slick.Graphics +
Fill an arc to the canvas (a wedge) +
fillOval(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Fill an oval to the canvas +
fillOval(float, float, float, float, int) - +Method in class org.newdawn.slick.Graphics +
Fill an oval to the canvas +
fillRect(float, float, float, float, Image, float, float) - +Method in class org.newdawn.slick.Graphics +
Tile a rectangle with a pattern specifing the offset from the top corner + that one tile should match +
fillRect(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Fill a rectangle on the canvas in the current color +
fillRoundRect(float, float, float, float, int) - +Method in class org.newdawn.slick.Graphics +
Fill a rounded rectangle +
fillRoundRect(float, float, float, float, int, int) - +Method in class org.newdawn.slick.Graphics +
Fill a rounded rectangle +
FILTER_LINEAR - +Static variable in class org.newdawn.slick.Image +
Use Linear Filtering +
FILTER_NEAREST - +Static variable in class org.newdawn.slick.Image +
Use Nearest Filtering +
FilterEffect - Class in org.newdawn.slick.font.effects
Applys a BufferedImageOp filter to glyphs.
FilterEffect() - +Constructor for class org.newdawn.slick.font.effects.FilterEffect +
Default constructor for injection +
FilterEffect(BufferedImageOp) - +Constructor for class org.newdawn.slick.font.effects.FilterEffect +
Create a new filtering effect based on a convolution operation +
findCenter() - +Method in class org.newdawn.slick.geom.Circle +
  +
findCenter() - +Method in class org.newdawn.slick.geom.Ellipse +
  +
findCenter() - +Method in class org.newdawn.slick.geom.Point +
  +
findCenter() - +Method in class org.newdawn.slick.geom.Shape +
Get the center of this polygon. +
findPath(Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
  +
findPath(float, float, float, float, boolean) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Find a path from the source to the target coordinates +
findPath(Mover, int, int, int, int) - +Method in interface org.newdawn.slick.util.pathfinding.PathFinder +
Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map. +
findSpace(float, float) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Find the space at a given location +
findTileSet(int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Find a tile for a given global tile id +
finishDefineMask() - +Static method in class org.newdawn.slick.util.MaskUtil +
Finish defining the screen mask +
FireEmitter - Class in org.newdawn.slick.particles.effects
A stock effect for fire usin the particle system
FireEmitter() - +Constructor for class org.newdawn.slick.particles.effects.FireEmitter +
Create a default fire effect at 0,0 +
FireEmitter(int, int) - +Constructor for class org.newdawn.slick.particles.effects.FireEmitter +
Create a default fire effect at x,y +
FireEmitter(int, int, float) - +Constructor for class org.newdawn.slick.particles.effects.FireEmitter +
Create a default fire effect at x,y +
firePressed(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Fire notification to any interested listeners that a control has been + pressed indication an particular command +
fireReleased(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Fire notification to any interested listeners that a control has been + released indication an particular command should be stopped +
first - +Variable in class org.newdawn.slick.geom.MannTriangulator.PointBag +
The first point in the bag - head of the list +
firstGID - +Variable in class org.newdawn.slick.tiled.TileSet +
The first global tile id in the set +
FlashTest - Class in org.newdawn.slick.tests
A test for image flashes
FlashTest() - +Constructor for class org.newdawn.slick.tests.FlashTest +
Create a new image rendering test +
floatValue(String, float, float, float, String) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Prompts the user for float value +
flush() - +Method in class org.newdawn.slick.Graphics +
Flush this graphics context to the underlying rendering context +
flush() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
  +
flush() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
  +
flush() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
  +
flush() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
flush() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Flush the current state of the renderer down to GL +
flush() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
flushPixelData() - +Method in class org.newdawn.slick.Image +
Flush the current pixel data to force a re-read next update +
Font - Interface in org.newdawn.slick
The proprites of any font implementation
FontPerformanceTest - Class in org.newdawn.slick.tests
A test of the font rendering capabilities
FontPerformanceTest() - +Constructor for class org.newdawn.slick.tests.FontPerformanceTest +
Create a new test for font rendering +
FontTest - Class in org.newdawn.slick.tests
A test of the font rendering capabilities
FontTest() - +Constructor for class org.newdawn.slick.tests.FontTest +
Create a new test for font rendering +
FontUtils - Class in org.newdawn.slick.util
Simple utility class to support justified text + + http://slick.javaunlimited.net/viewtopic.php?t=2640
FontUtils() - +Constructor for class org.newdawn.slick.util.FontUtils +
  +
FontUtils.Alignment - Class in org.newdawn.slick.util
Alignment indicators
FontUtils.Alignment() - +Constructor for class org.newdawn.slick.util.FontUtils.Alignment +
  +
forceExit - +Variable in class org.newdawn.slick.GameContainer +
True if we should force exit +
format - +Variable in class org.newdawn.slick.openal.AiffData +
format type of data +
format - +Variable in class org.newdawn.slick.openal.WaveData +
format type of data +
fps - +Variable in class org.newdawn.slick.GameContainer +
The current count of FPS +
fromString(String) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Converts a string to a color. +
+
+

+G

+
+
g - +Variable in class org.newdawn.slick.Color +
The green component of the colour +
game - +Variable in class org.newdawn.slick.CanvasGameContainer +
The game being held in this container +
Game - Interface in org.newdawn.slick
The main game interface that should be implemented by any game being developed + using the container system.
game - +Variable in class org.newdawn.slick.GameContainer +
The game being managed +
GameContainer - Class in org.newdawn.slick
A generic game container that handles the game loop, fps recording and + managing the input system
GameContainer(Game) - +Constructor for class org.newdawn.slick.GameContainer +
Create a new game container wrapping a given game +
GameData - Class in org.newdawn.slick.tests.xml
The top level node of our test structure for XML -> object parsing
GameData() - +Constructor for class org.newdawn.slick.tests.xml.GameData +
  +
gameLoop() - +Method in class org.newdawn.slick.AppGameContainer +
Strategy for overloading game loop context handling +
GameState - Interface in org.newdawn.slick.state
A single state building up part of the game.
gameThread - +Variable in class org.newdawn.slick.AppletGameContainer +
The thread that is looping for the game +
GAUSSIAN_BLUR_KERNELS - +Static variable in class org.newdawn.slick.font.effects.ShadowEffect +
The blur kernels applied across the effect +
genImage() - +Method in class org.newdawn.slick.svg.Gradient +
Generate the image used for texturing the gradient across shapes +
GeomAccuracyTest - Class in org.newdawn.slick.tests
A simple graphics test for the context allowing vector based graphics
GeomAccuracyTest() - +Constructor for class org.newdawn.slick.tests.GeomAccuracyTest +
Create a new test of graphics context rendering +
GeomTest - Class in org.newdawn.slick.tests
A geomertry test
GeomTest() - +Constructor for class org.newdawn.slick.tests.GeomTest +
Create a new test of graphics context rendering +
GeomUtil - Class in org.newdawn.slick.geom
A set of utilities to play with geometry
GeomUtil() - +Constructor for class org.newdawn.slick.geom.GeomUtil +
  +
GeomUtil.HitResult - Class in org.newdawn.slick.geom
A lightweigtht description of a intersection between a shape and + line.
GeomUtil.HitResult() - +Constructor for class org.newdawn.slick.geom.GeomUtil.HitResult +
  +
GeomUtilListener - Interface in org.newdawn.slick.geom
Debug listener for notifications assocaited with geometry utilities
GeomUtilTest - Class in org.newdawn.slick.tests
A test to try shape cutting
GeomUtilTest() - +Constructor for class org.newdawn.slick.tests.GeomUtilTest +
Create a simple test +
GeomUtilTileTest - Class in org.newdawn.slick.tests
A test to try shape building from multiple tiles
GeomUtilTileTest() - +Constructor for class org.newdawn.slick.tests.GeomUtilTileTest +
Create a simple test +
get() - +Static method in class org.newdawn.slick.loading.LoadingList +
Get the single global loading list +
get() - +Static method in class org.newdawn.slick.openal.SoundStore +
Get the single instance of this class +
get() - +Static method in class org.newdawn.slick.opengl.CursorLoader +
Retrieve the single instance of this loader - convinient huh? +
get() - +Static method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get the single instance of this texture loader +
get() - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Get the renderer to be used when accessing GL +
get(int) - +Method in class org.newdawn.slick.util.xml.XMLElementList +
Get the element at a specified index +
get2Fold(int) - +Static method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get the closest greater power of 2 to the fold number +
getAbsoluteMouseX() - +Method in class org.newdawn.slick.Input +
Get the absolute x position of the mouse cursor within the container +
getAbsoluteMouseY() - +Method in class org.newdawn.slick.Input +
Get the absolute y position of the mouse cursor within the container +
getAIF(String) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified AIF file +
getAIF(InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified AIF file +
getAIF(String, InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified AIF file +
getAlpha() - +Method in class org.newdawn.slick.Color +
Get the alpha byte component of this colour +
getAlpha() - +Method in class org.newdawn.slick.Image +
Get the alpha value to use when rendering this image +
getAlphaByte() - +Method in class org.newdawn.slick.Color +
Get the alpha byte component of this colour +
getAlwaysRender() - +Method in class org.newdawn.slick.GameContainer +
True if this container should render when it has focus +
getAmplitude() - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Gets the amplitude of the wobble effect. +
getAmplitude() - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Gets the amplitude of the wobble effect. +
getAnimatedCursor(String, int, int, int, int, int[]) - +Method in class org.newdawn.slick.opengl.CursorLoader +
Get a cursor based on a image reference on the classpath. +
getApplet() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Returns the Applet Object +
getArea(int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.Graphics +
Get an ara of pixels as RGBA values into a buffer +
getAscent() - +Method in class org.newdawn.slick.UnicodeFont +
Gets the distance from the baseline to the y drawing location. +
getAsColor(String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Get an attribute value converted to a color. +
getAsFloat(String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Get an attribute converted to a float value +
getAspectRatio() - +Method in class org.newdawn.slick.GameContainer +
Get the aspect ratio of the screen +
getAsReference(String) - +Static method in class org.newdawn.slick.svg.inkscape.Util +
Get the attribute value as a reference to another entity +
getAsReference(String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Get the attribute value as a reference to another entity +
getAttribute(String) - +Method in class org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData +
  +
getAttribute(String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Get the attribtue value for a given attribute +
getAttribute(String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element +
getAttribute(String, String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element +
getAttributeNames() - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the names of the attributes specified on this element +
getAudio(String, InputStream) - +Static method in class org.newdawn.slick.openal.AudioLoader +
Get audio data in a playable state by loading the complete audio into + memory. +
getAxisCount(int) - +Method in class org.newdawn.slick.Input +
Get the number of axis that are avaiable on a given controller +
getAxisName(int, int) - +Method in class org.newdawn.slick.Input +
Get the name of the axis with the given index +
getAxisValue(int, int) - +Method in class org.newdawn.slick.Input +
Get the value of the axis with the given index +
getBackground() - +Method in class org.newdawn.slick.Graphics +
Get the current graphics context background color +
getBlendingMode() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get the blending mode in use +
getBlue() - +Method in class org.newdawn.slick.Color +
Get the blue byte component of this colour +
getBlueByte() - +Method in class org.newdawn.slick.Color +
Get the blue byte component of this colour +
getBlurKernelSize() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the size of the kernel used to apply the blur +
getBlurPasses() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the number of passes to apply the kernel for blurring +
getBooleanAttribute(String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as a boolean. +
getBooleanAttribute(String, boolean) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as a boolean. +
getBottomColor() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Get the colour at the bottom of the graident +
getBoundingCircleRadius() - +Method in class org.newdawn.slick.geom.Shape +
Get the radius of a circle that can completely enclose this shape. +
getBufferID() - +Method in interface org.newdawn.slick.openal.Audio +
Get the ID of the OpenAL buffer holding this data (if any). +
getBufferID() - +Method in class org.newdawn.slick.openal.AudioImpl +
Get the ID of the OpenAL buffer holding this data (if any). +
getBufferID() - +Method in class org.newdawn.slick.openal.NullAudio +
  +
getBuildVersion() - +Static method in class org.newdawn.slick.GameContainer +
Get the build number of slick +
getCenter() - +Method in class org.newdawn.slick.geom.Circle +
Get the coordinates of the center of the circle +
getCenter() - +Method in class org.newdawn.slick.geom.Shape +
Get the point closet to the center of all the points in this Shape +
getCenterOfRotationX() - +Method in class org.newdawn.slick.Image +
Get the x component of the center of rotation of this image +
getCenterOfRotationY() - +Method in class org.newdawn.slick.Image +
Get the y component of the center of rotation of this image +
getCenterX() - +Method in class org.newdawn.slick.geom.Circle +
Get the x coordinate of the centre of the circle +
getCenterX() - +Method in class org.newdawn.slick.geom.Shape +
Get the x center of this shape. +
getCenterY() - +Method in class org.newdawn.slick.geom.Circle +
Get the y coordinate of the centre of the circle +
getCenterY() - +Method in class org.newdawn.slick.geom.Shape +
Get the y center of this shape. +
getChannels() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
getChildren() - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the complete list of children for this node +
getChildrenByName(String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get a list of children with a given element name +
getClip() - +Method in class org.newdawn.slick.Graphics +
Return the currently applied clipping rectangle +
getClosestPoint(Vector2f, Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Get the closest point on the line to a given point +
getCodePoint() - +Method in class org.newdawn.slick.font.Glyph +
The unicode codepoint the glyph represents. +
getColor(int, int) - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
getColor() - +Method in class org.newdawn.slick.font.effects.ColorEffect +
Get the colour being applied by this effect +
getColor() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Get the colour of the outline being drawn +
getColor() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the colour of the shadow generated +
getColor() - +Method in class org.newdawn.slick.Graphics +
Get the color in use by this graphics context +
getColor(int, int) - +Method in class org.newdawn.slick.Image +
Get the colour of a pixel at a specified location in this image +
getColor() - +Method in class org.newdawn.slick.particles.Particle +
Get the color of this particle +
getColor() - +Method in class org.newdawn.slick.util.LocatedImage +
Get the colour filter being applied +
getColorAt(float) - +Method in class org.newdawn.slick.svg.Gradient +
Get the intepolated colour at the given location on the gradient +
getContainer() - +Method in class org.newdawn.slick.AppletGameContainer +
Get the GameContainer providing this applet +
getContainer() - +Method in class org.newdawn.slick.CanvasGameContainer +
Get the GameContainer providing this canvas +
getContainer() - +Method in class org.newdawn.slick.state.StateBasedGame +
Get the container holding this game +
getContent() - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the text content of the element, i.e. +
getControllerCount() - +Method in class org.newdawn.slick.Input +
Get a count of the number of controlles available +
getControlsFor(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Get a list of the registered controls (@see Control) that can cause a + particular command to be invoked +
getCoordFor(float, float) - +Method in interface org.newdawn.slick.geom.TexCoordGenerator +
Get the texture coordinate for a given render position +
getCoordFor(float, float) - +Method in class org.newdawn.slick.svg.LinearGradientFill +
  +
getCoordFor(float, float) - +Method in class org.newdawn.slick.svg.RadialGradientFill +
  +
getCornerRadius() - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Get the radius for each corner. +
getCost(TileBasedMap, Mover, int, int, int, int) - +Method in interface org.newdawn.slick.util.pathfinding.AStarHeuristic +
Get the additional heuristic cost of the given tile. +
getCost(TileBasedMap, Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic +
  +
getCost(TileBasedMap, Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic +
  +
getCost(TileBasedMap, Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic +
  +
getCost() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the cost to get to this node at the moment +
getCost(PathFindingContext, int, int) - +Method in interface org.newdawn.slick.util.pathfinding.TileBasedMap +
Get the cost of moving through the given tile. +
getCurrentColor() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
getCurrentColor() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Get the current colour being rendered +
getCurrentColor() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
getCurrentFrame() - +Method in class org.newdawn.slick.Animation +
Get the image associated with the current animation frame +
getCurrentMusicVolume() - +Method in class org.newdawn.slick.openal.SoundStore +
Get the volume scalar of the music that is currently playing. +
getCurrentState() - +Method in class org.newdawn.slick.state.StateBasedGame +
Get the state the game is currently in +
getCurrentStateID() - +Method in class org.newdawn.slick.state.StateBasedGame +
Get the ID of the state the game is currently in +
getCurrentX() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Get the X coordinate of the node currently being evaluated +
getCurrentY() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Get the Y coordinate of the node currently being evaluated +
getCursor(String, int, int) - +Method in class org.newdawn.slick.opengl.CursorLoader +
Get a cursor based on a image reference on the classpath +
getCursor(ByteBuffer, int, int, int, int) - +Method in class org.newdawn.slick.opengl.CursorLoader +
Get a cursor based on a set of image data +
getCursor(ImageData, int, int) - +Method in class org.newdawn.slick.opengl.CursorLoader +
Get a cursor based on a set of image data +
getCurve() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
The list of data points to interpolate between +
getData(InputStream) - +Method in class org.newdawn.slick.openal.OggDecoder +
Get the data out of an OGG file +
getData() - +Method in class org.newdawn.slick.svg.Figure +
Get the data associated with this figure +
getDefaultFont() - +Method in class org.newdawn.slick.GameContainer +
Get the default system font +
getDefaultFont() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the default system font +
getDelta() - +Method in class org.newdawn.slick.GameContainer +
Retrieve the time taken to render the last frame, i.e. +
getDepth() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getDepth() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getDepth() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getDepth() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the last bit depth read from a TGA +
getDepth() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getDepth() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getDepth() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getDescent() - +Method in class org.newdawn.slick.UnicodeFont +
Gets the distance from the baseline to the bottom of most alphanumeric characters + with descenders. +
getDescription() - +Method in interface org.newdawn.slick.loading.DeferredResource +
Get a description of the resource to be loaded +
getDescription() - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
getDescription() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getDetail() - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Gets the detail of the wobble effect. +
getDoubleAttribute(String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as an double. +
getDoubleAttribute(String, double) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as an double. +
getDuration(int) - +Method in class org.newdawn.slick.Animation +
Get the duration of a particular frame +
getDurations() - +Method in class org.newdawn.slick.Animation +
Get the durations of all the frames in this animation +
getDX() - +Method in class org.newdawn.slick.geom.Line +
Get the x direction of this line +
getDY() - +Method in class org.newdawn.slick.geom.Line +
Get the y direction of this line +
getEffects() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getEffects() - +Method in class org.newdawn.slick.UnicodeFont +
Returns a list of Effects that will be applied + to the glyphs. +
getElement() - +Method in class org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData +
Returns the XML element that is wrapped by this instance. +
getEmitter() - +Method in class org.newdawn.slick.particles.Particle +
Get the emitter that owns this particle +
getEmitter(int) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get an emitter a specified index int he list contained within this system +
getEmitterCount() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get the number of emitters applied to the system +
getEnd() - +Method in class org.newdawn.slick.fills.GradientFill +
Get the position of the end control point +
getEnd() - +Method in class org.newdawn.slick.geom.Line +
Get the end point of the line +
getEndColor() - +Method in class org.newdawn.slick.fills.GradientFill +
Get the colour at the end control point +
getFigure(int) - +Method in class org.newdawn.slick.svg.Diagram +
Get the figure at a given index +
getFigure(int) - +Method in class org.newdawn.slick.svg.SVGMorph +
  +
getFigureByID(String) - +Method in class org.newdawn.slick.svg.Diagram +
Get a figure by a given ID +
getFigureCount() - +Method in class org.newdawn.slick.svg.Diagram +
Get the number of figures in the diagram +
getFigureCount() - +Method in class org.newdawn.slick.svg.SVGMorph +
  +
getFilter() - +Method in class org.newdawn.slick.font.effects.FilterEffect +
Get the filter being applied by this effect +
getFilter() - +Method in class org.newdawn.slick.Image +
Get the OpenGL image filter in use +
getFirstInOpen() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Get the first element from the open list. +
getFlippedCopy(boolean, boolean) - +Method in class org.newdawn.slick.BigImage +
  +
getFlippedCopy(boolean, boolean) - +Method in class org.newdawn.slick.Image +
Get a copy image flipped on potentially two axis +
getFont() - +Method in class org.newdawn.slick.Graphics +
Get the current font +
getFont() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the TrueTypeFont for this UnicodeFont. +
getFontFile() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the path to the TTF file for this UnicodeFont, or null. +
getFontSize() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getFPS() - +Method in class org.newdawn.slick.GameContainer +
Get the current recorded FPS (frames per second) +
getFrame() - +Method in class org.newdawn.slick.Animation +
Get the index of the current frame +
getFrameCount() - +Method in class org.newdawn.slick.Animation +
Get the number of frames that are in the animation +
getFullImage() - +Method in class org.newdawn.slick.PackedSpriteSheet +
Get the full image contaning all the sprites/sections +
getGlyphPageHeight() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getGlyphPageHeight() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the height of the backing textures. +
getGlyphPages() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the GlyphPages for this UnicodeFont. +
getGlyphPageWidth() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getGlyphPageWidth() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the width of the backing textures. +
getGlyphs() - +Method in class org.newdawn.slick.font.GlyphPage +
Returns the glyphs stored on this page. +
getGradient(String) - +Method in class org.newdawn.slick.svg.Diagram +
Get the gradient defined in this document +
getGraphics() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
getGraphics() - +Method in class org.newdawn.slick.GameContainer +
Get the graphics context used by this container. +
getGraphics() - +Method in class org.newdawn.slick.Image +
Get a graphics context that can be used to draw to this image +
getGraphicsForImage(Image) - +Static method in class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
Get a graphics context for a particular image +
getGreen() - +Method in class org.newdawn.slick.Color +
Get the green byte component of this colour +
getGreenByte() - +Method in class org.newdawn.slick.Color +
Get the green byte component of this colour +
getHeight(String) - +Method in class org.newdawn.slick.AngelCodeFont +
  +
getHeight() - +Method in class org.newdawn.slick.Animation +
Get the height of the current frame +
getHeight(String) - +Method in interface org.newdawn.slick.Font +
Get the height of the given string +
getHeight() - +Method in class org.newdawn.slick.font.Glyph +
The height of the glyph's image. +
getHeight() - +Method in class org.newdawn.slick.GameContainer +
Get the height of the game canvas +
getHeight() - +Method in class org.newdawn.slick.geom.Rectangle +
Get the height of the box +
getHeight() - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Get the height of this rectangle. +
getHeight() - +Method in class org.newdawn.slick.geom.Shape +
Get the height of the shape +
getHeight() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Get the height of the component +
getHeight() - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
getHeight() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the height of the game canvas +
getHeight() - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
getHeight() - +Method in class org.newdawn.slick.gui.TextField +
Get the height of the component +
getHeight() - +Method in class org.newdawn.slick.Image +
Get the height of this image +
getHeight() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getHeight() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the last height read from a TGA +
getHeight() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.PNGDecoder +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getHeight() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the height of the physical texture +
getHeight() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getHeight() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getHeight(String) - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
getHeight() - +Method in class org.newdawn.slick.svg.Diagram +
Get the height of the diagram +
getHeight() - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the height of the map +
getHeight() - +Method in class org.newdawn.slick.TrueTypeFont +
Get the font's height +
getHeight(String) - +Method in class org.newdawn.slick.TrueTypeFont +
Get the height of a String +
getHeight(String) - +Method in class org.newdawn.slick.UnicodeFont +
  +
getHeight() - +Method in class org.newdawn.slick.util.LocatedImage +
Get the height the image will be drawn at +
getHeight() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the height of the space +
getHeightInTiles() - +Method in interface org.newdawn.slick.util.pathfinding.TileBasedMap +
Get the height of the tile map. +
getHeuristicCost(Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Get the heuristic cost for the given location. +
getHorizontalCount() - +Method in class org.newdawn.slick.SpriteSheet +
Get the number of sprites across the sheet +
getHorizontalImageCount() - +Method in class org.newdawn.slick.BigImage +
Get a count of the number images that build this image up horizontally +
getID() - +Method in class org.newdawn.slick.state.BasicGameState +
  +
getID() - +Method in interface org.newdawn.slick.state.GameState +
Get the ID of this state +
getID() - +Method in class org.newdawn.slick.tests.states.TestState1 +
  +
getID() - +Method in class org.newdawn.slick.tests.states.TestState2 +
  +
getID() - +Method in class org.newdawn.slick.tests.states.TestState3 +
  +
getImage(int) - +Method in class org.newdawn.slick.Animation +
Get the image assocaited with a given frame index +
getImage() - +Method in class org.newdawn.slick.font.Glyph +
The image to use for this glyph. +
getImage() - +Method in class org.newdawn.slick.font.GlyphPage +
Returns the backing texture for this page. +
getImage() - +Method in class org.newdawn.slick.ImageBuffer +
Get an image generated based on this buffer +
getImage(int) - +Method in class org.newdawn.slick.ImageBuffer +
Get an image generated based on this buffer +
getImage() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
getImage() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
getImage() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Get the image to draw for each particle +
getImage() - +Method in class org.newdawn.slick.svg.Gradient +
Get the image generated for this gradient +
getImageBufferData() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getImageBufferData() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getImageBufferData() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getImageBufferData() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the store image +
getImageBufferData() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getImageBufferData() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getImageBufferData() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getImageDataFor(String) - +Static method in class org.newdawn.slick.opengl.ImageDataFactory +
Create an image data that is appropriate for the reference supplied +
getImageHeight() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getImageHeight() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the height of the original image +
getImageHeight() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getImageName() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
The name of the image to load +
getImageWidth() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getImageWidth() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the width of the original image +
getImageWidth() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getInput() - +Method in class org.newdawn.slick.GameContainer +
Get the input system +
getInput() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the input system +
getIntAttribute(String) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as an integer. +
getIntAttribute(String, int) - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the value specified for a given attribute on this element as an integer. +
getInvertedCopy() - +Method in class org.newdawn.slick.fills.GradientFill +
Get an inverted copy of the gradient +
getJoin() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Get the join type as indicated by @see BasicStroke +
getKeyName(int) - +Static method in class org.newdawn.slick.Input +
Get the character representation of the key identified by the specified code +
getLastBind() - +Static method in class org.newdawn.slick.opengl.TextureImpl +
Retrieve the last texture bound through the texture interface +
getLayerCount() - +Method in class org.newdawn.slick.tiled.TiledMap +
Retrieve a count of the number of layers available +
getLayerIndex(String) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the index of the layer with given name +
getLayerProperty(int, String, String) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get a property given to a particular layer. +
getLeading() - +Method in class org.newdawn.slick.UnicodeFont +
Gets the extra distance between the descent of one line of text to the ascent of the next. +
getLength() - +Method in class org.newdawn.slick.openal.OggInputStream +
Get the number of bytes on the stream +
getLength() - +Method in class org.newdawn.slick.util.pathfinding.Path +
Get the length of the path, i.e. +
getLife() - +Method in class org.newdawn.slick.particles.Particle +
Get the life remaining in the particle in milliseconds +
getLine(Shape, int, int) - +Method in class org.newdawn.slick.geom.GeomUtil +
Get a line between two points in a shape +
getLine(Shape, float, float, int) - +Method in class org.newdawn.slick.geom.GeomUtil +
Get a line between two points in a shape +
getLineHeight() - +Method in class org.newdawn.slick.AngelCodeFont +
  +
getLineHeight() - +Method in interface org.newdawn.slick.Font +
Get the maximum height of any line drawn by this font +
getLineHeight() - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
getLineHeight() - +Method in class org.newdawn.slick.TrueTypeFont +
Get the font's line height +
getLineHeight() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the distance from one line of text to the next. +
getLineStripRenderer() - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Get the line strip renderer to use +
getLineWidth() - +Method in class org.newdawn.slick.Graphics +
Get the width of lines being drawn in this context +
getLink(int) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the link from this space to another at a particular index +
getLinkCount() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the number of links +
getLocation() - +Method in class org.newdawn.slick.geom.Shape +
Get the top-left location of this shape. +
getMapProperty(String, String) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get a property given to the map. +
getMatrixPosition() - +Method in class org.newdawn.slick.geom.Transform +
Get an array representing this Transform. +
getMax() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Get the maxmimum value possible in this data set +
getMax() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Get the maximum value for this range +
getMaxSingleImageSize() - +Static method in class org.newdawn.slick.BigImage +
Get the maximum size of an image supported by the underlying + hardware. +
getMaxX() - +Method in class org.newdawn.slick.geom.Shape +
Get the right most point of this shape. +
getMaxY() - +Method in class org.newdawn.slick.geom.Shape +
Get the bottom most point of this shape. +
getMessage() - +Method in exception org.newdawn.slick.opengl.CompositeIOException +
  +
getMetaData() - +Method in class org.newdawn.slick.svg.NonGeometricData +
Get the meta data assigned to the figure. +
getMin() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Get the minimum value possible in this data set +
getMin() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Get the minimum value for this range +
getMinX() - +Method in class org.newdawn.slick.geom.Shape +
Get the left most point of this shape. +
getMinY() - +Method in class org.newdawn.slick.geom.Shape +
Get the top most point of this shape. +
getMOD(String) - +Method in class org.newdawn.slick.openal.SoundStore +
Get a MOD sound (mod/xm etc) +
getMOD(InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get a MOD sound (mod/xm etc) +
getMOD(String, InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get a MOD sound (mod/xm etc) +
getMouseX() - +Method in class org.newdawn.slick.Input +
Get the x position of the mouse cursor +
getMouseY() - +Method in class org.newdawn.slick.Input +
Get the y position of the mouse cursor +
getMovementCost(Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Get the cost to move through a given location +
getMover() - +Method in class org.newdawn.slick.tests.NavMeshTest +
  +
getMover() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
  +
getMover() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Path finding context implementation +
getMover() - +Method in interface org.newdawn.slick.util.pathfinding.PathFindingContext +
Get the object being moved along the path if any +
getMusicVolume() - +Method in class org.newdawn.slick.GameContainer +
Retrieve the current default volume for music +
getMusicVolume() - +Method in class org.newdawn.slick.openal.SoundStore +
Get the volume for music +
getName() - +Method in class org.newdawn.slick.command.BasicCommand +
Get the name given for this basic command +
getName() - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect.Value +
Returns the name of the value. +
getName() - +Method in class org.newdawn.slick.Image +
Return a meaningful tagging name that has been assigned to this image. +
getName() - +Method in class org.newdawn.slick.util.xml.XMLElement +
Get the name of this element +
getNewParticle(ParticleEmitter, float) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get a new particle from the system. +
getNext() - +Method in class org.newdawn.slick.loading.LoadingList +
Get the next resource that requries loading +
getNextTransitionPair() - +Method in class org.newdawn.slick.tests.TransitionTest +
Get the next transition pair that we'lluse +
getNormal(int) - +Method in class org.newdawn.slick.geom.Shape +
Get the combine normal of a given point +
getNormal() - +Method in class org.newdawn.slick.geom.Vector2f +
The normal of the vector +
getNumber(String) - +Method in class org.newdawn.slick.SavedState +
Get number stored at given location +
getNumber(String, double) - +Method in class org.newdawn.slick.SavedState +
Get number stored at given location +
getNumComponents() - +Method in class org.newdawn.slick.opengl.PNGDecoder.Format +
  +
getObject() - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect.Value +
Gets the object representation of the value. +
getObjectCount(int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the number of objects of a specific object-group. +
getObjectGroupCount() - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the number of object-groups defined in the map. +
getObjectHeight(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the height of a specific object from a specific group. +
getObjectImage(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Retrieve the image source property for a given object +
getObjectName(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Return the name of a specific object from a specific group. +
getObjectProperty(int, int, String, String) - +Method in class org.newdawn.slick.tiled.TiledMap +
Looks for a property with the given name and returns it's value. +
getObjectType(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Return the type of an specific object from a specific group. +
getObjectWidth(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the width of a specific object from a specific group. +
getObjectX(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the x-coordinate of a specific object from a specific group. +
getObjectY(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Returns the y-coordinate of a specific object from a specific group. +
getOffset() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Get the offset the gradients starts at +
getOffsetAt(Shape, float, float) - +Method in class org.newdawn.slick.fills.GradientFill +
  +
getOffsetAt(Shape, float, float) - +Method in interface org.newdawn.slick.ShapeFill +
Get the offset for a vertex at a given location based on it's shape +
getOgg(String) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified OGG file +
getOgg(InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified OGG file +
getOgg(String, InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified OGG file +
getOggStream(String) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified OGG file +
getOggStream(URL) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified OGG file +
getOpacity() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the opacity of the shadow, i.e. +
getOriginalLife() - +Method in class org.newdawn.slick.particles.Particle +
Get the original life of this particle +
getPaddingAdvanceX() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingAdvanceX() - +Method in class org.newdawn.slick.UnicodeFont +
Gets the additional amount to offset glyphs on the x axis. +
getPaddingAdvanceY() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingAdvanceY() - +Method in class org.newdawn.slick.UnicodeFont +
Gets the additional amount to offset a line of text on the y axis. +
getPaddingBottom() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingBottom() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the padding below a glyph on the GlyphPage to allow for effects to be drawn. +
getPaddingLeft() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingLeft() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn. +
getPaddingRight() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingRight() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn. +
getPaddingTop() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
getPaddingTop() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the padding above a glyph on the GlyphPage to allow for effects to be drawn. +
getParticleCount() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get the number of particles in use in this system +
getPatternDef(String) - +Method in class org.newdawn.slick.svg.Diagram +
Get a pattern definition from the diagram +
getPatternDefNames() - +Method in class org.newdawn.slick.svg.Diagram +
Get the names of the patterns defined +
getPerpendicular() - +Method in class org.newdawn.slick.geom.Vector2f +
A vector perpendicular to this vector. +
getPixel(int, int) - +Method in class org.newdawn.slick.Graphics +
Get the colour of a single pixel in this graphics context +
getPoint(int) - +Method in class org.newdawn.slick.geom.Shape +
Get a single point in this polygon +
getPointCount() - +Method in class org.newdawn.slick.geom.Shape +
Get the number of points in this polygon +
getPoints() - +Method in class org.newdawn.slick.geom.Shape +
Get the points that outline this shape. +
getPolyPoint(int) - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Get the coordinates of the point at the specified index +
getPolyPointCount() - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Get the number of points in the polygon +
getPosition() - +Method in class org.newdawn.slick.Music +
The position into the sound thats being played +
getPosition() - +Method in interface org.newdawn.slick.openal.Audio +
Return the current playing position in the sound +
getPosition() - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
getPosition() - +Method in class org.newdawn.slick.openal.MODSound +
  +
getPosition() - +Method in class org.newdawn.slick.openal.NullAudio +
  +
getPosition() - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Return the current playing position in the sound +
getPosition() - +Method in class org.newdawn.slick.openal.StreamSound +
  +
getPositionX() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get the x coordiante of the position of the system +
getPositionY() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Get the y coordiante of the position of the system +
getProperties(int) - +Method in class org.newdawn.slick.tiled.TileSet +
Get the properties for a specific tile in this tileset +
getR() - +Method in class org.newdawn.slick.svg.Gradient +
Get the radius value given for this gradient +
getRadius() - +Method in class org.newdawn.slick.geom.Circle +
Get the radius of the circle +
getRadius1() - +Method in class org.newdawn.slick.geom.Ellipse +
Get the horizontal radius of the ellipse +
getRadius2() - +Method in class org.newdawn.slick.geom.Ellipse +
Get the vertical radius of the ellipse +
getRate() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
getRed() - +Method in class org.newdawn.slick.Color +
Get the red byte component of this colour +
getRedByte() - +Method in class org.newdawn.slick.Color +
Get the red byte component of this colour +
getRemainingResources() - +Method in class org.newdawn.slick.loading.LoadingList +
Get the number of remaining resources +
getResource(String) - +Method in class org.newdawn.slick.util.ClasspathLocation +
  +
getResource(String) - +Method in class org.newdawn.slick.util.FileSystemLocation +
  +
getResource(String) - +Static method in class org.newdawn.slick.util.ResourceLoader +
Get a resource as a URL +
getResource(String) - +Method in interface org.newdawn.slick.util.ResourceLocation +
Get a resource as a URL +
getResourceAsStream(String) - +Method in class org.newdawn.slick.util.ClasspathLocation +
  +
getResourceAsStream(String) - +Method in class org.newdawn.slick.util.FileSystemLocation +
  +
getResourceAsStream(String) - +Static method in class org.newdawn.slick.util.ResourceLoader +
Get a resource +
getResourceAsStream(String) - +Method in interface org.newdawn.slick.util.ResourceLocation +
Get a resource as an input stream +
getResourceReference() - +Method in class org.newdawn.slick.Image +
Get the reference to the resource this image was loaded from, if any. +
getRGBA() - +Method in class org.newdawn.slick.ImageBuffer +
Retrieve the raw data stored within the image buffer +
getRotation() - +Method in class org.newdawn.slick.Image +
Get the current angle of rotation for this image. +
getSamples() - +Method in class org.newdawn.slick.GameContainer +
The number of samples we're attempting to performing using + hardware multisampling +
getScale() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Get the percentage scaling being applied to the gradient across the surface +
getScaledCopy(float) - +Method in class org.newdawn.slick.BigImage +
  +
getScaledCopy(int, int) - +Method in class org.newdawn.slick.BigImage +
  +
getScaledCopy(float) - +Method in class org.newdawn.slick.Image +
Get a scaled copy of this image with a uniform scale +
getScaledCopy(int, int) - +Method in class org.newdawn.slick.Image +
Get a scaled copy of this image +
getScaleY() - +Method in class org.newdawn.slick.particles.Particle +
Get the current scalar applied on the y axis +
getScratchGraphics() - +Static method in class org.newdawn.slick.font.GlyphPage +
Get the scratch graphics used to generate the page of glyphs +
getScratchImage() - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Returns an image that can be used by effects as a temp image. +
getScreenHeight() - +Method in class org.newdawn.slick.AppGameContainer +
  +
getScreenHeight() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
getScreenHeight() - +Method in class org.newdawn.slick.GameContainer +
Get the height of the standard screen resolution +
getScreenHeight() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the height of the standard screen resolution +
getScreenWidth() - +Method in class org.newdawn.slick.AppGameContainer +
  +
getScreenWidth() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
getScreenWidth() - +Method in class org.newdawn.slick.GameContainer +
Get the width of the standard screen resolution +
getScreenWidth() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the width of the standard screen resolution +
getSearchDistance() - +Method in class org.newdawn.slick.tests.NavMeshTest +
  +
getSearchDistance() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
  +
getSearchDistance() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Path finding context implementation +
getSearchDistance() - +Method in interface org.newdawn.slick.util.pathfinding.PathFindingContext +
Get the distance that has been searched to reach this point +
getShape() - +Method in class org.newdawn.slick.font.Glyph +
The shape to use to draw this glyph. +
getShape() - +Method in class org.newdawn.slick.svg.Figure +
Get the shape of this figure +
getSharedContext() - +Static method in class org.newdawn.slick.GameContainer +
Get the context shared by all containers +
getSize() - +Method in class org.newdawn.slick.particles.Particle +
Get the size of this particle +
getSoundVolume() - +Method in class org.newdawn.slick.GameContainer +
Retrieve the current default volume for sound fx +
getSoundVolume() - +Method in class org.newdawn.slick.openal.SoundStore +
Get the volume for sounds +
getSource() - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Get the source of this stream +
getSource(int) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the ID of a given source +
getSourceCount() - +Method in class org.newdawn.slick.openal.SoundStore +
Retrieve the number of OpenAL sound sources that have been + determined at initialisation. +
getSourceX() - +Method in class org.newdawn.slick.tests.NavMeshTest +
  +
getSourceX() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
  +
getSourceX() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Path finding context implementation +
getSourceX() - +Method in interface org.newdawn.slick.util.pathfinding.PathFindingContext +
Get the x coordinate of the source location +
getSourceY() - +Method in class org.newdawn.slick.tests.NavMeshTest +
  +
getSourceY() - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
  +
getSourceY() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
Path finding context implementation +
getSourceY() - +Method in interface org.newdawn.slick.util.pathfinding.PathFindingContext +
Get the y coordinate of the source location +
getSpace(int) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Get the space at a given index +
getSpaceCount() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Get the number of spaces that are in the mesh +
getSpaceWidth() - +Method in class org.newdawn.slick.UnicodeFont +
Returns the width of the space character. +
getSpeed() - +Method in class org.newdawn.slick.Animation +
Returns the current speed of the animation. +
getSprite(String) - +Method in class org.newdawn.slick.PackedSpriteSheet +
Get a single named sprite from the sheet +
getSprite(int, int) - +Method in class org.newdawn.slick.SpriteSheet +
Get a sprite at a particular cell on the sprite sheet +
getSprite(String) - +Method in class org.newdawn.slick.XMLPackedSheet +
Get a sprite by it's given name +
getSpriteSheet(String) - +Method in class org.newdawn.slick.PackedSpriteSheet +
Get a sprite sheet that has been packed into the greater image +
getStart() - +Method in class org.newdawn.slick.fills.GradientFill +
Get the position of the start control point +
getStart() - +Method in class org.newdawn.slick.geom.Line +
Get the start point of the line +
getStartColor() - +Method in class org.newdawn.slick.fills.GradientFill +
Get the colour at the start control point +
getState(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
Get a state based on it's identifier +
getStateCount() - +Method in class org.newdawn.slick.state.StateBasedGame +
Get the number of states that have been added to this game +
getStep(int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Get the step at a given index in the path +
getStreamingAudio(String, URL) - +Static method in class org.newdawn.slick.openal.AudioLoader +
Get audio data in a playable state by setting up a stream that can be piped into + OpenAL - i.e. +
getString() - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect.Value +
Gets the string representation of the value. +
getString(String) - +Method in class org.newdawn.slick.SavedState +
Get the String at the given location +
getString(String, String) - +Method in class org.newdawn.slick.SavedState +
Get the String at the given location +
getStroke() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Get the stroke being used to draw the outline +
getSubImage(int, int, int, int) - +Method in class org.newdawn.slick.BigImage +
  +
getSubImage(int, int) - +Method in class org.newdawn.slick.BigImage +
Get a sub-image that builds up this image. +
getSubImage(int, int, int, int) - +Method in class org.newdawn.slick.Image +
Get a sub-part of this image. +
getSubImage(int, int) - +Method in class org.newdawn.slick.SpriteSheet +
Get the sub image cached in this sprite sheet +
getSupportedFormats() - +Static method in class org.newdawn.slick.imageout.ImageOut +
Get a list of supported formats +
getSupportedFormats() - +Static method in class org.newdawn.slick.imageout.ImageWriterFactory +
Get the list of support format strings for this factory +
getTarget() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Link +
Get the space this object links to +
getTexHeight() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getTexHeight() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getTexHeight() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getTexHeight() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the ast required texture height for a loaded image +
getTexHeight() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getTexHeight() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getTexHeight() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getText() - +Method in class org.newdawn.slick.gui.TextField +
Get the value in the text field +
getTexture() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
getTexture() - +Method in class org.newdawn.slick.Image +
Get the OpenGL texture holding this image +
getTexture(File, boolean, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a specific file +
getTexture(File, boolean, int, int[]) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a specific file +
getTexture(String, boolean, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a resource location +
getTexture(String, boolean, int, int[]) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a resource location +
getTexture(InputStream, String, boolean, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a image file +
getTexture(InputStream, String, boolean, int, int[]) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a image file +
getTexture(ImageData, int) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Get a texture from a image file +
getTexture(String, InputStream) - +Static method in class org.newdawn.slick.opengl.TextureLoader +
Load a texture with a given format from the supplied input stream +
getTexture(String, InputStream, boolean) - +Static method in class org.newdawn.slick.opengl.TextureLoader +
Load a texture with a given format from the supplied input stream +
getTexture(String, InputStream, int) - +Static method in class org.newdawn.slick.opengl.TextureLoader +
Load a texture with a given format from the supplied input stream +
getTexture(String, InputStream, boolean, int) - +Static method in class org.newdawn.slick.opengl.TextureLoader +
Load a texture with a given format from the supplied input stream +
getTexture(String, BufferedImage) - +Static method in class org.newdawn.slick.util.BufferedImageUtil +
Load a texture +
getTexture(String, BufferedImage, int) - +Static method in class org.newdawn.slick.util.BufferedImageUtil +
Load a texture +
getTexture(String, BufferedImage, int, int, int, int) - +Static method in class org.newdawn.slick.util.BufferedImageUtil +
Load a texture into OpenGL from a BufferedImage +
getTextureData() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getTextureData() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the pixel data from the card for this texture +
getTextureData() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getTextureHeight() - +Method in class org.newdawn.slick.Image +
Get the height in texels into the source texture +
getTextureHeight() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getTextureHeight() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the height of the actual texture +
getTextureHeight() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getTextureID() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getTextureID() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the OpenGL texture ID for this texture +
getTextureID() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getTextureOffsetX() - +Method in class org.newdawn.slick.Image +
Get the x offset in texels into the source texture +
getTextureOffsetY() - +Method in class org.newdawn.slick.Image +
Get the y offset in texels into the source texture +
getTextureRef() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getTextureRef() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the reference from which this texture was loaded +
getTextureRef() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getTextureWidth() - +Method in class org.newdawn.slick.Image +
Get the width in texels into the source texture +
getTextureWidth() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getTextureWidth() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the width of the actual texture +
getTextureWidth() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getTexWidth() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getTexWidth() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getTexWidth() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getTexWidth() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the last required texture width for a loaded image +
getTexWidth() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getTexWidth() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getTexWidth() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getTheta() - +Method in class org.newdawn.slick.geom.Vector2f +
Get the angle this vector is at +
getTile(int, int) - +Method in class org.newdawn.slick.BigImage +
Get a sub tile of this big image. +
getTileHeight() - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the height of a single tile +
getTileHeight() - +Method in class org.newdawn.slick.tiled.TileSet +
Get the height of each tile in this set +
getTileID(int, int) - +Method in class org.newdawn.slick.tiled.Layer +
Get the gloal ID of the tile at the specified location in this layer +
getTileId(int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the global ID of a tile at specified location in the map +
getTileImage(int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Gets the Image used to draw the tile at the given x and y coordinates. +
getTileMargin() - +Method in class org.newdawn.slick.tiled.TileSet +
Get the margin around tiles in this set +
getTileProperty(int, String, String) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get a propety given to a particular tile. +
getTileSet(int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get a tileset at a particular index in the list of sets for this map +
getTileSetByGID(int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Get a tileset by a given global ID +
getTileSetCount() - +Method in class org.newdawn.slick.tiled.TiledMap +
Retrieve the number of tilesets available in this map +
getTilesLocation() - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the location of the tile images specified +
getTileSpacing() - +Method in class org.newdawn.slick.tiled.TileSet +
Get the spacing between tiles in this set +
getTileWidth() - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the width of a single tile +
getTileWidth() - +Method in class org.newdawn.slick.tiled.TileSet +
Get the width of each tile in this set +
getTileX(int) - +Method in class org.newdawn.slick.tiled.TileSet +
Get the x position of a tile on this sheet +
getTileY(int) - +Method in class org.newdawn.slick.tiled.TileSet +
Get the y position of a tile on this sheet +
getTime() - +Method in class org.newdawn.slick.GameContainer +
Get the accurate system time +
getTime() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the accurate system time +
getTitle() - +Method in class org.newdawn.slick.BasicGame +
  +
getTitle() - +Method in interface org.newdawn.slick.Game +
Get the title of this game +
getTitle() - +Method in class org.newdawn.slick.ScalableGame +
  +
getTitle() - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
getTopColor() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Get the colour at the top of the graident +
getTotalResources() - +Method in class org.newdawn.slick.loading.LoadingList +
Get the total number of resources that were in the list originally +
getTransform() - +Method in class org.newdawn.slick.svg.Figure +
Get the transform that was applied to the shape given in the SVG + to get it to it's currently state +
getTransform() - +Method in class org.newdawn.slick.svg.Gradient +
Get the transform to apply during this gradient application +
getTriangleCount() - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Get a count of the number of triangles produced +
getTriangleCount() - +Method in class org.newdawn.slick.geom.MannTriangulator +
  +
getTriangleCount() - +Method in class org.newdawn.slick.geom.NeatTriangulator +
  +
getTriangleCount() - +Method in class org.newdawn.slick.geom.OverTriangulator +
  +
getTriangleCount() - +Method in interface org.newdawn.slick.geom.Triangulator +
Get a count of the number of triangles produced +
getTrianglePoint(int, int) - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Get a point on a specified generated triangle +
getTrianglePoint(int, int) - +Method in class org.newdawn.slick.geom.MannTriangulator +
  +
getTrianglePoint(int, int) - +Method in class org.newdawn.slick.geom.NeatTriangulator +
  +
getTrianglePoint(int, int) - +Method in class org.newdawn.slick.geom.OverTriangulator +
  +
getTrianglePoint(int, int) - +Method in interface org.newdawn.slick.geom.Triangulator +
Get a point on a specified generated triangle +
getTriangles() - +Method in class org.newdawn.slick.geom.Shape +
The triangles that define the filled version of this shape +
getType() - +Method in class org.newdawn.slick.particles.Particle +
Get the type of this particle +
getType() - +Method in class org.newdawn.slick.svg.Figure +
Get the type of this figure +
getUniqueCommands() - +Method in class org.newdawn.slick.command.InputProvider +
Get the list of commands that have been registered with the provider, + i.e. +
getValue(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Get the value to use at a given time value +
getValue(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.RandomValue +
Get the currently configured value +
getValue() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.RandomValue +
get the configured value +
getValue(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.SimpleValue +
Get the currently configured value +
getValue(float) - +Method in interface org.newdawn.slick.particles.ConfigurableEmitter.Value +
get the current value that might depend from the given time +
getValues() - +Method in class org.newdawn.slick.font.effects.ColorEffect +
  +
getValues() - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect +
Returns the list of ConfigurableEffect.Values for this effect. +
getValues() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
  +
getValues() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
  +
getValues() - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
  +
getValues() - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
  +
getValues() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
  +
getVerticalCount() - +Method in class org.newdawn.slick.SpriteSheet +
Get the number of sprites down the sheet +
getVerticalImageCount() - +Method in class org.newdawn.slick.BigImage +
Get a count of the number images that build this image up vertically +
getVolume() - +Method in class org.newdawn.slick.Music +
Get the individual volume of the music +
getWAV(String) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified WAV file +
getWAV(InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified WAV file +
getWAV(String, InputStream) - +Method in class org.newdawn.slick.openal.SoundStore +
Get the Sound based on a specified WAV file +
getWavelength() - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Gets the wavelength of the wobble effect. +
getWidth(String) - +Method in class org.newdawn.slick.AngelCodeFont +
  +
getWidth() - +Method in class org.newdawn.slick.Animation +
Get the width of the current frame +
getWidth() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Get the width of the outline being drawn +
getWidth(String) - +Method in interface org.newdawn.slick.Font +
Get the width of the given string +
getWidth() - +Method in class org.newdawn.slick.font.Glyph +
The width of the glyph's image. +
getWidth() - +Method in class org.newdawn.slick.GameContainer +
Get the width of the game canvas +
getWidth() - +Method in class org.newdawn.slick.geom.Rectangle +
Get the width of the box +
getWidth() - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Get the width of this rectangle. +
getWidth() - +Method in class org.newdawn.slick.geom.Shape +
Get the width of the shape +
getWidth() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Get the width of the component +
getWidth() - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
getWidth() - +Method in interface org.newdawn.slick.gui.GUIContext +
Get the width of the game canvas +
getWidth() - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
getWidth() - +Method in class org.newdawn.slick.gui.TextField +
Get the width of the component +
getWidth() - +Method in class org.newdawn.slick.Image +
Get the width of this image +
getWidth() - +Method in class org.newdawn.slick.ImageBuffer +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.EmptyImageData +
  +
getWidth() - +Method in interface org.newdawn.slick.opengl.ImageData +
Get the last width read from a TGA +
getWidth() - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.PNGDecoder +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
getWidth() - +Method in interface org.newdawn.slick.opengl.Texture +
Get the width of the physical texture +
getWidth() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
getWidth() - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
getWidth(String) - +Method in class org.newdawn.slick.SpriteSheetFont +
  +
getWidth() - +Method in class org.newdawn.slick.svg.Diagram +
Get the width of the diagram +
getWidth() - +Method in class org.newdawn.slick.tiled.TiledMap +
Get the width of the map +
getWidth(String) - +Method in class org.newdawn.slick.TrueTypeFont +
Get the width of a given String +
getWidth(String) - +Method in class org.newdawn.slick.UnicodeFont +
  +
getWidth() - +Method in class org.newdawn.slick.util.LocatedImage +
Get the width the image will be drawn at +
getWidth() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the width of the space +
getWidthInTiles() - +Method in interface org.newdawn.slick.util.pathfinding.TileBasedMap +
Get the width of the tile map. +
getWorldClip() - +Method in class org.newdawn.slick.Graphics +
Get the last set world clip or null of the world clip isn't set +
getWriterForFormat(String) - +Static method in class org.newdawn.slick.imageout.ImageWriterFactory +
Get a Slick image writer for the given format +
getX() - +Method in class org.newdawn.slick.geom.Line +
  +
getX() - +Method in class org.newdawn.slick.geom.Shape +
Get the x location of the left side of this shape. +
getX() - +Method in class org.newdawn.slick.geom.Vector2f +
Get the x component +
getX() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Returns the position in the X coordinate +
getX() - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
getX() - +Method in class org.newdawn.slick.gui.MouseOverArea +
Returns the position in the X coordinate +
getX() - +Method in class org.newdawn.slick.gui.TextField +
Returns the position in the X coordinate +
getX() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Get the base x coordiante for spawning particles +
getX() - +Method in class org.newdawn.slick.particles.Particle +
Get the x offset of this particle +
getX() - +Method in class org.newdawn.slick.util.LocatedImage +
Get the x position at which the image will be drawn +
getX() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Link +
Get the x coordinate of the link +
getX(int) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Get the x coordinate of the given step +
getX() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the x coordinate of the top corner of the space +
getX(int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Get the x coordinate for the step at the given index +
getX() - +Method in class org.newdawn.slick.util.pathfinding.Path.Step +
Get the x coordinate of the new step +
getX1() - +Method in class org.newdawn.slick.geom.Line +
Get the x coordinate of the start point +
getX1() - +Method in class org.newdawn.slick.svg.Gradient +
Get the first x value given for this gradient (cx in the case of radial) +
getX2() - +Method in class org.newdawn.slick.geom.Line +
Get the x coordinate of the end point +
getX2() - +Method in class org.newdawn.slick.svg.Gradient +
Get the second x value given for this gradient (fx in the case of radial) +
getXDistance() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the distance on the X axis from the text the shadow should + be generated at +
getY() - +Method in class org.newdawn.slick.geom.Line +
  +
getY() - +Method in class org.newdawn.slick.geom.Shape +
Get the y position of the top of this shape. +
getY() - +Method in class org.newdawn.slick.geom.Vector2f +
Get the y component +
getY() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Returns the position in the Y coordinate +
getY() - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
getY() - +Method in class org.newdawn.slick.gui.MouseOverArea +
Returns the position in the Y coordinate +
getY() - +Method in class org.newdawn.slick.gui.TextField +
Returns the position in the Y coordinate +
getY() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Get the base y coordiante for spawning particles +
getY() - +Method in class org.newdawn.slick.particles.Particle +
Get the y offset of this particle +
getY() - +Method in class org.newdawn.slick.util.LocatedImage +
Get the y position at which the image will be drawn +
getY() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Link +
Get the y coordinate of the link +
getY(int) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Get the y coordinate of the given step +
getY() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the y coordinate of the top corner of the space +
getY(int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Get the y coordinate for the step at the given index +
getY() - +Method in class org.newdawn.slick.util.pathfinding.Path.Step +
Get the y coordinate of the new step +
getY1() - +Method in class org.newdawn.slick.geom.Line +
Get the y coordinate of the start point +
getY1() - +Method in class org.newdawn.slick.svg.Gradient +
Get the first y value given for this gradient (cy in the case of radial) +
getY2() - +Method in class org.newdawn.slick.geom.Line +
Get the y coordinate of the end point +
getY2() - +Method in class org.newdawn.slick.svg.Gradient +
Get the second y value given for this gradient (fy in the case of radial) +
getYDistance() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Get the distance on the Y axis from the text the shadow should + be generated at +
getYOffset(String) - +Method in class org.newdawn.slick.AngelCodeFont +
Returns the distance from the y drawing location to the top most pixel of the specified text. +
getYOffset() - +Method in class org.newdawn.slick.font.Glyph +
The distance from drawing y location to top of this glyph, causing the glyph to sit + on the baseline. +
getYOffset(String) - +Method in class org.newdawn.slick.UnicodeFont +
Returns the distance from the y drawing location to the top most pixel of the + specified text. +
GL - +Static variable in class org.newdawn.slick.BigImage +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.CachedRender +
The renderer to use for all GL operations +
GL - +Variable in class org.newdawn.slick.Color +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.GameContainer +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.Graphics +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.Image +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.opengl.InternalTextureLoader +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.opengl.TextureImpl +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.particles.Particle +
The renderer to use for all GL operations +
GL - +Variable in class org.newdawn.slick.particles.ParticleSystem +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.state.transition.BlobbyTransition +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.state.transition.SelectTransition +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.state.transition.VerticalSplitTransition +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.svg.SimpleDiagramRenderer +
The renderer to use for all GL operations +
GL - +Static variable in class org.newdawn.slick.util.MaskUtil +
The renderer to use for all GL operations +
GL_ALWAYS - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_BGRA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_BLEND - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_CLAMP - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_CLIP_PLANE0 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_CLIP_PLANE1 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_CLIP_PLANE2 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_CLIP_PLANE3 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_COLOR_BUFFER_BIT - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_COLOR_CLEAR_VALUE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_COLOR_SUM_EXT - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_COMPILE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_COMPILE_AND_EXECUTE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_DEPTH_BUFFER_BIT - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_DEPTH_TEST - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_DST_ALPHA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_EQUAL - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_LINE_SMOOTH - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_LINE_STRIP - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_LINE_WIDTH - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_LINEAR - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_LINES - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_MAX_TEXTURE_SIZE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_MIRROR_CLAMP_TO_EDGE_EXT - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_MODELVIEW_MATRIX - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_MODULATE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_NEAREST - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_NOTEQUAL - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_ONE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_ONE_MINUS_DST_ALPHA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_ONE_MINUS_SRC_ALPHA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_ONE_MINUS_SRC_COLOR - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_POINT_SMOOTH - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_POINTS - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_POLYGON_SMOOTH - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_QUADS - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_RGB - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_RGBA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_RGBA16 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_RGBA8 - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_SCISSOR_TEST - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_SRC_ALPHA - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_SRC_COLOR - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_2D - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_ENV - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_ENV_MODE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_MAG_FILTER - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_MIN_FILTER - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_WRAP_S - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TEXTURE_WRAP_T - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TRIANGLE_FAN - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_TRIANGLES - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
GL_UNSIGNED_BYTE - +Static variable in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Enum - @url http://www.opengl.org/documentation +
glBegin(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glBegin(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glBegin(int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glBindTexture(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glBindTexture(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glBindTexture(int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glBlendFunc(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glBlendFunc(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glBlendFunc(int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glCallList(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glCallList(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glCallList(int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glClear(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glClear(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glClear(int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glClearColor(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glClearColor(float, float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glClearDepth(float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glClearDepth(float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glClipPlane(int, DoubleBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glClipPlane(int, DoubleBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glClipPlane(int, DoubleBuffer) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glColor4f(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glColor4f(float, float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glColor4f(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glColorMask(boolean, boolean, boolean, boolean) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glColorMask(boolean, boolean, boolean, boolean) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glColorMask(boolean, boolean, boolean, boolean) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glCopyTexImage2D(int, int, int, int, int, int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glCopyTexImage2D(int, int, int, int, int, int, int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDeleteLists(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glDeleteLists(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDeleteTextures(IntBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glDeleteTextures(IntBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDepthFunc(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glDepthFunc(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDepthMask(boolean) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glDepthMask(boolean) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDisable(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glDisable(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glDisable(int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glEnable(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glEnable(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glEnable(int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glEnd() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glEnd() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glEnd() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glEndList() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glEndList() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glEndList() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glGenLists(int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGenLists(int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glGenTextures(IntBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGenTextures(IntBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glGetError() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGetError() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glGetFloat(int, FloatBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGetFloat(int, FloatBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glGetInteger(int, IntBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGetInteger(int, IntBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glGetTexImage(int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glGetTexImage(int, int, int, int, ByteBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glLineWidth(float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glLineWidth(float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glLineWidth(float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glLoadIdentity() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glLoadIdentity() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glLoadMatrix(FloatBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glLoadMatrix(FloatBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glLoadMatrix(FloatBuffer) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glNewList(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glNewList(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glNewList(int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glPointSize(float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glPointSize(float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glPointSize(float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glPopMatrix() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glPopMatrix() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glPopMatrix() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glPushMatrix() - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glPushMatrix() - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glPushMatrix() - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glReadPixels(int, int, int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glReadPixels(int, int, int, int, int, int, ByteBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glRotatef(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glRotatef(float, float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glRotatef(float, float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glScalef(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glScalef(float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glScalef(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glScissor(int, int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glScissor(int, int, int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glScissor(int, int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glSecondaryColor3ubEXT(byte, byte, byte) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glSecondaryColor3ubEXT(byte, byte, byte) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
  +
glTexCoord2f(float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTexCoord2f(float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTexCoord2f(float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glTexEnvi(int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTexEnvi(int, int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTexEnvi(int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glTexImage2D(int, int, int, int, int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTexImage2D(int, int, int, int, int, int, int, int, ByteBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTexParameteri(int, int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTexParameteri(int, int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTexSubImage2D(int, int, int, int, int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTexSubImage2D(int, int, int, int, int, int, int, int, ByteBuffer) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTranslatef(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glTranslatef(float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glTranslatef(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
GLUtils - Class in org.newdawn.slick.opengl
A collection of utilities to allow aid interaction with the GL provider
GLUtils() - +Constructor for class org.newdawn.slick.opengl.GLUtils +
  +
glVertex2f(float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glVertex2f(float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glVertex2f(float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
glVertex3f(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
glVertex3f(float, float, float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
OpenGL Method - @url http://www.opengl.org/documentation/ +
glVertex3f(float, float, float) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
Glyph - Class in org.newdawn.slick.font
Represents the glyph in a font for a unicode codepoint.
Glyph(int, Rectangle, GlyphVector, int, UnicodeFont) - +Constructor for class org.newdawn.slick.font.Glyph +
Create a new glyph +
GlyphPage - Class in org.newdawn.slick.font
Stores a number of glyphs on a single texture.
GlyphPage(UnicodeFont, int, int) - +Constructor for class org.newdawn.slick.font.GlyphPage +
Create a new page of glyphs +
Gradient - Class in org.newdawn.slick.svg
A gradient definition from an SVG file, includes the stops, name and transform.
Gradient(String, boolean) - +Constructor for class org.newdawn.slick.svg.Gradient +
Create a new gradient definition +
GradientEffect - Class in org.newdawn.slick.font.effects
Paints glyphs with a gradient fill.
GradientEffect() - +Constructor for class org.newdawn.slick.font.effects.GradientEffect +
Default constructor for injection +
GradientEffect(Color, Color, float) - +Constructor for class org.newdawn.slick.font.effects.GradientEffect +
Create a new effect to apply a graident +
GradientFill - Class in org.newdawn.slick.fills
A fill effect used to define gradients when filling and drawing shapes.
GradientFill(float, float, Color, float, float, Color) - +Constructor for class org.newdawn.slick.fills.GradientFill +
Create a gradient fill +
GradientFill(float, float, Color, float, float, Color, boolean) - +Constructor for class org.newdawn.slick.fills.GradientFill +
Create a gradient fill +
GradientFill(Vector2f, Color, Vector2f, Color, boolean) - +Constructor for class org.newdawn.slick.fills.GradientFill +
Create a gradient fill +
GradientImageTest - Class in org.newdawn.slick.tests
A test for applying gradients to images
GradientImageTest() - +Constructor for class org.newdawn.slick.tests.GradientImageTest +
Create a new image rendering test +
GradientTest - Class in org.newdawn.slick.tests
A test for gradient fill on polygons
GradientTest() - +Constructor for class org.newdawn.slick.tests.GradientTest +
Create a new gradient test +
Graphics - Class in org.newdawn.slick
A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Graphics() - +Constructor for class org.newdawn.slick.Graphics +
Default constructor for sub-classes +
Graphics(int, int) - +Constructor for class org.newdawn.slick.Graphics +
Create a new graphics context. +
GraphicsFactory - Class in org.newdawn.slick.opengl.pbuffer
A factory to produce an appropriate render to texture graphics context based on current + hardware
GraphicsFactory() - +Constructor for class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
  +
GraphicsTest - Class in org.newdawn.slick.tests
A simple graphics test for the context allowing vector based graphics
GraphicsTest() - +Constructor for class org.newdawn.slick.tests.GraphicsTest +
Create a new test of graphics context rendering +
gravityFactor - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The factor of gravity to apply +
gray - +Static variable in class org.newdawn.slick.Color +
The fixed colour gray +
green - +Static variable in class org.newdawn.slick.Color +
The fixed colour green +
GroupProcessor - Class in org.newdawn.slick.svg.inkscape
TODO: Document this class
GroupProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.GroupProcessor +
  +
grow(float, float) - +Method in class org.newdawn.slick.geom.Rectangle +
Grow the rectangle at all edges by the given amounts. +
growthFactor - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The growth factor on the particles +
GUIContext - Interface in org.newdawn.slick.gui
The context in which GUI components are created and rendered
GUITest - Class in org.newdawn.slick.tests
A test for the GUI components available in Slick.
GUITest() - +Constructor for class org.newdawn.slick.tests.GUITest +
Create a new test of GUI rendering +
+
+

+H

+
+
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.DefsProcessor +
  +
handles(Element) - +Method in interface org.newdawn.slick.svg.inkscape.ElementProcessor +
Check if this processor handles the element specified +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.EllipseProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.GroupProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.LineProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.PathProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.PolygonProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.RectProcessor +
  +
handles(Element) - +Method in class org.newdawn.slick.svg.inkscape.UseProcessor +
  +
hasAlpha() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
hasAlpha() - +Method in class org.newdawn.slick.opengl.PNGDecoder +
  +
hasAlpha() - +Method in interface org.newdawn.slick.opengl.Texture +
Check if the texture has alpha +
hasAlpha() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
hasFocus() - +Method in class org.newdawn.slick.AppGameContainer +
  +
hasFocus() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
hasFocus() - +Method in class org.newdawn.slick.GameContainer +
Check if the game currently has focus +
hasFocus() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Check if this component currently has focus +
hashCode() - +Method in class org.newdawn.slick.Color +
  +
hashCode() - +Method in class org.newdawn.slick.command.BasicCommand +
  +
hashCode() - +Method in class org.newdawn.slick.command.KeyControl +
  +
hashCode() - +Method in class org.newdawn.slick.command.MouseButtonControl +
  +
hashCode() - +Method in class org.newdawn.slick.geom.Vector2f +
  +
hashCode() - +Method in class org.newdawn.slick.util.pathfinding.Path.Step +
  +
hasJoinedEdge(Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Check if this space has an edge that is joined with another +
hasVertex(float, float) - +Method in class org.newdawn.slick.geom.Shape +
Check if a particular location is a vertex of this polygon +
height - +Variable in class org.newdawn.slick.GameContainer +
The height of the display +
height - +Variable in class org.newdawn.slick.geom.Rectangle +
The height of the box +
height - +Variable in class org.newdawn.slick.gui.BasicComponent +
Deprecated. The height of the component +
height - +Variable in class org.newdawn.slick.Image +
The height of the image +
height - +Variable in class org.newdawn.slick.tiled.Layer +
The height of this layer +
height - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The height of this object +
height - +Variable in class org.newdawn.slick.tiled.TiledMap +
The height of the map +
height - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
The height of this layer +
height - +Variable in class org.newdawn.slick.UnicodeFont.DisplayList +
The height of the rendered text in the list +
HieroSettings - Class in org.newdawn.slick.font
Holds the settings needed to configure a UnicodeFont.
HieroSettings() - +Constructor for class org.newdawn.slick.font.HieroSettings +
Default constructor for injection +
HieroSettings(String) - +Constructor for class org.newdawn.slick.font.HieroSettings +
Create a new set of configuration from a file +
HieroSettings(InputStream) - +Constructor for class org.newdawn.slick.font.HieroSettings +
Create a new set of configuration from a file +
holes - +Variable in class org.newdawn.slick.geom.MannTriangulator +
The holes defined in the polygon +
HorizontalSplitTransition - Class in org.newdawn.slick.state.transition
Horitzonal split transition that causes the previous state to split horizontally + revealing the new state underneath.
HorizontalSplitTransition() - +Constructor for class org.newdawn.slick.state.transition.HorizontalSplitTransition +
Create a new transition +
HorizontalSplitTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.HorizontalSplitTransition +
Create a new transition +
+
+

+I

+
+
ID - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The ID of the figure +
ID - +Static variable in class org.newdawn.slick.tests.states.TestState1 +
The ID given to this state +
ID - +Static variable in class org.newdawn.slick.tests.states.TestState2 +
The ID given to this state +
ID - +Static variable in class org.newdawn.slick.tests.states.TestState3 +
The ID given to this state +
Image - Class in org.newdawn.slick
An image loaded from a file and renderable to the canvas
Image(Image) - +Constructor for class org.newdawn.slick.Image +
Create a texture as a copy of another +
Image() - +Constructor for class org.newdawn.slick.Image +
Cloning constructor - only used internally. +
Image(Texture) - +Constructor for class org.newdawn.slick.Image +
Creates an image using the specified texture +
Image(String) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(String, Color) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(String, boolean) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(String, boolean, int) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(String, boolean, int, Color) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(int, int) - +Constructor for class org.newdawn.slick.Image +
Create an empty image +
Image(int, int, int) - +Constructor for class org.newdawn.slick.Image +
Create an empty image +
Image(InputStream, String, boolean) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(InputStream, String, boolean, int) - +Constructor for class org.newdawn.slick.Image +
Create an image based on a file at the specified location +
Image(ImageData) - +Constructor for class org.newdawn.slick.Image +
Create an image from a image data source +
Image(ImageData, int) - +Constructor for class org.newdawn.slick.Image +
Create an image from a image data source. +
image - +Variable in class org.newdawn.slick.particles.Particle +
The image for this particle +
ImageBuffer - Class in org.newdawn.slick
A utility for creating images from pixel operations + + Expected usage is: + + ImageBuffer buffer = new ImageBuffer(320,200); + buffer.setRGBA(100,100,50,50,20,255); + ..
ImageBuffer(int, int) - +Constructor for class org.newdawn.slick.ImageBuffer +
  +
ImageBufferEndianTest - Class in org.newdawn.slick.tests
Quick test for endianess in image buffers
ImageBufferEndianTest() - +Constructor for class org.newdawn.slick.tests.ImageBufferEndianTest +
Create a new test +
ImageBufferTest - Class in org.newdawn.slick.tests
A test for image buffer maniupulation rendering
ImageBufferTest() - +Constructor for class org.newdawn.slick.tests.ImageBufferTest +
Create a new image buffer rendering test +
ImageCornerTest - Class in org.newdawn.slick.tests
A test for basic image rendering
ImageCornerTest() - +Constructor for class org.newdawn.slick.tests.ImageCornerTest +
Create a new image rendering test +
ImageData - Interface in org.newdawn.slick.opengl
A description of any class providing ImageData in a form suitable for OpenGL texture + creation.
ImageDataFactory - Class in org.newdawn.slick.opengl
A static utility to create the appropriate image data for a particular reference.
ImageDataFactory() - +Constructor for class org.newdawn.slick.opengl.ImageDataFactory +
  +
ImageGraphicsTest - Class in org.newdawn.slick.tests
A test for rendering to an image
ImageGraphicsTest() - +Constructor for class org.newdawn.slick.tests.ImageGraphicsTest +
Create a new image rendering test +
ImageIOImageData - Class in org.newdawn.slick.opengl
An image data provider that uses ImageIO to retrieve image data in a format + suitable for creating OpenGL textures.
ImageIOImageData() - +Constructor for class org.newdawn.slick.opengl.ImageIOImageData +
  +
ImageIOWriter - Class in org.newdawn.slick.imageout
A utility to write a Slick image out using ImageIO
ImageIOWriter() - +Constructor for class org.newdawn.slick.imageout.ImageIOWriter +
  +
ImageMemTest - Class in org.newdawn.slick.tests
A test for basic image rendering
ImageMemTest() - +Constructor for class org.newdawn.slick.tests.ImageMemTest +
Create a new image rendering test +
imageName - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The name of the image in use +
ImageOut - Class in org.newdawn.slick.imageout
A static hook to access all the Image output utilities.
ImageOut() - +Constructor for class org.newdawn.slick.imageout.ImageOut +
  +
ImageOutTest - Class in org.newdawn.slick.tests
A test for saving images
ImageOutTest() - +Constructor for class org.newdawn.slick.tests.ImageOutTest +
Create a new image rendering test +
ImageReadTest - Class in org.newdawn.slick.tests
A test for reading image data from a teture
ImageReadTest() - +Constructor for class org.newdawn.slick.tests.ImageReadTest +
Create a new image reading test +
ImageTest - Class in org.newdawn.slick.tests
A test for basic image rendering
ImageTest() - +Constructor for class org.newdawn.slick.tests.ImageTest +
Create a new image rendering test +
imageToByteBuffer(BufferedImage, boolean, boolean, int[]) - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
ImageWriter - Interface in org.newdawn.slick.imageout
The description of any class that can produce data to an output stream reprsenting + some image in memory.
ImageWriterFactory - Class in org.newdawn.slick.imageout
A factory to produce image writers based on format names
ImageWriterFactory() - +Constructor for class org.newdawn.slick.imageout.ImageWriterFactory +
  +
IMMEDIATE_RENDERER - +Static variable in class org.newdawn.slick.opengl.renderer.Renderer +
The indicator for immediate mode renderering (the default) +
ImmediateModeOGLRenderer - Class in org.newdawn.slick.opengl.renderer
The default OpenGL renderer, uses immediate mode for everything
ImmediateModeOGLRenderer() - +Constructor for class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
inClosedList(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Check if the node supplied is in the closed list +
includes(float, float) - +Method in class org.newdawn.slick.geom.Shape +
Check if the given point is part of the path that + forms this shape +
increaseTriangulation() - +Method in class org.newdawn.slick.geom.Shape +
Increase triangulation +
index - +Variable in class org.newdawn.slick.tiled.Layer +
The index of this layer +
index - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The index of this object +
index - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
The index of this group +
index - +Variable in class org.newdawn.slick.tiled.TileSet +
The index of the tile set +
indexOf(float, float) - +Method in class org.newdawn.slick.geom.Shape +
Get the index of a given point +
info(String) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log an information message +
info(String) - +Static method in class org.newdawn.slick.util.Log +
Log an information message +
info(String) - +Method in interface org.newdawn.slick.util.LogSystem +
Log an information message +
INHERIT_POINTS - +Static variable in class org.newdawn.slick.particles.Particle +
Indicates the particle should inherit it's use of points +
init() - +Method in class org.newdawn.slick.AppletGameContainer +
  +
init(GameContainer) - +Method in class org.newdawn.slick.BasicGame +
  +
init(GameContainer) - +Method in interface org.newdawn.slick.Game +
Initialise the game. +
init() - +Method in class org.newdawn.slick.Image +
Initialise internal data +
init() - +Method in class org.newdawn.slick.openal.SoundStore +
Initialise the sound effects stored. +
init(ParticleEmitter, float) - +Method in class org.newdawn.slick.particles.Particle +
Initialise the state of the particle as it's reused +
init(GameContainer) - +Method in class org.newdawn.slick.ScalableGame +
  +
init(GameContainer, StateBasedGame) - +Method in interface org.newdawn.slick.state.GameState +
Initialise the state. +
init(GameContainer) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.BlobbyTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.EmptyTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.FadeInTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.FadeOutTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.RotateTransition +
  +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.SelectTransition +
  +
init(GameState, GameState) - +Method in interface org.newdawn.slick.state.transition.Transition +
Initialise the transition +
init(GameState, GameState) - +Method in class org.newdawn.slick.state.transition.VerticalSplitTransition +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.AlphaMapTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.AnimationTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.AntiAliasTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.BigImageTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.BigSpriteSheetTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.CachedRenderTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.CanvasContainerTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.CanvasSizeTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ClipTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.CopyAreaAlphaTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.CurveTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.DeferredLoadingTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.DistanceFieldTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.DoubleClickTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.DuplicateEmitterTest +
load ressources (the particle system) and create our duplicate emitters + and place them nicely on the screen +
init(GameContainer) - +Method in class org.newdawn.slick.tests.FlashTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.FontPerformanceTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.FontTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GeomAccuracyTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GeomTest +
  +
init() - +Method in class org.newdawn.slick.tests.GeomUtilTest +
Perform the cut +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
init() - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
Perform the cut +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GradientImageTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GradientTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GraphicsTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.GUITest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageBufferEndianTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageBufferTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageCornerTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageGraphicsTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageMemTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageOutTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageReadTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ImageTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.InkscapeTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.InputProviderTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.InputTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.IsoTiledTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.KeyRepeatTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.LameTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.LineRenderTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.MorphShapeTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.MorphSVGTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.NavMeshTest +
Initialise resources and the map data +
init(GameContainer) - +Method in class org.newdawn.slick.tests.PackedSheetTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ParticleTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.PedigreeTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.PolygonTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.PureFontTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SavedStateTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ScalableTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SlickCallableTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SoundPositionTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SoundTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SoundURLTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.SpriteSheetFontTest +
  +
init(GameContainer, StateBasedGame) - +Method in class org.newdawn.slick.tests.states.TestState1 +
  +
init(GameContainer, StateBasedGame) - +Method in class org.newdawn.slick.tests.states.TestState2 +
  +
init(GameContainer, StateBasedGame) - +Method in class org.newdawn.slick.tests.states.TestState3 +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TestBox +
  +
init() - +Method in class org.newdawn.slick.tests.TestUtils +
Initialise resources +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TexturePaintTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TileMapTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TransformTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TransformTest2 +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TransparentColorTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
  +
init(GameContainer) - +Method in class org.newdawn.slick.tests.UnicodeFontTest +
  +
initApplet() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Initiliase based on Applet init +
initControllers() - +Method in class org.newdawn.slick.Input +
Initialise the controllers system +
initDisplay(int, int) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
initDisplay(int, int) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Initialise the display +
initDisplay(int, int) - +Method in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
inited - +Variable in class org.newdawn.slick.Image +
True if this image's state has been initialised +
initGL() - +Method in class org.newdawn.slick.AppletGameContainer.ContainerPanel +
Initialise GL state +
initGL() - +Method in class org.newdawn.slick.GameContainer +
Initialise the GL context +
initGL() - +Method in class org.newdawn.slick.opengl.pbuffer.FBOGraphics +
Initialise the GL context +
initGL() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
Initialise the GL context +
initGL() - +Method in class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
Initialise the GL context +
initialDistance - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The initial distance of the particles +
initialLife - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The initial life of the new pixels +
initialSize - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The initial size of the new pixels +
initImpl() - +Method in class org.newdawn.slick.BigImage +
  +
initImpl() - +Method in class org.newdawn.slick.Image +
Hook for subclasses to perform initialisation +
initImpl() - +Method in class org.newdawn.slick.SpriteSheet +
  +
initStatesList(GameContainer) - +Method in class org.newdawn.slick.state.StateBasedGame +
Initialise the list of states making up this game +
initStatesList(GameContainer) - +Method in class org.newdawn.slick.tests.StateBasedTest +
  +
initStatesList(GameContainer) - +Method in class org.newdawn.slick.tests.TransitionTest +
  +
initSystem() - +Method in class org.newdawn.slick.GameContainer +
Initialise the system components, OpenGL and OpenAL. +
INKSCAPE - +Static variable in class org.newdawn.slick.svg.inkscape.Util +
The namespace for inkscape +
InkscapeLoader - Class in org.newdawn.slick.svg
A loader specifically for the SVG that is produced from Inkscape
InkscapeNonGeometricData - Class in org.newdawn.slick.svg.inkscape
A custom non-geometric data type that can pass back any attribute + on the field.
InkscapeNonGeometricData(String, Element) - +Constructor for class org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData +
Create a new non-geometric data holder +
InkscapeTest - Class in org.newdawn.slick.tests
A rudimentry test of loading SVG from inkscape
InkscapeTest() - +Constructor for class org.newdawn.slick.tests.InkscapeTest +
Create a new test for inkscape loading +
inOpenList(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Check if a node is in the open list +
input - +Variable in class org.newdawn.slick.GameContainer +
The input system to pass to the game +
input - +Variable in class org.newdawn.slick.gui.AbstractComponent +
The input we're responding to +
Input - Class in org.newdawn.slick
A wrapped for all keyboard, mouse and controller input
Input(int) - +Constructor for class org.newdawn.slick.Input +
Create a new input with the height of the screen +
InputAdapter - Class in org.newdawn.slick.util
An implement implementation of the InputListener interface
InputAdapter() - +Constructor for class org.newdawn.slick.util.InputAdapter +
  +
inputEnded() - +Method in class org.newdawn.slick.BasicGame +
  +
inputEnded() - +Method in interface org.newdawn.slick.ControlledInputReciever +
Notification that all input events have been sent for this frame +
inputEnded() - +Method in class org.newdawn.slick.state.BasicGameState +
  +
inputEnded() - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
inputEnded() - +Method in class org.newdawn.slick.util.InputAdapter +
  +
InputListener - Interface in org.newdawn.slick
A listener that will be notified of keyboard, mouse and controller events
InputProvider - Class in org.newdawn.slick.command
The central provider that maps real device input into abstract commands + defined by the developer.
InputProvider(Input) - +Constructor for class org.newdawn.slick.command.InputProvider +
Create a new input proider which will provide abstract input descriptions + based on the input from the supplied context. +
InputProviderListener - Interface in org.newdawn.slick.command
Description of any class wishing to recieve notifications of command invocations.
InputProviderTest - Class in org.newdawn.slick.tests
A test for abstract input via InputProvider
InputProviderTest() - +Constructor for class org.newdawn.slick.tests.InputProviderTest +
Create a new image rendering test +
inputStarted() - +Method in class org.newdawn.slick.BasicGame +
  +
inputStarted() - +Method in interface org.newdawn.slick.ControlledInputReciever +
Notification that input is about to be processed +
inputStarted() - +Method in class org.newdawn.slick.state.BasicGameState +
  +
inputStarted() - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
inputStarted() - +Method in class org.newdawn.slick.util.InputAdapter +
  +
InputTest - Class in org.newdawn.slick.tests
A test for input
InputTest() - +Constructor for class org.newdawn.slick.tests.InputTest +
Create a new input test +
InternalTextureLoader - Class in org.newdawn.slick.opengl
A texture loaded based on many old versions that will load image data from a file + and produce OpenGL textures.
intersect(Shape, Line) - +Method in class org.newdawn.slick.geom.GeomUtil +
Intersect a line with a shape +
intersect(Line) - +Method in class org.newdawn.slick.geom.Line +
Intersect this line with another +
intersect(Line, boolean) - +Method in class org.newdawn.slick.geom.Line +
Intersect this line with another +
intersect(Line, boolean, Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Intersect this line with another +
intersects(Shape) - +Method in class org.newdawn.slick.geom.Circle +
Check if this circle touches another +
intersects(Shape) - +Method in class org.newdawn.slick.geom.Line +
  +
intersects(Shape) - +Method in class org.newdawn.slick.geom.Rectangle +
Check if this box touches another +
intersects(Shape) - +Method in class org.newdawn.slick.geom.Shape +
Check if this shape intersects with the shape provided. +
intValue(String, int, String) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Prompts the user for int value +
inUse - +Static variable in class org.newdawn.slick.Image +
The sprite sheet currently in use +
inUse() - +Method in class org.newdawn.slick.particles.Particle +
Check if this particle is currently in use (i.e. +
Inventory - Class in org.newdawn.slick.tests.xml
A test example of some object data that can be configured via XML
Inventory() - +Constructor for class org.newdawn.slick.tests.xml.Inventory +
  +
isAcceptingInput() - +Method in class org.newdawn.slick.BasicGame +
  +
isAcceptingInput() - +Method in interface org.newdawn.slick.ControlledInputReciever +
Check if this input listener is accepting input +
isAcceptingInput() - +Method in class org.newdawn.slick.state.BasicGameState +
  +
isAcceptingInput() - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
isAcceptingInput() - +Method in class org.newdawn.slick.util.InputAdapter +
  +
isActive() - +Method in class org.newdawn.slick.command.InputProvider +
Check if this provider should be sending events +
isActive() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Check if this interpolated value should be used +
isAntiAlias() - +Method in class org.newdawn.slick.Graphics +
True if antialiasing has been turned on for this graphics context +
isBold() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
isButton1Pressed(int) - +Method in class org.newdawn.slick.Input +
Check if button 1 is pressed +
isButton2Pressed(int) - +Method in class org.newdawn.slick.Input +
Check if button 2 is pressed +
isButton3Pressed(int) - +Method in class org.newdawn.slick.Input +
Check if button 3 is pressed +
isButtonPressed(int, int) - +Method in class org.newdawn.slick.Input +
Check if controller button is pressed +
isCaching() - +Method in class org.newdawn.slick.UnicodeFont +
Returns true if this UnicodeFont caches the glyph drawing instructions to + improve performance. +
isColor(String) - +Method in class org.newdawn.slick.svg.NonGeometricData +
Check if a given attribute is in colour format +
isCommandControlDown(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Check if the last control event we recieved related to the given command + indicated that a control was down +
isCommandControlPressed(Command) - +Method in class org.newdawn.slick.command.InputProvider +
Check if one of the controls related to the command specified has been + pressed since we last called this method +
isComplete() - +Method in class org.newdawn.slick.state.transition.BlobbyTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.EmptyTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.FadeInTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.FadeOutTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.RotateTransition +
  +
isComplete() - +Method in class org.newdawn.slick.state.transition.SelectTransition +
  +
isComplete() - +Method in interface org.newdawn.slick.state.transition.Transition +
Check if this transtion has been completed +
isComplete() - +Method in class org.newdawn.slick.state.transition.VerticalSplitTransition +
  +
isControllerDown(int) - +Method in class org.newdawn.slick.Input +
Check if the controller has the down direction pressed +
isControllerLeft(int) - +Method in class org.newdawn.slick.Input +
Check if the controller has the left direction pressed +
isControllerRight(int) - +Method in class org.newdawn.slick.Input +
Check if the controller has the right direction pressed +
isControllerUp(int) - +Method in class org.newdawn.slick.Input +
Check if the controller has the up direction pressed +
isControlPressed(int) - +Method in class org.newdawn.slick.Input +
Check if a controller button has been pressed since last + time +
isControlPressed(int, int) - +Method in class org.newdawn.slick.Input +
Check if a controller button has been pressed since last + time +
isCyclic() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Check if the graident is repeating +
isDeferredLoading() - +Static method in class org.newdawn.slick.loading.LoadingList +
Check if we're using deferred loading +
isDeferredLoading() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if we're using deferred loading +
isDeferredLoading() - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Check if we're using deferred loading +
isDestroyed() - +Method in class org.newdawn.slick.Image +
Check if this image has been destroyed +
isEnabled() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
isEnabled() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Check if this configuration option is enabled +
isEnabled() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
isEnabled() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Check if the emitter is enabled +
isFilled() - +Method in class org.newdawn.slick.svg.NonGeometricData +
True if the shape is meant to be filled +
isFullscreen() - +Method in class org.newdawn.slick.AppGameContainer +
Check if the display is in fullscreen mode +
isFullscreen() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
isFullscreen() - +Method in class org.newdawn.slick.GameContainer +
Check if the display is in fullscreen mode +
isHasAlpha() - +Method in class org.newdawn.slick.opengl.PNGDecoder.Format +
  +
isItalic() - +Method in class org.newdawn.slick.font.HieroSettings +
  +
isKeyDown(int) - +Method in class org.newdawn.slick.Input +
Check if a particular key is down +
isKeyPressed(int) - +Method in class org.newdawn.slick.Input +
Check if a particular key has been pressed since this method + was last called for the specified key +
isKeyRepeatEnabled() - +Method in class org.newdawn.slick.Input +
Check if key repeat is enabled +
isMissing() - +Method in class org.newdawn.slick.font.Glyph +
Returns true if the font does not have a glyph for this codepoint. +
isMouseButtonDown(int) - +Method in class org.newdawn.slick.Input +
Check if a given mouse button is down +
isMouseGrabbed() - +Method in class org.newdawn.slick.AppGameContainer +
  +
isMouseGrabbed() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
isMouseGrabbed() - +Method in class org.newdawn.slick.GameContainer +
Check if the mouse cursor is current grabbed. +
isMouseOver() - +Method in class org.newdawn.slick.gui.MouseOverArea +
Check if the mouse is over this area +
isMousePressed(int) - +Method in class org.newdawn.slick.Input +
Check if a mouse button has been pressed since last call +
isMusicOn() - +Method in class org.newdawn.slick.GameContainer +
Check if music is enabled +
isMusicOn() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if music should currently be playing +
isMusicPlaying() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if the music is currently playing +
ISOMETRIC - +Static variable in class org.newdawn.slick.tiled.TiledMap +
Indicates an isometric map +
isOriented() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
isOriented() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
isOriented() - +Method in class org.newdawn.slick.particles.Particle +
Check if this particle is being oriented based on it's velocity +
isOriented() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Check if the particles produced should maintain orientation +
IsoTiledTest - Class in org.newdawn.slick.tests
Simple test for isometric map rendering
IsoTiledTest() - +Constructor for class org.newdawn.slick.tests.IsoTiledTest +
Create a new test +
isPaused() - +Method in class org.newdawn.slick.GameContainer +
Check if the container is currently paused. +
isPlaying() - +Method in interface org.newdawn.slick.openal.Audio +
Check if the sound is playing as sound fx +
isPlaying() - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
isPlaying() - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
isPlaying() - +Method in class org.newdawn.slick.openal.NullAudio +
  +
isPlaying() - +Method in class org.newdawn.slick.openal.StreamSound +
  +
isRadial() - +Method in class org.newdawn.slick.svg.Gradient +
Check if the gradient is radial +
isRGB() - +Method in class org.newdawn.slick.opengl.PNGDecoder +
  +
isRunning() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Check if the applet is currently running +
isShowingFPS() - +Method in class org.newdawn.slick.GameContainer +
Check if the FPS is currently showing +
isSoundOn() - +Method in class org.newdawn.slick.GameContainer +
Check if sound effects are enabled +
isStopped() - +Method in class org.newdawn.slick.Animation +
Check if this animation has stopped (either explictly or because it's reached its target frame) +
isStroked() - +Method in class org.newdawn.slick.svg.NonGeometricData +
True if the shape is meant to be outlined +
isUpdatingOnlyWhenVisible() - +Method in class org.newdawn.slick.AppGameContainer +
  +
isUpdatingOnlyWhenVisible() - +Method in class org.newdawn.slick.GameContainer +
Check if this game is only updating when visible to the user (default = true) +
isValidLocation(Mover, int, int, int, int) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Check if a given location is valid for the supplied mover +
isVisible() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Check if this system is currently visible, i.e. +
isVSyncRequested() - +Method in class org.newdawn.slick.GameContainer +
True if vsync is requested +
Item - Class in org.newdawn.slick.tests.xml
A test example of some object data that can be configured via XML
Item() - +Constructor for class org.newdawn.slick.tests.xml.Item +
  +
ItemContainer - Class in org.newdawn.slick.tests.xml
A test example of some object data that can be configured via XML
ItemContainer() - +Constructor for class org.newdawn.slick.tests.xml.ItemContainer +
  +
+
+

+J

+
+
JPG - +Static variable in class org.newdawn.slick.imageout.ImageOut +
The format string for JPG +
JUSTIFY - +Static variable in class org.newdawn.slick.util.FontUtils.Alignment +
Justify alignment +
+
+

+K

+
+
KEY_0 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_1 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_2 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_3 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_4 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_5 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_6 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_7 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_8 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_9 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_A - +Static variable in class org.newdawn.slick.Input +
  +
KEY_ADD - +Static variable in class org.newdawn.slick.Input +
  +
KEY_APOSTROPHE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_APPS - +Static variable in class org.newdawn.slick.Input +
  +
KEY_AT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_AX - +Static variable in class org.newdawn.slick.Input +
  +
KEY_B - +Static variable in class org.newdawn.slick.Input +
  +
KEY_BACK - +Static variable in class org.newdawn.slick.Input +
  +
KEY_BACKSLASH - +Static variable in class org.newdawn.slick.Input +
  +
KEY_C - +Static variable in class org.newdawn.slick.Input +
  +
KEY_CAPITAL - +Static variable in class org.newdawn.slick.Input +
  +
KEY_CIRCUMFLEX - +Static variable in class org.newdawn.slick.Input +
  +
KEY_COLON - +Static variable in class org.newdawn.slick.Input +
  +
KEY_COMMA - +Static variable in class org.newdawn.slick.Input +
  +
KEY_CONVERT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_D - +Static variable in class org.newdawn.slick.Input +
  +
KEY_DECIMAL - +Static variable in class org.newdawn.slick.Input +
  +
KEY_DELETE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_DIVIDE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_DOWN - +Static variable in class org.newdawn.slick.Input +
  +
KEY_E - +Static variable in class org.newdawn.slick.Input +
  +
KEY_END - +Static variable in class org.newdawn.slick.Input +
  +
KEY_ENTER - +Static variable in class org.newdawn.slick.Input +
  +
KEY_EQUALS - +Static variable in class org.newdawn.slick.Input +
  +
KEY_ESCAPE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F1 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F10 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F11 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F12 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F13 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F14 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F15 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F2 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F3 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F4 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F5 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F6 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F7 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F8 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_F9 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_G - +Static variable in class org.newdawn.slick.Input +
  +
KEY_GRAVE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_H - +Static variable in class org.newdawn.slick.Input +
  +
KEY_HOME - +Static variable in class org.newdawn.slick.Input +
  +
KEY_I - +Static variable in class org.newdawn.slick.Input +
  +
KEY_INSERT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_J - +Static variable in class org.newdawn.slick.Input +
  +
KEY_K - +Static variable in class org.newdawn.slick.Input +
  +
KEY_KANA - +Static variable in class org.newdawn.slick.Input +
  +
KEY_KANJI - +Static variable in class org.newdawn.slick.Input +
  +
KEY_L - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LALT - +Static variable in class org.newdawn.slick.Input +
A helper for left ALT +
KEY_LBRACKET - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LCONTROL - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LEFT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LMENU - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LSHIFT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_LWIN - +Static variable in class org.newdawn.slick.Input +
  +
KEY_M - +Static variable in class org.newdawn.slick.Input +
  +
KEY_MINUS - +Static variable in class org.newdawn.slick.Input +
  +
KEY_MULTIPLY - +Static variable in class org.newdawn.slick.Input +
  +
KEY_N - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NEXT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NOCONVERT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMLOCK - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD0 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD1 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD2 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD3 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD4 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD5 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD6 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD7 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD8 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPAD9 - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPADCOMMA - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPADENTER - +Static variable in class org.newdawn.slick.Input +
  +
KEY_NUMPADEQUALS - +Static variable in class org.newdawn.slick.Input +
  +
KEY_O - +Static variable in class org.newdawn.slick.Input +
  +
KEY_P - +Static variable in class org.newdawn.slick.Input +
  +
KEY_PAUSE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_PERIOD - +Static variable in class org.newdawn.slick.Input +
  +
KEY_POWER - +Static variable in class org.newdawn.slick.Input +
  +
KEY_PRIOR - +Static variable in class org.newdawn.slick.Input +
  +
KEY_Q - +Static variable in class org.newdawn.slick.Input +
  +
KEY_R - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RALT - +Static variable in class org.newdawn.slick.Input +
A helper for right ALT +
KEY_RBRACKET - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RCONTROL - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RETURN - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RIGHT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RMENU - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RSHIFT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_RWIN - +Static variable in class org.newdawn.slick.Input +
  +
KEY_S - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SCROLL - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SEMICOLON - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SLASH - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SLEEP - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SPACE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_STOP - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SUBTRACT - +Static variable in class org.newdawn.slick.Input +
  +
KEY_SYSRQ - +Static variable in class org.newdawn.slick.Input +
  +
KEY_T - +Static variable in class org.newdawn.slick.Input +
  +
KEY_TAB - +Static variable in class org.newdawn.slick.Input +
  +
KEY_U - +Static variable in class org.newdawn.slick.Input +
  +
KEY_UNDERLINE - +Static variable in class org.newdawn.slick.Input +
  +
KEY_UNLABELED - +Static variable in class org.newdawn.slick.Input +
  +
KEY_UP - +Static variable in class org.newdawn.slick.Input +
  +
KEY_V - +Static variable in class org.newdawn.slick.Input +
  +
KEY_W - +Static variable in class org.newdawn.slick.Input +
  +
KEY_X - +Static variable in class org.newdawn.slick.Input +
  +
KEY_Y - +Static variable in class org.newdawn.slick.Input +
  +
KEY_YEN - +Static variable in class org.newdawn.slick.Input +
  +
KEY_Z - +Static variable in class org.newdawn.slick.Input +
  +
KeyControl - Class in org.newdawn.slick.command
A control relating to a command indicate that it should be fired when a specific key is pressed + or released.
KeyControl(int) - +Constructor for class org.newdawn.slick.command.KeyControl +
Create a new control that caused an command to be fired on a key pressed/released +
KeyListener - Interface in org.newdawn.slick
Describes classes capable of responding to key presses
keyListeners - +Variable in class org.newdawn.slick.Input +
The listeners to notify of key events +
keyListenersToAdd - +Variable in class org.newdawn.slick.Input +
The listener to add +
keyPressed(int, char) - +Method in class org.newdawn.slick.BasicGame +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.gui.TextField +
  +
keyPressed(int, char) - +Method in interface org.newdawn.slick.KeyListener +
Notification that a key was pressed +
keyPressed(int, char) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.AlphaMapTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.AnimationTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.CanvasContainerTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ClipTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.CopyAreaAlphaTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.DeferredLoadingTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.DistanceFieldTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.DuplicateEmitterTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.FlashTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.FontPerformanceTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.FontTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GeomAccuracyTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GeomTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GradientImageTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GradientTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GraphicsTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.GUITest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ImageBufferTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ImageOutTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ImageTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.InputTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.KeyRepeatTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.PackedSheetTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ParticleTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.PedigreeTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.PureFontTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.SavedStateTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.SoundPositionTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.SoundTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.SoundURLTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.SpriteSheetFontTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TestBox +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TileMapTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TransformTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TransformTest2 +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TransparentColorTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
  +
keyPressed(int, char) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.BasicGame +
  +
keyReleased(int, char) - +Method in interface org.newdawn.slick.KeyListener +
Notification that a key was released +
keyReleased(int, char) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.InputTest +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.states.TestState1 +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.states.TestState2 +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.states.TestState3 +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.TestBox +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.TransformTest +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.tests.TransformTest2 +
  +
keyReleased(int, char) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
KeyRepeatTest - Class in org.newdawn.slick.tests
A test for basic image rendering
KeyRepeatTest() - +Constructor for class org.newdawn.slick.tests.KeyRepeatTest +
Create a new image rendering test +
keys - +Variable in class org.newdawn.slick.Input +
The character values representing the pressed keys +
kill() - +Method in class org.newdawn.slick.particles.Particle +
Kill the particle, stop it rendering and send it back to the engine for + use. +
+
+

+L

+
+
LameTest - Class in org.newdawn.slick.tests
Lame test
LameTest() - +Constructor for class org.newdawn.slick.tests.LameTest +
Create the test +
lastFPS - +Variable in class org.newdawn.slick.GameContainer +
The last time the FPS recorded +
lastFrame - +Variable in class org.newdawn.slick.GameContainer +
The time the last frame was rendered +
lastGame - +Variable in class org.newdawn.slick.GameContainer +
The last game started +
lastGID - +Variable in class org.newdawn.slick.tiled.TileSet +
The local global tile id in the set +
Layer - Class in org.newdawn.slick.tiled
A layer of tiles on the map
Layer(TiledMap, Element) - +Constructor for class org.newdawn.slick.tiled.Layer +
Create a new layer based on the XML definition +
layers - +Variable in class org.newdawn.slick.tiled.TiledMap +
The list of layers defined in the map +
leave(GameContainer, StateBasedGame) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
leave(GameContainer, StateBasedGame) - +Method in interface org.newdawn.slick.state.GameState +
Notification that we're leaving this game state +
leaveSafeBlock() - +Static method in class org.newdawn.slick.opengl.SlickCallable +
Leave a safe block ensuring that all of Slick's OpenGL state is + restored since the last enter. +
LEFT - +Static variable in class org.newdawn.slick.command.ControllerDirectionControl +
The direction indicating we're waiting for the user to press left +
LEFT - +Static variable in class org.newdawn.slick.util.FontUtils.Alignment +
Left alignment +
length() - +Method in class org.newdawn.slick.geom.Line +
Find the length of the line +
length() - +Method in class org.newdawn.slick.geom.Vector2f +
Get the length of this vector +
length - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The length of the effect +
length() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Get the length of the path +
lengthSquared() - +Method in class org.newdawn.slick.geom.Line +
Find the length of the line squared (cheaper and good for comparisons) +
lengthSquared() - +Method in class org.newdawn.slick.geom.Vector2f +
The length of the vector squared +
life - +Variable in class org.newdawn.slick.particles.Particle +
The life left in the particle +
lightGray - +Static variable in class org.newdawn.slick.Color +
The fixed colour light gray +
line - +Variable in class org.newdawn.slick.geom.GeomUtil.HitResult +
The line on the target shape that intersected +
Line - Class in org.newdawn.slick.geom
Implemenation of a bunch of maths functions to do with lines.
Line(float, float, boolean, boolean) - +Constructor for class org.newdawn.slick.geom.Line +
Create a new line based on the origin and a single point +
Line(float, float) - +Constructor for class org.newdawn.slick.geom.Line +
Create a new line based on the origin and a single point +
Line(float, float, float, float) - +Constructor for class org.newdawn.slick.geom.Line +
Create a new line based on two points +
Line(float, float, float, float, boolean) - +Constructor for class org.newdawn.slick.geom.Line +
Create a line with relative second point +
Line(float[], float[]) - +Constructor for class org.newdawn.slick.geom.Line +
Create a new line based on two points +
Line(Vector2f, Vector2f) - +Constructor for class org.newdawn.slick.geom.Line +
Create a new line based on two points +
LINE - +Static variable in class org.newdawn.slick.svg.Figure +
Line Type +
LinearGradientFill - Class in org.newdawn.slick.svg
A filler for shapes that applys SVG linear gradients
LinearGradientFill(Shape, Transform, Gradient) - +Constructor for class org.newdawn.slick.svg.LinearGradientFill +
Create a new fill for gradients +
LineProcessor - Class in org.newdawn.slick.svg.inkscape
A processor for the element
LineProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.LineProcessor +
  +
LineRenderTest - Class in org.newdawn.slick.tests
A test for the line rendering capability
LineRenderTest() - +Constructor for class org.newdawn.slick.tests.LineRenderTest +
Create a new test +
LineStripRenderer - Interface in org.newdawn.slick.opengl.renderer
The description of a class able to render line strips through + OpenGL
lineTo(float, float) - +Method in class org.newdawn.slick.geom.Path +
Add a line to the contour or hole which ends at the specified + location. +
Link - Class in org.newdawn.slick.util.pathfinding.navmesh
A link between this space and another
Link(float, float, Space) - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.Link +
Create a new link +
link(Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Link this space to another by creating a link and finding the point + at which the spaces link up +
list - +Variable in class org.newdawn.slick.svg.SimpleDiagramRenderer +
The display list representing the diagram +
listener - +Variable in class org.newdawn.slick.geom.GeomUtil +
The listener to notify of operations +
listeners - +Variable in class org.newdawn.slick.gui.AbstractComponent +
Listeners for the component to notify +
load() - +Method in interface org.newdawn.slick.loading.DeferredResource +
Load the actual resource +
load() - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
load() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
load() - +Method in class org.newdawn.slick.SavedState +
Load the data from file/muffin +
load(String, boolean) - +Static method in class org.newdawn.slick.svg.InkscapeLoader +
Load a SVG document into a diagram +
load(String) - +Static method in class org.newdawn.slick.svg.InkscapeLoader +
Load a SVG document into a diagram +
load(InputStream, boolean) - +Static method in class org.newdawn.slick.svg.InkscapeLoader +
Load a SVG document into a diagram +
LoadableImageData - Interface in org.newdawn.slick.opengl
An image data source that can load images from a stream
loadChildren(Element, Transform) - +Method in class org.newdawn.slick.svg.InkscapeLoader +
  +
loadChildren(Element, Transform) - +Method in interface org.newdawn.slick.svg.Loader +
Load the children of a given element +
loadConfiguredSystem(String, Color) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(String) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(File) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(InputStream, Color) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(InputStream) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(String, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(File, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(InputStream, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadConfiguredSystem(InputStream, ConfigurableEmitterFactory, ParticleSystem, Color) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a set of configured emitters into a single system +
loadEmitter(String) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
loadEmitter(File) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
loadEmitter(InputStream) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
loadEmitter(String, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
loadEmitter(File, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
loadEmitter(InputStream, ConfigurableEmitterFactory) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Load a single emitter from an XML file +
Loader - Interface in org.newdawn.slick.svg
Description of a simple XML loader
loadFile(String) - +Method in class org.newdawn.slick.muffin.FileMuffin +
  +
loadFile(String) - +Method in interface org.newdawn.slick.muffin.Muffin +
Load a file of data from the store +
loadFile(String) - +Method in class org.newdawn.slick.muffin.WebstartMuffin +
  +
loadGlyphs(List, int) - +Method in class org.newdawn.slick.font.GlyphPage +
Loads glyphs to the backing texture and sets the image on each loaded glyph. +
loadGlyphs() - +Method in class org.newdawn.slick.UnicodeFont +
Loads all queued glyphs to the backing textures. +
loadGlyphs(int) - +Method in class org.newdawn.slick.UnicodeFont +
Loads up to the specified number of queued glyphs to the backing textures. +
loadImage(InputStream) - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
loadImage(InputStream, boolean, int[]) - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
loadImage(InputStream, boolean, boolean, int[]) - +Method in class org.newdawn.slick.opengl.CompositeImageData +
  +
loadImage(InputStream) - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
loadImage(InputStream, boolean, int[]) - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
loadImage(InputStream, boolean, boolean, int[]) - +Method in class org.newdawn.slick.opengl.ImageIOImageData +
  +
loadImage(InputStream) - +Method in interface org.newdawn.slick.opengl.LoadableImageData +
Load a image from the specified stream +
loadImage(InputStream, boolean, int[]) - +Method in interface org.newdawn.slick.opengl.LoadableImageData +
Load a image from the specified stream +
loadImage(InputStream, boolean, boolean, int[]) - +Method in interface org.newdawn.slick.opengl.LoadableImageData +
Load a image from the specified stream +
loadImage(InputStream) - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
loadImage(InputStream, boolean, int[]) - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
loadImage(InputStream, boolean, boolean, int[]) - +Method in class org.newdawn.slick.opengl.PNGImageData +
  +
loadImage(InputStream) - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
loadImage(InputStream, boolean, int[]) - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
loadImage(InputStream, boolean, boolean, int[]) - +Method in class org.newdawn.slick.opengl.TGAImageData +
  +
LoadingList - Class in org.newdawn.slick.loading
A central list where all deferred loading resoures end up when deferred loading is in use.
LocatedImage - Class in org.newdawn.slick.util
An image along with state information that allows it to be drawn without + specifing the state in which to render.
LocatedImage(Image, int, int) - +Constructor for class org.newdawn.slick.util.LocatedImage +
Create a new located image +
Log - Class in org.newdawn.slick.util
A simple central logging system
LogSystem - Interface in org.newdawn.slick.util
Plugin in interface for the logging of Slick
loop() - +Method in class org.newdawn.slick.Music +
Loop the music +
loop(float, float) - +Method in class org.newdawn.slick.Music +
Loop the music at a given pitch and volume +
loop() - +Method in class org.newdawn.slick.Sound +
Loop this sound effect at default volume and pitch +
loop(float, float) - +Method in class org.newdawn.slick.Sound +
Loop this sound effect at a given volume and pitch +
LUMINANCE - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
LUMINANCE_ALPHA - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
+
+

+M

+
+
magenta - +Static variable in class org.newdawn.slick.Color +
The fixed colour dark magenta +
main(String[]) - +Static method in class org.newdawn.slick.tests.AlphaMapTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.AnimationTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.AntiAliasTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.BigImageTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.BigSpriteSheetTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.CachedRenderTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.CanvasContainerTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.CanvasSizeTest +
Entry point to the test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ClipTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.CopyAreaAlphaTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.CurveTest +
Entry point to our simple test +
main(String[]) - +Static method in class org.newdawn.slick.tests.DeferredLoadingTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.DistanceFieldTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.DoubleClickTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.DuplicateEmitterTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.FlashTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.FontPerformanceTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.FontTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GeomAccuracyTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GeomTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GeomUtilTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GeomUtilTileTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GradientImageTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GradientTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GraphicsTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.GUITest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageBufferEndianTest +
Entry point to the test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageBufferTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageCornerTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageGraphicsTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageMemTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageOutTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageReadTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ImageTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.InkscapeTest +
Entry point to our simple test +
main(String[]) - +Static method in class org.newdawn.slick.tests.InputProviderTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.InputTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.IsoTiledTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.KeyRepeatTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.LameTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.LineRenderTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.MorphShapeTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.MorphSVGTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.MusicListenerTest +
Entry point to the sound test +
main(String[]) - +Static method in class org.newdawn.slick.tests.NavMeshTest +
Entry point to out application +
main(String[]) - +Static method in class org.newdawn.slick.tests.PackedSheetTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ParticleTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.PedigreeTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.PolygonTest +
Entry point into our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.PureFontTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SavedStateTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ScalableTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.ShapeTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SlickCallableTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SoundPositionTest +
Entry point to the sound test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SoundTest +
Entry point to the sound test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SoundURLTest +
Entry point to the sound test +
main(String[]) - +Static method in class org.newdawn.slick.tests.SpriteSheetFontTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.StateBasedTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TestBox +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TestUtils +
Entry point to the tests +
main(String[]) - +Static method in class org.newdawn.slick.tests.TexturePaintTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TileMapTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TransformTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TransformTest2 +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TransitionTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TransparentColorTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
Entry point to our test +
main(String[]) - +Static method in class org.newdawn.slick.tests.UnicodeFontTest +
Entry point to our simple test +
main(String[]) - +Static method in class org.newdawn.slick.tests.xml.ObjectParserTest +
Entity point to our test. +
main(String[]) - +Static method in class org.newdawn.slick.tests.xml.XMLTest +
Simple test for the XML parsing API +
ManhattanHeuristic - Class in org.newdawn.slick.util.pathfinding.heuristics
A heuristic that drives the search based on the Manhattan distance + between the current location and the target
ManhattanHeuristic(int) - +Constructor for class org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic +
Create a new heuristic +
MannTriangulator - Class in org.newdawn.slick.geom
A 2D Triangulator.
MannTriangulator() - +Constructor for class org.newdawn.slick.geom.MannTriangulator +
Creates a new instance of Triangulator0 +
MannTriangulator.PointBag - Class in org.newdawn.slick.geom
A bag/pool of point objects
MannTriangulator.PointBag() - +Constructor for class org.newdawn.slick.geom.MannTriangulator.PointBag +
  +
MaskUtil - Class in org.newdawn.slick.util
A utility to provide full screen masking
MaskUtil() - +Constructor for class org.newdawn.slick.util.MaskUtil +
  +
MAX_GLYPH_SIZE - +Static variable in class org.newdawn.slick.font.GlyphPage +
The maxium size of an individual glyph +
MAX_POINTS - +Variable in class org.newdawn.slick.geom.GeomUtil +
The maximum number of points returned by an operation - prevents full lockups +
MAX_POINTS - +Static variable in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
Maximum number of points allowed in a single strip +
MAX_VERTS - +Static variable in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
The maximum number of vertices draw in one batch +
maximumLogicInterval - +Variable in class org.newdawn.slick.GameContainer +
The maximum logic update interval +
maxParticlesPerEmitter - +Variable in class org.newdawn.slick.particles.ParticleSystem +
The maximum number of particles allows per emitter +
maxX - +Variable in class org.newdawn.slick.geom.Shape +
The right most point of this shape +
maxY - +Variable in class org.newdawn.slick.geom.Shape +
The bottom most point of this shape +
merge(Space) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Merge this space with another +
minimumLogicInterval - +Variable in class org.newdawn.slick.GameContainer +
The minimum logic update interval +
minX - +Variable in class org.newdawn.slick.geom.Shape +
The left most point of this shape. +
minY - +Variable in class org.newdawn.slick.geom.Shape +
The top most point of this shape. +
MOD - +Static variable in class org.newdawn.slick.openal.DeferredSound +
Indicate a MOD/XM to be loaded +
MODE_ADD - +Static variable in class org.newdawn.slick.Graphics +
Draw adding the existing colour to the new colour +
MODE_ALPHA_BLEND - +Static variable in class org.newdawn.slick.Graphics +
Draw using the alpha blending +
MODE_ALPHA_MAP - +Static variable in class org.newdawn.slick.Graphics +
Draw to the alpha map +
MODE_COLOR_MULTIPLY - +Static variable in class org.newdawn.slick.Graphics +
Draw multiplying the source and destination colours +
MODE_NORMAL - +Static variable in class org.newdawn.slick.Graphics +
The normal drawing mode +
MODE_SCREEN - +Static variable in class org.newdawn.slick.Graphics +
Draw blending the new image into the old one by a factor of it's colour +
MODSound - Class in org.newdawn.slick.openal
A sound as a MOD file - can only be played as music
MODSound(SoundStore, InputStream) - +Constructor for class org.newdawn.slick.openal.MODSound +
Create a mod sound to be played back +
MorphShape - Class in org.newdawn.slick.geom
A shape that morphs between a set of other shapes
MorphShape(Shape) - +Constructor for class org.newdawn.slick.geom.MorphShape +
Create a new mighty morphin shape +
MorphShapeTest - Class in org.newdawn.slick.tests
A test to try shape morphing
MorphShapeTest() - +Constructor for class org.newdawn.slick.tests.MorphShapeTest +
Create a simple test +
MorphSVGTest - Class in org.newdawn.slick.tests
A test to try shape morphing
MorphSVGTest() - +Constructor for class org.newdawn.slick.tests.MorphSVGTest +
Create a simple test +
MOUSE_LEFT_BUTTON - +Static variable in class org.newdawn.slick.Input +
The left mouse button indicator +
MOUSE_MIDDLE_BUTTON - +Static variable in class org.newdawn.slick.Input +
The middle mouse button indicator +
MOUSE_RIGHT_BUTTON - +Static variable in class org.newdawn.slick.Input +
The right mouse button indicator +
MouseButtonControl - Class in org.newdawn.slick.command
A control indicating that a mouse button must be pressed or released to cause an command
MouseButtonControl(int) - +Constructor for class org.newdawn.slick.command.MouseButtonControl +
Create a new control that indicates a mouse button to be pressed or released +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
mouseClicked(int, int, int, int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that a mouse button was clicked. +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.tests.DoubleClickTest +
  +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
mouseClicked(int, int, int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
mouseDragged(int, int, int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
mouseDragged(int, int, int, int) - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
mouseDragged(int, int, int, int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that mouse cursor was dragged +
mouseDragged(int, int, int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mouseDragged(int, int, int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mouseDragged(int, int, int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
MouseListener - Interface in org.newdawn.slick
Description of classes that respond to mouse related input events
mouseListeners - +Variable in class org.newdawn.slick.Input +
The listeners to notify of mouse events +
mouseListenersToAdd - +Variable in class org.newdawn.slick.Input +
The listener to add +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
mouseMoved(int, int, int, int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that mouse cursor was moved +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
mouseMoved(int, int, int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
MouseOverArea - Class in org.newdawn.slick.gui
A mouse over area that can be used for menus or buttons
MouseOverArea(GUIContext, Image, int, int, ComponentListener) - +Constructor for class org.newdawn.slick.gui.MouseOverArea +
Create a new mouse over area +
MouseOverArea(GUIContext, Image, int, int) - +Constructor for class org.newdawn.slick.gui.MouseOverArea +
Create a new mouse over area +
MouseOverArea(GUIContext, Image, int, int, int, int, ComponentListener) - +Constructor for class org.newdawn.slick.gui.MouseOverArea +
Create a new mouse over area +
MouseOverArea(GUIContext, Image, int, int, int, int) - +Constructor for class org.newdawn.slick.gui.MouseOverArea +
Create a new mouse over area +
MouseOverArea(GUIContext, Image, Shape) - +Constructor for class org.newdawn.slick.gui.MouseOverArea +
Create a new mouse over area +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
mousePressed - +Variable in class org.newdawn.slick.Input +
THe state of the mouse buttons +
mousePressed(int, int, int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that a mouse button was pressed +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.tests.NavMeshTest +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.tests.PedigreeTest +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
mousePressed(int, int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.BasicGame +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Gives the focus to this component with a click of the mouse. +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
mouseReleased(int, int, int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that a mouse button was released +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
mouseReleased(int, int, int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.BasicGame +
  +
mouseWheelMoved(int) - +Method in interface org.newdawn.slick.MouseListener +
Notification that the mouse wheel position was updated +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
mouseWheelMoved(int) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
move(float, float) - +Method in class org.newdawn.slick.particles.Particle +
Move this particle a fixed amount +
moveAll(ParticleEmitter, float, float) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Move all the particles owned by the specified emitter +
Mover - Interface in org.newdawn.slick.util.pathfinding
A tagging interface for an object representing the entity in the game that + is going to moving along the path.
Muffin - Interface in org.newdawn.slick.muffin
A description of any class with the ability to store state locally
multiply(Color) - +Method in class org.newdawn.slick.Color +
Multiply this color by another +
Music - Class in org.newdawn.slick
A piece of music loaded and playable within the game.
Music(String) - +Constructor for class org.newdawn.slick.Music +
Create and load a piece of music (either OGG or MOD/XM) +
Music(URL) - +Constructor for class org.newdawn.slick.Music +
Create and load a piece of music (either OGG or MOD/XM) +
Music(InputStream, String) - +Constructor for class org.newdawn.slick.Music +
Create and load a piece of music (either OGG or MOD/XM) +
Music(URL, boolean) - +Constructor for class org.newdawn.slick.Music +
Create and load a piece of music (either OGG or MOD/XM) +
Music(String, boolean) - +Constructor for class org.newdawn.slick.Music +
Create and load a piece of music (either OGG or MOD/XM) +
musicEnded(Music) - +Method in interface org.newdawn.slick.MusicListener +
Notification that a piece of music finished playing +
musicEnded(Music) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
MusicListener - Interface in org.newdawn.slick
The description of any class needing to recieve notification of changes + to music state.
MusicListenerTest - Class in org.newdawn.slick.tests
A test for music listeners which notify you when the music has eneded
MusicListenerTest() - +Constructor for class org.newdawn.slick.tests.MusicListenerTest +
Create a new test +
musicOn() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if music is currently enabled +
musicSwapped(Music, Music) - +Method in interface org.newdawn.slick.MusicListener +
Notification that a piece of music has been swapped + for another. +
musicSwapped(Music, Music) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
+
+

+N

+
+
name - +Variable in class org.newdawn.slick.Image +
A meaningful name provided by the user of the image to tag it +
name - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The name attribute +
name - +Variable in class org.newdawn.slick.tests.xml.Item +
The name injected by the XML parser +
name - +Variable in class org.newdawn.slick.tiled.Layer +
The name of this layer - read from the XML +
name - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The name of this object - read from the XML +
name - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
The name of this group - read from the XML +
name - +Variable in class org.newdawn.slick.tiled.TileSet +
The name of the tile set +
NavMesh - Class in org.newdawn.slick.util.pathfinding.navmesh
A nav-mesh is a set of shapes that describe the navigation of a map.
NavMesh() - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Create a new empty mesh +
NavMesh(ArrayList) - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.NavMesh +
Create a new mesh with a set of spaces +
NavMeshBuilder - Class in org.newdawn.slick.util.pathfinding.navmesh
The builder responsible for converting a tile based map into + a navigation mesh
NavMeshBuilder() - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +
  +
NavMeshTest - Class in org.newdawn.slick.tests
A test to show nav-mesh generation on tile based maps.
NavMeshTest() - +Constructor for class org.newdawn.slick.tests.NavMeshTest +
Create a new test +
NavPath - Class in org.newdawn.slick.util.pathfinding.navmesh
A path across a navigation mesh
NavPath() - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Create a new path +
NeatTriangulator - Class in org.newdawn.slick.geom
A second triangulator that seems slightly more robust
NeatTriangulator() - +Constructor for class org.newdawn.slick.geom.NeatTriangulator +
Create a new triangulator +
negate() - +Method in class org.newdawn.slick.geom.Vector2f +
Negate this vector +
negateLocal() - +Method in class org.newdawn.slick.geom.Vector2f +
Negate this vector without creating a new copy +
next - +Variable in class org.newdawn.slick.geom.MannTriangulator.PointBag +
The next bag in the list of bags +
nextRepeat - +Variable in class org.newdawn.slick.Input +
The time since the next key repeat to be fired for the key +
NONE - +Static variable in class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
Indicates there is no current geometry buffer +
NONE - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
Value indicating that no settings has been specified +
NonGeometricData - Class in org.newdawn.slick.svg
A set of data about a shape that doesn't fit into it's geometric + configuration.
NonGeometricData(String) - +Constructor for class org.newdawn.slick.svg.NonGeometricData +
Create a set of non-geometric data for a figure +
normalise() - +Method in class org.newdawn.slick.geom.Vector2f +
Normalise the vector +
notifyListeners() - +Method in class org.newdawn.slick.gui.AbstractComponent +
Notify all the listeners. +
NullAudio - Class in org.newdawn.slick.openal
A null implementation used to provide an object reference when sound + has failed.
NullAudio() - +Constructor for class org.newdawn.slick.openal.NullAudio +
  +
NUM_KERNELS - +Static variable in class org.newdawn.slick.font.effects.ShadowEffect +
The number of kernels to apply +
+
+

+O

+
+
objectGroups - +Variable in class org.newdawn.slick.tiled.TiledMap +
The list of object-groups defined in the map +
ObjectParserTest - Class in org.newdawn.slick.tests.xml
A simple test to check that the object parser from XML works.
ObjectParserTest() - +Constructor for class org.newdawn.slick.tests.xml.ObjectParserTest +
  +
objects - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
The Objects of this group +
ObjectTreeParser - Class in org.newdawn.slick.util.xml
Provides a method of parsing XML into an existing data model.
ObjectTreeParser() - +Constructor for class org.newdawn.slick.util.xml.ObjectTreeParser +
Create an object tree parser with no default package +
ObjectTreeParser(String) - +Constructor for class org.newdawn.slick.util.xml.ObjectTreeParser +
Create an object tree parser specifing the default package + where classes will be search for using the XML element name +
OGG - +Static variable in class org.newdawn.slick.openal.DeferredSound +
Indicate a OGG to be loaded +
OggData - Class in org.newdawn.slick.openal
Data describing the sounds in a OGG file
OggData() - +Constructor for class org.newdawn.slick.openal.OggData +
  +
OggDecoder - Class in org.newdawn.slick.openal
Decode an OGG file to PCM data
OggDecoder() - +Constructor for class org.newdawn.slick.openal.OggDecoder +
Create a new OGG decoder +
OggInputStream - Class in org.newdawn.slick.openal
An input stream that can extract ogg data.
OggInputStream(InputStream) - +Constructor for class org.newdawn.slick.openal.OggInputStream +
Create a new stream to decode OGG data +
on(Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Check if the given point is on the line +
OPACITY - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The alpha value for filling +
OpenALStreamPlayer - Class in org.newdawn.slick.openal
A generic tool to work on a supplied stream, pulling out PCM data and buffered it to OpenAL + as required.
OpenALStreamPlayer(int, String) - +Constructor for class org.newdawn.slick.openal.OpenALStreamPlayer +
Create a new player to work on an audio stream +
OpenALStreamPlayer(int, URL) - +Constructor for class org.newdawn.slick.openal.OpenALStreamPlayer +
Create a new player to work on an audio stream +
OperationNotSupportedException - Exception in org.newdawn.slick.util
Thrown to indicate that a limited implementation of a class can not + support the operation requested.
OperationNotSupportedException(String) - +Constructor for exception org.newdawn.slick.util.OperationNotSupportedException +
Create a new exception +
optionValue(String, String, String[][], String) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Prompts the user for a value that represents a fixed number of options. +
orange - +Static variable in class org.newdawn.slick.Color +
The fixed colour dark orange +
org.newdawn.slick - package org.newdawn.slick
 
org.newdawn.slick.command - package org.newdawn.slick.command
Provides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game.
org.newdawn.slick.fills - package org.newdawn.slick.fills
Fill effects used to colour and mogrify shapes during rendering
org.newdawn.slick.font - package org.newdawn.slick.font
 
org.newdawn.slick.font.effects - package org.newdawn.slick.font.effects
 
org.newdawn.slick.geom - package org.newdawn.slick.geom
Simple geometric wrappers that can be used for rendering and collision.
org.newdawn.slick.gui - package org.newdawn.slick.gui
Some extremely simple GUI elements which should be used where a game does not require a full GUI
org.newdawn.slick.imageout - package org.newdawn.slick.imageout
Supports saving of slick images to various file types.
org.newdawn.slick.loading - package org.newdawn.slick.loading
Adds support for deferring loading of resources to a set time to allow loading/progress bar +style effects.
org.newdawn.slick.muffin - package org.newdawn.slick.muffin
Muffins for storing local data
org.newdawn.slick.openal - package org.newdawn.slick.openal
This package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats.
org.newdawn.slick.opengl - package org.newdawn.slick.opengl
This package contains the nitty gritty image manipulation code for using OpenGL with standard image formats.
org.newdawn.slick.opengl.pbuffer - package org.newdawn.slick.opengl.pbuffer
 
org.newdawn.slick.opengl.renderer - package org.newdawn.slick.opengl.renderer
 
org.newdawn.slick.particles - package org.newdawn.slick.particles
The particle engine maintains a set of small sprites being controlled +by emitters to give some special effect.
org.newdawn.slick.particles.effects - package org.newdawn.slick.particles.effects
This package should contain stock effects for simple particle systems.
org.newdawn.slick.state - package org.newdawn.slick.state
State based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits.
org.newdawn.slick.state.transition - package org.newdawn.slick.state.transition
 
org.newdawn.slick.svg - package org.newdawn.slick.svg
Demo/Test SVG area.
org.newdawn.slick.svg.inkscape - package org.newdawn.slick.svg.inkscape
 
org.newdawn.slick.tests - package org.newdawn.slick.tests
Tests for the facilities provided by the library.
org.newdawn.slick.tests.states - package org.newdawn.slick.tests.states
States for the StateBasedGameTest
org.newdawn.slick.tests.xml - package org.newdawn.slick.tests.xml
Tests for the XML Parser and Object Tree Parser
org.newdawn.slick.tiled - package org.newdawn.slick.tiled
Contains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps.
org.newdawn.slick.util - package org.newdawn.slick.util
Utilities to support the library.
org.newdawn.slick.util.pathfinding - package org.newdawn.slick.util.pathfinding
A set of classes to provide configurable A* path finding on tilebased maps
org.newdawn.slick.util.pathfinding.heuristics - package org.newdawn.slick.util.pathfinding.heuristics
 
org.newdawn.slick.util.pathfinding.navmesh - package org.newdawn.slick.util.pathfinding.navmesh
 
org.newdawn.slick.util.xml - package org.newdawn.slick.util.xml
Some utilities for reading XML using Java DOM and for mapping XML onto existing data models
orientation - +Variable in class org.newdawn.slick.tiled.TiledMap +
The orientation of this map +
oriented - +Variable in class org.newdawn.slick.particles.Particle +
True if this particle's quad should be oritented based on it's direction +
originalDisplayMode - +Variable in class org.newdawn.slick.AppGameContainer +
The original display mode before we tampered with things +
originalLife - +Variable in class org.newdawn.slick.particles.Particle +
The original life of this particle +
ORTHOGONAL - +Static variable in class org.newdawn.slick.tiled.TiledMap +
Indicates a orthogonal map +
out - +Static variable in class org.newdawn.slick.util.DefaultLogSystem +
The output stream for dumping the log out on +
OutlineEffect - Class in org.newdawn.slick.font.effects
Strokes glyphs with an outline.
OutlineEffect() - +Constructor for class org.newdawn.slick.font.effects.OutlineEffect +
Default constructor for injection +
OutlineEffect(int, Color) - +Constructor for class org.newdawn.slick.font.effects.OutlineEffect +
Create a new effect to draw the outline of the text +
OutlineWobbleEffect - Class in org.newdawn.slick.font.effects
An effect that genrates a wobbly line around the outline of the text
OutlineWobbleEffect() - +Constructor for class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Default constructor for injection +
OutlineWobbleEffect(int, Color) - +Constructor for class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Create a new effect that generates a wobbly line around the text +
OutlineZigzagEffect - Class in org.newdawn.slick.font.effects
An effect to generate a uniformly zigzaging line around text
OutlineZigzagEffect() - +Constructor for class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Default constructor for injection +
OutlineZigzagEffect(int, Color) - +Constructor for class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Create a new effect to generate a zigzagging line around the text +
OverTriangulator - Class in org.newdawn.slick.geom
A triangulator implementation that splits the triangules of another, subdividing + to give a higher tesselation - and hence smoother transitions.
OverTriangulator(Triangulator) - +Constructor for class org.newdawn.slick.geom.OverTriangulator +
Create a new triangulator +
+
+

+P

+
+
p1 - +Variable in class org.newdawn.slick.geom.GeomUtil.HitResult +
The index of the first point on the target shape that forms the line +
p2 - +Variable in class org.newdawn.slick.geom.GeomUtil.HitResult +
The index of the second point on the target shape that forms the line +
PackedSheetTest - Class in org.newdawn.slick.tests
A test for packed sprite sheets
PackedSheetTest() - +Constructor for class org.newdawn.slick.tests.PackedSheetTest +
Create a new image rendering test +
PackedSpriteSheet - Class in org.newdawn.slick
A sprite sheet packed and defined by the Pacific Software Image Packer available + from: + + http://homepage.ntlworld.com/config/imagepacker/
PackedSpriteSheet(String) - +Constructor for class org.newdawn.slick.PackedSpriteSheet +
Create a new packed sprite sheet based on a ImagePacker definition file +
PackedSpriteSheet(String, Color) - +Constructor for class org.newdawn.slick.PackedSpriteSheet +
Create a new packed sprite sheet based on a ImagePacker definition file +
PackedSpriteSheet(String, int) - +Constructor for class org.newdawn.slick.PackedSpriteSheet +
Create a new packed sprite sheet based on a ImagePacker definition file +
PackedSpriteSheet(String, int, Color) - +Constructor for class org.newdawn.slick.PackedSpriteSheet +
Create a new packed sprite sheet based on a ImagePacker definition file +
parse(String) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Parse the XML document located by the slick resource loader using the + reference given. +
parse(String, InputStream) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Parse the XML document that can be read from the given input stream +
parse(String) - +Method in class org.newdawn.slick.util.xml.XMLParser +
Parse the XML document located by the slick resource loader using the + reference given. +
parse(String, InputStream) - +Method in class org.newdawn.slick.util.xml.XMLParser +
Parse the XML document that can be read from the given input stream +
parseOnto(String, Object) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Parse the XML document located by the slick resource loader using the + reference given. +
parseOnto(String, InputStream, Object) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Parse the XML document that can be read from the given input stream +
ParsingException - Exception in org.newdawn.slick.svg
Exception indicating a failure to parse XML, giving element information
ParsingException(String, String, Throwable) - +Constructor for exception org.newdawn.slick.svg.ParsingException +
Create a new exception +
ParsingException(Element, String, Throwable) - +Constructor for exception org.newdawn.slick.svg.ParsingException +
Create a new exception +
ParsingException(String, String) - +Constructor for exception org.newdawn.slick.svg.ParsingException +
Create a new exception +
ParsingException(Element, String) - +Constructor for exception org.newdawn.slick.svg.ParsingException +
Create a new exception +
Particle - Class in org.newdawn.slick.particles
A single particle within a system
Particle(ParticleSystem) - +Constructor for class org.newdawn.slick.particles.Particle +
Create a new particle belonging to given engine +
ParticleEmitter - Interface in org.newdawn.slick.particles
An emitter is responsible for producing the particles and controlling them during + their life.
ParticleIO - Class in org.newdawn.slick.particles
Utility methods to (de)serialize ConfigureEmitters to and from XML
ParticleIO() - +Constructor for class org.newdawn.slick.particles.ParticleIO +
  +
particlesByEmitter - +Variable in class org.newdawn.slick.particles.ParticleSystem +
A map from emitter to a the particle pool holding the particles it uses + void: this is now sorted by emitters to allow emitter specfic state to be set for + each emitter. +
ParticleSystem - Class in org.newdawn.slick.particles
A particle syste responsible for maintaining a set of data about individual + particles which are created and controlled by assigned emitters.
ParticleSystem(Image) - +Constructor for class org.newdawn.slick.particles.ParticleSystem +
Create a new particle system +
ParticleSystem(String) - +Constructor for class org.newdawn.slick.particles.ParticleSystem +
Create a new particle system +
ParticleSystem(String, int) - +Constructor for class org.newdawn.slick.particles.ParticleSystem +
Create a new particle system +
ParticleSystem(String, int, Color) - +Constructor for class org.newdawn.slick.particles.ParticleSystem +
Create a new particle system +
ParticleSystem(Image, int) - +Constructor for class org.newdawn.slick.particles.ParticleSystem +
Create a new particle system +
ParticleTest - Class in org.newdawn.slick.tests
A particle test using built in effects
ParticleTest() - +Constructor for class org.newdawn.slick.tests.ParticleTest +
Create a new test of graphics context rendering +
Path - Class in org.newdawn.slick.geom
A shape built from lines and curves.
Path(float, float) - +Constructor for class org.newdawn.slick.geom.Path +
Create a new path +
PATH - +Static variable in class org.newdawn.slick.svg.Figure +
Path Type +
Path - Class in org.newdawn.slick.util.pathfinding
A path determined by some path finding algorithm.
Path() - +Constructor for class org.newdawn.slick.util.pathfinding.Path +
Create an empty path +
Path.Step - Class in org.newdawn.slick.util.pathfinding
A single step within the path
Path.Step(int, int) - +Constructor for class org.newdawn.slick.util.pathfinding.Path.Step +
Create a new step +
PathFinder - Interface in org.newdawn.slick.util.pathfinding
A description of an implementation that can find a path from one + location on a tile map to another based on information provided + by that tile map.
pathFinderVisited(int, int) - +Method in interface org.newdawn.slick.util.pathfinding.TileBasedMap +
Notification that the path finder visited a given tile. +
PathFindingContext - Interface in org.newdawn.slick.util.pathfinding
The context describing the current path finding state
PathProcessor - Class in org.newdawn.slick.svg.inkscape
A processor for the and elements marked as not an arc.
PathProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.PathProcessor +
  +
pause() - +Method in class org.newdawn.slick.GameContainer +
Pause the game - i.e. +
pause() - +Method in class org.newdawn.slick.Input +
Pauses the polling and sending of input events. +
pause() - +Method in class org.newdawn.slick.Music +
Pause the music playback +
paused - +Variable in class org.newdawn.slick.GameContainer +
True if the game is paused +
pauseLoop() - +Method in class org.newdawn.slick.openal.SoundStore +
Pause the music loop that is currently playing +
pauseMusic() - +Static method in class org.newdawn.slick.openal.AudioImpl +
Pause the music currently being played +
PBufferGraphics - Class in org.newdawn.slick.opengl.pbuffer
A graphics implementation that renders to a PBuffer
PBufferGraphics(Image) - +Constructor for class org.newdawn.slick.opengl.pbuffer.PBufferGraphics +
Create a new graphics context around a pbuffer +
PBufferUniqueGraphics - Class in org.newdawn.slick.opengl.pbuffer
A graphics implementation that renders to a PBuffer using a unique context, i.e.
PBufferUniqueGraphics(Image) - +Constructor for class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +
Create a new graphics context around a pbuffer +
PedigreeTest - Class in org.newdawn.slick.tests
A test for loading editing particle systems
PedigreeTest() - +Constructor for class org.newdawn.slick.tests.PedigreeTest +
Create a new image rendering test +
performGLOperations() - +Method in class org.newdawn.slick.opengl.SlickCallable +
Perform the GL operations that this callable is intended to. +
pickLowestCost(Space, NavPath) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Pick the lowest cost route from this space to another on the path +
pink - +Static variable in class org.newdawn.slick.Color +
The fixed colour dark pink +
pixelData - +Variable in class org.newdawn.slick.Image +
A pixelData holding the pixel data if it's been read for this texture +
play() - +Method in class org.newdawn.slick.Music +
Play the music +
play(float, float) - +Method in class org.newdawn.slick.Music +
Play the music at a given pitch and volume +
play(boolean) - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Start this stream playing +
play() - +Method in class org.newdawn.slick.Sound +
Play this sound effect at default volume and pitch +
play(float, float) - +Method in class org.newdawn.slick.Sound +
Play this sound effect at a given volume and pitch +
playAsMusic(float, float, boolean) - +Method in interface org.newdawn.slick.openal.Audio +
Play this sound as music +
playAsMusic(float, float, boolean) - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
playAsMusic(float, float, boolean) - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
playAsMusic(float, float, boolean) - +Method in class org.newdawn.slick.openal.MODSound +
  +
playAsMusic(float, float, boolean) - +Method in class org.newdawn.slick.openal.NullAudio +
  +
playAsMusic(float, float, boolean) - +Method in class org.newdawn.slick.openal.StreamSound +
  +
playAsSoundEffect(float, float, boolean) - +Method in interface org.newdawn.slick.openal.Audio +
Play this sound as a sound effect +
playAsSoundEffect(float, float, boolean, float, float, float) - +Method in interface org.newdawn.slick.openal.Audio +
Play this sound as a sound effect +
playAsSoundEffect(float, float, boolean) - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
playAsSoundEffect(float, float, boolean, float, float, float) - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
playAsSoundEffect(float, float, boolean) - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
playAsSoundEffect(float, float, boolean, float, float, float) - +Method in class org.newdawn.slick.openal.DeferredSound +
Play this sound as a sound effect +
playAsSoundEffect(float, float, boolean) - +Method in class org.newdawn.slick.openal.MODSound +
  +
playAsSoundEffect(float, float, boolean) - +Method in class org.newdawn.slick.openal.NullAudio +
  +
playAsSoundEffect(float, float, boolean, float, float, float) - +Method in class org.newdawn.slick.openal.NullAudio +
  +
playAsSoundEffect(float, float, boolean, float, float, float) - +Method in class org.newdawn.slick.openal.StreamSound +
  +
playAsSoundEffect(float, float, boolean) - +Method in class org.newdawn.slick.openal.StreamSound +
  +
playAt(float, float, float) - +Method in class org.newdawn.slick.Sound +
Play a sound effect from a particular location +
playAt(float, float, float, float, float) - +Method in class org.newdawn.slick.Sound +
Play a sound effect from a particular location +
playing() - +Method in class org.newdawn.slick.Music +
Check if the music is being played +
playing() - +Method in class org.newdawn.slick.Sound +
Check if the sound is currently playing +
PNG - +Static variable in class org.newdawn.slick.imageout.ImageOut +
The format string for PNG +
PNGDecoder - Class in org.newdawn.slick.opengl
A PNGDecoder.
PNGDecoder(InputStream) - +Constructor for class org.newdawn.slick.opengl.PNGDecoder +
  +
PNGDecoder.Format - Class in org.newdawn.slick.opengl
 
PNGImageData - Class in org.newdawn.slick.opengl
The PNG imge data source that is pure java reading PNGs
PNGImageData() - +Constructor for class org.newdawn.slick.opengl.PNGImageData +
  +
Point - Class in org.newdawn.slick.geom
A single point shape
Point(float, float) - +Constructor for class org.newdawn.slick.geom.Point +
Create a new point +
pointAt(float) - +Method in class org.newdawn.slick.geom.Curve +
Get the point at a particular location on the curve +
pointExcluded(float, float) - +Method in interface org.newdawn.slick.geom.GeomUtilListener +
Notification that a point was excluded from geometry +
pointExcluded(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
pointExcluded(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
pointIntersected(float, float) - +Method in interface org.newdawn.slick.geom.GeomUtilListener +
Notification that a point was intersected between two geometries +
pointIntersected(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
pointIntersected(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
points - +Variable in class org.newdawn.slick.geom.Shape +
The points representing this polygon. +
pointsDirty - +Variable in class org.newdawn.slick.geom.Shape +
Flag to tell whether points need to be generated +
pointUsed(float, float) - +Method in interface org.newdawn.slick.geom.GeomUtilListener +
Notification that a point was used to build a new geometry +
pointUsed(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
pointUsed(float, float) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
poll(int, int) - +Method in class org.newdawn.slick.Input +
Poll the state of the input +
poll(int) - +Static method in class org.newdawn.slick.Music +
Poll the state of the current music. +
poll() - +Method in class org.newdawn.slick.openal.MODSound +
Poll the streaming on the MOD +
poll(int) - +Method in class org.newdawn.slick.openal.SoundStore +
Poll the streaming system +
Polygon - Class in org.newdawn.slick.geom
A polygon implementation meeting the Shape contract.
Polygon(float[]) - +Constructor for class org.newdawn.slick.geom.Polygon +
Construct a new polygon with 3 or more points. +
Polygon() - +Constructor for class org.newdawn.slick.geom.Polygon +
Create an empty polygon +
POLYGON - +Static variable in class org.newdawn.slick.svg.Figure +
Polygon Type +
PolygonProcessor - Class in org.newdawn.slick.svg.inkscape
A processor for the and elements marked as not an arc.
PolygonProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.PolygonProcessor +
  +
PolygonTest - Class in org.newdawn.slick.tests
A test for polygon collision
PolygonTest() - +Constructor for class org.newdawn.slick.tests.PolygonTest +
Create the test +
popTransform() - +Method in class org.newdawn.slick.Graphics +
Pop a previously pushed transform from the stack to the current. +
pos - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord +
The position in the life cycle +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.BlobbyTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.EmptyTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.FadeInTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.FadeOutTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.RotateTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.SelectTransition +
  +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in interface org.newdawn.slick.state.transition.Transition +
Render the transition over the existing state rendering +
postRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.VerticalSplitTransition +
  +
postRenderSecondState(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
Notification that the transition is has just rendered the second state is the cross + transition. +
postRenderState(GameContainer, Graphics) - +Method in class org.newdawn.slick.state.StateBasedGame +
User hook for rendering at the game level after the current state + and/or transition have been rendered +
postUpdateState(GameContainer, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
User hook for rendering at the game level after the current state + and/or transition have been updated +
preCache() - +Method in class org.newdawn.slick.geom.Shape +
Cause all internal state to be generated and cached +
prependStep(int, int) - +Method in class org.newdawn.slick.util.pathfinding.Path +
Prepend a step to the path. +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.BlobbyTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.EmptyTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.FadeInTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.FadeOutTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.RotateTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.SelectTransition +
  +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in interface org.newdawn.slick.state.transition.Transition +
Render the transition before the existing state rendering +
preRender(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.VerticalSplitTransition +
  +
preRenderFirstState(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
Notification that the transition is about to render the first state is the cross + transition. +
preRenderSecondState(StateBasedGame, GameContainer, Graphics) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
Notification that the transition is about to render the second state is the cross + transition. +
preRenderState(GameContainer, Graphics) - +Method in class org.newdawn.slick.state.StateBasedGame +
User hook for rendering at the before the current state + and/or transition have been rendered +
pressed - +Variable in class org.newdawn.slick.Input +
True if the key has been pressed since last queries +
preUpdateState(GameContainer, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
User hook for updating at the game before the current state + and/or transition have been updated +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.DefsProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in interface org.newdawn.slick.svg.inkscape.ElementProcessor +
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.EllipseProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.GroupProcessor +
O +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.LineProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.PathProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.PolygonProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.RectProcessor +
  +
process(Loader, Element, Diagram, Transform) - +Method in class org.newdawn.slick.svg.inkscape.UseProcessor +
  +
projectOntoUnit(Vector2f, Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Project this vector onto another +
props - +Variable in class org.newdawn.slick.tiled.Layer +
the properties of this layer +
props - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
the properties of this group +
props - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
the properties of this group +
props - +Variable in class org.newdawn.slick.tiled.TiledMap +
the properties of the map +
prune() - +Method in class org.newdawn.slick.geom.Shape +
Prune any required points in this shape +
pt - +Variable in class org.newdawn.slick.geom.GeomUtil.HitResult +
The position of the intersection +
PureFontTest - Class in org.newdawn.slick.tests
A test of the font rendering capabilities
PureFontTest() - +Constructor for class org.newdawn.slick.tests.PureFontTest +
Create a new test for font rendering +
push(Link) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Push a link to the end of the path +
pushTransform() - +Method in class org.newdawn.slick.Graphics +
Push the current state of the transform from this graphics contexts + onto the underlying graphics stack's transform stack. +
+
+

+Q

+
+
QUAD_BASED_LINE_STRIP_RENDERER - +Static variable in class org.newdawn.slick.opengl.renderer.Renderer +
The indicator for consistant quad based lines +
QuadBasedLineStripRenderer - Class in org.newdawn.slick.opengl.renderer
A line strip renderer that uses quads to generate lines
QuadBasedLineStripRenderer() - +Constructor for class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
Create a new strip renderer +
+
+

+R

+
+
r - +Variable in class org.newdawn.slick.Color +
The red component of the colour +
RADIAL_TRIANGULATION_LEVEL - +Static variable in class org.newdawn.slick.svg.InkscapeLoader +
The number of times to over trigulate to get enough tesselation for + smooth shading +
RadialGradientFill - Class in org.newdawn.slick.svg
A filler to apply a SVG radial gradient across a shape
RadialGradientFill(Shape, Transform, Gradient) - +Constructor for class org.newdawn.slick.svg.RadialGradientFill +
Create a new fill for a radial gradient +
radius - +Variable in class org.newdawn.slick.geom.Circle +
The radius of the circle +
random() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Generate a random number in the range +
rate - +Variable in class org.newdawn.slick.openal.OggData +
The sampling rate +
rationalPoint(Shape, int) - +Static method in class org.newdawn.slick.geom.GeomUtil +
Rationalise a point in terms of a given shape +
read() - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
read(byte[], int, int) - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
read(byte[]) - +Method in class org.newdawn.slick.openal.OggInputStream +
  +
recalculateScale() - +Method in class org.newdawn.slick.ScalableGame +
Recalculate the scale of the game +
recordedFPS - +Variable in class org.newdawn.slick.GameContainer +
The last recorded FPS +
recordOldPosition() - +Method in class org.newdawn.slick.gui.TextField +
Record the old position and content +
Rectangle - Class in org.newdawn.slick.geom
An axis oriented used for shape bounds
Rectangle(float, float, float, float) - +Constructor for class org.newdawn.slick.geom.Rectangle +
Create a new bounding box +
RECTANGLE - +Static variable in class org.newdawn.slick.svg.Figure +
Rectangle Type +
RectProcessor - Class in org.newdawn.slick.svg.inkscape
A processor for the element.
RectProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.RectProcessor +
  +
red - +Static variable in class org.newdawn.slick.Color +
The fixed colour red +
ref - +Variable in class org.newdawn.slick.Image +
The name given for the image +
reference(String) - +Method in class org.newdawn.slick.svg.Gradient +
Reference another gradient, i.e. +
registerWriter(String, ImageWriter) - +Static method in class org.newdawn.slick.imageout.ImageWriterFactory +
Register an image writer with the factory. +
reinit() - +Method in class org.newdawn.slick.AppGameContainer +
  +
reinit() - +Method in class org.newdawn.slick.BigImage +
  +
reinit() - +Method in class org.newdawn.slick.GameContainer +
Renitialise the game and the context in which it's being rendered +
reinit() - +Method in class org.newdawn.slick.Image +
Reinitialise internal data +
release() - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
release() - +Method in interface org.newdawn.slick.opengl.Texture +
Destroy the texture reference +
release() - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
release(Particle) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Release a particle back to the system once it has expired +
releaseAll(ParticleEmitter) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Release all the particles owned by the specified emitter +
releaseGraphicsForImage(Image) - +Static method in class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
Release any graphics context that is assocaited with the given image +
reload() - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Reload all the textures loaded in this loader +
reload(TextureImpl, int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Reload a given texture blob +
reload() - +Method in class org.newdawn.slick.opengl.TextureImpl +
Reload this texture +
remove(DeferredResource) - +Method in class org.newdawn.slick.loading.LoadingList +
Remove a resource from the list that has been loaded for + other reasons. +
remove(int) - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Remove a step in the path +
removeAllControllerListeners() - +Method in class org.newdawn.slick.Input +
Remove all the controller listeners from this input +
removeAllEmitters() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Remove all the emitters from the system +
removeAllKeyListeners() - +Method in class org.newdawn.slick.Input +
Remove all the key listeners from this input +
removeAllListeners() - +Method in class org.newdawn.slick.Input +
Remove all the listeners from this input +
removeAllMouseListeners() - +Method in class org.newdawn.slick.Input +
Remove all the mouse listeners from this input +
removeAllResourceLocations() - +Static method in class org.newdawn.slick.util.ResourceLoader +
Remove all the locations, no resources will be found until + new locations have been added +
removeControllerListener(ControllerListener) - +Method in class org.newdawn.slick.Input +
Remove a controller listener that will no longer be notified +
removeEmitter(ParticleEmitter) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Remove a particle emitter that is currently used in the system +
removeFigure(Figure) - +Method in class org.newdawn.slick.svg.Diagram +
Remove a figure from the diagram +
removeFromClosed(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Remove a node from the closed list +
removeFromOpen(AStarPathFinder.Node) - +Method in class org.newdawn.slick.util.pathfinding.AStarPathFinder +
Remove a node from the open list +
removeKeyListener(KeyListener) - +Method in class org.newdawn.slick.Input +
Remove a key listener that will no longer be notified +
removeListener(InputProviderListener) - +Method in class org.newdawn.slick.command.InputProvider +
Remove a listener from this provider. +
removeListener(ComponentListener) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Remove a component listener. +
removeListener(InputListener) - +Method in class org.newdawn.slick.Input +
Remove a listener that will no longer be notified +
removeListener(MusicListener) - +Method in class org.newdawn.slick.Music +
Remove a listener from this music +
removeMouseListener(MouseListener) - +Method in class org.newdawn.slick.Input +
Remove a mouse listener that will no longer be notified +
removeResourceLocation(ResourceLocation) - +Static method in class org.newdawn.slick.util.ResourceLoader +
Remove a location that will be no longer be searched for resources +
render() - +Method in class org.newdawn.slick.CachedRender +
Render the cached operations. +
render(GameContainer, Graphics) - +Method in interface org.newdawn.slick.Game +
Render the game's screen here. +
render(GUIContext, Graphics) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Render this component to the screen +
render(GUIContext, Graphics) - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
render(GUIContext, Graphics) - +Method in class org.newdawn.slick.gui.MouseOverArea +
  +
render(GUIContext, Graphics) - +Method in class org.newdawn.slick.gui.TextField +
  +
render() - +Method in class org.newdawn.slick.particles.Particle +
Render this particle +
render() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Render the particles in the system +
render(float, float) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Render the particles in the system +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.ScalableGame +
  +
render(GameContainer, StateBasedGame, Graphics) - +Method in interface org.newdawn.slick.state.GameState +
Render this state to the game's graphics context +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
render(Graphics) - +Method in class org.newdawn.slick.svg.SimpleDiagramRenderer +
Render the diagram to the given graphics context +
render(Graphics, Diagram) - +Static method in class org.newdawn.slick.svg.SimpleDiagramRenderer +
Utility method to render a diagram in immediate mode +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.AlphaMapTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.AnimationTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.AntiAliasTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.BigImageTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.BigSpriteSheetTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.CachedRenderTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.CanvasContainerTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.CanvasSizeTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ClipTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.CopyAreaAlphaTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.CurveTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.DeferredLoadingTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.DistanceFieldTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.DoubleClickTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.DuplicateEmitterTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.FlashTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.FontPerformanceTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.FontTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GeomAccuracyTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GeomTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GradientImageTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GradientTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GraphicsTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.GUITest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageBufferEndianTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageBufferTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageCornerTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageGraphicsTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageMemTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageOutTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageReadTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ImageTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.InkscapeTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.InputProviderTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.InputTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.IsoTiledTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.KeyRepeatTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.LameTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.LineRenderTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.MorphShapeTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.MorphSVGTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.NavMeshTest +
Render the game - in this case render the map and diagnostic data +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.PackedSheetTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ParticleTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.PedigreeTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.PolygonTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.PureFontTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SavedStateTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ScalableTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SlickCallableTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SoundPositionTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SoundTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SoundURLTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.SpriteSheetFontTest +
  +
render(GameContainer, StateBasedGame, Graphics) - +Method in class org.newdawn.slick.tests.states.TestState1 +
  +
render(GameContainer, StateBasedGame, Graphics) - +Method in class org.newdawn.slick.tests.states.TestState2 +
  +
render(GameContainer, StateBasedGame, Graphics) - +Method in class org.newdawn.slick.tests.states.TestState3 +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TestBox +
  +
render() - +Method in class org.newdawn.slick.tests.TestUtils +
Game loop render +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TexturePaintTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TileMapTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TransformTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TransformTest2 +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TransparentColorTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
  +
render(GameContainer, Graphics) - +Method in class org.newdawn.slick.tests.UnicodeFontTest +
  +
render(int, int, int, int, int, int, boolean, int, int) - +Method in class org.newdawn.slick.tiled.Layer +
Render a section of this layer +
render(int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render the whole tile map at a given location +
render(int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render a single layer from the map +
render(int, int, int, int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render a section of the tile map +
render(int, int, int, int, int, int, int, boolean) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render a section of the tile map +
render(int, int, int, int, int, int, boolean) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render a section of the tile map +
Renderable - Interface in org.newdawn.slick
Description of anything that can be drawn
renderContext - +Static variable in class org.newdawn.slick.font.GlyphPage +
The render context in which the glyphs will be generated +
renderedLine(int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Overrideable to allow other sprites to be rendered between lines of the + map +
Renderer - Class in org.newdawn.slick.opengl.renderer
The static holder for the current GL implementation.
Renderer() - +Constructor for class org.newdawn.slick.opengl.renderer.Renderer +
  +
renderGL() - +Method in class org.newdawn.slick.tests.SlickCallableTest +
Render the GL scene, this isn't efficient and if you know + OpenGL I'm assuming you can see why. +
renderImpl(GUIContext, Graphics) - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated. Allow the sub-component to render +
renderInUse(int, int) - +Method in class org.newdawn.slick.Animation +
Render the appropriate frame when the spriteSheet backing this Animation is in use. +
renderInUse(int, int, int, int) - +Method in class org.newdawn.slick.SpriteSheet +
Render a sprite when this sprite sheet is in use. +
renderIsometricMap(int, int, int, int, int, int, Layer, boolean) - +Method in class org.newdawn.slick.tiled.TiledMap +
Render of isometric map renders. +
renderLines(float[], int) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
Render the lines applying antialiasing if required +
renderLinesImpl(float[], int, float) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
Render the lines given +
renderOverlay(GameContainer, Graphics) - +Method in class org.newdawn.slick.ScalableGame +
Render the overlay that will sit over the scaled screen +
replay() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Cause the emitter to replay it's circle +
replayCheck() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Check if the replay has died out - used by the editor +
reset() - +Method in class org.newdawn.slick.geom.MannTriangulator +
Reset the internal state of the triangulator +
reset() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Release all the particles held by this emitter +
reset() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Reset the state of the system +
resetFont() - +Method in class org.newdawn.slick.Graphics +
Reset to using the default font for this context +
resetInputTransform() - +Method in class org.newdawn.slick.Input +
Reset the transformation being applied to the input to the default +
resetLineWidth() - +Method in class org.newdawn.slick.Graphics +
Reset the line width in use to the default for this graphics context +
resetMask() - +Static method in class org.newdawn.slick.util.MaskUtil +
Reset the masked area - should be done after you've finished rendering +
resetState() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
resetState() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
resetState() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Clear the state of emitter back to default +
resetTransform() - +Method in class org.newdawn.slick.Graphics +
Reset the transformation on this graphics context +
resolve(Diagram) - +Method in class org.newdawn.slick.svg.Gradient +
Resolve the gradient reference +
resourceExists(String) - +Static method in class org.newdawn.slick.util.ResourceLoader +
Check if a resource is available from any given resource loader +
ResourceLoader - Class in org.newdawn.slick.util
A simple wrapper around resource loading should anyone decide to change + their minds how this is meant to work in the future.
ResourceLoader() - +Constructor for class org.newdawn.slick.util.ResourceLoader +
  +
ResourceLocation - Interface in org.newdawn.slick.util
A location from which resources can be loaded
restart() - +Method in class org.newdawn.slick.Animation +
Restart the animation from the beginning +
restartLoop() - +Method in class org.newdawn.slick.openal.SoundStore +
Restart the music loop that is currently paused +
restartMusic() - +Static method in class org.newdawn.slick.openal.AudioImpl +
Restart the music currently being paused +
resume() - +Method in class org.newdawn.slick.GameContainer +
Resumt the game - i.e. +
resume() - +Method in class org.newdawn.slick.Input +
Resumes the polling and sending of input events. +
resume() - +Method in class org.newdawn.slick.Music +
Resume the music playback +
RGB - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
RGBA - +Static variable in class org.newdawn.slick.opengl.PNGDecoder +
  +
RIGHT - +Static variable in class org.newdawn.slick.command.ControllerDirectionControl +
The direction indicating we're waiting for the user to press right +
RIGHT - +Static variable in class org.newdawn.slick.util.FontUtils.Alignment +
Right alignment +
rotate(float, float, float) - +Method in class org.newdawn.slick.Graphics +
Apply a rotation to everything draw on the graphics context +
rotate(float) - +Method in class org.newdawn.slick.Image +
Add the angle provided to the current rotation. +
RotateTransition - Class in org.newdawn.slick.state.transition
A transition that causes the previous state to rotate and scale down into + the new state.
RotateTransition() - +Constructor for class org.newdawn.slick.state.transition.RotateTransition +
Create a new transition +
RotateTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.RotateTransition +
Create a new transition +
RoundedRectangle - Class in org.newdawn.slick.geom
Class to create rounded rectangles with.
RoundedRectangle(float, float, float, float, float) - +Constructor for class org.newdawn.slick.geom.RoundedRectangle +
Construct a rectangle with rounded corners. +
RoundedRectangle(float, float, float, float, float, int) - +Constructor for class org.newdawn.slick.geom.RoundedRectangle +
Construct a rectangle with rounded corners. +
RoundedRectangle(float, float, float, float, float, int, int) - +Constructor for class org.newdawn.slick.geom.RoundedRectangle +
Construct a rectangle with rounded corners. +
runAsApplication(Game, int, int, boolean) - +Static method in class org.newdawn.slick.util.Bootstrap +
Start the game as an application +
runloop() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
The running game loop +
running - +Variable in class org.newdawn.slick.GameContainer +
True if we're currently running the game loop +
running() - +Method in class org.newdawn.slick.GameContainer +
True if the game is running +
+
+

+S

+
+
samplerate - +Variable in class org.newdawn.slick.openal.AiffData +
sample rate of data +
samplerate - +Variable in class org.newdawn.slick.openal.WaveData +
sample rate of data +
samples - +Variable in class org.newdawn.slick.GameContainer +
The number of samples we'll attempt through hardware +
save(File) - +Method in class org.newdawn.slick.font.HieroSettings +
Saves the settings to a file. +
save() - +Method in class org.newdawn.slick.SavedState +
Save the stored data to file/muffin +
saveConfiguredSystem(File, ParticleSystem) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Save a particle system with only ConfigurableEmitters in to an XML file +
saveConfiguredSystem(OutputStream, ParticleSystem) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Save a particle system with only ConfigurableEmitters in to an XML file +
SavedState - Class in org.newdawn.slick
A utility to allow game setup/state to be stored locally.
SavedState(String) - +Constructor for class org.newdawn.slick.SavedState +
Create and Test to see if the app is running + as webstart or local app and select the appropriate + muffin type +
SavedStateTest - Class in org.newdawn.slick.tests
A test of the the local storage utilities
SavedStateTest() - +Constructor for class org.newdawn.slick.tests.SavedStateTest +
Create a new test for font rendering +
saveEmitter(File, ConfigurableEmitter) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Save a single emitter to the XML file +
saveEmitter(OutputStream, ConfigurableEmitter) - +Static method in class org.newdawn.slick.particles.ParticleIO +
Save a single emitter to the XML file +
saveFile(HashMap, String) - +Method in class org.newdawn.slick.muffin.FileMuffin +
  +
saveFile(HashMap, String) - +Method in interface org.newdawn.slick.muffin.Muffin +
Save a file of data +
saveFile(HashMap, String) - +Method in class org.newdawn.slick.muffin.WebstartMuffin +
  +
saveImage(Image, String, OutputStream, boolean) - +Method in class org.newdawn.slick.imageout.ImageIOWriter +
  +
saveImage(Image, String, OutputStream, boolean) - +Method in interface org.newdawn.slick.imageout.ImageWriter +
Save an Image to an given location +
saveImage(Image, String, OutputStream, boolean) - +Method in class org.newdawn.slick.imageout.TGAWriter +
  +
ScalableGame - Class in org.newdawn.slick
A wrapper to allow any game to be scalable.
ScalableGame(Game, int, int) - +Constructor for class org.newdawn.slick.ScalableGame +
Create a new scalable game wrapper +
ScalableGame(Game, int, int, boolean) - +Constructor for class org.newdawn.slick.ScalableGame +
Create a new scalable game wrapper +
ScalableTest - Class in org.newdawn.slick.tests
A test for a scalable game
ScalableTest() - +Constructor for class org.newdawn.slick.tests.ScalableTest +
Simple test +
scale(float) - +Method in class org.newdawn.slick.Color +
Scale the components of the colour by the given value +
scale(float) - +Method in class org.newdawn.slick.geom.Vector2f +
Scale this vector by a value +
scale(float, float) - +Method in class org.newdawn.slick.Graphics +
Apply a scaling factor to everything drawn on the graphics context +
scaleCopy(float) - +Method in class org.newdawn.slick.Color +
Scale the components of the colour by the given value +
scaleGrow(float, float) - +Method in class org.newdawn.slick.geom.Rectangle +
Grow the rectangle based on scaling it's size +
scaleY - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
Whiskas - Interpolated value for y axis scaling +
scaleY - +Variable in class org.newdawn.slick.particles.Particle +
The currently scalar applied on the y axis +
screenHeight - +Variable in class org.newdawn.slick.Graphics +
The height of the screen +
screenWidth - +Variable in class org.newdawn.slick.Graphics +
The width of the screen +
SelectTransition - Class in org.newdawn.slick.state.transition
A transition that moves to the next as though it was selected by some background menu.
SelectTransition() - +Constructor for class org.newdawn.slick.state.transition.SelectTransition +
Create a new transition +
SelectTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.SelectTransition +
Create a new transition +
set(float[], float[]) - +Method in class org.newdawn.slick.geom.Line +
Configure the line +
set(Vector2f, Vector2f) - +Method in class org.newdawn.slick.geom.Line +
Configure the line +
set(float, float, float, float) - +Method in class org.newdawn.slick.geom.Line +
Configure the line without garbage +
set(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Set the value of this vector +
set(float, float) - +Method in class org.newdawn.slick.geom.Vector2f +
Set the values in this vector +
set(float[]) - +Method in class org.newdawn.slick.geom.Vector2f +
Set the values in this vector +
set16BitMode() - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Tell the loader to produce 16 bit textures +
setAcceptingInput(boolean) - +Method in class org.newdawn.slick.util.InputAdapter +
Indicate if we should be accepting input of any sort +
setActive(boolean) - +Method in class org.newdawn.slick.command.InputProvider +
Indicate whether this provider should be sending events +
setActive(boolean) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Indicate if this interpoalte value should be used +
setAddMethodName(String) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Set the name of the method to use to add child objects to their + parents. +
setAllowDuplicatePoints(boolean) - +Method in class org.newdawn.slick.geom.Polygon +
Indicate if duplicate points are allow +
setAlpha(float) - +Method in class org.newdawn.slick.Image +
Set the alpha value to use when rendering this image +
setAlpha(boolean) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setAlpha(boolean) - +Method in class org.newdawn.slick.opengl.TextureImpl +
If this texture has alpha +
setAlwaysRender(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether we want this container to render when it has focus +
setAmplitude(float) - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Sets the amplitude of the wobble effect. +
setAmplitude(float) - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Sets the amplitude of the wobble effect. +
setAnimatedMouseCursor(String, int, int, int, int, int[]) - +Method in class org.newdawn.slick.GameContainer +
Get a cursor based on a image reference on the classpath. +
setAntiAlias(boolean) - +Method in class org.newdawn.slick.Graphics +
Indicate if we should antialias as we draw primitives +
setAntiAlias(boolean) - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
setAntiAlias(boolean) - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Indicate whether antialiasing should be applied +
setAntiAlias(boolean) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
setAutoUpdate(boolean) - +Method in class org.newdawn.slick.Animation +
Indicate if this animation should automatically update based on the + time between renders or if it should need updating via the update() + method. +
setBackground(Color) - +Method in class org.newdawn.slick.Graphics +
Set the background colour of the graphics context. +
setBackgroundColor(Color) - +Method in class org.newdawn.slick.gui.TextField +
Set the background color. +
setBlendingMode(int) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Set the blending mode for the particles +
setBlurKernelSize(int) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Sets how many neighboring pixels are used to blur the shadow. +
setBlurPasses(int) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Sets the number of times to apply a blur to the shadow. +
setBold(boolean) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setBorderColor(Color) - +Method in class org.newdawn.slick.gui.TextField +
Set the border color. +
setBottomColor(Color) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Set the colour at the bottom of the graident +
setBounds(Rectangle) - +Method in class org.newdawn.slick.geom.Rectangle +
Set the bounds of this rectangle based on the given rectangle +
setBounds(float, float, float, float) - +Method in class org.newdawn.slick.geom.Rectangle +
Set the bounds of this rectangle +
setCacheName(String) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the name this texture is stored against in the cache +
setCenterOfRotation(float, float) - +Method in class org.newdawn.slick.Image +
Set the centre of the rotation when applied to this image +
setCenterX(float) - +Method in class org.newdawn.slick.geom.Shape +
Set the x center of this shape. +
setCenterY(float) - +Method in class org.newdawn.slick.geom.Shape +
Set the y center of this shape. +
setClearEachFrame(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate if we should clear the screen at the beginning of each frame. +
setClip(int, int, int, int) - +Method in class org.newdawn.slick.Graphics +
Set the clipping to apply to the drawing. +
setClip(Rectangle) - +Method in class org.newdawn.slick.Graphics +
Set the clipping to apply to the drawing. +
setClosed(boolean) - +Method in class org.newdawn.slick.geom.Polygon +
Indicate if the polygon should be closed +
setColor(Color) - +Method in class org.newdawn.slick.font.effects.ColorEffect +
Set the colour being applied by this effect +
setColor(Color) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Set the colour of the outline being drawn +
setColor(Color) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Set the colour of the shadow to be generated +
setColor(Color) - +Method in class org.newdawn.slick.Graphics +
Set the color to use when rendering to this context +
setColor(int, float, float, float, float) - +Method in class org.newdawn.slick.Image +
Set the color of the given corner when this image is rendered. +
setColor(int, float, float, float) - +Method in class org.newdawn.slick.Image +
Set the color of the given corner when this image is rendered. +
setColor(float, float, float, float) - +Method in class org.newdawn.slick.particles.Particle +
Set the color of the particle +
setColor(Color) - +Method in class org.newdawn.slick.util.LocatedImage +
Set the colour filter to apply to the image +
setConsumeEvents(boolean) - +Method in class org.newdawn.slick.gui.TextField +
Indicate if the input events should be consumed by this field +
setCornerRadius(float) - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Set the radius for each corner. +
setCurrent(Graphics) - +Static method in class org.newdawn.slick.Graphics +
Set the current graphics context in use +
setCurrentFrame(int) - +Method in class org.newdawn.slick.Animation +
Set the current frame to be rendered +
setCurrentMusicVolume(float) - +Method in class org.newdawn.slick.openal.SoundStore +
Set the music volume of the current playing music. +
setCursorPos(int) - +Method in class org.newdawn.slick.gui.TextField +
Set the position of the cursor +
setCursorVisible(boolean) - +Method in class org.newdawn.slick.gui.TextField +
Indicate whether the mouse cursor should be visible or not +
setCurve(ArrayList) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Set the collection of data points to interpolate between +
setCyclic(boolean) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
If set to true, the gradient will repeat. +
setDefaultFont(Font) - +Method in class org.newdawn.slick.GameContainer +
Set the default font that will be intialised in the graphics held in this container +
setDefaultImageName(String) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Set the default image name +
setDefaultMouseCursor() - +Method in class org.newdawn.slick.AppGameContainer +
  +
setDefaultMouseCursor() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setDefaultMouseCursor() - +Method in class org.newdawn.slick.GameContainer +
Set the default mouse cursor - i.e. +
setDefaultMouseCursor() - +Method in interface org.newdawn.slick.gui.GUIContext +
Set the default mouse cursor - i.e. +
setDefaultPackage(String) - +Method in class org.newdawn.slick.util.xml.ObjectTreeParser +
Set the default package which will be search for classes by their XML + element name. +
setDeferredLoading(boolean) - +Static method in class org.newdawn.slick.loading.LoadingList +
Indicate if we're going to use deferred loading. +
setDeferredLoading(boolean) - +Method in class org.newdawn.slick.openal.SoundStore +
True if we should only record the request to load in the intention + of loading the sound later +
setDeferredLoading(boolean) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
True if we should only record the request to load in the intention + of loading the texture later +
setDetail(float) - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
Sets the detail of the wobble effect. +
setDisplayListCaching(boolean) - +Method in class org.newdawn.slick.UnicodeFont +
Sets if this UnicodeFont caches the glyph drawing instructions to improve performance. +
setDisplayMode(int, int, boolean) - +Method in class org.newdawn.slick.AppGameContainer +
Set the display mode to be used +
setDoubleClickInterval(int) - +Method in class org.newdawn.slick.Input +
Set the double click interval, the time between the first + and second clicks that should be interpreted as a + double click. +
setDrawMode(int) - +Method in class org.newdawn.slick.Graphics +
Set the drawing mode to use. +
setDuration(int, int) - +Method in class org.newdawn.slick.Animation +
Set the duration of the given frame +
setEnabled(boolean) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Indicate if this option should be enabled +
setEnabled(boolean) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
setEnabled(boolean) - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
setEnabled(boolean) - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Indicate whether the emitter should be enabled +
setEnd(float, float) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the end control point's position +
setEnd(Vector2f) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the end control point's position +
setEndColor(Color) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the colour to apply at the end control's position +
setExternalDiagram(Diagram) - +Method in class org.newdawn.slick.svg.SVGMorph +
Set the current diagram we should morph from. +
setExternalFrame(Shape) - +Method in class org.newdawn.slick.geom.MorphShape +
Set the current frame +
setFilter(BufferedImageOp) - +Method in class org.newdawn.slick.font.effects.FilterEffect +
Set the filter being applied by this effect +
setFilter(int) - +Method in class org.newdawn.slick.Image +
Set the image filtering to be used. +
setFocus(boolean) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Indicate whether this component should be focused or not +
setFocus(boolean) - +Method in class org.newdawn.slick.gui.TextField +
  +
setFont(Font) - +Method in class org.newdawn.slick.Graphics +
Set the font to be used when rendering text +
setFontSize(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setForcedVerboseOn() - +Static method in class org.newdawn.slick.util.Log +
Indicate that we want verbose logging, even if switched off in game code. +
setForceExit(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate if we should force exitting the VM at the end + of the game (default = true) +
setFullscreen(boolean) - +Method in class org.newdawn.slick.AppGameContainer +
Indicate whether we want to be in fullscreen mode. +
setFullscreen(boolean) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setFullscreen(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether we want to be in fullscreen mode. +
setGlobalAlphaScale(float) - +Method in class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer +
  +
setGlobalAlphaScale(float) - +Method in interface org.newdawn.slick.opengl.renderer.SGL +
Set the scaling we'll apply to any colour binds in this renderer +
setGlyphPageHeight(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setGlyphPageHeight(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the height of the backing textures. +
setGlyphPageWidth(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setGlyphPageWidth(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the width of the backing textures. +
setHeight(float) - +Method in class org.newdawn.slick.geom.Rectangle +
Set the heightof this box +
setHeight(float) - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Set the height of this rectangle. +
setHeight(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setHeight(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the height of the image +
setHeight(float) - +Method in class org.newdawn.slick.util.LocatedImage +
Set the height the image should be drawn at +
setHoldTextureData(boolean) - +Method in class org.newdawn.slick.opengl.InternalTextureLoader +
Indicate where texture data should be held for reinitialising at a future + point. +
setIcon(String) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setIcon(String) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setIcon(String) - +Method in class org.newdawn.slick.GameContainer +
Set the icon to be displayed if possible in this type of + container +
setIcons(String[]) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setIcons(String[]) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setIcons(String[]) - +Method in class org.newdawn.slick.GameContainer +
Set the icons to be used for this application. +
setImage(Image) - +Method in class org.newdawn.slick.font.Glyph +
Set the image that has been generated for this glyph +
setImage(Image) - +Method in class org.newdawn.slick.particles.Particle +
Set the image used to render this particle +
setImageColor(float, float, float, float) - +Method in class org.newdawn.slick.Image +
Set the filter to apply when drawing this image +
setImageColor(float, float, float) - +Method in class org.newdawn.slick.Image +
Set the filter to apply when drawing this image +
setImageName(String) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Set the name of the image to use on a per particle basis. +
setInput(Input) - +Method in class org.newdawn.slick.BasicGame +
  +
setInput(Input) - +Method in interface org.newdawn.slick.ControlledInputReciever +
Set the input that events are being sent from +
setInput(Input) - +Method in class org.newdawn.slick.state.BasicGameState +
  +
setInput(Input) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
setInput(Input) - +Method in class org.newdawn.slick.util.InputAdapter +
  +
setItalic(boolean) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setJoin(int) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Sets how the corners of the outline are drawn. +
setLife(float) - +Method in class org.newdawn.slick.particles.Particle +
Set the life of the particle +
setLimit(int) - +Method in class org.newdawn.slick.tiled.TileSet +
Set the limit of the tiles in this set +
setLineCaps(boolean) - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
setLineCaps(boolean) - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Indicate if we should render end caps +
setLineCaps(boolean) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
Indicate if we should render end caps +
setLineStripRenderer(int) - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Set the line strip renderer to one of the known types +
setLineStripRenderer(LineStripRenderer) - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Set the line strip renderer to be used globally +
setLineWidth(float) - +Method in class org.newdawn.slick.Graphics +
Set the with of the line to be used when drawing line based primitives +
setListener(GeomUtilListener) - +Method in class org.newdawn.slick.geom.GeomUtil +
Set the listener to be notified of geometry based operations +
setLocal(boolean) - +Method in class org.newdawn.slick.fills.GradientFill +
Indicate if the gradient is defined in shape local coordinates +
setLocation(float, float) - +Method in class org.newdawn.slick.geom.Shape +
Set the top-left location of this shape +
setLocation(Vector2f) - +Method in class org.newdawn.slick.geom.Shape +
Set the top-left location of this shape +
setLocation(int, int) - +Method in class org.newdawn.slick.gui.AbstractComponent +
Moves the component. +
setLocation(int, int) - +Method in class org.newdawn.slick.gui.BasicComponent +
Deprecated.   +
setLocation(float, float) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Moves the component. +
setLocation(int, int) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the location of this area +
setLocation(int, int) - +Method in class org.newdawn.slick.gui.TextField +
Moves the component. +
setLogSystem(LogSystem) - +Static method in class org.newdawn.slick.util.Log +
Set the log system that will have all of the log info + sent to it. +
setLooping(boolean) - +Method in class org.newdawn.slick.Animation +
Indicate if this animation should loop or stop at the last frame +
setMax(int) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Set the maximum value possible in this data set +
setMax(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Set the maxmium value for this range +
setMaximumLogicUpdateInterval(int) - +Method in class org.newdawn.slick.GameContainer +
Set the maximum amount of time in milliseconds that can passed + into the update method. +
setMaxLength(int) - +Method in class org.newdawn.slick.gui.TextField +
Set the length of the allowed input +
setMaxSources(int) - +Method in class org.newdawn.slick.openal.SoundStore +
Set the maximum number of concurrent sound effects that will be + attempted +
setMin(int) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator +
Set the minimum value possible in this data set +
setMin(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.Range +
Set the minimum value for this range +
setMinimumLogicUpdateInterval(int) - +Method in class org.newdawn.slick.GameContainer +
Set the minimum amount of time in milliseonds that has to + pass before update() is called on the container game. +
setMorphTime(float) - +Method in class org.newdawn.slick.geom.MorphShape +
Set the "time" index for this morph. +
setMorphTime(float) - +Method in class org.newdawn.slick.svg.SVGMorph +
Set the "time" index for this morph. +
setMouseClickTolerance(int) - +Method in class org.newdawn.slick.Input +
Set the pixel distance the mouse can move to accept a mouse click. +
setMouseCursor(String, int, int) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setMouseCursor(ImageData, int, int) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setMouseCursor(Cursor, int, int) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setMouseCursor(Image, int, int) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setMouseCursor(String, int, int) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setMouseCursor(Image, int, int) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Set the mouse cursor based on the contents of the image. +
setMouseCursor(ImageData, int, int) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setMouseCursor(Cursor, int, int) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setMouseCursor(String, int, int) - +Method in class org.newdawn.slick.GameContainer +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseCursor(ImageData, int, int) - +Method in class org.newdawn.slick.GameContainer +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseCursor(Image, int, int) - +Method in class org.newdawn.slick.GameContainer +
Set the mouse cursor based on the contents of the image. +
setMouseCursor(Cursor, int, int) - +Method in class org.newdawn.slick.GameContainer +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseCursor(String, int, int) - +Method in interface org.newdawn.slick.gui.GUIContext +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseCursor(ImageData, int, int) - +Method in interface org.newdawn.slick.gui.GUIContext +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseCursor(Cursor, int, int) - +Method in interface org.newdawn.slick.gui.GUIContext +
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +
setMouseDownColor(Color) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the color to be used when the mouse is down the area +
setMouseDownImage(Image) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the image to be used when the mouse is down the area +
setMouseDownSound(Sound) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the mouse down sound effect +
setMouseGrabbed(boolean) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setMouseGrabbed(boolean) - +Method in class org.newdawn.slick.AppletGameContainer.Container +
  +
setMouseGrabbed(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether mouse cursor should be grabbed or not +
setMouseOverColor(Color) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the color to be used when the mouse is over the area +
setMouseOverImage(Image) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the image to be used when the mouse is over the area +
setMouseOverSound(Sound) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the mouse over sound effect +
setMultiSample(int) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether we want to try to use fullscreen multisampling. +
setMusicOn(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether music should be enabled +
setMusicOn(boolean) - +Method in class org.newdawn.slick.openal.SoundStore +
Inidicate whether music should be playing +
setMusicPitch(float) - +Method in class org.newdawn.slick.openal.SoundStore +
Set the pitch at which the current music is being played +
setMusicVolume(float) - +Method in class org.newdawn.slick.GameContainer +
Set the default volume for music +
setMusicVolume(float) - +Method in class org.newdawn.slick.openal.SoundStore +
Set the music volume +
setName(String) - +Method in class org.newdawn.slick.Image +
Give this image a meaningful tagging name. +
setNormalColor(Color) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the normal color used on the image in the default state +
setNormalImage(Image) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the normal image used on the image in the default state +
setNumber(String, double) - +Method in class org.newdawn.slick.SavedState +
Save the given value at the given location + will overwrite any previous value at this location +
setOffset(int) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Sets the pixel offset to move the gradient up or down. +
setOffset(float, float) - +Method in class org.newdawn.slick.Input +
Set the offset to apply to the screen coodinates +
setOpacity(float) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Set the opacity of the shadow, i.e. +
setOriented(boolean) - +Method in class org.newdawn.slick.particles.Particle +
Indicate if this particle should be oriented based on it's velocity +
setPaddingAdvanceX(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingAdvanceX(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the additional amount to offset glyphs on the x axis. +
setPaddingAdvanceY(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingAdvanceY(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the additional amount to offset a line of text on the y axis. +
setPaddingBottom(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingBottom(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the padding below a glyph on the GlyphPage to allow for effects to be drawn. +
setPaddingLeft(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingLeft(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn. +
setPaddingRight(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingRight(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn. +
setPaddingTop(int) - +Method in class org.newdawn.slick.font.HieroSettings +
  +
setPaddingTop(int) - +Method in class org.newdawn.slick.UnicodeFont +
Sets the padding above a glyph on the GlyphPage to allow for effects to be drawn. +
setPaused(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicates if the game should be paused, i.e. +
setPingPong(boolean) - +Method in class org.newdawn.slick.Animation +
Indicate if this animation should ping pong back and forth +
setPosition(float) - +Method in class org.newdawn.slick.Music +
Seeks to a position in the music. +
setPosition(float) - +Method in interface org.newdawn.slick.openal.Audio +
Seeks to a position in the music. +
setPosition(float) - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
setPosition(float) - +Method in class org.newdawn.slick.openal.MODSound +
  +
setPosition(float) - +Method in class org.newdawn.slick.openal.NullAudio +
  +
setPosition(float) - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Seeks to a position in the music. +
setPosition(float) - +Method in class org.newdawn.slick.openal.StreamSound +
  +
setPosition(float, float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Set the position of this particle source +
setPosition(float, float, boolean) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
Set the position of this particle source +
setPosition(float, float) - +Method in class org.newdawn.slick.particles.Particle +
Set the position of this particle +
setPosition(float, float) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Set the position at which this system should render relative to the current + graphics context setup +
setR(float) - +Method in class org.newdawn.slick.svg.Gradient +
Set the radius given in the SVG +
setRadii(float, float) - +Method in class org.newdawn.slick.geom.Ellipse +
Change the shape of this Ellipse +
setRadius(float) - +Method in class org.newdawn.slick.geom.Circle +
Set the radius of this circle +
setRadius1(float) - +Method in class org.newdawn.slick.geom.Ellipse +
Set the horizontal radius of the ellipse +
setRadius2(float) - +Method in class org.newdawn.slick.geom.Ellipse +
Set the vertical radius of the ellipse +
setRelativePath(String) - +Static method in class org.newdawn.slick.particles.ConfigurableEmitter +
Set the path from which images should be loaded +
setRelativePath(String) - +Static method in class org.newdawn.slick.particles.ParticleSystem +
Set the path from which images should be loaded +
setRemoveCompletedEmitters(boolean) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Indicate if completed emitters should be removed +
setRenderer(int) - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Set the renderer to one of the known types +
setRenderer(SGL) - +Static method in class org.newdawn.slick.opengl.renderer.Renderer +
Set the renderer to be used +
setRGBA(int, int, int, int, int, int) - +Method in class org.newdawn.slick.ImageBuffer +
Set a pixel in the image buffer +
setRotation(float) - +Method in class org.newdawn.slick.Image +
Set the angle to rotate this image to. +
setScale(float) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Changes the height of the gradient by a percentage. +
setScale(float, float) - +Method in class org.newdawn.slick.Input +
Set the scaling to apply to screen coordinates +
setScaleY(float) - +Method in class org.newdawn.slick.particles.Particle +
Set the current scalar applied on the y axis +
setShape(Shape) - +Method in class org.newdawn.slick.font.Glyph +
Set the shape that should be drawn for this glyph +
setShowFPS(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether the container should show the FPS +
setSize(float, float) - +Method in class org.newdawn.slick.geom.Rectangle +
Set the size (widtha and height) of this rectangle +
setSize(float) - +Method in class org.newdawn.slick.particles.Particle +
Set the size of the particle +
setSmoothDeltas(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate if we want to smooth deltas. +
setSoundOn(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether sound effects should be enabled +
setSoundsOn(boolean) - +Method in class org.newdawn.slick.openal.SoundStore +
Indicate whether sound effects should be played +
setSoundVolume(float) - +Method in class org.newdawn.slick.GameContainer +
Set the default volume for sound fx +
setSoundVolume(float) - +Method in class org.newdawn.slick.openal.SoundStore +
Set the sound volume +
setSpeed(float) - +Method in class org.newdawn.slick.Animation +
Adjust the overall speed of the animation. +
setSpeed(float) - +Method in class org.newdawn.slick.particles.Particle +
Set the current speed of this particle +
setStart(float, float) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the start point's position +
setStart(Vector2f) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the start control point's position +
setStartColor(Color) - +Method in class org.newdawn.slick.fills.GradientFill +
Set the colour to apply at the start control's position +
setString(String) - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect.Value +
Sets the string representation of the value. +
setString(String, String) - +Method in class org.newdawn.slick.SavedState +
Save the given value at the given location + will overwrite any previous value at this location +
setStroke(Stroke) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Sets the stroke to use for the outline. +
setTargetFrameRate(int) - +Method in class org.newdawn.slick.GameContainer +
Set the target fps we're hoping to get +
setText(String) - +Method in class org.newdawn.slick.gui.TextField +
Set the value to be displayed in the text field +
setTextColor(Color) - +Method in class org.newdawn.slick.gui.TextField +
Set the text color. +
setTexture(Texture) - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
setTexture(Texture) - +Method in class org.newdawn.slick.Image +
Set the texture used by this image +
setTexture(Texture) - +Method in class org.newdawn.slick.SpriteSheet +
  +
setTextureData(int, int, int, int, ByteBuffer) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the texture data that this texture can be reloaded from +
setTextureFilter(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setTextureFilter(int) - +Method in interface org.newdawn.slick.opengl.Texture +
Apply a given texture filter to the texture +
setTextureFilter(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
  +
setTextureHeight(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setTextureHeight(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the height of this texture +
setTextureID(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setTextureID(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the OpenGL texture ID for this texture +
setTextureWidth(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setTextureWidth(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the width of this texture +
setTheta(double) - +Method in class org.newdawn.slick.geom.Vector2f +
Calculate the components of the vectors based on a angle +
setTileID(int, int, int) - +Method in class org.newdawn.slick.tiled.Layer +
Set the global tile ID at a specified location +
setTileId(int, int, int, int) - +Method in class org.newdawn.slick.tiled.TiledMap +
Set the global ID of a tile at specified location in the map +
setTileSetImage(Image) - +Method in class org.newdawn.slick.tiled.TileSet +
Set the image to use for this sprite sheet image to use for this tileset +
setTitle(String) - +Method in class org.newdawn.slick.AppGameContainer +
Set the title of the window +
setTopColor(Color) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
Set the colour at the top of the graident +
setTransform(Transform) - +Method in class org.newdawn.slick.svg.Gradient +
Set the transform given for this definition +
setType(int) - +Method in class org.newdawn.slick.particles.Particle +
Set the type of this particle +
setup() - +Method in class org.newdawn.slick.AppGameContainer +
Setup the environment +
setup(float) - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Setup the playback properties +
setUpdateOnlyWhenVisible(boolean) - +Method in class org.newdawn.slick.AppGameContainer +
  +
setUpdateOnlyWhenVisible(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate if the display should update only when the game is visible + (the default is true) +
setUseFBO(boolean) - +Static method in class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
Force FBO use on or off +
setUsePoint(int) - +Method in class org.newdawn.slick.particles.Particle +
Indicate how this particle should be renered +
setUsePoints(boolean) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Indicate if this engine should use points to render the particles +
setValue(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.RandomValue +
Set the configured value +
setValue(float) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter.SimpleValue +
Set the configured value +
setValues(List) - +Method in class org.newdawn.slick.font.effects.ColorEffect +
  +
setValues(List) - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect +
Sets the list of ConfigurableEffect.Values for this effect. +
setValues(List) - +Method in class org.newdawn.slick.font.effects.GradientEffect +
  +
setValues(List) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
  +
setValues(List) - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
  +
setValues(List) - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
  +
setValues(List) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
  +
setVelocity(float, float, float) - +Method in class org.newdawn.slick.particles.Particle +
Set the velocity of the particle +
setVelocity(float, float) - +Method in class org.newdawn.slick.particles.Particle +
Set the velocity of the particle +
setVerbose(boolean) - +Method in class org.newdawn.slick.GameContainer +
Inidcate we want verbose logging +
setVerbose(boolean) - +Static method in class org.newdawn.slick.util.Log +
Indicate that we want verbose logging. +
setVisible(boolean) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Indicate whether the particle system should be visible, i.e. +
setVolume(float) - +Method in class org.newdawn.slick.Music +
Set the volume of the music as a factor of the global volume setting +
setVSync(boolean) - +Method in class org.newdawn.slick.GameContainer +
Indicate whether the display should be synced to the + vertical refresh (stops tearing) +
setWavelength(float) - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
Sets the wavelength of the wobble effect. +
setWidth(int) - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
Sets the width of the outline. +
setWidth(float) - +Method in class org.newdawn.slick.geom.Rectangle +
Set the width of this box +
setWidth(float) - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Set the width of this rectangle. +
setWidth(int) - +Method in class org.newdawn.slick.opengl.DeferredTexture +
  +
setWidth(float) - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
setWidth(float) - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Set the width of the lines to be drawn +
setWidth(float) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
setWidth(int) - +Method in class org.newdawn.slick.opengl.TextureImpl +
Set the width of the image +
setWidth(float) - +Method in class org.newdawn.slick.util.LocatedImage +
Set the width the image should be drawn at +
setWorldClip(float, float, float, float) - +Method in class org.newdawn.slick.Graphics +
Set clipping that controls which areas of the world will be drawn to. +
setWorldClip(Rectangle) - +Method in class org.newdawn.slick.Graphics +
Set the world clip to be applied +
setX(float) - +Method in class org.newdawn.slick.geom.Polygon +
  +
setX(float) - +Method in class org.newdawn.slick.geom.Shape +
Set the x position of the left side this shape. +
setX(float) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the x coordinate of this area +
setX(int) - +Method in class org.newdawn.slick.util.LocatedImage +
Set the x position at which the image should be drawn +
setX1(float) - +Method in class org.newdawn.slick.svg.Gradient +
Set the first x value given for the gradient (cx in the case of radial) +
setX2(float) - +Method in class org.newdawn.slick.svg.Gradient +
Set the second x value given for the gradient (fx in the case of radial) +
setXDistance(float) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Sets the pixels to offset the shadow on the x axis. +
setY(float) - +Method in class org.newdawn.slick.geom.Polygon +
  +
setY(float) - +Method in class org.newdawn.slick.geom.Shape +
Set the y position of the top of this shape. +
setY(float) - +Method in class org.newdawn.slick.gui.MouseOverArea +
Set the y coordinate of this area +
setY(int) - +Method in class org.newdawn.slick.util.LocatedImage +
Set the y position at which the image should be drawn +
setY1(float) - +Method in class org.newdawn.slick.svg.Gradient +
Set the first y value given for the gradient (cy in the case of radial) +
setY2(float) - +Method in class org.newdawn.slick.svg.Gradient +
Set the second y value given for the gradient (fy in the case of radial) +
setYDistance(float) - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
Sets the pixels to offset the shadow on the y axis. +
SGL - Interface in org.newdawn.slick.opengl.renderer
The description of the OpenGL functions used Slick.
ShadowEffect - Class in org.newdawn.slick.font.effects
An effect to generate soft shadows beneath text
ShadowEffect() - +Constructor for class org.newdawn.slick.font.effects.ShadowEffect +
Default constructor for injection +
ShadowEffect(Color, int, int, float) - +Constructor for class org.newdawn.slick.font.effects.ShadowEffect +
Create a new effect to apply a drop shadow to text +
Shape - Class in org.newdawn.slick.geom
The description of any 2D shape that can be transformed.
Shape() - +Constructor for class org.newdawn.slick.geom.Shape +
Shape constructor. +
ShapeFill - Interface in org.newdawn.slick
A filling method for a shape.
ShapeRenderer - Class in org.newdawn.slick.geom
 
ShapeRenderer() - +Constructor for class org.newdawn.slick.geom.ShapeRenderer +
  +
ShapeTest - Class in org.newdawn.slick.tests
A geomertry test
ShapeTest() - +Constructor for class org.newdawn.slick.tests.ShapeTest +
Create a new test of graphics context rendering +
SHARED_DRAWABLE - +Static variable in class org.newdawn.slick.GameContainer +
The shared drawable if any +
showDialog() - +Method in interface org.newdawn.slick.font.effects.ConfigurableEffect.Value +
Shows a dialog allowing a user to configure this value. +
SimpleDiagramRenderer - Class in org.newdawn.slick.svg
A very primtive implementation for rendering a diagram.
SimpleDiagramRenderer(Diagram) - +Constructor for class org.newdawn.slick.svg.SimpleDiagramRenderer +
Create a new simple renderer +
sin(double) - +Static method in class org.newdawn.slick.util.FastTrig +
Get the sine of an angle +
size - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
Whiskas - Interpolated value for size +
size - +Variable in class org.newdawn.slick.particles.Particle +
The current size in pixels of the particle +
size() - +Method in class org.newdawn.slick.util.xml.XMLElementList +
Get the number of elements in the list +
sleep(int) - +Method in class org.newdawn.slick.GameContainer +
Sleep for a given period +
SlickCallable - Class in org.newdawn.slick.opengl
A utility to allow performing GL operations without contaminating the + Slick OpenGL state.
SlickCallable() - +Constructor for class org.newdawn.slick.opengl.SlickCallable +
  +
SlickCallableTest - Class in org.newdawn.slick.tests
A test for slick callables giving the chance to perform normal GL in mid Slick render
SlickCallableTest() - +Constructor for class org.newdawn.slick.tests.SlickCallableTest +
Create a new image rendering test +
SlickException - Exception in org.newdawn.slick
A generic exception thrown by everything in the library
SlickException(String) - +Constructor for exception org.newdawn.slick.SlickException +
Create a new exception with a detail message +
SlickException(String, Throwable) - +Constructor for exception org.newdawn.slick.SlickException +
Create a new exception with a detail message +
SlickXMLException - Exception in org.newdawn.slick.util.xml
An exception to describe failures in XML.
SlickXMLException(String) - +Constructor for exception org.newdawn.slick.util.xml.SlickXMLException +
Create a new exception +
SlickXMLException(String, Throwable) - +Constructor for exception org.newdawn.slick.util.xml.SlickXMLException +
Create a new exception +
smoothDeltas - +Variable in class org.newdawn.slick.GameContainer +
Smoothed deltas requested +
SODIPODI - +Static variable in class org.newdawn.slick.svg.inkscape.Util +
The namespace for sodipodi +
Sound - Class in org.newdawn.slick
A single sound effect loaded from either OGG or XM/MOD file.
Sound(InputStream, String) - +Constructor for class org.newdawn.slick.Sound +
Create a new Sound +
Sound(URL) - +Constructor for class org.newdawn.slick.Sound +
Create a new Sound +
Sound(String) - +Constructor for class org.newdawn.slick.Sound +
Create a new Sound +
SoundPositionTest - Class in org.newdawn.slick.tests
A test for the sound system (positioning) of the library
SoundPositionTest() - +Constructor for class org.newdawn.slick.tests.SoundPositionTest +
Create a new test for sounds +
soundsOn() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if sound effects are currently enabled +
SoundStore - Class in org.newdawn.slick.openal
Responsible for holding and playing the sounds used in the game.
SoundTest - Class in org.newdawn.slick.tests
A test for the sound system of the library
SoundTest() - +Constructor for class org.newdawn.slick.tests.SoundTest +
Create a new test for sounds +
SoundURLTest - Class in org.newdawn.slick.tests
A test for the sound system of the library
SoundURLTest() - +Constructor for class org.newdawn.slick.tests.SoundURLTest +
Create a new test for sounds +
soundWorks() - +Method in class org.newdawn.slick.openal.SoundStore +
Check if sound works at all +
Space - Class in org.newdawn.slick.util.pathfinding.navmesh
A quad space within a navigation mesh
Space(float, float, float, float) - +Constructor for class org.newdawn.slick.util.pathfinding.navmesh.Space +
Create a new space +
spawnCount - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The spawn count property - how many particles are spawned each time +
spawnInterval - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The spawn interval range property - how often spawn happens +
speed - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The speed particles fly out +
spread - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The spread of the particles +
SpriteSheet - Class in org.newdawn.slick
A sheet of sprites that can be drawn individually
SpriteSheet(URL, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(Image, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(Image, int, int, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(Image, int, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(String, int, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(String, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(String, int, int, Color) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(String, int, int, Color, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheet(String, InputStream, int, int) - +Constructor for class org.newdawn.slick.SpriteSheet +
Create a new sprite sheet based on a image location +
SpriteSheetFont - Class in org.newdawn.slick
A font implementation that will use the graphics inside a SpriteSheet for its data.
SpriteSheetFont(SpriteSheet, char) - +Constructor for class org.newdawn.slick.SpriteSheetFont +
Create a new font based on a SpriteSheet. +
SpriteSheetFontTest - Class in org.newdawn.slick.tests
Tests the SpriteSheetFont.
SpriteSheetFontTest() - +Constructor for class org.newdawn.slick.tests.SpriteSheetFontTest +
Create a new test for font rendering +
start() - +Method in class org.newdawn.slick.Animation +
Start the animation playing again +
start() - +Method in class org.newdawn.slick.AppGameContainer +
Start running the game +
start() - +Method in class org.newdawn.slick.AppletGameContainer.ContainerPanel +
Start the game container +
start() - +Method in class org.newdawn.slick.AppletGameContainer +
  +
start() - +Method in class org.newdawn.slick.CanvasGameContainer +
Start the game container rendering +
start() - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
start() - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Start the line strips +
start() - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
start() - +Method in class org.newdawn.slick.tests.TestUtils +
Start the test +
startAlpha - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The starting alpha value +
startHole() - +Method in class org.newdawn.slick.geom.BasicTriangulator +
  +
startHole() - +Method in class org.newdawn.slick.geom.MannTriangulator +
Begin adding a hole to the polygon +
startHole() - +Method in class org.newdawn.slick.geom.NeatTriangulator +
  +
startHole() - +Method in class org.newdawn.slick.geom.OverTriangulator +
  +
startHole(float, float) - +Method in class org.newdawn.slick.geom.Path +
Start building a hole in the previously defined contour +
startHole() - +Method in interface org.newdawn.slick.geom.Triangulator +
Start a hole in the polygon +
startLWJGL() - +Method in class org.newdawn.slick.AppletGameContainer +
Start a thread to run LWJGL in +
startUse() - +Method in class org.newdawn.slick.BigImage +
Not supported in BigImage +
startUse() - +Method in class org.newdawn.slick.Image +
Start using this sheet. +
startUse() - +Method in class org.newdawn.slick.SpriteSheet +
  +
StateBasedGame - Class in org.newdawn.slick.state
A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
StateBasedGame(String) - +Constructor for class org.newdawn.slick.state.StateBasedGame +
Create a new state based game +
StateBasedTest - Class in org.newdawn.slick.tests
A test for the multi-state based functionality
StateBasedTest() - +Constructor for class org.newdawn.slick.tests.StateBasedTest +
Create a new test +
Stats - Class in org.newdawn.slick.tests.xml
A test example of some object data that can be configured via XML
Stats() - +Constructor for class org.newdawn.slick.tests.xml.Stats +
  +
stencil - +Static variable in class org.newdawn.slick.GameContainer +
True if we require stencil bits +
stop() - +Method in class org.newdawn.slick.Animation +
Stop the animation +
stop() - +Method in class org.newdawn.slick.AppletGameContainer +
  +
stop() - +Method in class org.newdawn.slick.Music +
Stop the music playing +
stop() - +Method in interface org.newdawn.slick.openal.Audio +
Stop the sound effect +
stop() - +Method in class org.newdawn.slick.openal.AudioImpl +
  +
stop() - +Method in class org.newdawn.slick.openal.DeferredSound +
  +
stop() - +Method in class org.newdawn.slick.openal.MODSound +
  +
stop() - +Method in class org.newdawn.slick.openal.NullAudio +
  +
stop() - +Method in class org.newdawn.slick.openal.StreamSound +
  +
stop() - +Method in class org.newdawn.slick.Sound +
Stop the sound being played +
stopApplet() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Stop the applet play back +
stopAt(int) - +Method in class org.newdawn.slick.Animation +
Indicate the animation should stop when it reaches the specified + frame index (note, not frame number but index in the animation +
stopSoundEffect(int) - +Method in class org.newdawn.slick.openal.SoundStore +
Stop a playing sound identified by the ID returned from playing. +
storedDelta - +Variable in class org.newdawn.slick.GameContainer +
The stored delta +
stream(int) - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Stream some data from the audio stream to the buffer indicates by the ID +
StreamSound - Class in org.newdawn.slick.openal
A sound implementation wrapped round a player which reads (and potentially) rereads + a stream.
StreamSound(OpenALStreamPlayer) - +Constructor for class org.newdawn.slick.openal.StreamSound +
Create a new sound wrapped round a stream +
STROKE - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The stroke type +
STROKE_DASHARRAY - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The dash definition of the line to draw +
STROKE_DASHOFFSET - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The offset into the dash definition of the line to draw +
STROKE_MITERLIMIT - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The mitre of the line to draw +
STROKE_OPACITY - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The alpha value for drawing +
STROKE_WIDTH - +Static variable in class org.newdawn.slick.svg.NonGeometricData +
The width of the line to draw +
sub(double) - +Method in class org.newdawn.slick.geom.Vector2f +
Adjust this vector by a given angle +
sub(Vector2f) - +Method in class org.newdawn.slick.geom.Vector2f +
Subtract a vector from this vector +
subtract(Shape, Shape) - +Method in class org.newdawn.slick.geom.GeomUtil +
Subtract one shape from another - note this is experimental and doesn't + currently handle islands +
subtract(Shape) - +Method in class org.newdawn.slick.geom.Shape +
Subtract the given shape from this one. +
supportsAlphaInBackBuffer() - +Method in class org.newdawn.slick.AppGameContainer +
Check if the display created supported alpha in the back buffer +
supportsAlphaInBackBuffer() - +Method in class org.newdawn.slick.AppletGameContainer.Container +
Check if the display created supported alpha in the back buffer +
supportsMultiSample - +Variable in class org.newdawn.slick.GameContainer +
True if this context supports multisample +
supportsMultiSample() - +Method in class org.newdawn.slick.GameContainer +
Check if this hardware can support multi-sampling +
SVGMorph - Class in org.newdawn.slick.svg
A utility to allow morphing between a set of similar SVG diagrams
SVGMorph(Diagram) - +Constructor for class org.newdawn.slick.svg.SVGMorph +
Create a new morph with a first diagram base +
+
+

+T

+
+
targetDisplayMode - +Variable in class org.newdawn.slick.AppGameContainer +
The display mode we're going to try and use +
targetFPS - +Variable in class org.newdawn.slick.GameContainer +
The FPS we want to lock to +
TestBox - Class in org.newdawn.slick.tests
A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
TestBox() - +Constructor for class org.newdawn.slick.tests.TestBox +
Create a new box containing all the tests +
TestState1 - Class in org.newdawn.slick.tests.states
A simple test state to display a message describing the test
TestState1() - +Constructor for class org.newdawn.slick.tests.states.TestState1 +
  +
TestState2 - Class in org.newdawn.slick.tests.states
A simple test state to display an image and rotate it
TestState2() - +Constructor for class org.newdawn.slick.tests.states.TestState2 +
  +
TestState3 - Class in org.newdawn.slick.tests.states
A simple test state to display an image and rotate it
TestState3() - +Constructor for class org.newdawn.slick.tests.states.TestState3 +
  +
TestUtils - Class in org.newdawn.slick.tests
A simple utility test to use the internal slick API without + the slick framework.
TestUtils() - +Constructor for class org.newdawn.slick.tests.TestUtils +
  +
TexCoordGenerator - Interface in org.newdawn.slick.geom
A class capable of generating texture coordiantes based on + rendering positions of verticies.
TextField - Class in org.newdawn.slick.gui
A single text field supporting text entry
TextField(GUIContext, Font, int, int, int, int, ComponentListener) - +Constructor for class org.newdawn.slick.gui.TextField +
Create a new text field +
TextField(GUIContext, Font, int, int, int, int) - +Constructor for class org.newdawn.slick.gui.TextField +
Create a new text field +
texture(Shape, Image) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
texture(Shape, Image, float, float) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
texture(Shape, Image, float, float, ShapeFill) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
texture(Shape, Image, TexCoordGenerator) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
texture(Shape, Image) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture(Shape, Image, ShapeFill) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture(Shape, Image, boolean) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture(Shape, Image, float, float) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture(Shape, Image, float, float, boolean) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture(Shape, Image, float, float, ShapeFill) - +Method in class org.newdawn.slick.Graphics +
Draw the the given shape filled in with a texture +
texture - +Variable in class org.newdawn.slick.Image +
The OpenGL texture for this image +
Texture - Interface in org.newdawn.slick.opengl
The description of a texture loaded by the TextureLoader utility
textureFit(Shape, Image) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
textureFit(Shape, Image, float, float) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Draw the the given shape filled in with a texture. +
textureHeight - +Variable in class org.newdawn.slick.Image +
The texture coordinate height to use to find our image +
TextureImpl - Class in org.newdawn.slick.opengl
A texture to be bound within JOGL.
TextureImpl() - +Constructor for class org.newdawn.slick.opengl.TextureImpl +
For subclasses to utilise +
TextureImpl(String, int, int) - +Constructor for class org.newdawn.slick.opengl.TextureImpl +
Create a new texture +
TextureLoader - Class in org.newdawn.slick.opengl
A utility class to wrap the Slick internal texture loader and present a + rational interface.
TextureLoader() - +Constructor for class org.newdawn.slick.opengl.TextureLoader +
  +
textureOffsetX - +Variable in class org.newdawn.slick.Image +
The x texture offset to use to find our image +
textureOffsetY - +Variable in class org.newdawn.slick.Image +
The y texture offset to use to find our image +
TexturePaintTest - Class in org.newdawn.slick.tests
Test to emulate texture paint
TexturePaintTest() - +Constructor for class org.newdawn.slick.tests.TexturePaintTest +
Create the test +
textureWidth - +Variable in class org.newdawn.slick.Image +
The texture coordinate width to use to find our image +
TGA - +Static variable in class org.newdawn.slick.imageout.ImageOut +
The format string for TGA +
TGAImageData - Class in org.newdawn.slick.opengl
A utility to load TGAs.
TGAImageData() - +Constructor for class org.newdawn.slick.opengl.TGAImageData +
Create a new TGA Loader +
TGAWriter - Class in org.newdawn.slick.imageout
A utility to save TGA's given a Slick image.
TGAWriter() - +Constructor for class org.newdawn.slick.imageout.TGAWriter +
  +
TileBasedMap - Interface in org.newdawn.slick.util.pathfinding
The description for the data we're pathfinding over.
TiledMap - Class in org.newdawn.slick.tiled
This class is intended to parse TilED maps.
TiledMap(String) - +Constructor for class org.newdawn.slick.tiled.TiledMap +
Create a new tile map based on a given TMX file +
TiledMap(String, boolean) - +Constructor for class org.newdawn.slick.tiled.TiledMap +
Create a new tile map based on a given TMX file +
TiledMap(String, String) - +Constructor for class org.newdawn.slick.tiled.TiledMap +
Create a new tile map based on a given TMX file +
TiledMap(InputStream) - +Constructor for class org.newdawn.slick.tiled.TiledMap +
Load a tile map from an arbitary input stream +
TiledMap(InputStream, String) - +Constructor for class org.newdawn.slick.tiled.TiledMap +
Load a tile map from an arbitary input stream +
TiledMap.GroupObject - Class in org.newdawn.slick.tiled
An object from a object-group on the map
TiledMap.GroupObject(Element) - +Constructor for class org.newdawn.slick.tiled.TiledMap.GroupObject +
Create a new group based on the XML definition +
TiledMap.ObjectGroup - Class in org.newdawn.slick.tiled
A group of objects on the map (objects layer)
TiledMap.ObjectGroup(Element) - +Constructor for class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
Create a new group based on the XML definition +
tileHeight - +Variable in class org.newdawn.slick.tiled.TiledMap +
The height of the tiles used on the map +
tileHeight - +Variable in class org.newdawn.slick.tiled.TileSet +
The height of the tiles +
TileMapTest - Class in org.newdawn.slick.tests
A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
TileMapTest() - +Constructor for class org.newdawn.slick.tests.TileMapTest +
Create our tile map test +
tileMargin - +Variable in class org.newdawn.slick.tiled.TileSet +
The margin of the tileset +
tiles - +Variable in class org.newdawn.slick.tiled.TileSet +
The image containing the tiles +
tilesAcross - +Variable in class org.newdawn.slick.tiled.TileSet +
The number of tiles across the sprite sheet +
tilesDown - +Variable in class org.newdawn.slick.tiled.TileSet +
The number of tiles down the sprite sheet +
TileSet - Class in org.newdawn.slick.tiled
A holder for tileset information
TileSet(TiledMap, Element, boolean) - +Constructor for class org.newdawn.slick.tiled.TileSet +
Create a tile set based on an XML definition +
tileSets - +Variable in class org.newdawn.slick.tiled.TiledMap +
The list of tilesets defined in the map +
tilesLocation - +Variable in class org.newdawn.slick.tiled.TiledMap +
The location prefix where we can find tileset images +
tileSpacing - +Variable in class org.newdawn.slick.tiled.TileSet +
The padding of the tiles +
tileWidth - +Variable in class org.newdawn.slick.tiled.TiledMap +
The width of the tiles used on the map +
tileWidth - +Variable in class org.newdawn.slick.tiled.TileSet +
The width of the tiles +
TOP_LEFT - +Static variable in class org.newdawn.slick.geom.RoundedRectangle +
Indicates the top left corner should be rounded +
TOP_LEFT - +Static variable in class org.newdawn.slick.Image +
The top left corner identifier +
TOP_RIGHT - +Static variable in class org.newdawn.slick.geom.RoundedRectangle +
Indicates the top right corner should be rounded +
TOP_RIGHT - +Static variable in class org.newdawn.slick.Image +
The top right corner identifier +
toString() - +Method in class org.newdawn.slick.Animation +
  +
toString() - +Method in class org.newdawn.slick.BigImage +
  +
toString() - +Method in class org.newdawn.slick.Color +
  +
toString() - +Method in class org.newdawn.slick.command.BasicCommand +
  +
toString() - +Method in class org.newdawn.slick.font.effects.ColorEffect +
  +
toString(Color) - +Static method in class org.newdawn.slick.font.effects.EffectUtil +
Convers a color to a string. +
toString() - +Method in class org.newdawn.slick.font.effects.GradientEffect +
  +
toString() - +Method in class org.newdawn.slick.font.effects.OutlineEffect +
  +
toString() - +Method in class org.newdawn.slick.font.effects.OutlineWobbleEffect +
  +
toString() - +Method in class org.newdawn.slick.font.effects.OutlineZigzagEffect +
  +
toString() - +Method in class org.newdawn.slick.font.effects.ShadowEffect +
  +
toString() - +Method in class org.newdawn.slick.geom.Line +
  +
toString() - +Method in class org.newdawn.slick.geom.Rectangle +
  +
toString() - +Method in class org.newdawn.slick.geom.Transform +
Convert this Transform to a String. +
toString() - +Method in class org.newdawn.slick.geom.Vector2f +
  +
toString() - +Method in class org.newdawn.slick.Image +
  +
toString() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
toString() - +Method in class org.newdawn.slick.particles.Particle +
  +
toString() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.NavPath +
Get a string representation of this instance +
toString() - +Method in class org.newdawn.slick.util.pathfinding.navmesh.Space +
Get the string representation of this instance +
toString() - +Method in class org.newdawn.slick.util.xml.XMLElement +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Curve +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Ellipse +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Line +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.MorphShape +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Path +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Point +
  +
transform(Transform) - +Method in class org.newdawn.slick.geom.Polygon +
Apply a transformation and return a new shape. +
transform(Transform) - +Method in class org.newdawn.slick.geom.Rectangle +
Apply a transformation and return a new shape. +
transform(Transform) - +Method in class org.newdawn.slick.geom.RoundedRectangle +
Apply a transformation and return a new shape. +
transform(Transform) - +Method in class org.newdawn.slick.geom.Shape +
Apply a transformation and return a new shape. +
Transform - Class in org.newdawn.slick.geom
A 2 dimensional transformation that can be applied to Shape implemenations.
Transform() - +Constructor for class org.newdawn.slick.geom.Transform +
Create and identity transform +
Transform(Transform) - +Constructor for class org.newdawn.slick.geom.Transform +
Copy a transform +
Transform(Transform, Transform) - +Constructor for class org.newdawn.slick.geom.Transform +
Concatanate to transform into one +
Transform(float[]) - +Constructor for class org.newdawn.slick.geom.Transform +
Create a transform for the given positions +
Transform(float, float, float, float, float, float) - +Constructor for class org.newdawn.slick.geom.Transform +
Create a transform for the given positions +
transform(float[], int, float[], int, int) - +Method in class org.newdawn.slick.geom.Transform +
Transform the point pairs in the source array and store them in the destination array. +
transform(Vector2f) - +Method in class org.newdawn.slick.geom.Transform +
Transform the vector2f based on the matrix defined in this transform +
TransformTest - Class in org.newdawn.slick.tests
A test for transforming the graphics context
TransformTest() - +Constructor for class org.newdawn.slick.tests.TransformTest +
Create a new test of graphics context rendering +
TransformTest2 - Class in org.newdawn.slick.tests
A test for transforming the graphics context
TransformTest2() - +Constructor for class org.newdawn.slick.tests.TransformTest2 +
Create a new test of graphics context rendering +
Transition - Interface in org.newdawn.slick.state.transition
A transition between two game states
TransitionTest - Class in org.newdawn.slick.tests
A test to view the different transitions that are currently implemented
TransitionTest() - +Constructor for class org.newdawn.slick.tests.TransitionTest +
Test the transitions implemented +
translate(float, float) - +Method in class org.newdawn.slick.Graphics +
Apply a translation to everything drawn to the context +
transparent - +Static variable in class org.newdawn.slick.Color +
The fixed color transparent +
TransparentColorTest - Class in org.newdawn.slick.tests
A test for transparent colour specification
TransparentColorTest() - +Constructor for class org.newdawn.slick.tests.TransparentColorTest +
Create a new image rendering test +
trianglesDirty - +Variable in class org.newdawn.slick.geom.Shape +
True if the triangles need updating +
triangulate() - +Method in class org.newdawn.slick.geom.BasicTriangulator +
Cause the triangulator to split the polygon +
triangulate() - +Method in class org.newdawn.slick.geom.MannTriangulator +
  +
triangulate() - +Method in class org.newdawn.slick.geom.NeatTriangulator +
Upate the triangles +
triangulate() - +Method in class org.newdawn.slick.geom.OverTriangulator +
  +
triangulate() - +Method in interface org.newdawn.slick.geom.Triangulator +
Run the triangulation +
Triangulator - Interface in org.newdawn.slick.geom
A collection of triangles
tris - +Variable in class org.newdawn.slick.geom.Shape +
The triangles that define the shape +
TrueTypeFont - Class in org.newdawn.slick
A TrueType font implementation for Slick
TrueTypeFont(Font, boolean, char[]) - +Constructor for class org.newdawn.slick.TrueTypeFont +
Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied. +
TrueTypeFont(Font, boolean) - +Constructor for class org.newdawn.slick.TrueTypeFont +
Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied. +
TrueTypeFontPerformanceTest - Class in org.newdawn.slick.tests
A test of the font rendering capabilities
TrueTypeFontPerformanceTest() - +Constructor for class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
Create a new test for font rendering +
type - +Variable in class org.newdawn.slick.particles.Particle +
The type identifier of this particle +
type - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The type of this object - read from the XML +
+
+

+U

+
+
unbind() - +Static method in class org.newdawn.slick.opengl.TextureImpl +
Clear slick caching of the last bound texture so that an + external texture binder can play with the context before returning + control to slick. +
unbindCommand(Control) - +Method in class org.newdawn.slick.command.InputProvider +
Unbinds the command associated with this control +
UnicodeFont - Class in org.newdawn.slick
A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
UnicodeFont(String, String) - +Constructor for class org.newdawn.slick.UnicodeFont +
Create a new unicode font based on a TTF file +
UnicodeFont(String, HieroSettings) - +Constructor for class org.newdawn.slick.UnicodeFont +
Create a new unicode font based on a TTF file and a set of heiro configuration +
UnicodeFont(String, int, boolean, boolean) - +Constructor for class org.newdawn.slick.UnicodeFont +
Create a new unicode font based on a TTF file alone +
UnicodeFont(Font, String) - +Constructor for class org.newdawn.slick.UnicodeFont +
Creates a new UnicodeFont. +
UnicodeFont(Font, HieroSettings) - +Constructor for class org.newdawn.slick.UnicodeFont +
Creates a new UnicodeFont. +
UnicodeFont(Font) - +Constructor for class org.newdawn.slick.UnicodeFont +
Creates a new UnicodeFont. +
UnicodeFont(Font, int, boolean, boolean) - +Constructor for class org.newdawn.slick.UnicodeFont +
Creates a new UnicodeFont. +
UnicodeFont.DisplayList - Class in org.newdawn.slick
A simple descriptor for display lists cached within this font
UnicodeFontTest - Class in org.newdawn.slick.tests
A simple test of the unicode font functionality provided
UnicodeFontTest() - +Constructor for class org.newdawn.slick.tests.UnicodeFontTest +
Create the simple font test +
union(Shape, Shape) - +Method in class org.newdawn.slick.geom.GeomUtil +
Join to shapes together. +
union(Shape) - +Method in class org.newdawn.slick.geom.Shape +
Join this shape with another. +
UP - +Static variable in class org.newdawn.slick.command.ControllerDirectionControl +
The direction indicating we're waiting for the user to press up +
update(long) - +Method in class org.newdawn.slick.Animation +
Update the animation, note that this will have odd effects if auto update + is also turned on +
update(GameContainer, int) - +Method in class org.newdawn.slick.BasicGame +
  +
update(GameContainer, int) - +Method in interface org.newdawn.slick.Game +
Update the game logic here. +
update() - +Static method in class org.newdawn.slick.openal.AudioLoader +
Allow the streaming system to update itself +
update() - +Method in class org.newdawn.slick.openal.OpenALStreamPlayer +
Poll the bufferNames - check if we need to fill the bufferNames with another + section. +
update(ParticleSystem, int) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
update(ParticleSystem, int) - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
update(int) - +Method in class org.newdawn.slick.particles.Particle +
Update the state of this particle +
update(ParticleSystem, int) - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Update the emitter, produce any particles required by requesting + them from the particle system provided. +
update(int) - +Method in class org.newdawn.slick.particles.ParticleSystem +
Update the system, request the assigned emitters update the particles +
update(GameContainer, int) - +Method in class org.newdawn.slick.ScalableGame +
  +
update(GameContainer, StateBasedGame, int) - +Method in interface org.newdawn.slick.state.GameState +
Update the state's logic based on the amount of time thats passed +
update(GameContainer, int) - +Method in class org.newdawn.slick.state.StateBasedGame +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.BlobbyTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.CombinedTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.CrossStateTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.EmptyTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.FadeInTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.FadeOutTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.HorizontalSplitTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.RotateTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.SelectTransition +
  +
update(StateBasedGame, GameContainer, int) - +Method in interface org.newdawn.slick.state.transition.Transition +
Update the transition. +
update(StateBasedGame, GameContainer, int) - +Method in class org.newdawn.slick.state.transition.VerticalSplitTransition +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.AlphaMapTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.AnimationTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.AntiAliasTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.BigImageTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.BigSpriteSheetTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.CachedRenderTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.CanvasContainerTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.CanvasSizeTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ClipTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.CopyAreaAlphaTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.CurveTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.DeferredLoadingTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.DistanceFieldTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.DoubleClickTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.DuplicateEmitterTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.FlashTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.FontPerformanceTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.FontTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GeomAccuracyTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GeomTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GeomUtilTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GeomUtilTileTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GradientImageTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GradientTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GraphicsTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.GUITest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageBufferEndianTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageBufferTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageCornerTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageGraphicsTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageMemTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageOutTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageReadTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ImageTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.InkscapeTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.InputProviderTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.InputTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.IsoTiledTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.KeyRepeatTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.LameTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.LineRenderTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.MorphShapeTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.MorphSVGTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.MusicListenerTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.NavMeshTest +
Update data map etc +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.PackedSheetTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ParticleTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.PedigreeTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.PolygonTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.PureFontTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SavedStateTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ScalableTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.ShapeTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SlickCallableTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SoundPositionTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SoundTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SoundURLTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.SpriteSheetFontTest +
  +
update(GameContainer, StateBasedGame, int) - +Method in class org.newdawn.slick.tests.states.TestState1 +
  +
update(GameContainer, StateBasedGame, int) - +Method in class org.newdawn.slick.tests.states.TestState2 +
  +
update(GameContainer, StateBasedGame, int) - +Method in class org.newdawn.slick.tests.states.TestState3 +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TestBox +
  +
update() - +Method in class org.newdawn.slick.tests.TestUtils +
Game loop update +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TexturePaintTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TileMapTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TransformTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TransformTest2 +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TransparentColorTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.TrueTypeFontPerformanceTest +
  +
update(GameContainer, int) - +Method in class org.newdawn.slick.tests.UnicodeFontTest +
  +
updateAndRender(int) - +Method in class org.newdawn.slick.GameContainer +
Update and render the game +
updateFPS() - +Method in class org.newdawn.slick.GameContainer +
Updated the FPS counter +
updateMorphTime(float) - +Method in class org.newdawn.slick.geom.MorphShape +
Update the morph time and hence the curent frame +
updateMorphTime(float) - +Method in class org.newdawn.slick.svg.SVGMorph +
Update the morph time index by the amount specified +
updateNoDraw() - +Method in class org.newdawn.slick.Animation +
Deprecated.   +
updateOnlyOnVisible - +Variable in class org.newdawn.slick.AppGameContainer +
True if we should update the game only when the display is visible +
updateParticle(Particle, int) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
updateParticle(Particle, int) - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
updateParticle(Particle, int) - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Update a single particle that this emitter produced +
USE_POINTS - +Static variable in class org.newdawn.slick.particles.Particle +
Indicates the particle should explicitly use points +
USE_QUADS - +Static variable in class org.newdawn.slick.particles.Particle +
Indicates the particle should explicitly not use points +
useAdditive - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
True if the additivie blending mode should be used for particles owned by + this emitter +
useAdditive() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
useAdditive() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
useAdditive() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Check if this emitter should use additive blending +
useOriented - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
True if the quads should be orieted based on velocity +
usePoints - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The points indicate +
usePoints(ParticleSystem) - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
usePoints(ParticleSystem) - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
usePoints - +Variable in class org.newdawn.slick.particles.Particle +
How this particle should be rendered +
usePoints(ParticleSystem) - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Check if this emitter should use points based on it's own settings + and those of the particle system +
usePoints() - +Method in class org.newdawn.slick.particles.ParticleSystem +
Check if this engine should use points to render the particles +
UseProcessor - Class in org.newdawn.slick.svg.inkscape
Processor for the "use", a tag that allows references to other elements + and cloning.
UseProcessor() - +Constructor for class org.newdawn.slick.svg.inkscape.UseProcessor +
  +
userData - +Variable in class org.newdawn.slick.UnicodeFont.DisplayList +
Application data stored in the list +
usingFBO() - +Static method in class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
Check if we're using FBO for dynamic textures +
usingPBuffer() - +Static method in class org.newdawn.slick.opengl.pbuffer.GraphicsFactory +
Check if we're using PBuffer for dynamic textures +
Util - Class in org.newdawn.slick.svg.inkscape
A set of utility for processing the SVG documents produced by Inkscape
Util() - +Constructor for class org.newdawn.slick.svg.inkscape.Util +
  +
+
+

+V

+
+
validFill(Shape) - +Static method in class org.newdawn.slick.geom.ShapeRenderer +
Check there are enough points to fill +
VAOGLRenderer - Class in org.newdawn.slick.opengl.renderer
A renderer that caches all operations into an array, creates an opengl vertex array when + required and spits the data down to the card in batch mode
VAOGLRenderer() - +Constructor for class org.newdawn.slick.opengl.renderer.VAOGLRenderer +
  +
Vector2f - Class in org.newdawn.slick.geom
A two dimensional vector
Vector2f() - +Constructor for class org.newdawn.slick.geom.Vector2f +
Create an empty vector +
Vector2f(float[]) - +Constructor for class org.newdawn.slick.geom.Vector2f +
Create a vector based on the contents of a coordinate array +
Vector2f(double) - +Constructor for class org.newdawn.slick.geom.Vector2f +
Create a new vector based on an angle +
Vector2f(Vector2f) - +Constructor for class org.newdawn.slick.geom.Vector2f +
Create a new vector based on another +
Vector2f(float, float) - +Constructor for class org.newdawn.slick.geom.Vector2f +
Create a new vector +
velocity - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
Whiskas - Interpolated value for velocity +
velx - +Variable in class org.newdawn.slick.particles.Particle +
The x component of the direction vector of the particle +
vely - +Variable in class org.newdawn.slick.particles.Particle +
The y component of the direction vector of the particle +
vertex(float, float) - +Method in class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +
  +
vertex(float, float) - +Method in interface org.newdawn.slick.opengl.renderer.LineStripRenderer +
Add a vertex +
vertex(float, float) - +Method in class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +
  +
VERTEX_ARRAY_RENDERER - +Static variable in class org.newdawn.slick.opengl.renderer.Renderer +
The indicator for vertex array based rendering +
VerticalSplitTransition - Class in org.newdawn.slick.state.transition
Vertical split transition that causes the previous state to split vertically + revealing the new state underneath.
VerticalSplitTransition() - +Constructor for class org.newdawn.slick.state.transition.VerticalSplitTransition +
Create a new transition +
VerticalSplitTransition(Color) - +Constructor for class org.newdawn.slick.state.transition.VerticalSplitTransition +
Create a new transition +
vsync - +Variable in class org.newdawn.slick.GameContainer +
True if vsync has been requested +
+
+

+W

+
+
warn(String) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log a warning +
warn(String, Throwable) - +Method in class org.newdawn.slick.util.DefaultLogSystem +
Log a warning with an exception that caused it +
warn(String) - +Static method in class org.newdawn.slick.util.Log +
Log a warning +
warn(String, Throwable) - +Static method in class org.newdawn.slick.util.Log +
Log a warning +
warn(String) - +Method in interface org.newdawn.slick.util.LogSystem +
Log a warning +
warn(String, Throwable) - +Method in interface org.newdawn.slick.util.LogSystem +
Log a warning +
WAV - +Static variable in class org.newdawn.slick.openal.DeferredSound +
Indicate a WAV to be loaded +
WaveData - Class in org.newdawn.slick.openal
Utitlity class for loading wavefiles.
WebstartMuffin - Class in org.newdawn.slick.muffin
A muffin load/save implementation based on using Webstart Muffins (a bit like cookies only + for webstart)
WebstartMuffin() - +Constructor for class org.newdawn.slick.muffin.WebstartMuffin +
  +
white - +Static variable in class org.newdawn.slick.Color +
The fixed colour white +
width - +Variable in class org.newdawn.slick.GameContainer +
The width of the display +
width - +Variable in class org.newdawn.slick.geom.Rectangle +
The width of the box +
width - +Variable in class org.newdawn.slick.gui.BasicComponent +
Deprecated. The width of the component +
width - +Variable in class org.newdawn.slick.Image +
The width of the image +
width - +Variable in class org.newdawn.slick.tiled.Layer +
The width of this layer +
width - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The width of this object +
width - +Variable in class org.newdawn.slick.tiled.TiledMap.ObjectGroup +
The width of this layer +
width - +Variable in class org.newdawn.slick.tiled.TiledMap +
The width of the map +
width - +Variable in class org.newdawn.slick.UnicodeFont.DisplayList +
The width of rendered text in the list +
windFactor - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The factor of wind to apply +
wrapUp - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
True if we're wrapping up +
wrapUp() - +Method in class org.newdawn.slick.particles.ConfigurableEmitter +
  +
wrapUp() - +Method in class org.newdawn.slick.particles.effects.FireEmitter +
  +
wrapUp() - +Method in interface org.newdawn.slick.particles.ParticleEmitter +
Wrap up the particle emitter. +
write(Image, String, OutputStream) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a specified output stream +
write(Image, String, OutputStream, boolean) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a specified output stream +
write(Image, String) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a file on the local file system. +
write(Image, String, boolean) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a file on the local file system. +
write(Image, String, String) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a file on the local file system. +
write(Image, String, String, boolean) - +Static method in class org.newdawn.slick.imageout.ImageOut +
Write an image out to a file on the local file system. +
+
+

+X

+
+
x - +Variable in class org.newdawn.slick.geom.Shape +
The left most point of this shape. +
x - +Variable in class org.newdawn.slick.geom.Vector2f +
The x component of this vector +
x - +Variable in class org.newdawn.slick.gui.BasicComponent +
Deprecated. The x position of the component +
x - +Variable in class org.newdawn.slick.gui.TextField +
The location in the X coordinate +
x - +Variable in class org.newdawn.slick.particles.Particle +
The x coordinate of the particle +
x - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The x-coordinate of this object +
XLINK - +Static variable in class org.newdawn.slick.svg.inkscape.Util +
The namespace for xlink +
XMLElement - Class in org.newdawn.slick.util.xml
A utility wrapper round the standard DOM XML element.
XMLElementList - Class in org.newdawn.slick.util.xml
A simple typed list.
XMLElementList() - +Constructor for class org.newdawn.slick.util.xml.XMLElementList +
Create a new list +
XMLPackedSheet - Class in org.newdawn.slick
A sprite sheet based on an XML descriptor generated from the simple slick tool
XMLPackedSheet(String, String) - +Constructor for class org.newdawn.slick.XMLPackedSheet +
Create a new XML packed sheet from the XML output by the slick tool +
XMLParser - Class in org.newdawn.slick.util.xml
A simple utility wrapper around the Java DOM implementation to hopefully + make XML parsing that bit easier without requiring YAL.
XMLParser() - +Constructor for class org.newdawn.slick.util.xml.XMLParser +
Create a new parser +
XMLTest - Class in org.newdawn.slick.tests.xml
Silly test to check XML parsing functionality, note the JUnit like methods, + want to move it to JUnit soon but not quite there yet.
XMLTest() - +Constructor for class org.newdawn.slick.tests.xml.XMLTest +
  +
xOffset - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The offset from the x position +
+
+

+Y

+
+
y - +Variable in class org.newdawn.slick.geom.Shape +
The top most point of this shape. +
y - +Variable in class org.newdawn.slick.geom.Vector2f +
The y component of this vector +
y - +Variable in class org.newdawn.slick.gui.BasicComponent +
Deprecated. The y position of the component +
y - +Variable in class org.newdawn.slick.gui.TextField +
The location in the Y coordinate +
y - +Variable in class org.newdawn.slick.particles.Particle +
The y coordinate of the particle +
y - +Variable in class org.newdawn.slick.tiled.TiledMap.GroupObject +
The y-coordinate of this object +
yellow - +Static variable in class org.newdawn.slick.Color +
The fixed colour yellow +
yOffset - +Variable in class org.newdawn.slick.particles.ConfigurableEmitter +
The offset from the y position +
+
+A B C D E F G H I J K L M N O P Q R S T U V W X Y + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/index.html b/lib/javadoc/index.html new file mode 100644 index 000000000..94d4aed19 --- /dev/null +++ b/lib/javadoc/index.html @@ -0,0 +1,39 @@ + + + + + + +Slick - The 2D Library + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/lib/javadoc/org/newdawn/slick/AngelCodeFont.html b/lib/javadoc/org/newdawn/slick/AngelCodeFont.html new file mode 100644 index 000000000..a5ef4af35 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AngelCodeFont.html @@ -0,0 +1,598 @@ + + + + + + +AngelCodeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AngelCodeFont

+
+java.lang.Object
+  extended by org.newdawn.slick.AngelCodeFont
+
+
+
All Implemented Interfaces:
Font
+
+
+
+
public class AngelCodeFont
extends java.lang.Object
implements Font
+ + +

+A font implementation that will parse BMFont format font files. The font files can be output + by Hiero, which is included with Slick, and also the AngelCode font tool available at: + + http://www.angelcode.com/products/bmfont/ + + This implementation copes with both the font display and kerning information + allowing nicer looking paragraphs of text. Note that this utility only + supports the text BMFont format definition file. +

+ +

+

+
Author:
+
kevin, Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
AngelCodeFont(java.lang.String fntFile, + Image image) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + Image image, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String name, + java.io.InputStream fntFile, + java.io.InputStream imgFile) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String name, + java.io.InputStream fntFile, + java.io.InputStream imgFile, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + java.lang.String imgFile) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + java.lang.String imgFile, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddrawString(float x, + float y, + java.lang.String text) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ intgetHeight(java.lang.String text) + +
+          Get the height of the given string
+ intgetLineHeight() + +
+          Get the maximum height of any line drawn by this font
+ intgetWidth(java.lang.String text) + +
+          Get the width of the given string
+ intgetYOffset(java.lang.String text) + +
+          Returns the distance from the y drawing location to the top most pixel of the specified text.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String fntFile,
+                     Image image)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
fntFile - The location of the font defnition file
image - The image to use for the font +
Throws: +
SlickException - Indicates a failure to load either file
+
+
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String fntFile,
+                     java.lang.String imgFile)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
fntFile - The location of the font defnition file
imgFile - The location of the font image +
Throws: +
SlickException - Indicates a failure to load either file
+
+
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String fntFile,
+                     Image image,
+                     boolean caching)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
fntFile - The location of the font defnition file
image - The image to use for the font
caching - True if this font should use display list caching +
Throws: +
SlickException - Indicates a failure to load either file
+
+
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String fntFile,
+                     java.lang.String imgFile,
+                     boolean caching)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
fntFile - The location of the font defnition file
imgFile - The location of the font image
caching - True if this font should use display list caching +
Throws: +
SlickException - Indicates a failure to load either file
+
+
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String name,
+                     java.io.InputStream fntFile,
+                     java.io.InputStream imgFile)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
name - The name to assign to the font image in the image store
fntFile - The stream of the font defnition file
imgFile - The stream of the font image +
Throws: +
SlickException - Indicates a failure to load either file
+
+
+ +

+AngelCodeFont

+
+public AngelCodeFont(java.lang.String name,
+                     java.io.InputStream fntFile,
+                     java.io.InputStream imgFile,
+                     boolean caching)
+              throws SlickException
+
+
Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool. +

+

+
Parameters:
name - The name to assign to the font image in the image store
fntFile - The stream of the font defnition file
imgFile - The stream of the font image
caching - True if this font should use display list caching +
Throws: +
SlickException - Indicates a failure to load either file
+
+ + + + + + + + +
+Method Detail
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
See Also:
Font.drawString(float, float, java.lang.String)
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color col)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
See Also:
Font.drawString(float, float, java.lang.String, + org.newdawn.slick.Color)
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color col,
+                       int startIndex,
+                       int endIndex)
+
+
Description copied from interface: Font
+
Draw part of a string to the screen. Note that this will + still position the text as though it's part of the bigger string. +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
startIndex - The index of the first character to draw
endIndex - The index of the last character from the string to draw
See Also:
Font.drawString(float, float, String, Color, int, int)
+
+
+
+ +

+getYOffset

+
+public int getYOffset(java.lang.String text)
+
+
Returns the distance from the y drawing location to the top most pixel of the specified text. +

+

+
+
+
+
Parameters:
text - The text that is to be tested +
Returns:
The yoffset from the y draw location at which text will start
+
+
+
+ +

+getHeight

+
+public int getHeight(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the height of the given string +

+

+
Specified by:
getHeight in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getHeight(java.lang.String)
+
+
+
+ +

+getWidth

+
+public int getWidth(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the width of the given string +

+

+
Specified by:
getWidth in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getWidth(java.lang.String)
+
+
+
+ +

+getLineHeight

+
+public int getLineHeight()
+
+
Description copied from interface: Font
+
Get the maximum height of any line drawn by this font +

+

+
Specified by:
getLineHeight in interface Font
+
+
+ +
Returns:
The maxium height of any line drawn by this font
See Also:
Font.getLineHeight()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Animation.html b/lib/javadoc/org/newdawn/slick/Animation.html new file mode 100644 index 000000000..0de1ef9cf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Animation.html @@ -0,0 +1,1309 @@ + + + + + + +Animation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Animation

+
+java.lang.Object
+  extended by org.newdawn.slick.Animation
+
+
+
All Implemented Interfaces:
Renderable
+
+
+
+
public class Animation
extends java.lang.Object
implements Renderable
+ + +

+A utility to hold and render animations +

+ +

+

+
Author:
+
kevin, DeX (speed updates)
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Animation() + +
+          Create an empty animation
Animation(boolean autoUpdate) + +
+          Create an empty animation
Animation(Image[] frames, + int duration) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int[] durations) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int[] durations, + boolean autoUpdate) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int duration, + boolean autoUpdate) + +
+          Create a new animation from a set of images
Animation(SpriteSheet frames, + int duration) + +
+          Create a new animation based on the sprite from a sheet.
Animation(SpriteSheet ss, + int[] frames, + int[] duration) + +
+          Creates a new Animation where each frame is a sub-image of SpriteSheet ss.
Animation(SpriteSheet frames, + int x1, + int y1, + int x2, + int y2, + boolean horizontalScan, + int duration, + boolean autoUpdate) + +
+          Create a new animation based on a selection of sprites from a sheet
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFrame(Image frame, + int duration) + +
+          Add animation frame to the animation
+ voidaddFrame(int duration, + int x, + int y) + +
+          Add animation frame to the animation.
+ Animationcopy() + +
+          Create a copy of this animation.
+ voiddraw() + +
+          Draw the animation to the screen
+ voiddraw(float x, + float y) + +
+          Draw the animation at a specific location
+ voiddraw(float x, + float y, + Color filter) + +
+          Draw the animation at a specific location
+ voiddraw(float x, + float y, + float width, + float height) + +
+          Draw the animation
+ voiddraw(float x, + float y, + float width, + float height, + Color col) + +
+          Draw the animation
+ voiddrawFlash(float x, + float y, + float width, + float height) + +
+          Draw the animation
+ voiddrawFlash(float x, + float y, + float width, + float height, + Color col) + +
+          Draw the animation
+ ImagegetCurrentFrame() + +
+          Get the image associated with the current animation frame
+ intgetDuration(int index) + +
+          Get the duration of a particular frame
+ int[]getDurations() + +
+          Get the durations of all the frames in this animation
+ intgetFrame() + +
+          Get the index of the current frame
+ intgetFrameCount() + +
+          Get the number of frames that are in the animation
+ intgetHeight() + +
+          Get the height of the current frame
+ ImagegetImage(int index) + +
+          Get the image assocaited with a given frame index
+ floatgetSpeed() + +
+          Returns the current speed of the animation.
+ intgetWidth() + +
+          Get the width of the current frame
+ booleanisStopped() + +
+          Check if this animation has stopped (either explictly or because it's reached its target frame)
+ voidrenderInUse(int x, + int y) + +
+          Render the appropriate frame when the spriteSheet backing this Animation is in use.
+ voidrestart() + +
+          Restart the animation from the beginning
+ voidsetAutoUpdate(boolean auto) + +
+          Indicate if this animation should automatically update based on the + time between renders or if it should need updating via the update() + method.
+ voidsetCurrentFrame(int index) + +
+          Set the current frame to be rendered
+ voidsetDuration(int index, + int duration) + +
+          Set the duration of the given frame
+ voidsetLooping(boolean loop) + +
+          Indicate if this animation should loop or stop at the last frame
+ voidsetPingPong(boolean pingPong) + +
+          Indicate if this animation should ping pong back and forth
+ voidsetSpeed(float spd) + +
+          Adjust the overall speed of the animation.
+ voidstart() + +
+          Start the animation playing again
+ voidstop() + +
+          Stop the animation
+ voidstopAt(int frameIndex) + +
+          Indicate the animation should stop when it reaches the specified + frame index (note, not frame number but index in the animation
+ java.lang.StringtoString() + +
+           
+ voidupdate(long delta) + +
+          Update the animation, note that this will have odd effects if auto update + is also turned on
+ voidupdateNoDraw() + +
+          Deprecated.  
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Animation

+
+public Animation()
+
+
Create an empty animation +

+

+
+ +

+Animation

+
+public Animation(Image[] frames,
+                 int duration)
+
+
Create a new animation from a set of images +

+

+
Parameters:
frames - The images for the animation frames
duration - The duration to show each frame
+
+
+ +

+Animation

+
+public Animation(Image[] frames,
+                 int[] durations)
+
+
Create a new animation from a set of images +

+

+
Parameters:
frames - The images for the animation frames
durations - The duration to show each frame
+
+
+ +

+Animation

+
+public Animation(boolean autoUpdate)
+
+
Create an empty animation +

+

+
Parameters:
autoUpdate - True if this animation should automatically update. This means that the + current frame will be caculated based on the time between renders
+
+
+ +

+Animation

+
+public Animation(Image[] frames,
+                 int duration,
+                 boolean autoUpdate)
+
+
Create a new animation from a set of images +

+

+
Parameters:
frames - The images for the animation frames
duration - The duration to show each frame
autoUpdate - True if this animation should automatically update. This means that the + current frame will be caculated based on the time between renders
+
+
+ +

+Animation

+
+public Animation(Image[] frames,
+                 int[] durations,
+                 boolean autoUpdate)
+
+
Create a new animation from a set of images +

+

+
Parameters:
frames - The images for the animation frames
durations - The duration to show each frame
autoUpdate - True if this animation should automatically update. This means that the + current frame will be caculated based on the time between renders
+
+
+ +

+Animation

+
+public Animation(SpriteSheet frames,
+                 int duration)
+
+
Create a new animation based on the sprite from a sheet. It assumed that + the sprites are organised on horizontal scan lines and that every sprite + in the sheet should be used. +

+

+
Parameters:
frames - The sprite sheet containing the frames
duration - The duration each frame should be displayed for
+
+
+ +

+Animation

+
+public Animation(SpriteSheet frames,
+                 int x1,
+                 int y1,
+                 int x2,
+                 int y2,
+                 boolean horizontalScan,
+                 int duration,
+                 boolean autoUpdate)
+
+
Create a new animation based on a selection of sprites from a sheet +

+

+
Parameters:
frames - The sprite sheet containing the frames
x1 - The x coordinate of the first sprite from the sheet to appear in the animation
y1 - The y coordinate of the first sprite from the sheet to appear in the animation
x2 - The x coordinate of the last sprite from the sheet to appear in the animation
y2 - The y coordinate of the last sprite from the sheet to appear in the animation
horizontalScan - True if the sprites are arranged in hoizontal scan lines. Otherwise + vertical is assumed
duration - The duration each frame should be displayed for
autoUpdate - True if this animation should automatically update based on the render times
+
+
+ +

+Animation

+
+public Animation(SpriteSheet ss,
+                 int[] frames,
+                 int[] duration)
+
+
Creates a new Animation where each frame is a sub-image of SpriteSheet ss. +

+

+
Parameters:
ss - The SpriteSheet backing this animation
frames - An array of coordinates of sub-image locations for each frame
duration - The duration each frame should be displayed for
+
+ + + + + + + + +
+Method Detail
+ +

+addFrame

+
+public void addFrame(int duration,
+                     int x,
+                     int y)
+
+
Add animation frame to the animation. +

+

+
+
+
+
Parameters:
duration - The duration to display the frame for
x - The x location of the frame on the SpriteSheet
y - The y location of the frame on the spriteSheet
+
+
+
+ +

+setAutoUpdate

+
+public void setAutoUpdate(boolean auto)
+
+
Indicate if this animation should automatically update based on the + time between renders or if it should need updating via the update() + method. +

+

+
+
+
+
Parameters:
auto - True if this animation should automatically update
+
+
+
+ +

+setPingPong

+
+public void setPingPong(boolean pingPong)
+
+
Indicate if this animation should ping pong back and forth +

+

+
+
+
+
Parameters:
pingPong - True if the animation should ping pong
+
+
+
+ +

+isStopped

+
+public boolean isStopped()
+
+
Check if this animation has stopped (either explictly or because it's reached its target frame) +

+

+
+
+
+ +
Returns:
True if the animation has stopped
See Also:
stopAt
+
+
+
+ +

+setSpeed

+
+public void setSpeed(float spd)
+
+
Adjust the overall speed of the animation. +

+

+
+
+
+
Parameters:
spd - The speed to run the animation. Default: 1.0
+
+
+
+ +

+getSpeed

+
+public float getSpeed()
+
+
Returns the current speed of the animation. +

+

+
+
+
+ +
Returns:
The speed this animation is being played back at
+
+
+
+ +

+stop

+
+public void stop()
+
+
Stop the animation +

+

+
+
+
+
+
+
+
+ +

+start

+
+public void start()
+
+
Start the animation playing again +

+

+
+
+
+
+
+
+
+ +

+restart

+
+public void restart()
+
+
Restart the animation from the beginning +

+

+
+
+
+
+
+
+
+ +

+addFrame

+
+public void addFrame(Image frame,
+                     int duration)
+
+
Add animation frame to the animation +

+

+
+
+
+
Parameters:
frame - The image to display for the frame
duration - The duration to display the frame for
+
+
+
+ +

+draw

+
+public void draw()
+
+
Draw the animation to the screen +

+

+
+
+
+
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y)
+
+
Draw the animation at a specific location +

+

+
Specified by:
draw in interface Renderable
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 Color filter)
+
+
Draw the animation at a specific location +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
filter - The filter to apply
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height)
+
+
Draw the animation +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
width - The width to draw the animation at
height - The height to draw the animation at
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height,
+                 Color col)
+
+
Draw the animation +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
width - The width to draw the animation at
height - The height to draw the animation at
col - The colour filter to use
+
+
+
+ +

+renderInUse

+
+public void renderInUse(int x,
+                        int y)
+
+
Render the appropriate frame when the spriteSheet backing this Animation is in use. +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Get the width of the current frame +

+

+
+
+
+ +
Returns:
The width of the current frame
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the height of the current frame +

+

+
+
+
+ +
Returns:
The height of the current frame
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height)
+
+
Draw the animation +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
width - The width to draw the animation at
height - The height to draw the animation at
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height,
+                      Color col)
+
+
Draw the animation +

+

+
+
+
+
Parameters:
x - The x position to draw the animation at
y - The y position to draw the animation at
width - The width to draw the animation at
height - The height to draw the animation at
col - The colour for the flash
+
+
+
+ +

+updateNoDraw

+
+public void updateNoDraw()
+
+
Deprecated.  +

+

Update the animation cycle without draw the image, useful + for keeping two animations in sync +

+

+
+
+
+
+
+
+
+ +

+update

+
+public void update(long delta)
+
+
Update the animation, note that this will have odd effects if auto update + is also turned on +

+

+
+
+
+
Parameters:
delta - The amount of time thats passed since last update
See Also:
autoUpdate
+
+
+
+ +

+getFrame

+
+public int getFrame()
+
+
Get the index of the current frame +

+

+
+
+
+ +
Returns:
The index of the current frame
+
+
+
+ +

+setCurrentFrame

+
+public void setCurrentFrame(int index)
+
+
Set the current frame to be rendered +

+

+
+
+
+
Parameters:
index - The index of the frame to rendered
+
+
+
+ +

+getImage

+
+public Image getImage(int index)
+
+
Get the image assocaited with a given frame index +

+

+
+
+
+
Parameters:
index - The index of the frame image to retrieve +
Returns:
The image of the specified animation frame
+
+
+
+ +

+getFrameCount

+
+public int getFrameCount()
+
+
Get the number of frames that are in the animation +

+

+
+
+
+ +
Returns:
The number of frames that are in the animation
+
+
+
+ +

+getCurrentFrame

+
+public Image getCurrentFrame()
+
+
Get the image associated with the current animation frame +

+

+
+
+
+ +
Returns:
The image associated with the current animation frame
+
+
+
+ +

+setLooping

+
+public void setLooping(boolean loop)
+
+
Indicate if this animation should loop or stop at the last frame +

+

+
+
+
+
Parameters:
loop - True if this animation should loop (true = default)
+
+
+
+ +

+stopAt

+
+public void stopAt(int frameIndex)
+
+
Indicate the animation should stop when it reaches the specified + frame index (note, not frame number but index in the animation +

+

+
+
+
+
Parameters:
frameIndex - The index of the frame to stop at
+
+
+
+ +

+getDuration

+
+public int getDuration(int index)
+
+
Get the duration of a particular frame +

+

+
+
+
+
Parameters:
index - The index of the given frame +
Returns:
The duration in (ms) of the given frame
+
+
+
+ +

+setDuration

+
+public void setDuration(int index,
+                        int duration)
+
+
Set the duration of the given frame +

+

+
+
+
+
Parameters:
index - The index of the given frame
duration - The duration in (ms) for the given frame
+
+
+
+ +

+getDurations

+
+public int[] getDurations()
+
+
Get the durations of all the frames in this animation +

+

+
+
+
+ +
Returns:
The durations of all the frames in this animation
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+copy

+
+public Animation copy()
+
+
Create a copy of this animation. Note that the frames + are not duplicated but shared with the original +

+

+
+
+
+ +
Returns:
A copy of this animation
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/AppGameContainer.html b/lib/javadoc/org/newdawn/slick/AppGameContainer.html new file mode 100644 index 000000000..382addf2c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AppGameContainer.html @@ -0,0 +1,1050 @@ + + + + + + +AppGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AppGameContainer

+
+java.lang.Object
+  extended by org.newdawn.slick.GameContainer
+      extended by org.newdawn.slick.AppGameContainer
+
+
+
All Implemented Interfaces:
GUIContext
+
+
+
+
public class AppGameContainer
extends GameContainer
+ + +

+A game container that will display the game as an stand alone + application. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  booleanalphaSupport + +
+          Alpha background supported
+protected  org.lwjgl.opengl.DisplayModeoriginalDisplayMode + +
+          The original display mode before we tampered with things
+protected  org.lwjgl.opengl.DisplayModetargetDisplayMode + +
+          The display mode we're going to try and use
+protected  booleanupdateOnlyOnVisible + +
+          True if we should update the game only when the display is visible
+ + + + + + + +
Fields inherited from class org.newdawn.slick.GameContainer
alwaysRender, clearEachFrame, forceExit, fps, game, GL, height, input, lastFPS, lastFrame, lastGame, maximumLogicInterval, minimumLogicInterval, paused, recordedFPS, running, samples, SHARED_DRAWABLE, smoothDeltas, stencil, storedDelta, supportsMultiSample, targetFPS, vsync, width
+  + + + + + + + + + + + + + +
+Constructor Summary
AppGameContainer(Game game) + +
+          Create a new container wrapping a game
AppGameContainer(Game game, + int width, + int height, + boolean fullscreen) + +
+          Create a new container wrapping a game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Destroy the app game container
+protected  voidgameLoop() + +
+          Strategy for overloading game loop context handling
+ intgetScreenHeight() + +
+          Get the height of the standard screen resolution
+ intgetScreenWidth() + +
+          Get the width of the standard screen resolution
+ booleanhasFocus() + +
+          Check if the game currently has focus
+ booleanisFullscreen() + +
+          Check if the display is in fullscreen mode
+ booleanisMouseGrabbed() + +
+          Check if the mouse cursor is current grabbed.
+ booleanisUpdatingOnlyWhenVisible() + +
+          Check if this game is only updating when visible to the user (default = true)
+ voidreinit() + +
+          Renitialise the game and the context in which it's being rendered
+ voidsetDefaultMouseCursor() + +
+          Set the default mouse cursor - i.e.
+ voidsetDisplayMode(int width, + int height, + boolean fullscreen) + +
+          Set the display mode to be used
+ voidsetFullscreen(boolean fullscreen) + +
+          Indicate whether we want to be in fullscreen mode.
+ voidsetIcon(java.lang.String ref) + +
+          Set the icon to be displayed if possible in this type of + container
+ voidsetIcons(java.lang.String[] refs) + +
+          Set the icons to be used for this application.
+ voidsetMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidsetMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseGrabbed(boolean grabbed) + +
+          Indicate whether mouse cursor should be grabbed or not
+ voidsetTitle(java.lang.String title) + +
+          Set the title of the window
+protected  voidsetup() + +
+          Setup the environment
+ voidsetUpdateOnlyWhenVisible(boolean updateOnlyWhenVisible) + +
+          Indicate if the display should update only when the game is visible + (the default is true)
+ voidstart() + +
+          Start running the game
+ booleansupportsAlphaInBackBuffer() + +
+          Check if the display created supported alpha in the back buffer
+ + + + + + + +
Methods inherited from class org.newdawn.slick.GameContainer
enableSharedContext, enableStencil, enterOrtho, enterOrtho, exit, getAlwaysRender, getAspectRatio, getBuildVersion, getDefaultFont, getDelta, getFPS, getGraphics, getHeight, getInput, getMusicVolume, getSamples, getSharedContext, getSoundVolume, getTime, getWidth, initGL, initSystem, isMusicOn, isPaused, isShowingFPS, isSoundOn, isVSyncRequested, pause, resume, running, setAlwaysRender, setAnimatedMouseCursor, setClearEachFrame, setDefaultFont, setForceExit, setMaximumLogicUpdateInterval, setMinimumLogicUpdateInterval, setMultiSample, setMusicOn, setMusicVolume, setPaused, setShowFPS, setSmoothDeltas, setSoundOn, setSoundVolume, setTargetFrameRate, setVerbose, setVSync, sleep, supportsMultiSample, updateAndRender, updateFPS
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+originalDisplayMode

+
+protected org.lwjgl.opengl.DisplayMode originalDisplayMode
+
+
The original display mode before we tampered with things +

+

+
+
+
+ +

+targetDisplayMode

+
+protected org.lwjgl.opengl.DisplayMode targetDisplayMode
+
+
The display mode we're going to try and use +

+

+
+
+
+ +

+updateOnlyOnVisible

+
+protected boolean updateOnlyOnVisible
+
+
True if we should update the game only when the display is visible +

+

+
+
+
+ +

+alphaSupport

+
+protected boolean alphaSupport
+
+
Alpha background supported +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AppGameContainer

+
+public AppGameContainer(Game game)
+                 throws SlickException
+
+
Create a new container wrapping a game +

+

+
Parameters:
game - The game to be wrapped +
Throws: +
SlickException - Indicates a failure to initialise the display
+
+
+ +

+AppGameContainer

+
+public AppGameContainer(Game game,
+                        int width,
+                        int height,
+                        boolean fullscreen)
+                 throws SlickException
+
+
Create a new container wrapping a game +

+

+
Parameters:
game - The game to be wrapped
width - The width of the display required
height - The height of the display required
fullscreen - True if we want fullscreen mode +
Throws: +
SlickException - Indicates a failure to initialise the display
+
+ + + + + + + + +
+Method Detail
+ +

+supportsAlphaInBackBuffer

+
+public boolean supportsAlphaInBackBuffer()
+
+
Check if the display created supported alpha in the back buffer +

+

+ +
Returns:
True if the back buffer supported alpha
+
+
+
+ +

+setTitle

+
+public void setTitle(java.lang.String title)
+
+
Set the title of the window +

+

+
Parameters:
title - The title to set on the window
+
+
+
+ +

+setDisplayMode

+
+public void setDisplayMode(int width,
+                           int height,
+                           boolean fullscreen)
+                    throws SlickException
+
+
Set the display mode to be used +

+

+
Parameters:
width - The width of the display required
height - The height of the display required
fullscreen - True if we want fullscreen mode +
Throws: +
SlickException - Indicates a failure to initialise the display
+
+
+
+ +

+isFullscreen

+
+public boolean isFullscreen()
+
+
Check if the display is in fullscreen mode +

+

+
Overrides:
isFullscreen in class GameContainer
+
+
+ +
Returns:
True if the display is in fullscreen mode
+
+
+
+ +

+setFullscreen

+
+public void setFullscreen(boolean fullscreen)
+                   throws SlickException
+
+
Indicate whether we want to be in fullscreen mode. Note that the current + display mode must be valid as a fullscreen mode for this to work +

+

+
Overrides:
setFullscreen in class GameContainer
+
+
+
Parameters:
fullscreen - True if we want to be in fullscreen mode +
Throws: +
SlickException - Indicates we failed to change the display mode
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(java.lang.String ref,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
ref - The location of the image to be loaded for the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(java.lang.String, int, int)
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(ImageData data,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
data - The image data from which the cursor can be construted
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(org.newdawn.slick.opengl.ImageData, int, int)
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(org.lwjgl.input.Cursor cursor,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
cursor - The cursor to use
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(org.lwjgl.input.Cursor, int, int)
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(Image image,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor based on the contents of the image. Note that this will not take + account of render state type changes to images (rotation and such). If these effects + are required it is recommended that an offscreen buffer be used to produce an appropriate + image. An offscreen buffer will always be used to produce the new cursor and as such + this operation an be very expensive +

+

+
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
image - The image to use as the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(org.newdawn.slick.Image, int, int)
+
+
+
+ +

+reinit

+
+public void reinit()
+            throws SlickException
+
+
Description copied from class: GameContainer
+
Renitialise the game and the context in which it's being rendered +

+

+
Overrides:
reinit in class GameContainer
+
+
+ +
Throws: +
SlickException - Indicates a failure rerun initialisation routines
See Also:
GameContainer.reinit()
+
+
+
+ +

+start

+
+public void start()
+           throws SlickException
+
+
Start running the game +

+

+ +
Throws: +
SlickException - Indicates a failure to initialise the system
+
+
+
+ +

+setup

+
+protected void setup()
+              throws SlickException
+
+
Setup the environment +

+

+ +
Throws: +
SlickException - Indicates a failure
+
+
+
+ +

+gameLoop

+
+protected void gameLoop()
+                 throws SlickException
+
+
Strategy for overloading game loop context handling +

+

+ +
Throws: +
SlickException - Indicates a game failure
+
+
+
+ +

+setUpdateOnlyWhenVisible

+
+public void setUpdateOnlyWhenVisible(boolean updateOnlyWhenVisible)
+
+
Description copied from class: GameContainer
+
Indicate if the display should update only when the game is visible + (the default is true) +

+

+
Overrides:
setUpdateOnlyWhenVisible in class GameContainer
+
+
+
Parameters:
updateOnlyWhenVisible - True if we should updated only when the display is visible
See Also:
GameContainer.setUpdateOnlyWhenVisible(boolean)
+
+
+
+ +

+isUpdatingOnlyWhenVisible

+
+public boolean isUpdatingOnlyWhenVisible()
+
+
Description copied from class: GameContainer
+
Check if this game is only updating when visible to the user (default = true) +

+

+
Overrides:
isUpdatingOnlyWhenVisible in class GameContainer
+
+
+ +
Returns:
True if the game is only updated when the display is visible
See Also:
GameContainer.isUpdatingOnlyWhenVisible()
+
+
+
+ +

+setIcon

+
+public void setIcon(java.lang.String ref)
+             throws SlickException
+
+
Description copied from class: GameContainer
+
Set the icon to be displayed if possible in this type of + container +

+

+
Specified by:
setIcon in class GameContainer
+
+
+
Parameters:
ref - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
See Also:
GameContainer.setIcon(java.lang.String)
+
+
+
+ +

+setMouseGrabbed

+
+public void setMouseGrabbed(boolean grabbed)
+
+
Description copied from class: GameContainer
+
Indicate whether mouse cursor should be grabbed or not +

+

+
Specified by:
setMouseGrabbed in class GameContainer
+
+
+
Parameters:
grabbed - True if mouse cursor should be grabbed
See Also:
GameContainer.setMouseGrabbed(boolean)
+
+
+
+ +

+isMouseGrabbed

+
+public boolean isMouseGrabbed()
+
+
Description copied from class: GameContainer
+
Check if the mouse cursor is current grabbed. This will cause it not + to be seen. +

+

+
Specified by:
isMouseGrabbed in class GameContainer
+
+
+ +
Returns:
True if the mouse is currently grabbed
See Also:
GameContainer.isMouseGrabbed()
+
+
+
+ +

+hasFocus

+
+public boolean hasFocus()
+
+
Description copied from class: GameContainer
+
Check if the game currently has focus +

+

+
Specified by:
hasFocus in class GameContainer
+
+
+ +
Returns:
True if the game currently has focus
See Also:
GameContainer.hasFocus()
+
+
+
+ +

+getScreenHeight

+
+public int getScreenHeight()
+
+
Description copied from class: GameContainer
+
Get the height of the standard screen resolution +

+

+
Specified by:
getScreenHeight in interface GUIContext
Specified by:
getScreenHeight in class GameContainer
+
+
+ +
Returns:
The screen height
See Also:
GameContainer.getScreenHeight()
+
+
+
+ +

+getScreenWidth

+
+public int getScreenWidth()
+
+
Description copied from class: GameContainer
+
Get the width of the standard screen resolution +

+

+
Specified by:
getScreenWidth in interface GUIContext
Specified by:
getScreenWidth in class GameContainer
+
+
+ +
Returns:
The screen width
See Also:
GameContainer.getScreenWidth()
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Destroy the app game container +

+

+
+
+
+
+ +

+setIcons

+
+public void setIcons(java.lang.String[] refs)
+              throws SlickException
+
+
Description copied from class: GameContainer
+
Set the icons to be used for this application. Note that the size of the icon + defines how it will be used. Important ones to note + + Windows window icon must be 16x16 + Windows alt-tab icon must be 24x24 or 32x32 depending on Windows version (XP=32) +

+

+
Specified by:
setIcons in class GameContainer
+
+
+
Parameters:
refs - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
See Also:
GameContainer.setIcons(java.lang.String[])
+
+
+
+ +

+setDefaultMouseCursor

+
+public void setDefaultMouseCursor()
+
+
Description copied from class: GameContainer
+
Set the default mouse cursor - i.e. the original cursor before any native + cursor was set +

+

+
Specified by:
setDefaultMouseCursor in interface GUIContext
Specified by:
setDefaultMouseCursor in class GameContainer
+
+
+
See Also:
GameContainer.setDefaultMouseCursor()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/AppletGameContainer.ConsolePanel.html b/lib/javadoc/org/newdawn/slick/AppletGameContainer.ConsolePanel.html new file mode 100644 index 000000000..678943661 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AppletGameContainer.ConsolePanel.html @@ -0,0 +1,339 @@ + + + + + + +AppletGameContainer.ConsolePanel (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AppletGameContainer.ConsolePanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by java.awt.Panel
+              extended by org.newdawn.slick.AppletGameContainer.ConsolePanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
Enclosing class:
AppletGameContainer
+
+
+
+
public class AppletGameContainer.ConsolePanel
extends java.awt.Panel
+ + +

+A basic console to display an error message if the applet crashes. + This will prevent the applet from just freezing in the browser + and give the end user an a nice gui where the error message can easily + be viewed and copied. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
AppletGameContainer.ConsolePanel(java.lang.Exception e) + +
+          Create a new panel to display the console output
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AppletGameContainer.ConsolePanel

+
+public AppletGameContainer.ConsolePanel(java.lang.Exception e)
+
+
Create a new panel to display the console output +

+

+
Parameters:
e - The exception causing the console to be displayed
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/AppletGameContainer.Container.html b/lib/javadoc/org/newdawn/slick/AppletGameContainer.Container.html new file mode 100644 index 000000000..1cbac30b8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AppletGameContainer.Container.html @@ -0,0 +1,825 @@ + + + + + + +AppletGameContainer.Container (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AppletGameContainer.Container

+
+java.lang.Object
+  extended by org.newdawn.slick.GameContainer
+      extended by org.newdawn.slick.AppletGameContainer.Container
+
+
+
All Implemented Interfaces:
GUIContext
+
+
+
Enclosing class:
AppletGameContainer
+
+
+
+
public class AppletGameContainer.Container
extends GameContainer
+ + +

+A game container to provide the applet context +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.GameContainer
alwaysRender, clearEachFrame, forceExit, fps, game, GL, height, input, lastFPS, lastFrame, lastGame, maximumLogicInterval, minimumLogicInterval, paused, recordedFPS, running, samples, SHARED_DRAWABLE, smoothDeltas, stencil, storedDelta, supportsMultiSample, targetFPS, vsync, width
+  + + + + + + + + + + +
+Constructor Summary
AppletGameContainer.Container(Game game) + +
+          Create a new container wrapped round the game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.applet.AppletgetApplet() + +
+          Returns the Applet Object
+ intgetScreenHeight() + +
+          Get the height of the standard screen resolution
+ intgetScreenWidth() + +
+          Get the width of the standard screen resolution
+ booleanhasFocus() + +
+          Check if the game currently has focus
+ voidinitApplet() + +
+          Initiliase based on Applet init
+ booleanisFullscreen() + +
+          Check if the display is in fullscreen mode
+ booleanisMouseGrabbed() + +
+          Check if the mouse cursor is current grabbed.
+ booleanisRunning() + +
+          Check if the applet is currently running
+ voidrunloop() + +
+          The running game loop
+ voidsetDefaultMouseCursor() + +
+          Set the default mouse cursor - i.e.
+ voidsetFullscreen(boolean fullscreen) + +
+          Indicate whether we want to be in fullscreen mode.
+ voidsetIcon(java.lang.String ref) + +
+          Set the icon to be displayed if possible in this type of + container
+ voidsetIcons(java.lang.String[] refs) + +
+          Set the icons to be used for this application.
+ voidsetMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidsetMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseGrabbed(boolean grabbed) + +
+          Indicate whether mouse cursor should be grabbed or not
+ voidstopApplet() + +
+          Stop the applet play back
+ booleansupportsAlphaInBackBuffer() + +
+          Check if the display created supported alpha in the back buffer
+ + + + + + + +
Methods inherited from class org.newdawn.slick.GameContainer
enableSharedContext, enableStencil, enterOrtho, enterOrtho, exit, getAlwaysRender, getAspectRatio, getBuildVersion, getDefaultFont, getDelta, getFPS, getGraphics, getHeight, getInput, getMusicVolume, getSamples, getSharedContext, getSoundVolume, getTime, getWidth, initGL, initSystem, isMusicOn, isPaused, isShowingFPS, isSoundOn, isUpdatingOnlyWhenVisible, isVSyncRequested, pause, reinit, resume, running, setAlwaysRender, setAnimatedMouseCursor, setClearEachFrame, setDefaultFont, setForceExit, setMaximumLogicUpdateInterval, setMinimumLogicUpdateInterval, setMultiSample, setMusicOn, setMusicVolume, setPaused, setShowFPS, setSmoothDeltas, setSoundOn, setSoundVolume, setTargetFrameRate, setUpdateOnlyWhenVisible, setVerbose, setVSync, sleep, supportsMultiSample, updateAndRender, updateFPS
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AppletGameContainer.Container

+
+public AppletGameContainer.Container(Game game)
+
+
Create a new container wrapped round the game +

+

+
Parameters:
game - The game to be held in this container
+
+ + + + + + + + +
+Method Detail
+ +

+initApplet

+
+public void initApplet()
+                throws SlickException
+
+
Initiliase based on Applet init +

+

+ +
Throws: +
SlickException - Indicates a failure to inialise the basic framework
+
+
+
+ +

+isRunning

+
+public boolean isRunning()
+
+
Check if the applet is currently running +

+

+ +
Returns:
True if the applet is running
+
+
+
+ +

+stopApplet

+
+public void stopApplet()
+
+
Stop the applet play back +

+

+
+
+
+
+ +

+getScreenHeight

+
+public int getScreenHeight()
+
+
Description copied from class: GameContainer
+
Get the height of the standard screen resolution +

+

+
Specified by:
getScreenHeight in interface GUIContext
Specified by:
getScreenHeight in class GameContainer
+
+
+ +
Returns:
The screen height
See Also:
GameContainer.getScreenHeight()
+
+
+
+ +

+getScreenWidth

+
+public int getScreenWidth()
+
+
Description copied from class: GameContainer
+
Get the width of the standard screen resolution +

+

+
Specified by:
getScreenWidth in interface GUIContext
Specified by:
getScreenWidth in class GameContainer
+
+
+ +
Returns:
The screen width
See Also:
GameContainer.getScreenWidth()
+
+
+
+ +

+supportsAlphaInBackBuffer

+
+public boolean supportsAlphaInBackBuffer()
+
+
Check if the display created supported alpha in the back buffer +

+

+ +
Returns:
True if the back buffer supported alpha
+
+
+
+ +

+hasFocus

+
+public boolean hasFocus()
+
+
Description copied from class: GameContainer
+
Check if the game currently has focus +

+

+
Specified by:
hasFocus in class GameContainer
+
+
+ +
Returns:
True if the game currently has focus
See Also:
GameContainer.hasFocus()
+
+
+
+ +

+getApplet

+
+public java.applet.Applet getApplet()
+
+
Returns the Applet Object +

+

+ +
Returns:
Applet Object
+
+
+
+ +

+setIcon

+
+public void setIcon(java.lang.String ref)
+             throws SlickException
+
+
Description copied from class: GameContainer
+
Set the icon to be displayed if possible in this type of + container +

+

+
Specified by:
setIcon in class GameContainer
+
+
+
Parameters:
ref - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
See Also:
GameContainer.setIcon(java.lang.String)
+
+
+
+ +

+setMouseGrabbed

+
+public void setMouseGrabbed(boolean grabbed)
+
+
Description copied from class: GameContainer
+
Indicate whether mouse cursor should be grabbed or not +

+

+
Specified by:
setMouseGrabbed in class GameContainer
+
+
+
Parameters:
grabbed - True if mouse cursor should be grabbed
See Also:
GameContainer.setMouseGrabbed(boolean)
+
+
+
+ +

+isMouseGrabbed

+
+public boolean isMouseGrabbed()
+
+
Description copied from class: GameContainer
+
Check if the mouse cursor is current grabbed. This will cause it not + to be seen. +

+

+
Specified by:
isMouseGrabbed in class GameContainer
+
+
+ +
Returns:
True if the mouse is currently grabbed
See Also:
GameContainer.isMouseGrabbed()
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(java.lang.String ref,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
ref - The location of the image to be loaded for the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(java.lang.String, + int, int)
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(Image image,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Set the mouse cursor based on the contents of the image. Note that this will not take + account of render state type changes to images (rotation and such). If these effects + are required it is recommended that an offscreen buffer be used to produce an appropriate + image. An offscreen buffer will always be used to produce the new cursor and as such + this operation an be very expensive +

+

+
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
image - The image to use as the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setIcons

+
+public void setIcons(java.lang.String[] refs)
+              throws SlickException
+
+
Description copied from class: GameContainer
+
Set the icons to be used for this application. Note that the size of the icon + defines how it will be used. Important ones to note + + Windows window icon must be 16x16 + Windows alt-tab icon must be 24x24 or 32x32 depending on Windows version (XP=32) +

+

+
Specified by:
setIcons in class GameContainer
+
+
+
Parameters:
refs - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
See Also:
GameContainer.setIcons(java.lang.String[])
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(ImageData data,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
data - The image data from which the cursor can be construted
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(org.newdawn.slick.opengl.ImageData, int, int)
+
+
+
+ +

+setMouseCursor

+
+public void setMouseCursor(org.lwjgl.input.Cursor cursor,
+                           int hotSpotX,
+                           int hotSpotY)
+                    throws SlickException
+
+
Description copied from class: GameContainer
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
Specified by:
setMouseCursor in class GameContainer
+
+
+
Parameters:
cursor - The cursor to use
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
See Also:
GameContainer.setMouseCursor(org.lwjgl.input.Cursor, int, int)
+
+
+
+ +

+setDefaultMouseCursor

+
+public void setDefaultMouseCursor()
+
+
Description copied from class: GameContainer
+
Set the default mouse cursor - i.e. the original cursor before any native + cursor was set +

+

+
Specified by:
setDefaultMouseCursor in interface GUIContext
Specified by:
setDefaultMouseCursor in class GameContainer
+
+
+
See Also:
GameContainer.setDefaultMouseCursor()
+
+
+
+ +

+isFullscreen

+
+public boolean isFullscreen()
+
+
Description copied from class: GameContainer
+
Check if the display is in fullscreen mode +

+

+
Overrides:
isFullscreen in class GameContainer
+
+
+ +
Returns:
True if the display is in fullscreen mode
+
+
+
+ +

+setFullscreen

+
+public void setFullscreen(boolean fullscreen)
+                   throws SlickException
+
+
Description copied from class: GameContainer
+
Indicate whether we want to be in fullscreen mode. Note that the current + display mode must be valid as a fullscreen mode for this to work +

+

+
Overrides:
setFullscreen in class GameContainer
+
+
+
Parameters:
fullscreen - True if we want to be in fullscreen mode +
Throws: +
SlickException - Indicates we failed to change the display mode
+
+
+
+ +

+runloop

+
+public void runloop()
+             throws java.lang.Exception
+
+
The running game loop +

+

+ +
Throws: +
java.lang.Exception - Indicates a failure within the game's loop rather than the framework
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/AppletGameContainer.ContainerPanel.html b/lib/javadoc/org/newdawn/slick/AppletGameContainer.ContainerPanel.html new file mode 100644 index 000000000..1e25978c4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AppletGameContainer.ContainerPanel.html @@ -0,0 +1,293 @@ + + + + + + +AppletGameContainer.ContainerPanel (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AppletGameContainer.ContainerPanel

+
+java.lang.Object
+  extended by org.newdawn.slick.AppletGameContainer.ContainerPanel
+
+
+
Enclosing class:
AppletGameContainer
+
+
+
+
public class AppletGameContainer.ContainerPanel
extends java.lang.Object
+ + +

+Create a new panel to display the GL context +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AppletGameContainer.ContainerPanel(AppletGameContainer.Container container) + +
+          Create a new panel
+  + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidinitGL() + +
+          Initialise GL state
+ voidstart() + +
+          Start the game container
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AppletGameContainer.ContainerPanel

+
+public AppletGameContainer.ContainerPanel(AppletGameContainer.Container container)
+
+
Create a new panel +

+

+
Parameters:
container - The container we're running
+
+ + + + + + + + +
+Method Detail
+ +

+start

+
+public void start()
+           throws java.lang.Exception
+
+
Start the game container +

+

+ +
Throws: +
java.lang.Exception - Failure to create display
+
+
+
+ +

+initGL

+
+protected void initGL()
+
+
Initialise GL state +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/AppletGameContainer.html b/lib/javadoc/org/newdawn/slick/AppletGameContainer.html new file mode 100644 index 000000000..8d606567d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/AppletGameContainer.html @@ -0,0 +1,627 @@ + + + + + + +AppletGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class AppletGameContainer

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by java.awt.Panel
+              extended by java.applet.Applet
+                  extended by org.newdawn.slick.AppletGameContainer
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
public class AppletGameContainer
extends java.applet.Applet
+ + +

+A game container that displays the game as an applet. Note however that the + actual game container implementation is an internal class which can be + obtained with the getContainer() method - this is due to the Applet being a + class wrap than an interface. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+ classAppletGameContainer.ConsolePanel + +
+          A basic console to display an error message if the applet crashes.
+ classAppletGameContainer.Container + +
+          A game container to provide the applet context
+ classAppletGameContainer.ContainerPanel + +
+          Create a new panel to display the GL context
+ + + + + + + +
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  booleanalphaSupport + +
+          Alpha background supported
+protected  AppletGameContainer.ContainerPanelcanvas + +
+          The GL Canvas used for this container
+protected  AppletGameContainer.Containercontainer + +
+          The actual container implementation
+protected  java.awt.CanvasdisplayParent + +
+          The parent of the display
+protected  java.lang.ThreadgameThread + +
+          The thread that is looping for the game
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
AppletGameContainer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+           
+ GameContainergetContainer() + +
+          Get the GameContainer providing this applet
+ voidinit() + +
+           
+ voidstart() + +
+           
+ voidstartLWJGL() + +
+          Start a thread to run LWJGL in
+ voidstop() + +
+           
+ + + + + + + +
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
+ + + + + + + +
Methods inherited from class java.awt.Panel
addNotify
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+canvas

+
+protected AppletGameContainer.ContainerPanel canvas
+
+
The GL Canvas used for this container +

+

+
+
+
+ +

+container

+
+protected AppletGameContainer.Container container
+
+
The actual container implementation +

+

+
+
+
+ +

+displayParent

+
+protected java.awt.Canvas displayParent
+
+
The parent of the display +

+

+
+
+
+ +

+gameThread

+
+protected java.lang.Thread gameThread
+
+
The thread that is looping for the game +

+

+
+
+
+ +

+alphaSupport

+
+protected boolean alphaSupport
+
+
Alpha background supported +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AppletGameContainer

+
+public AppletGameContainer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+destroy

+
+public void destroy()
+
+
+
Overrides:
destroy in class java.applet.Applet
+
+
+
See Also:
Applet.destroy()
+
+
+
+ +

+start

+
+public void start()
+
+
+
Overrides:
start in class java.applet.Applet
+
+
+
See Also:
Applet.start()
+
+
+
+ +

+startLWJGL

+
+public void startLWJGL()
+
+
Start a thread to run LWJGL in +

+

+
+
+
+
+ +

+stop

+
+public void stop()
+
+
+
Overrides:
stop in class java.applet.Applet
+
+
+
See Also:
Applet.stop()
+
+
+
+ +

+init

+
+public void init()
+
+
+
Overrides:
init in class java.applet.Applet
+
+
+
See Also:
Applet.init()
+
+
+
+ +

+getContainer

+
+public GameContainer getContainer()
+
+
Get the GameContainer providing this applet +

+

+ +
Returns:
The game container providing this applet
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/BasicGame.html b/lib/javadoc/org/newdawn/slick/BasicGame.html new file mode 100644 index 000000000..670506272 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/BasicGame.html @@ -0,0 +1,1109 @@ + + + + + + +BasicGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class BasicGame

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
Direct Known Subclasses:
AlphaMapTest, AnimationTest, AntiAliasTest, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, TestBox, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public abstract class BasicGame
extends java.lang.Object
implements Game, InputListener
+ + +

+A basic implementation of a game to take out the boring bits +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean[][]controllerButton + +
+          The state of the button controlls
+protected  boolean[]controllerDown + +
+          The state of the down control
+protected  boolean[]controllerLeft + +
+          The state of the left control
+protected  boolean[]controllerRight + +
+          The state of the right control
+protected  boolean[]controllerUp + +
+          The state of the up control
+  + + + + + + + + + + +
+Constructor Summary
BasicGame(java.lang.String title) + +
+          Create a new basic game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancloseRequested() + +
+          Notification that a game close has been requested
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ java.lang.StringgetTitle() + +
+          Get the title of this game
+abstract  voidinit(GameContainer container) + +
+          Initialise the game.
+ voidinputEnded() + +
+          Notification that all input events have been sent for this frame
+ voidinputStarted() + +
+          Notification that input is about to be processed
+ booleanisAcceptingInput() + +
+          Check if this input listener is accepting input
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ voidsetInput(Input input) + +
+          Set the input that events are being sent from
+abstract  voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.Game
render
+  +

+ + + + + + + + +
+Field Detail
+ +

+controllerLeft

+
+protected boolean[] controllerLeft
+
+
The state of the left control +

+

+
+
+
+ +

+controllerRight

+
+protected boolean[] controllerRight
+
+
The state of the right control +

+

+
+
+
+ +

+controllerUp

+
+protected boolean[] controllerUp
+
+
The state of the up control +

+

+
+
+
+ +

+controllerDown

+
+protected boolean[] controllerDown
+
+
The state of the down control +

+

+
+
+
+ +

+controllerButton

+
+protected boolean[][] controllerButton
+
+
The state of the button controlls +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+BasicGame

+
+public BasicGame(java.lang.String title)
+
+
Create a new basic game +

+

+
Parameters:
title - The title for the game
+
+ + + + + + + + +
+Method Detail
+ +

+setInput

+
+public void setInput(Input input)
+
+
Description copied from interface: ControlledInputReciever
+
Set the input that events are being sent from +

+

+
Specified by:
setInput in interface ControlledInputReciever
+
+
+
Parameters:
input - The input instance sending events
See Also:
ControlledInputReciever.setInput(org.newdawn.slick.Input)
+
+
+
+ +

+closeRequested

+
+public boolean closeRequested()
+
+
Description copied from interface: Game
+
Notification that a game close has been requested +

+

+
Specified by:
closeRequested in interface Game
+
+
+ +
Returns:
True if the game should close
See Also:
Game.closeRequested()
+
+
+
+ +

+getTitle

+
+public java.lang.String getTitle()
+
+
Description copied from interface: Game
+
Get the title of this game +

+

+
Specified by:
getTitle in interface Game
+
+
+ +
Returns:
The title of the game
See Also:
Game.getTitle()
+
+
+
+ +

+init

+
+public abstract void init(GameContainer container)
+                   throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
KeyListener.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
KeyListener.keyReleased(int, char)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseMoved(int, int, int, int)
+
+
+
+ +

+mouseDragged

+
+public void mouseDragged(int oldx,
+                         int oldy,
+                         int newx,
+                         int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was dragged +

+

+
Specified by:
mouseDragged in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseDragged(int, int, int, int)
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
MouseListener.mouseClicked(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
ControllerListener.controllerButtonPressed(int, int)
+
+
+
+ +

+controllerButtonReleased

+
+public void controllerButtonReleased(int controller,
+                                     int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been released on + the controller. +

+

+
Specified by:
controllerButtonReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
See Also:
ControllerListener.controllerButtonReleased(int, int)
+
+
+
+ +

+controllerDownPressed

+
+public void controllerDownPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been pressed on + the controller. +

+

+
Specified by:
controllerDownPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerDownPressed(int)
+
+
+
+ +

+controllerDownReleased

+
+public void controllerDownReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been released on + the controller. +

+

+
Specified by:
controllerDownReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerDownReleased(int)
+
+
+
+ +

+controllerLeftPressed

+
+public void controllerLeftPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been pressed on + the controller. +

+

+
Specified by:
controllerLeftPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerLeftPressed(int)
+
+
+
+ +

+controllerLeftReleased

+
+public void controllerLeftReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been released on + the controller. +

+

+
Specified by:
controllerLeftReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerLeftReleased(int)
+
+
+
+ +

+controllerRightPressed

+
+public void controllerRightPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been pressed on + the controller. +

+

+
Specified by:
controllerRightPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerRightPressed(int)
+
+
+
+ +

+controllerRightReleased

+
+public void controllerRightReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been released on + the controller. +

+

+
Specified by:
controllerRightReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerRightReleased(int)
+
+
+
+ +

+controllerUpPressed

+
+public void controllerUpPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been pressed on + the controller. +

+

+
Specified by:
controllerUpPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerUpPressed(int)
+
+
+
+ +

+controllerUpReleased

+
+public void controllerUpReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been released on + the controller. +

+

+
Specified by:
controllerUpReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerUpReleased(int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
MouseListener.mouseReleased(int, int, int)
+
+
+
+ +

+update

+
+public abstract void update(GameContainer container,
+                            int delta)
+                     throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int change)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
+
+
+
Parameters:
change - The amount of the wheel has moved
See Also:
MouseListener.mouseWheelMoved(int)
+
+
+
+ +

+isAcceptingInput

+
+public boolean isAcceptingInput()
+
+
Description copied from interface: ControlledInputReciever
+
Check if this input listener is accepting input +

+

+
Specified by:
isAcceptingInput in interface ControlledInputReciever
+
+
+ +
Returns:
True if the input listener should recieve events
See Also:
ControlledInputReciever.isAcceptingInput()
+
+
+
+ +

+inputEnded

+
+public void inputEnded()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that all input events have been sent for this frame +

+

+
Specified by:
inputEnded in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputEnded()
+
+
+
+ +

+inputStarted

+
+public void inputStarted()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that input is about to be processed +

+

+
Specified by:
inputStarted in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputStarted()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/BigImage.html b/lib/javadoc/org/newdawn/slick/BigImage.html new file mode 100644 index 000000000..597dbd99c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/BigImage.html @@ -0,0 +1,1554 @@ + + + + + + +BigImage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class BigImage

+
+java.lang.Object
+  extended by org.newdawn.slick.Image
+      extended by org.newdawn.slick.BigImage
+
+
+
All Implemented Interfaces:
Renderable
+
+
+
+
public class BigImage
extends Image
+ + +

+An image implementation that handles loaded images that are larger than the + maximum texture size supported by the card. In most cases it makes sense + to make sure all of your image resources are less than 512x512 in size when + using OpenGL. However, in the rare circumstances where this isn't possible + this implementation can be used to draw a tiled version of the image built + from several smaller textures. + + This implementation does come with limitations and some performance impact + however - so use only when absolutely required. + + TODO: The code in here isn't pretty, really needs revisiting with a comment stick. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+ + + + + + + +
Fields inherited from class org.newdawn.slick.Image
alpha, angle, BOTTOM_LEFT, BOTTOM_RIGHT, centerX, centerY, corners, destroyed, FILTER_LINEAR, FILTER_NEAREST, height, inited, inUse, name, pixelData, ref, texture, textureHeight, textureOffsetX, textureOffsetY, textureWidth, TOP_LEFT, TOP_RIGHT, width
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
BigImage(LoadableImageData data, + java.nio.ByteBuffer imageBuffer, + int filter) + +
+          Create a new big image by loading it from the specified image data
BigImage(LoadableImageData data, + java.nio.ByteBuffer imageBuffer, + int filter, + int tileSize) + +
+          Create a new big image by loading it from the specified image data
BigImage(java.lang.String ref) + +
+          Create a new big image by loading it from the specified reference
BigImage(java.lang.String ref, + int filter) + +
+          Create a new big image by loading it from the specified reference
BigImage(java.lang.String ref, + int filter, + int tileSize) + +
+          Create a new big image by loading it from the specified reference
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbind() + +
+          Not supported in BigImage
+ Imagecopy() + +
+          Not supported in BigImage
+ voiddestroy() + +
+          Destroy the image and release any native resources.
+ voiddraw() + +
+          Draw this image at the current location
+ voiddraw(float x, + float y) + +
+          Draw this image at the specified location
+ voiddraw(float x, + float y, + Color filter) + +
+          Draw this image at the specified location
+ voiddraw(float x, + float y, + float scale) + +
+          Draw the image with a given scale
+ voiddraw(float x, + float y, + float scale, + Color filter) + +
+          Draw the image with a given scale
+ voiddraw(float x, + float y, + float width, + float height) + +
+          Draw this image at a specified location and size
+ voiddraw(float x, + float y, + float width, + float height, + Color filter) + +
+          Draw this image at a specified location and size
+ voiddraw(float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddraw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddraw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddrawCentered(float x, + float y) + +
+          Draw the image based on it's center
+ voiddrawEmbedded(float x, + float y, + float width, + float height) + +
+          Draw this image as part of a collection of images
+ voiddrawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e.
+ voiddrawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e.
+ voiddrawFlash(float x, + float y) + +
+          Draw this image at a specified location and size in a white silohette
+ voiddrawFlash(float x, + float y, + float width, + float height) + +
+          Draw this image at a specified location and size as a silohette
+ voiddrawFlash(float x, + float y, + float width, + float height, + Color col) + +
+          Draw this image at a specified location and size as a silohette
+ voiddrawSheared(float x, + float y, + float hshear, + float vshear) + +
+          Draw this image at a specified location and size
+ voidendUse() + +
+          Not supported in BigImage
+ voidensureInverted() + +
+          Not supported in BigImage
+ ColorgetColor(int x, + int y) + +
+          Not supported in BigImage
+ ImagegetFlippedCopy(boolean flipHorizontal, + boolean flipVertical) + +
+          Get a copy image flipped on potentially two axis
+ GraphicsgetGraphics() + +
+          Not supported in BigImage
+ intgetHorizontalImageCount() + +
+          Get a count of the number images that build this image up horizontally
+static intgetMaxSingleImageSize() + +
+          Get the maximum size of an image supported by the underlying + hardware.
+ ImagegetScaledCopy(float scale) + +
+          Get a scaled copy of this image with a uniform scale
+ ImagegetScaledCopy(int width, + int height) + +
+          Get a scaled copy of this image
+ ImagegetSubImage(int offsetX, + int offsetY) + +
+          Get a sub-image that builds up this image.
+ ImagegetSubImage(int x, + int y, + int width, + int height) + +
+          Get a sub-part of this image.
+ TexturegetTexture() + +
+          Not supported in BigImage
+ ImagegetTile(int x, + int y) + +
+          Get a sub tile of this big image.
+ intgetVerticalImageCount() + +
+          Get a count of the number images that build this image up vertically
+protected  voidinitImpl() + +
+          Hook for subclasses to perform initialisation
+protected  voidreinit() + +
+          Reinitialise internal data
+ voidsetTexture(Texture texture) + +
+          Not supported in BigImage
+ voidstartUse() + +
+          Not supported in BigImage
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class org.newdawn.slick.Image
clampTexture, drawSheared, drawWarped, flushPixelData, getAlpha, getCenterOfRotationX, getCenterOfRotationY, getFilter, getHeight, getName, getResourceReference, getRotation, getTextureHeight, getTextureOffsetX, getTextureOffsetY, getTextureWidth, getWidth, init, isDestroyed, rotate, setAlpha, setCenterOfRotation, setColor, setColor, setFilter, setImageColor, setImageColor, setName, setRotation
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+BigImage

+
+public BigImage(java.lang.String ref)
+         throws SlickException
+
+
Create a new big image by loading it from the specified reference +

+

+
Parameters:
ref - The reference to the image to load +
Throws: +
SlickException - Indicates we were unable to locate the resource
+
+
+ +

+BigImage

+
+public BigImage(java.lang.String ref,
+                int filter)
+         throws SlickException
+
+
Create a new big image by loading it from the specified reference +

+

+
Parameters:
ref - The reference to the image to load
filter - The image filter to apply (@see #Image.FILTER_NEAREST) +
Throws: +
SlickException - Indicates we were unable to locate the resource
+
+
+ +

+BigImage

+
+public BigImage(java.lang.String ref,
+                int filter,
+                int tileSize)
+         throws SlickException
+
+
Create a new big image by loading it from the specified reference +

+

+
Parameters:
ref - The reference to the image to load
filter - The image filter to apply (@see #Image.FILTER_NEAREST)
tileSize - The maximum size of the tiles to use to build the bigger image +
Throws: +
SlickException - Indicates we were unable to locate the resource
+
+
+ +

+BigImage

+
+public BigImage(LoadableImageData data,
+                java.nio.ByteBuffer imageBuffer,
+                int filter)
+
+
Create a new big image by loading it from the specified image data +

+

+
Parameters:
data - The pixelData to use to create the image
imageBuffer - The buffer containing texture data
filter - The image filter to apply (@see #Image.FILTER_NEAREST)
+
+
+ +

+BigImage

+
+public BigImage(LoadableImageData data,
+                java.nio.ByteBuffer imageBuffer,
+                int filter,
+                int tileSize)
+
+
Create a new big image by loading it from the specified image data +

+

+
Parameters:
data - The pixelData to use to create the image
imageBuffer - The buffer containing texture data
filter - The image filter to apply (@see #Image.FILTER_NEAREST)
tileSize - The maximum size of the tiles to use to build the bigger image
+
+ + + + + + + + +
+Method Detail
+ +

+getMaxSingleImageSize

+
+public static final int getMaxSingleImageSize()
+
+
Get the maximum size of an image supported by the underlying + hardware. +

+

+ +
Returns:
The maximum size of the textures supported by the underlying + hardware.
+
+
+
+ +

+getTile

+
+public Image getTile(int x,
+                     int y)
+
+
Get a sub tile of this big image. Useful for debugging +

+

+
Parameters:
x - The x tile index
y - The y tile index +
Returns:
The image used for this tile
+
+
+
+ +

+bind

+
+public void bind()
+
+
Not supported in BigImage +

+

+
Overrides:
bind in class Image
+
+
+
See Also:
Image.bind()
+
+
+
+ +

+copy

+
+public Image copy()
+
+
Not supported in BigImage +

+

+
Overrides:
copy in class Image
+
+
+ +
Returns:
The copy of this image
See Also:
Image.copy()
+
+
+
+ +

+draw

+
+public void draw()
+
+
Description copied from class: Image
+
Draw this image at the current location +

+

+
Overrides:
draw in class Image
+
+
+
See Also:
Image.draw()
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 Color filter)
+
+
Description copied from class: Image
+
Draw this image at the specified location +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
filter - The color to filter with when drawing
See Also:
Image.draw(float, float, org.newdawn.slick.Color)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float scale,
+                 Color filter)
+
+
Description copied from class: Image
+
Draw the image with a given scale +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x position to draw the image at
y - The y position to draw the image at
scale - The scaling to apply
filter - The colour filter to adapt the image with
See Also:
Image.draw(float, float, float, org.newdawn.slick.Color)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height,
+                 Color filter)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
filter - The color to filter with while drawing
See Also:
Image.draw(float, float, float, float, org.newdawn.slick.Color)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float x2,
+                 float y2,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2)
+
+
Description copied from class: Image
+
Draw a section of this image at a particular location and scale on the screen +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
See Also:
Image.draw(float, float, float, float, float, float, float, float)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2)
+
+
Description copied from class: Image
+
Draw a section of this image at a particular location and scale on the screen +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
See Also:
Image.draw(float, float, float, float, float, float)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
See Also:
Image.draw(float, float, float, float)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float scale)
+
+
Description copied from class: Image
+
Draw the image with a given scale +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x position to draw the image at
y - The y position to draw the image at
scale - The scaling to apply
See Also:
Image.draw(float, float, float)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y)
+
+
Description copied from class: Image
+
Draw this image at the specified location +

+

+
Specified by:
draw in interface Renderable
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
See Also:
Image.draw(float, float)
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float width,
+                         float height)
+
+
Description copied from class: Image
+
Draw this image as part of a collection of images +

+

+
Overrides:
drawEmbedded in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
See Also:
Image.drawEmbedded(float, float, float, float)
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size as a silohette +

+

+
Overrides:
drawFlash in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
See Also:
Image.drawFlash(float, float, float, float)
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size in a white silohette +

+

+
Overrides:
drawFlash in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
See Also:
Image.drawFlash(float, float)
+
+
+
+ +

+endUse

+
+public void endUse()
+
+
Not supported in BigImage +

+

+
Overrides:
endUse in class Image
+
+
+
See Also:
Image.endUse()
+
+
+
+ +

+startUse

+
+public void startUse()
+
+
Not supported in BigImage +

+

+
Overrides:
startUse in class Image
+
+
+
See Also:
Image.startUse()
+
+
+
+ +

+ensureInverted

+
+public void ensureInverted()
+
+
Not supported in BigImage +

+

+
Overrides:
ensureInverted in class Image
+
+
+
See Also:
Image.ensureInverted()
+
+
+
+ +

+getColor

+
+public Color getColor(int x,
+                      int y)
+
+
Not supported in BigImage +

+

+
Overrides:
getColor in class Image
+
+
+
Parameters:
x - The x coordinate of the pixel
y - The y coordinate of the pixel +
Returns:
The Color of the pixel at the specified location
See Also:
Image.getColor(int, int)
+
+
+
+ +

+getFlippedCopy

+
+public Image getFlippedCopy(boolean flipHorizontal,
+                            boolean flipVertical)
+
+
Description copied from class: Image
+
Get a copy image flipped on potentially two axis +

+

+
Overrides:
getFlippedCopy in class Image
+
+
+
Parameters:
flipHorizontal - True if we want to flip the image horizontally
flipVertical - True if we want to flip the image vertically +
Returns:
The flipped image instance
See Also:
Image.getFlippedCopy(boolean, boolean)
+
+
+
+ +

+getGraphics

+
+public Graphics getGraphics()
+                     throws SlickException
+
+
Not supported in BigImage +

+

+
Overrides:
getGraphics in class Image
+
+
+ +
Returns:
The graphics context used to render to this image +
Throws: +
SlickException - Indicates a failure to create a graphics context
See Also:
Image.getGraphics()
+
+
+
+ +

+getScaledCopy

+
+public Image getScaledCopy(float scale)
+
+
Description copied from class: Image
+
Get a scaled copy of this image with a uniform scale +

+

+
Overrides:
getScaledCopy in class Image
+
+
+
Parameters:
scale - The scale to apply +
Returns:
The new scaled image
See Also:
Image.getScaledCopy(float)
+
+
+
+ +

+getScaledCopy

+
+public Image getScaledCopy(int width,
+                           int height)
+
+
Description copied from class: Image
+
Get a scaled copy of this image +

+

+
Overrides:
getScaledCopy in class Image
+
+
+
Parameters:
width - The width of the copy
height - The height of the copy +
Returns:
The new scaled image
See Also:
Image.getScaledCopy(int, int)
+
+
+
+ +

+getSubImage

+
+public Image getSubImage(int x,
+                         int y,
+                         int width,
+                         int height)
+
+
Description copied from class: Image
+
Get a sub-part of this image. Note that the create image retains a reference to the + image data so should anything change it will affect sub-images too. +

+

+
Overrides:
getSubImage in class Image
+
+
+
Parameters:
x - The x coordinate of the sub-image
y - The y coordinate of the sub-image
width - The width of the sub-image
height - The height of the sub-image +
Returns:
The image represent the sub-part of this image
See Also:
Image.getSubImage(int, int, int, int)
+
+
+
+ +

+getTexture

+
+public Texture getTexture()
+
+
Not supported in BigImage +

+

+
Overrides:
getTexture in class Image
+
+
+ +
Returns:
The OpenGL texture holding this image
See Also:
Image.getTexture()
+
+
+
+ +

+initImpl

+
+protected void initImpl()
+
+
Description copied from class: Image
+
Hook for subclasses to perform initialisation +

+

+
Overrides:
initImpl in class Image
+
+
+
See Also:
Image.initImpl()
+
+
+
+ +

+reinit

+
+protected void reinit()
+
+
Description copied from class: Image
+
Reinitialise internal data +

+

+
Overrides:
reinit in class Image
+
+
+
See Also:
Image.reinit()
+
+
+
+ +

+setTexture

+
+public void setTexture(Texture texture)
+
+
Not supported in BigImage +

+

+
Overrides:
setTexture in class Image
+
+
+
Parameters:
texture - The texture used by this image
See Also:
Image.setTexture(org.newdawn.slick.opengl.Texture)
+
+
+
+ +

+getSubImage

+
+public Image getSubImage(int offsetX,
+                         int offsetY)
+
+
Get a sub-image that builds up this image. Note that the offsets + used will depend on the maximum texture size on the OpenGL hardware +

+

+
Parameters:
offsetX - The x position of the image to return
offsetY - The y position of the image to return +
Returns:
The image at the specified offset into the big image
+
+
+
+ +

+getHorizontalImageCount

+
+public int getHorizontalImageCount()
+
+
Get a count of the number images that build this image up horizontally +

+

+ +
Returns:
The number of sub-images across the big image
+
+
+
+ +

+getVerticalImageCount

+
+public int getVerticalImageCount()
+
+
Get a count of the number images that build this image up vertically +

+

+ +
Returns:
The number of sub-images down the big image
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class Image
+
+
+
See Also:
Image.toString()
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws SlickException
+
+
Destroy the image and release any native resources. + Calls on a destroyed image have undefined results +

+

+
Overrides:
destroy in class Image
+
+
+ +
Throws: +
SlickException - Indicates a failure to release resources on the graphics card
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float x2,
+                 float y2,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2,
+                 Color filter)
+
+
Description copied from class: Image
+
Draw a section of this image at a particular location and scale on the screen +

+

+
Overrides:
draw in class Image
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
filter - The colour filter to apply when drawing
See Also:
Image.draw(float, float, float, float, float, float, float, float, org.newdawn.slick.Color)
+
+
+
+ +

+drawCentered

+
+public void drawCentered(float x,
+                         float y)
+
+
Description copied from class: Image
+
Draw the image based on it's center +

+

+
Overrides:
drawCentered in class Image
+
+
+
Parameters:
x - The x coordinate to place the image's center at
y - The y coordinate to place the image's center at
See Also:
Image.drawCentered(float, float)
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float x2,
+                         float y2,
+                         float srcx,
+                         float srcy,
+                         float srcx2,
+                         float srcy2,
+                         Color filter)
+
+
Description copied from class: Image
+
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. between calls to startUse and endUse. +

+

+
Overrides:
drawEmbedded in class Image
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
filter - The colour filter to apply when drawing
See Also:
Image.drawEmbedded(float, float, float, float, float, float, float, float, org.newdawn.slick.Color)
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float x2,
+                         float y2,
+                         float srcx,
+                         float srcy,
+                         float srcx2,
+                         float srcy2)
+
+
Description copied from class: Image
+
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. between calls to startUse and endUse. +

+

+
Overrides:
drawEmbedded in class Image
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
See Also:
Image.drawEmbedded(float, float, float, float, float, float, float, float)
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height,
+                      Color col)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size as a silohette +

+

+
Overrides:
drawFlash in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
col - The color for the sillohette
See Also:
Image.drawFlash(float, float, float, float, org.newdawn.slick.Color)
+
+
+
+ +

+drawSheared

+
+public void drawSheared(float x,
+                        float y,
+                        float hshear,
+                        float vshear)
+
+
Description copied from class: Image
+
Draw this image at a specified location and size +

+

+
Overrides:
drawSheared in class Image
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
hshear - The amount to shear the bottom points by horizontally
vshear - The amount to shear the right points by vertically
See Also:
Image.drawSheared(float, float, float, float)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/CachedRender.html b/lib/javadoc/org/newdawn/slick/CachedRender.html new file mode 100644 index 000000000..cbcd3893d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/CachedRender.html @@ -0,0 +1,334 @@ + + + + + + +CachedRender (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class CachedRender

+
+java.lang.Object
+  extended by org.newdawn.slick.CachedRender
+
+
+
+
public class CachedRender
extends java.lang.Object
+ + +

+A set of rendering that is cached onto the graphics card and hopefully + is quicker to render. Note that there are some things that can't be done + in lists and that all dependent operations must be container. For instance, + any colour configuration can not be assumed from outside the cache. + + Note: The destroy method needs to be used to tidy up. This is pretty important + in this case since there are limited number of underlying resources. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + +
+Constructor Summary
CachedRender(java.lang.Runnable runnable) + +
+          Create a new cached render that will build the specified + operations on to a video card resource
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Destroy this cached render
+ voidrender() + +
+          Render the cached operations.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+CachedRender

+
+public CachedRender(java.lang.Runnable runnable)
+
+
Create a new cached render that will build the specified + operations on to a video card resource +

+

+
Parameters:
runnable - The operations to cache
+
+ + + + + + + + +
+Method Detail
+ +

+render

+
+public void render()
+
+
Render the cached operations. Note that this doesn't call the operations, but + rather calls the cached version +

+

+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Destroy this cached render +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/CanvasGameContainer.html b/lib/javadoc/org/newdawn/slick/CanvasGameContainer.html new file mode 100644 index 000000000..c1c530045 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/CanvasGameContainer.html @@ -0,0 +1,467 @@ + + + + + + +CanvasGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class CanvasGameContainer

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Canvas
+          extended by org.newdawn.slick.CanvasGameContainer
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
public class CanvasGameContainer
extends java.awt.Canvas
+ + +

+A game container that displays the game on an AWT Canvas. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + + + + + + + + + +
+Field Summary
+protected  org.newdawn.slick.CanvasGameContainer.Containercontainer + +
+          The actual container implementation
+protected  Gamegame + +
+          The game being held in this container
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + + + + +
+Constructor Summary
CanvasGameContainer(Game game) + +
+          Create a new panel
CanvasGameContainer(Game game, + boolean shared) + +
+          Create a new panel
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddispose() + +
+          Dispose the container and any resources it holds
+ GameContainergetContainer() + +
+          Get the GameContainer providing this canvas
+ voidstart() + +
+          Start the game container rendering
+ + + + + + + +
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, paint, update
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+container

+
+protected org.newdawn.slick.CanvasGameContainer.Container container
+
+
The actual container implementation +

+

+
+
+
+ +

+game

+
+protected Game game
+
+
The game being held in this container +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+CanvasGameContainer

+
+public CanvasGameContainer(Game game)
+                    throws SlickException
+
+
Create a new panel +

+

+
Parameters:
game - The game being held +
Throws: +
SlickException - Indicates a failure during creation of the container
+
+
+ +

+CanvasGameContainer

+
+public CanvasGameContainer(Game game,
+                           boolean shared)
+                    throws SlickException
+
+
Create a new panel +

+

+
Parameters:
game - The game being held
shared - True if shared GL context should be enabled. This allows multiple panels + to share textures and other GL resources. +
Throws: +
SlickException - Indicates a failure during creation of the container
+
+ + + + + + + + +
+Method Detail
+ +

+start

+
+public void start()
+           throws SlickException
+
+
Start the game container rendering +

+

+ +
Throws: +
SlickException - Indicates a failure during game execution
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
Dispose the container and any resources it holds +

+

+
+
+
+
+ +

+getContainer

+
+public GameContainer getContainer()
+
+
Get the GameContainer providing this canvas +

+

+ +
Returns:
The game container providing this canvas
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Color.html b/lib/javadoc/org/newdawn/slick/Color.html new file mode 100644 index 000000000..05568e995 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Color.html @@ -0,0 +1,1316 @@ + + + + + + +Color (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Color

+
+java.lang.Object
+  extended by org.newdawn.slick.Color
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Color
extends java.lang.Object
implements java.io.Serializable
+ + +

+A simple wrapper round the values required for a colour +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ floata + +
+          The alpha component of the colour
+ floatb + +
+          The blue component of the colour
+static Colorblack + +
+          The fixed colour black
+static Colorblue + +
+          The fixed colour blue
+static Colorcyan + +
+          The fixed colour cyan
+static ColordarkGray + +
+          The fixed colour dark gray
+ floatg + +
+          The green component of the colour
+protected  SGLGL + +
+          The renderer to use for all GL operations
+static Colorgray + +
+          The fixed colour gray
+static Colorgreen + +
+          The fixed colour green
+static ColorlightGray + +
+          The fixed colour light gray
+static Colormagenta + +
+          The fixed colour dark magenta
+static Colororange + +
+          The fixed colour dark orange
+static Colorpink + +
+          The fixed colour dark pink
+ floatr + +
+          The red component of the colour
+static Colorred + +
+          The fixed colour red
+static Colortransparent + +
+          The fixed color transparent
+static Colorwhite + +
+          The fixed colour white
+static Coloryellow + +
+          The fixed colour yellow
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Color(Color color) + +
+          Copy constructor
Color(java.nio.FloatBuffer buffer) + +
+          Create a component based on the first 4 elements of a float buffer
Color(float r, + float g, + float b) + +
+          Create a 3 component colour
Color(float r, + float g, + float b, + float a) + +
+          Create a 4 component colour
Color(int value) + +
+          Create a colour from an evil integer packed 0xAARRGGBB.
Color(int r, + int g, + int b) + +
+          Create a 3 component colour
Color(int r, + int g, + int b, + int a) + +
+          Create a 4 component colour
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(Color c) + +
+          Add another colour to this one
+ ColoraddToCopy(Color c) + +
+          Add another colour to this one
+ voidbind() + +
+          Bind this colour to the GL context
+ Colorbrighter() + +
+          Make a brighter instance of this colour
+ Colorbrighter(float scale) + +
+          Make a brighter instance of this colour
+ Colordarker() + +
+          Make a darker instance of this colour
+ Colordarker(float scale) + +
+          Make a darker instance of this colour
+static Colordecode(java.lang.String nm) + +
+          Decode a number in a string and process it as a colour + reference.
+ booleanequals(java.lang.Object other) + +
+           
+ intgetAlpha() + +
+          Get the alpha byte component of this colour
+ intgetAlphaByte() + +
+          Get the alpha byte component of this colour
+ intgetBlue() + +
+          Get the blue byte component of this colour
+ intgetBlueByte() + +
+          Get the blue byte component of this colour
+ intgetGreen() + +
+          Get the green byte component of this colour
+ intgetGreenByte() + +
+          Get the green byte component of this colour
+ intgetRed() + +
+          Get the red byte component of this colour
+ intgetRedByte() + +
+          Get the red byte component of this colour
+ inthashCode() + +
+           
+ Colormultiply(Color c) + +
+          Multiply this color by another
+ voidscale(float value) + +
+          Scale the components of the colour by the given value
+ ColorscaleCopy(float value) + +
+          Scale the components of the colour by the given value
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected transient SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+transparent

+
+public static final Color transparent
+
+
The fixed color transparent +

+

+
+
+
+ +

+white

+
+public static final Color white
+
+
The fixed colour white +

+

+
+
+
+ +

+yellow

+
+public static final Color yellow
+
+
The fixed colour yellow +

+

+
+
+
+ +

+red

+
+public static final Color red
+
+
The fixed colour red +

+

+
+
+
+ +

+blue

+
+public static final Color blue
+
+
The fixed colour blue +

+

+
+
+
+ +

+green

+
+public static final Color green
+
+
The fixed colour green +

+

+
+
+
+ +

+black

+
+public static final Color black
+
+
The fixed colour black +

+

+
+
+
+ +

+gray

+
+public static final Color gray
+
+
The fixed colour gray +

+

+
+
+
+ +

+cyan

+
+public static final Color cyan
+
+
The fixed colour cyan +

+

+
+
+
+ +

+darkGray

+
+public static final Color darkGray
+
+
The fixed colour dark gray +

+

+
+
+
+ +

+lightGray

+
+public static final Color lightGray
+
+
The fixed colour light gray +

+

+
+
+
+ +

+pink

+
+public static final Color pink
+
+
The fixed colour dark pink +

+

+
+
+
+ +

+orange

+
+public static final Color orange
+
+
The fixed colour dark orange +

+

+
+
+
+ +

+magenta

+
+public static final Color magenta
+
+
The fixed colour dark magenta +

+

+
+
+
+ +

+r

+
+public float r
+
+
The red component of the colour +

+

+
+
+
+ +

+g

+
+public float g
+
+
The green component of the colour +

+

+
+
+
+ +

+b

+
+public float b
+
+
The blue component of the colour +

+

+
+
+
+ +

+a

+
+public float a
+
+
The alpha component of the colour +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Color

+
+public Color(Color color)
+
+
Copy constructor +

+

+
Parameters:
color - The color to copy into the new instance
+
+
+ +

+Color

+
+public Color(java.nio.FloatBuffer buffer)
+
+
Create a component based on the first 4 elements of a float buffer +

+

+
Parameters:
buffer - The buffer to read the color from
+
+
+ +

+Color

+
+public Color(float r,
+             float g,
+             float b)
+
+
Create a 3 component colour +

+

+
Parameters:
r - The red component of the colour (0.0 -> 1.0)
g - The green component of the colour (0.0 -> 1.0)
b - The blue component of the colour (0.0 -> 1.0)
+
+
+ +

+Color

+
+public Color(float r,
+             float g,
+             float b,
+             float a)
+
+
Create a 4 component colour +

+

+
Parameters:
r - The red component of the colour (0.0 -> 1.0)
g - The green component of the colour (0.0 -> 1.0)
b - The blue component of the colour (0.0 -> 1.0)
a - The alpha component of the colour (0.0 -> 1.0)
+
+
+ +

+Color

+
+public Color(int r,
+             int g,
+             int b)
+
+
Create a 3 component colour +

+

+
Parameters:
r - The red component of the colour (0 -> 255)
g - The green component of the colour (0 -> 255)
b - The blue component of the colour (0 -> 255)
+
+
+ +

+Color

+
+public Color(int r,
+             int g,
+             int b,
+             int a)
+
+
Create a 4 component colour +

+

+
Parameters:
r - The red component of the colour (0 -> 255)
g - The green component of the colour (0 -> 255)
b - The blue component of the colour (0 -> 255)
a - The alpha component of the colour (0 -> 255)
+
+
+ +

+Color

+
+public Color(int value)
+
+
Create a colour from an evil integer packed 0xAARRGGBB. If AA + is specified as zero then it will be interpreted as unspecified + and hence a value of 255 will be recorded. +

+

+
Parameters:
value - The value to interpret for the colour
+
+ + + + + + + + +
+Method Detail
+ +

+decode

+
+public static Color decode(java.lang.String nm)
+
+
Decode a number in a string and process it as a colour + reference. +

+

+
+
+
+
Parameters:
nm - The number string to decode +
Returns:
The color generated from the number read
+
+
+
+ +

+bind

+
+public void bind()
+
+
Bind this colour to the GL context +

+

+
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+
+ +

+equals

+
+public boolean equals(java.lang.Object other)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+darker

+
+public Color darker()
+
+
Make a darker instance of this colour +

+

+
+
+
+ +
Returns:
The darker version of this colour
+
+
+
+ +

+darker

+
+public Color darker(float scale)
+
+
Make a darker instance of this colour +

+

+
+
+
+
Parameters:
scale - The scale down of RGB (i.e. if you supply 0.03 the colour will be darkened by 3%) +
Returns:
The darker version of this colour
+
+
+
+ +

+brighter

+
+public Color brighter()
+
+
Make a brighter instance of this colour +

+

+
+
+
+ +
Returns:
The brighter version of this colour
+
+
+
+ +

+getRed

+
+public int getRed()
+
+
Get the red byte component of this colour +

+

+
+
+
+ +
Returns:
The red component (range 0-255)
+
+
+
+ +

+getGreen

+
+public int getGreen()
+
+
Get the green byte component of this colour +

+

+
+
+
+ +
Returns:
The green component (range 0-255)
+
+
+
+ +

+getBlue

+
+public int getBlue()
+
+
Get the blue byte component of this colour +

+

+
+
+
+ +
Returns:
The blue component (range 0-255)
+
+
+
+ +

+getAlpha

+
+public int getAlpha()
+
+
Get the alpha byte component of this colour +

+

+
+
+
+ +
Returns:
The alpha component (range 0-255)
+
+
+
+ +

+getRedByte

+
+public int getRedByte()
+
+
Get the red byte component of this colour +

+

+
+
+
+ +
Returns:
The red component (range 0-255)
+
+
+
+ +

+getGreenByte

+
+public int getGreenByte()
+
+
Get the green byte component of this colour +

+

+
+
+
+ +
Returns:
The green component (range 0-255)
+
+
+
+ +

+getBlueByte

+
+public int getBlueByte()
+
+
Get the blue byte component of this colour +

+

+
+
+
+ +
Returns:
The blue component (range 0-255)
+
+
+
+ +

+getAlphaByte

+
+public int getAlphaByte()
+
+
Get the alpha byte component of this colour +

+

+
+
+
+ +
Returns:
The alpha component (range 0-255)
+
+
+
+ +

+brighter

+
+public Color brighter(float scale)
+
+
Make a brighter instance of this colour +

+

+
+
+
+
Parameters:
scale - The scale up of RGB (i.e. if you supply 0.03 the colour will be brightened by 3%) +
Returns:
The brighter version of this colour
+
+
+
+ +

+multiply

+
+public Color multiply(Color c)
+
+
Multiply this color by another +

+

+
+
+
+
Parameters:
c - the other color +
Returns:
product of the two colors
+
+
+
+ +

+add

+
+public void add(Color c)
+
+
Add another colour to this one +

+

+
+
+
+
Parameters:
c - The colour to add
+
+
+
+ +

+scale

+
+public void scale(float value)
+
+
Scale the components of the colour by the given value +

+

+
+
+
+
Parameters:
value - The value to scale by
+
+
+
+ +

+addToCopy

+
+public Color addToCopy(Color c)
+
+
Add another colour to this one +

+

+
+
+
+
Parameters:
c - The colour to add +
Returns:
The copy which has had the color added to it
+
+
+
+ +

+scaleCopy

+
+public Color scaleCopy(float value)
+
+
Scale the components of the colour by the given value +

+

+
+
+
+
Parameters:
value - The value to scale by +
Returns:
The copy which has been scaled
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/ControlledInputReciever.html b/lib/javadoc/org/newdawn/slick/ControlledInputReciever.html new file mode 100644 index 000000000..5e4b94253 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/ControlledInputReciever.html @@ -0,0 +1,294 @@ + + + + + + +ControlledInputReciever (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface ControlledInputReciever

+
+
All Known Subinterfaces:
ControllerListener, GameState, InputListener, KeyListener, MouseListener
+
+
+
All Known Implementing Classes:
AbstractComponent, AlphaMapTest, AnimationTest, AntiAliasTest, BasicComponent, BasicGame, BasicGameState, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputAdapter, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MouseOverArea, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TestState1, TestState2, TestState3, TextField, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface ControlledInputReciever
+ + +

+Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinputEnded() + +
+          Notification that all input events have been sent for this frame
+ voidinputStarted() + +
+          Notification that input is about to be processed
+ booleanisAcceptingInput() + +
+          Check if this input listener is accepting input
+ voidsetInput(Input input) + +
+          Set the input that events are being sent from
+  +

+ + + + + + + + +
+Method Detail
+ +

+setInput

+
+void setInput(Input input)
+
+
Set the input that events are being sent from +

+

+
Parameters:
input - The input instance sending events
+
+
+
+ +

+isAcceptingInput

+
+boolean isAcceptingInput()
+
+
Check if this input listener is accepting input +

+

+ +
Returns:
True if the input listener should recieve events
+
+
+
+ +

+inputEnded

+
+void inputEnded()
+
+
Notification that all input events have been sent for this frame +

+

+
+
+
+
+ +

+inputStarted

+
+void inputStarted()
+
+
Notification that input is about to be processed +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/ControllerListener.html b/lib/javadoc/org/newdawn/slick/ControllerListener.html new file mode 100644 index 000000000..34369ff44 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/ControllerListener.html @@ -0,0 +1,487 @@ + + + + + + +ControllerListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface ControllerListener

+
+
All Superinterfaces:
ControlledInputReciever
+
+
+
All Known Subinterfaces:
GameState, InputListener
+
+
+
All Known Implementing Classes:
AbstractComponent, AlphaMapTest, AnimationTest, AntiAliasTest, BasicComponent, BasicGame, BasicGameState, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputAdapter, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MouseOverArea, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TestState1, TestState2, TestState3, TextField, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface ControllerListener
extends ControlledInputReciever
+ + +

+Description of classes capable of responding to controller events +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControlledInputReciever
inputEnded, inputStarted, isAcceptingInput, setInput
+  +

+ + + + + + + + +
+Method Detail
+ +

+controllerLeftPressed

+
+void controllerLeftPressed(int controller)
+
+
Notification that the left control has been pressed on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
+
+
+
+ +

+controllerLeftReleased

+
+void controllerLeftReleased(int controller)
+
+
Notification that the left control has been released on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
+
+
+
+ +

+controllerRightPressed

+
+void controllerRightPressed(int controller)
+
+
Notification that the right control has been pressed on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
+
+
+
+ +

+controllerRightReleased

+
+void controllerRightReleased(int controller)
+
+
Notification that the right control has been released on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
+
+
+
+ +

+controllerUpPressed

+
+void controllerUpPressed(int controller)
+
+
Notification that the up control has been pressed on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
+
+
+
+ +

+controllerUpReleased

+
+void controllerUpReleased(int controller)
+
+
Notification that the up control has been released on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
+
+
+
+ +

+controllerDownPressed

+
+void controllerDownPressed(int controller)
+
+
Notification that the down control has been pressed on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
+
+
+
+ +

+controllerDownReleased

+
+void controllerDownReleased(int controller)
+
+
Notification that the down control has been released on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
+
+
+
+ +

+controllerButtonPressed

+
+void controllerButtonPressed(int controller,
+                             int button)
+
+
Notification that a button control has been pressed on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
+
+
+
+ +

+controllerButtonReleased

+
+void controllerButtonReleased(int controller,
+                              int button)
+
+
Notification that a button control has been released on + the controller. +

+

+
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Font.html b/lib/javadoc/org/newdawn/slick/Font.html new file mode 100644 index 000000000..ab109065f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Font.html @@ -0,0 +1,348 @@ + + + + + + +Font (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface Font

+
+
All Known Implementing Classes:
AngelCodeFont, SpriteSheetFont, TrueTypeFont, UnicodeFont
+
+
+
+
public interface Font
+ + +

+The proprites of any font implementation +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddrawString(float x, + float y, + java.lang.String text) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ intgetHeight(java.lang.String str) + +
+          Get the height of the given string
+ intgetLineHeight() + +
+          Get the maximum height of any line drawn by this font
+ intgetWidth(java.lang.String str) + +
+          Get the width of the given string
+  +

+ + + + + + + + +
+Method Detail
+ +

+getWidth

+
+int getWidth(java.lang.String str)
+
+
Get the width of the given string +

+

+
Parameters:
str - The string to obtain the rendered with of +
Returns:
The width of the given string
+
+
+
+ +

+getHeight

+
+int getHeight(java.lang.String str)
+
+
Get the height of the given string +

+

+
Parameters:
str - The string to obtain the rendered with of +
Returns:
The width of the given string
+
+
+
+ +

+getLineHeight

+
+int getLineHeight()
+
+
Get the maximum height of any line drawn by this font +

+

+ +
Returns:
The maxium height of any line drawn by this font
+
+
+
+ +

+drawString

+
+void drawString(float x,
+                float y,
+                java.lang.String text)
+
+
Draw a string to the screen +

+

+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
+
+
+
+ +

+drawString

+
+void drawString(float x,
+                float y,
+                java.lang.String text,
+                Color col)
+
+
Draw a string to the screen +

+

+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
+
+
+
+ +

+drawString

+
+void drawString(float x,
+                float y,
+                java.lang.String text,
+                Color col,
+                int startIndex,
+                int endIndex)
+
+
Draw part of a string to the screen. Note that this will + still position the text as though it's part of the bigger string. +

+

+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
startIndex - The index of the first character to draw
endIndex - The index of the last character from the string to draw
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Game.html b/lib/javadoc/org/newdawn/slick/Game.html new file mode 100644 index 000000000..f580d7f0e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Game.html @@ -0,0 +1,323 @@ + + + + + + +Game (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface Game

+
+
All Known Implementing Classes:
AlphaMapTest, AnimationTest, AntiAliasTest, BasicGame, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableGame, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface Game
+ + +

+The main game interface that should be implemented by any game being developed + using the container system. There will be some utility type sub-classes as development + continues. +

+ +

+

+
Author:
+
kevin
+
See Also:
BasicGame
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancloseRequested() + +
+          Notification that a game close has been requested
+ java.lang.StringgetTitle() + +
+          Get the title of this game
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+  +

+ + + + + + + + +
+Method Detail
+ +

+init

+
+void init(GameContainer container)
+          throws SlickException
+
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
+
+
+
+ +

+update

+
+void update(GameContainer container,
+            int delta)
+            throws SlickException
+
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
+
+
+
+ +

+render

+
+void render(GameContainer container,
+            Graphics g)
+            throws SlickException
+
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
+
+
+
+ +

+closeRequested

+
+boolean closeRequested()
+
+
Notification that a game close has been requested +

+

+ +
Returns:
True if the game should close
+
+
+
+ +

+getTitle

+
+java.lang.String getTitle()
+
+
Get the title of this game +

+

+ +
Returns:
The title of the game
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/GameContainer.html b/lib/javadoc/org/newdawn/slick/GameContainer.html new file mode 100644 index 000000000..f8e686662 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/GameContainer.html @@ -0,0 +1,2561 @@ + + + + + + +GameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class GameContainer

+
+java.lang.Object
+  extended by org.newdawn.slick.GameContainer
+
+
+
All Implemented Interfaces:
GUIContext
+
+
+
Direct Known Subclasses:
AppGameContainer, AppletGameContainer.Container
+
+
+
+
public abstract class GameContainer
extends java.lang.Object
implements GUIContext
+ + +

+A generic game container that handles the game loop, fps recording and + managing the input system +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  booleanalwaysRender + +
+          True if we should render when not focused
+protected  booleanclearEachFrame + +
+          True if we should clear the screen each frame
+protected  booleanforceExit + +
+          True if we should force exit
+protected  intfps + +
+          The current count of FPS
+protected  Gamegame + +
+          The game being managed
+protected static SGLGL + +
+          The renderer to use for all GL operations
+protected  intheight + +
+          The height of the display
+protected  Inputinput + +
+          The input system to pass to the game
+protected  longlastFPS + +
+          The last time the FPS recorded
+protected  longlastFrame + +
+          The time the last frame was rendered
+protected  GamelastGame + +
+          The last game started
+protected  longmaximumLogicInterval + +
+          The maximum logic update interval
+protected  longminimumLogicInterval + +
+          The minimum logic update interval
+protected  booleanpaused + +
+          True if the game is paused
+protected  intrecordedFPS + +
+          The last recorded FPS
+protected  booleanrunning + +
+          True if we're currently running the game loop
+protected  intsamples + +
+          The number of samples we'll attempt through hardware
+protected static org.lwjgl.opengl.DrawableSHARED_DRAWABLE + +
+          The shared drawable if any
+protected  booleansmoothDeltas + +
+          Smoothed deltas requested
+protected static booleanstencil + +
+          True if we require stencil bits
+protected  longstoredDelta + +
+          The stored delta
+protected  booleansupportsMultiSample + +
+          True if this context supports multisample
+protected  inttargetFPS + +
+          The FPS we want to lock to
+protected  booleanvsync + +
+          True if vsync has been requested
+protected  intwidth + +
+          The width of the display
+  + + + + + + + + + + + +
+Constructor Summary
+protected GameContainer(Game game) + +
+          Create a new game container wrapping a given game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidenableSharedContext() + +
+          Enable shared OpenGL context.
+static voidenableStencil() + +
+           
+protected  voidenterOrtho() + +
+          Enter the orthographic mode
+protected  voidenterOrtho(int xsize, + int ysize) + +
+          Enter the orthographic mode
+ voidexit() + +
+          Cause the game to exit and shutdown cleanly
+ booleangetAlwaysRender() + +
+          True if this container should render when it has focus
+ floatgetAspectRatio() + +
+          Get the aspect ratio of the screen
+static intgetBuildVersion() + +
+          Get the build number of slick
+ FontgetDefaultFont() + +
+          Get the default system font
+protected  intgetDelta() + +
+          Retrieve the time taken to render the last frame, i.e.
+ intgetFPS() + +
+          Get the current recorded FPS (frames per second)
+ GraphicsgetGraphics() + +
+          Get the graphics context used by this container.
+ intgetHeight() + +
+          Get the height of the game canvas
+ InputgetInput() + +
+          Get the input system
+ floatgetMusicVolume() + +
+          Retrieve the current default volume for music
+ intgetSamples() + +
+          The number of samples we're attempting to performing using + hardware multisampling
+abstract  intgetScreenHeight() + +
+          Get the height of the standard screen resolution
+abstract  intgetScreenWidth() + +
+          Get the width of the standard screen resolution
+static org.lwjgl.opengl.DrawablegetSharedContext() + +
+          Get the context shared by all containers
+ floatgetSoundVolume() + +
+          Retrieve the current default volume for sound fx
+ longgetTime() + +
+          Get the accurate system time
+ intgetWidth() + +
+          Get the width of the game canvas
+abstract  booleanhasFocus() + +
+          Check if the game currently has focus
+protected  voidinitGL() + +
+          Initialise the GL context
+protected  voidinitSystem() + +
+          Initialise the system components, OpenGL and OpenAL.
+ booleanisFullscreen() + +
+          Check if the display is in fullscreen mode
+abstract  booleanisMouseGrabbed() + +
+          Check if the mouse cursor is current grabbed.
+ booleanisMusicOn() + +
+          Check if music is enabled
+ booleanisPaused() + +
+          Check if the container is currently paused.
+ booleanisShowingFPS() + +
+          Check if the FPS is currently showing
+ booleanisSoundOn() + +
+          Check if sound effects are enabled
+ booleanisUpdatingOnlyWhenVisible() + +
+          Check if this game is only updating when visible to the user (default = true)
+ booleanisVSyncRequested() + +
+          True if vsync is requested
+ voidpause() + +
+          Pause the game - i.e.
+ voidreinit() + +
+          Renitialise the game and the context in which it's being rendered
+ voidresume() + +
+          Resumt the game - i.e.
+protected  booleanrunning() + +
+          True if the game is running
+ voidsetAlwaysRender(boolean alwaysRender) + +
+          Indicate whether we want this container to render when it has focus
+ voidsetAnimatedMouseCursor(java.lang.String ref, + int x, + int y, + int width, + int height, + int[] cursorDelays) + +
+          Get a cursor based on a image reference on the classpath.
+ voidsetClearEachFrame(boolean clear) + +
+          Indicate if we should clear the screen at the beginning of each frame.
+ voidsetDefaultFont(Font font) + +
+          Set the default font that will be intialised in the graphics held in this container
+abstract  voidsetDefaultMouseCursor() + +
+          Set the default mouse cursor - i.e.
+ voidsetForceExit(boolean forceExit) + +
+          Indicate if we should force exitting the VM at the end + of the game (default = true)
+ voidsetFullscreen(boolean fullscreen) + +
+          Indicate whether we want to be in fullscreen mode.
+abstract  voidsetIcon(java.lang.String ref) + +
+          Set the icon to be displayed if possible in this type of + container
+abstract  voidsetIcons(java.lang.String[] refs) + +
+          Set the icons to be used for this application.
+ voidsetMaximumLogicUpdateInterval(int interval) + +
+          Set the maximum amount of time in milliseconds that can passed + into the update method.
+ voidsetMinimumLogicUpdateInterval(int interval) + +
+          Set the minimum amount of time in milliseonds that has to + pass before update() is called on the container game.
+abstract  voidsetMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+abstract  voidsetMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+abstract  voidsetMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+abstract  voidsetMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+abstract  voidsetMouseGrabbed(boolean grabbed) + +
+          Indicate whether mouse cursor should be grabbed or not
+ voidsetMultiSample(int samples) + +
+          Indicate whether we want to try to use fullscreen multisampling.
+ voidsetMusicOn(boolean on) + +
+          Indicate whether music should be enabled
+ voidsetMusicVolume(float volume) + +
+          Set the default volume for music
+ voidsetPaused(boolean paused) + +
+          Indicates if the game should be paused, i.e.
+ voidsetShowFPS(boolean show) + +
+          Indicate whether the container should show the FPS
+ voidsetSmoothDeltas(boolean smoothDeltas) + +
+          Indicate if we want to smooth deltas.
+ voidsetSoundOn(boolean on) + +
+          Indicate whether sound effects should be enabled
+ voidsetSoundVolume(float volume) + +
+          Set the default volume for sound fx
+ voidsetTargetFrameRate(int fps) + +
+          Set the target fps we're hoping to get
+ voidsetUpdateOnlyWhenVisible(boolean updateOnlyWhenVisible) + +
+          Indicate if the display should update only when the game is visible + (the default is true)
+ voidsetVerbose(boolean verbose) + +
+          Inidcate we want verbose logging
+ voidsetVSync(boolean vsync) + +
+          Indicate whether the display should be synced to the + vertical refresh (stops tearing)
+ voidsleep(int milliseconds) + +
+          Sleep for a given period
+ booleansupportsMultiSample() + +
+          Check if this hardware can support multi-sampling
+protected  voidupdateAndRender(int delta) + +
+          Update and render the game
+protected  voidupdateFPS() + +
+          Updated the FPS counter
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+SHARED_DRAWABLE

+
+protected static org.lwjgl.opengl.Drawable SHARED_DRAWABLE
+
+
The shared drawable if any +

+

+
+
+
+ +

+lastFrame

+
+protected long lastFrame
+
+
The time the last frame was rendered +

+

+
+
+
+ +

+lastFPS

+
+protected long lastFPS
+
+
The last time the FPS recorded +

+

+
+
+
+ +

+recordedFPS

+
+protected int recordedFPS
+
+
The last recorded FPS +

+

+
+
+
+ +

+fps

+
+protected int fps
+
+
The current count of FPS +

+

+
+
+
+ +

+running

+
+protected boolean running
+
+
True if we're currently running the game loop +

+

+
+
+
+ +

+width

+
+protected int width
+
+
The width of the display +

+

+
+
+
+ +

+height

+
+protected int height
+
+
The height of the display +

+

+
+
+
+ +

+game

+
+protected Game game
+
+
The game being managed +

+

+
+
+
+ +

+input

+
+protected Input input
+
+
The input system to pass to the game +

+

+
+
+
+ +

+targetFPS

+
+protected int targetFPS
+
+
The FPS we want to lock to +

+

+
+
+
+ +

+minimumLogicInterval

+
+protected long minimumLogicInterval
+
+
The minimum logic update interval +

+

+
+
+
+ +

+storedDelta

+
+protected long storedDelta
+
+
The stored delta +

+

+
+
+
+ +

+maximumLogicInterval

+
+protected long maximumLogicInterval
+
+
The maximum logic update interval +

+

+
+
+
+ +

+lastGame

+
+protected Game lastGame
+
+
The last game started +

+

+
+
+
+ +

+clearEachFrame

+
+protected boolean clearEachFrame
+
+
True if we should clear the screen each frame +

+

+
+
+
+ +

+paused

+
+protected boolean paused
+
+
True if the game is paused +

+

+
+
+
+ +

+forceExit

+
+protected boolean forceExit
+
+
True if we should force exit +

+

+
+
+
+ +

+vsync

+
+protected boolean vsync
+
+
True if vsync has been requested +

+

+
+
+
+ +

+smoothDeltas

+
+protected boolean smoothDeltas
+
+
Smoothed deltas requested +

+

+
+
+
+ +

+samples

+
+protected int samples
+
+
The number of samples we'll attempt through hardware +

+

+
+
+
+ +

+supportsMultiSample

+
+protected boolean supportsMultiSample
+
+
True if this context supports multisample +

+

+
+
+
+ +

+alwaysRender

+
+protected boolean alwaysRender
+
+
True if we should render when not focused +

+

+
+
+
+ +

+stencil

+
+protected static boolean stencil
+
+
True if we require stencil bits +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GameContainer

+
+protected GameContainer(Game game)
+
+
Create a new game container wrapping a given game +

+

+
Parameters:
game - The game to be wrapped
+
+ + + + + + + + +
+Method Detail
+ +

+enableStencil

+
+public static void enableStencil()
+
+
+
+
+
+
+
+
+
+ +

+setDefaultFont

+
+public void setDefaultFont(Font font)
+
+
Set the default font that will be intialised in the graphics held in this container +

+

+
+
+
+
Parameters:
font - The font to use as default
+
+
+
+ +

+setMultiSample

+
+public void setMultiSample(int samples)
+
+
Indicate whether we want to try to use fullscreen multisampling. This will + give antialiasing across the whole scene using a hardware feature. +

+

+
+
+
+
Parameters:
samples - The number of samples to attempt (2 is safe)
+
+
+
+ +

+supportsMultiSample

+
+public boolean supportsMultiSample()
+
+
Check if this hardware can support multi-sampling +

+

+
+
+
+ +
Returns:
True if the hardware supports multi-sampling
+
+
+
+ +

+getSamples

+
+public int getSamples()
+
+
The number of samples we're attempting to performing using + hardware multisampling +

+

+
+
+
+ +
Returns:
The number of samples requested
+
+
+
+ +

+setForceExit

+
+public void setForceExit(boolean forceExit)
+
+
Indicate if we should force exitting the VM at the end + of the game (default = true) +

+

+
+
+
+
Parameters:
forceExit - True if we should force the VM exit
+
+
+
+ +

+setSmoothDeltas

+
+public void setSmoothDeltas(boolean smoothDeltas)
+
+
Indicate if we want to smooth deltas. This feature will report + a delta based on the FPS not the time passed. This works well with + vsync. +

+

+
+
+
+
Parameters:
smoothDeltas - True if we should report smooth deltas
+
+
+
+ +

+isFullscreen

+
+public boolean isFullscreen()
+
+
Check if the display is in fullscreen mode +

+

+
+
+
+ +
Returns:
True if the display is in fullscreen mode
+
+
+
+ +

+getAspectRatio

+
+public float getAspectRatio()
+
+
Get the aspect ratio of the screen +

+

+
+
+
+ +
Returns:
The aspect ratio of the display
+
+
+
+ +

+setFullscreen

+
+public void setFullscreen(boolean fullscreen)
+                   throws SlickException
+
+
Indicate whether we want to be in fullscreen mode. Note that the current + display mode must be valid as a fullscreen mode for this to work +

+

+
+
+
+
Parameters:
fullscreen - True if we want to be in fullscreen mode +
Throws: +
SlickException - Indicates we failed to change the display mode
+
+
+
+ +

+enableSharedContext

+
+public static void enableSharedContext()
+                                throws SlickException
+
+
Enable shared OpenGL context. After calling this all containers created + will shared a single parent context +

+

+
+
+
+ +
Throws: +
SlickException - Indicates a failure to create the shared drawable
+
+
+
+ +

+getSharedContext

+
+public static org.lwjgl.opengl.Drawable getSharedContext()
+
+
Get the context shared by all containers +

+

+
+
+
+ +
Returns:
The context shared by all the containers or null if shared context isn't enabled
+
+
+
+ +

+setClearEachFrame

+
+public void setClearEachFrame(boolean clear)
+
+
Indicate if we should clear the screen at the beginning of each frame. If you're + rendering to the whole screen each frame then setting this to false can give + some performance improvements +

+

+
+
+
+
Parameters:
clear - True if the the screen should be cleared each frame
+
+
+
+ +

+reinit

+
+public void reinit()
+            throws SlickException
+
+
Renitialise the game and the context in which it's being rendered +

+

+
+
+
+ +
Throws: +
SlickException - Indicates a failure rerun initialisation routines
+
+
+
+ +

+pause

+
+public void pause()
+
+
Pause the game - i.e. suspend updates +

+

+
+
+
+
+
+
+
+ +

+resume

+
+public void resume()
+
+
Resumt the game - i.e. continue updates +

+

+
+
+
+
+
+
+
+ +

+isPaused

+
+public boolean isPaused()
+
+
Check if the container is currently paused. +

+

+
+
+
+ +
Returns:
True if the container is paused
+
+
+
+ +

+setPaused

+
+public void setPaused(boolean paused)
+
+
Indicates if the game should be paused, i.e. if updates + should be propogated through to the game. +

+

+
+
+
+
Parameters:
paused - True if the game should be paused
+
+
+
+ +

+getAlwaysRender

+
+public boolean getAlwaysRender()
+
+
True if this container should render when it has focus +

+

+
+
+
+ +
Returns:
True if this container should render when it has focus
+
+
+
+ +

+setAlwaysRender

+
+public void setAlwaysRender(boolean alwaysRender)
+
+
Indicate whether we want this container to render when it has focus +

+

+
+
+
+
Parameters:
alwaysRender - True if this container should render when it has focus
+
+
+
+ +

+getBuildVersion

+
+public static int getBuildVersion()
+
+
Get the build number of slick +

+

+
+
+
+ +
Returns:
The build number of slick
+
+
+
+ +

+getDefaultFont

+
+public Font getDefaultFont()
+
+
Get the default system font +

+

+
Specified by:
getDefaultFont in interface GUIContext
+
+
+ +
Returns:
The default system font
+
+
+
+ +

+isSoundOn

+
+public boolean isSoundOn()
+
+
Check if sound effects are enabled +

+

+
+
+
+ +
Returns:
True if sound effects are enabled
+
+
+
+ +

+isMusicOn

+
+public boolean isMusicOn()
+
+
Check if music is enabled +

+

+
+
+
+ +
Returns:
True if music is enabled
+
+
+
+ +

+setMusicOn

+
+public void setMusicOn(boolean on)
+
+
Indicate whether music should be enabled +

+

+
+
+
+
Parameters:
on - True if music should be enabled
+
+
+
+ +

+setSoundOn

+
+public void setSoundOn(boolean on)
+
+
Indicate whether sound effects should be enabled +

+

+
+
+
+
Parameters:
on - True if sound effects should be enabled
+
+
+
+ +

+getMusicVolume

+
+public float getMusicVolume()
+
+
Retrieve the current default volume for music +

+

+
+
+
+ +
Returns:
the current default volume for music
+
+
+
+ +

+getSoundVolume

+
+public float getSoundVolume()
+
+
Retrieve the current default volume for sound fx +

+

+
+
+
+ +
Returns:
the current default volume for sound fx
+
+
+
+ +

+setSoundVolume

+
+public void setSoundVolume(float volume)
+
+
Set the default volume for sound fx +

+

+
+
+
+
Parameters:
volume - the new default value for sound fx volume
+
+
+
+ +

+setMusicVolume

+
+public void setMusicVolume(float volume)
+
+
Set the default volume for music +

+

+
+
+
+
Parameters:
volume - the new default value for music volume
+
+
+
+ +

+getScreenWidth

+
+public abstract int getScreenWidth()
+
+
Get the width of the standard screen resolution +

+

+
Specified by:
getScreenWidth in interface GUIContext
+
+
+ +
Returns:
The screen width
+
+
+
+ +

+getScreenHeight

+
+public abstract int getScreenHeight()
+
+
Get the height of the standard screen resolution +

+

+
Specified by:
getScreenHeight in interface GUIContext
+
+
+ +
Returns:
The screen height
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Get the width of the game canvas +

+

+
Specified by:
getWidth in interface GUIContext
+
+
+ +
Returns:
The width of the game canvas
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the height of the game canvas +

+

+
Specified by:
getHeight in interface GUIContext
+
+
+ +
Returns:
The height of the game canvas
+
+
+
+ +

+setIcon

+
+public abstract void setIcon(java.lang.String ref)
+                      throws SlickException
+
+
Set the icon to be displayed if possible in this type of + container +

+

+
+
+
+
Parameters:
ref - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
+
+
+
+ +

+setIcons

+
+public abstract void setIcons(java.lang.String[] refs)
+                       throws SlickException
+
+
Set the icons to be used for this application. Note that the size of the icon + defines how it will be used. Important ones to note + + Windows window icon must be 16x16 + Windows alt-tab icon must be 24x24 or 32x32 depending on Windows version (XP=32) +

+

+
+
+
+
Parameters:
refs - The reference to the icon to be displayed +
Throws: +
SlickException - Indicates a failure to load the icon
+
+
+
+ +

+getTime

+
+public long getTime()
+
+
Get the accurate system time +

+

+
Specified by:
getTime in interface GUIContext
+
+
+ +
Returns:
The system time in milliseconds
+
+
+
+ +

+sleep

+
+public void sleep(int milliseconds)
+
+
Sleep for a given period +

+

+
+
+
+
Parameters:
milliseconds - The period to sleep for in milliseconds
+
+
+
+ +

+setMouseCursor

+
+public abstract void setMouseCursor(java.lang.String ref,
+                                    int hotSpotX,
+                                    int hotSpotY)
+                             throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
+
+
+
Parameters:
ref - The location of the image to be loaded for the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setMouseCursor

+
+public abstract void setMouseCursor(ImageData data,
+                                    int hotSpotX,
+                                    int hotSpotY)
+                             throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
+
+
+
Parameters:
data - The image data from which the cursor can be construted
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setMouseCursor

+
+public abstract void setMouseCursor(Image image,
+                                    int hotSpotX,
+                                    int hotSpotY)
+                             throws SlickException
+
+
Set the mouse cursor based on the contents of the image. Note that this will not take + account of render state type changes to images (rotation and such). If these effects + are required it is recommended that an offscreen buffer be used to produce an appropriate + image. An offscreen buffer will always be used to produce the new cursor and as such + this operation an be very expensive +

+

+
+
+
+
Parameters:
image - The image to use as the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setMouseCursor

+
+public abstract void setMouseCursor(org.lwjgl.input.Cursor cursor,
+                                    int hotSpotX,
+                                    int hotSpotY)
+                             throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Specified by:
setMouseCursor in interface GUIContext
+
+
+
Parameters:
cursor - The cursor to use
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setAnimatedMouseCursor

+
+public void setAnimatedMouseCursor(java.lang.String ref,
+                                   int x,
+                                   int y,
+                                   int width,
+                                   int height,
+                                   int[] cursorDelays)
+                            throws SlickException
+
+
Get a cursor based on a image reference on the classpath. The image + is assumed to be a set/strip of cursor animation frames running from top to + bottom. +

+

+
+
+
+
Parameters:
ref - The reference to the image to be loaded
x - The x-coordinate of the cursor hotspot (left -> right)
y - The y-coordinate of the cursor hotspot (bottom -> top)
width - The x width of the cursor
height - The y height of the cursor
cursorDelays - image delays between changing frames in animation +
Throws: +
SlickException - Indicates a failure to load the image or a failure to create the hardware cursor
+
+
+
+ +

+setDefaultMouseCursor

+
+public abstract void setDefaultMouseCursor()
+
+
Set the default mouse cursor - i.e. the original cursor before any native + cursor was set +

+

+
Specified by:
setDefaultMouseCursor in interface GUIContext
+
+
+
+
+
+
+ +

+getInput

+
+public Input getInput()
+
+
Get the input system +

+

+
Specified by:
getInput in interface GUIContext
+
+
+ +
Returns:
The input system available to this game container
+
+
+
+ +

+getFPS

+
+public int getFPS()
+
+
Get the current recorded FPS (frames per second) +

+

+
+
+
+ +
Returns:
The current FPS
+
+
+
+ +

+setMouseGrabbed

+
+public abstract void setMouseGrabbed(boolean grabbed)
+
+
Indicate whether mouse cursor should be grabbed or not +

+

+
+
+
+
Parameters:
grabbed - True if mouse cursor should be grabbed
+
+
+
+ +

+isMouseGrabbed

+
+public abstract boolean isMouseGrabbed()
+
+
Check if the mouse cursor is current grabbed. This will cause it not + to be seen. +

+

+
+
+
+ +
Returns:
True if the mouse is currently grabbed
+
+
+
+ +

+getDelta

+
+protected int getDelta()
+
+
Retrieve the time taken to render the last frame, i.e. the change in time - delta. +

+

+
+
+
+ +
Returns:
The time taken to render the last frame
+
+
+
+ +

+updateFPS

+
+protected void updateFPS()
+
+
Updated the FPS counter +

+

+
+
+
+
+
+
+
+ +

+setMinimumLogicUpdateInterval

+
+public void setMinimumLogicUpdateInterval(int interval)
+
+
Set the minimum amount of time in milliseonds that has to + pass before update() is called on the container game. This gives + a way to limit logic updates compared to renders. +

+

+
+
+
+
Parameters:
interval - The minimum interval between logic updates
+
+
+
+ +

+setMaximumLogicUpdateInterval

+
+public void setMaximumLogicUpdateInterval(int interval)
+
+
Set the maximum amount of time in milliseconds that can passed + into the update method. Useful for collision detection without + sweeping. +

+

+
+
+
+
Parameters:
interval - The maximum interval between logic updates
+
+
+
+ +

+updateAndRender

+
+protected void updateAndRender(int delta)
+                        throws SlickException
+
+
Update and render the game +

+

+
+
+
+
Parameters:
delta - The change in time since last update and render +
Throws: +
SlickException - Indicates an internal fault to the game.
+
+
+
+ +

+setUpdateOnlyWhenVisible

+
+public void setUpdateOnlyWhenVisible(boolean updateOnlyWhenVisible)
+
+
Indicate if the display should update only when the game is visible + (the default is true) +

+

+
+
+
+
Parameters:
updateOnlyWhenVisible - True if we should updated only when the display is visible
+
+
+
+ +

+isUpdatingOnlyWhenVisible

+
+public boolean isUpdatingOnlyWhenVisible()
+
+
Check if this game is only updating when visible to the user (default = true) +

+

+
+
+
+ +
Returns:
True if the game is only updated when the display is visible
+
+
+
+ +

+initGL

+
+protected void initGL()
+
+
Initialise the GL context +

+

+
+
+
+
+
+
+
+ +

+initSystem

+
+protected void initSystem()
+                   throws SlickException
+
+
Initialise the system components, OpenGL and OpenAL. +

+

+
+
+
+ +
Throws: +
SlickException - Indicates a failure to create a native handler
+
+
+
+ +

+enterOrtho

+
+protected void enterOrtho()
+
+
Enter the orthographic mode +

+

+
+
+
+
+
+
+
+ +

+setShowFPS

+
+public void setShowFPS(boolean show)
+
+
Indicate whether the container should show the FPS +

+

+
+
+
+
Parameters:
show - True if the container should show the FPS
+
+
+
+ +

+isShowingFPS

+
+public boolean isShowingFPS()
+
+
Check if the FPS is currently showing +

+

+
+
+
+ +
Returns:
True if the FPS is showing
+
+
+
+ +

+setTargetFrameRate

+
+public void setTargetFrameRate(int fps)
+
+
Set the target fps we're hoping to get +

+

+
+
+
+
Parameters:
fps - The target fps we're hoping to get
+
+
+
+ +

+setVSync

+
+public void setVSync(boolean vsync)
+
+
Indicate whether the display should be synced to the + vertical refresh (stops tearing) +

+

+
+
+
+
Parameters:
vsync - True if we want to sync to vertical refresh
+
+
+
+ +

+isVSyncRequested

+
+public boolean isVSyncRequested()
+
+
True if vsync is requested +

+

+
+
+
+ +
Returns:
True if vsync is requested
+
+
+
+ +

+running

+
+protected boolean running()
+
+
True if the game is running +

+

+
+
+
+ +
Returns:
True if the game is running
+
+
+
+ +

+setVerbose

+
+public void setVerbose(boolean verbose)
+
+
Inidcate we want verbose logging +

+

+
+
+
+
Parameters:
verbose - True if we want verbose logging (INFO and DEBUG)
+
+
+
+ +

+exit

+
+public void exit()
+
+
Cause the game to exit and shutdown cleanly +

+

+
+
+
+
+
+
+
+ +

+hasFocus

+
+public abstract boolean hasFocus()
+
+
Check if the game currently has focus +

+

+
+
+
+ +
Returns:
True if the game currently has focus
+
+
+
+ +

+getGraphics

+
+public Graphics getGraphics()
+
+
Get the graphics context used by this container. Note that this + value may vary over the life time of the game. +

+

+
+
+
+ +
Returns:
The graphics context used by this container
+
+
+
+ +

+enterOrtho

+
+protected void enterOrtho(int xsize,
+                          int ysize)
+
+
Enter the orthographic mode +

+

+
+
+
+
Parameters:
xsize - The size of the panel being used
ysize - The size of the panel being used
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Graphics.html b/lib/javadoc/org/newdawn/slick/Graphics.html new file mode 100644 index 000000000..affb7ed70 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Graphics.html @@ -0,0 +1,2460 @@ + + + + + + +Graphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Graphics

+
+java.lang.Object
+  extended by org.newdawn.slick.Graphics
+
+
+
Direct Known Subclasses:
FBOGraphics, PBufferGraphics, PBufferUniqueGraphics
+
+
+
+
public class Graphics
extends java.lang.Object
+ + +

+A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static GraphicscurrentGraphics + +
+          The last graphics context in use
+protected static FontDEFAULT_FONT + +
+          The default font to use
+protected static SGLGL + +
+          The renderer to use for all GL operations
+static intMODE_ADD + +
+          Draw adding the existing colour to the new colour
+static intMODE_ALPHA_BLEND + +
+          Draw using the alpha blending
+static intMODE_ALPHA_MAP + +
+          Draw to the alpha map
+static intMODE_COLOR_MULTIPLY + +
+          Draw multiplying the source and destination colours
+static intMODE_NORMAL + +
+          The normal drawing mode
+static intMODE_SCREEN + +
+          Draw blending the new image into the old one by a factor of it's colour
+protected  intscreenHeight + +
+          The height of the screen
+protected  intscreenWidth + +
+          The width of the screen
+  + + + + + + + + + + + + + +
+Constructor Summary
Graphics() + +
+          Default constructor for sub-classes
Graphics(int width, + int height) + +
+          Create a new graphics context.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclear() + +
+          Clear the graphics context
+ voidclearAlphaMap() + +
+          Clear the state of the alpha map across the entire screen.
+ voidclearClip() + +
+          Clear the clipping being applied.
+ voidclearWorldClip() + +
+          Clear world clipping setup.
+ voidcopyArea(Image target, + int x, + int y) + +
+          Copy an area of the rendered screen into an image.
+ voiddestroy() + +
+          Dispose this graphics context, this will release any underlying resourses.
+protected  voiddisable() + +
+          Disable rendering to this graphics context
+ voiddraw(Shape shape) + +
+          Draw the outline of the given shape.
+ voiddraw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+ voiddrawAnimation(Animation anim, + float x, + float y) + +
+          Draw an animation to this graphics context
+ voiddrawAnimation(Animation anim, + float x, + float y, + Color col) + +
+          Draw an animation to this graphics context
+ voiddrawArc(float x1, + float y1, + float width, + float height, + float start, + float end) + +
+          Draw an oval to the canvas
+ voiddrawArc(float x1, + float y1, + float width, + float height, + int segments, + float start, + float end) + +
+          Draw an oval to the canvas
+ voiddrawGradientLine(float x1, + float y1, + Color Color1, + float x2, + float y2, + Color Color2) + +
+          Draw a line with a gradient between the two points.
+ voiddrawGradientLine(float x1, + float y1, + float red1, + float green1, + float blue1, + float alpha1, + float x2, + float y2, + float red2, + float green2, + float blue2, + float alpha2) + +
+          Draw a line with a gradient between the two points.
+ voiddrawImage(Image image, + float x, + float y) + +
+          Draw an image to the screen
+ voiddrawImage(Image image, + float x, + float y, + Color col) + +
+          Draw an image to the screen
+ voiddrawImage(Image image, + float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voiddrawImage(Image image, + float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voiddrawImage(Image image, + float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voiddrawImage(Image image, + float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voiddrawLine(float x1, + float y1, + float x2, + float y2) + +
+          Draw a line on the canvas in the current colour
+ voiddrawOval(float x1, + float y1, + float width, + float height) + +
+          Draw an oval to the canvas
+ voiddrawOval(float x1, + float y1, + float width, + float height, + int segments) + +
+          Draw an oval to the canvas
+ voiddrawRect(float x1, + float y1, + float width, + float height) + +
+          Draw a rectangle to the canvas in the current colour
+ voiddrawRoundRect(float x, + float y, + float width, + float height, + int cornerRadius) + +
+          Draw a rounded rectangle
+ voiddrawRoundRect(float x, + float y, + float width, + float height, + int cornerRadius, + int segs) + +
+          Draw a rounded rectangle
+ voiddrawString(java.lang.String str, + float x, + float y) + +
+          Draw a string to the screen using the current font
+protected  voidenable() + +
+          Enable rendering to this graphics context
+ voidfill(Shape shape) + +
+          Draw the the given shape filled in.
+ voidfill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+ voidfillArc(float x1, + float y1, + float width, + float height, + float start, + float end) + +
+          Fill an arc to the canvas (a wedge)
+ voidfillArc(float x1, + float y1, + float width, + float height, + int segments, + float start, + float end) + +
+          Fill an arc to the canvas (a wedge)
+ voidfillOval(float x1, + float y1, + float width, + float height) + +
+          Fill an oval to the canvas
+ voidfillOval(float x1, + float y1, + float width, + float height, + int segments) + +
+          Fill an oval to the canvas
+ voidfillRect(float x1, + float y1, + float width, + float height) + +
+          Fill a rectangle on the canvas in the current color
+ voidfillRect(float x, + float y, + float width, + float height, + Image pattern, + float offX, + float offY) + +
+          Tile a rectangle with a pattern specifing the offset from the top corner + that one tile should match
+ voidfillRoundRect(float x, + float y, + float width, + float height, + int cornerRadius) + +
+          Fill a rounded rectangle
+ voidfillRoundRect(float x, + float y, + float width, + float height, + int cornerRadius, + int segs) + +
+          Fill a rounded rectangle
+ voidflush() + +
+          Flush this graphics context to the underlying rendering context
+ voidgetArea(int x, + int y, + int width, + int height, + java.nio.ByteBuffer target) + +
+          Get an ara of pixels as RGBA values into a buffer
+ ColorgetBackground() + +
+          Get the current graphics context background color
+ RectanglegetClip() + +
+          Return the currently applied clipping rectangle
+ ColorgetColor() + +
+          Get the color in use by this graphics context
+ FontgetFont() + +
+          Get the current font
+ floatgetLineWidth() + +
+          Get the width of lines being drawn in this context
+ ColorgetPixel(int x, + int y) + +
+          Get the colour of a single pixel in this graphics context
+ RectanglegetWorldClip() + +
+          Get the last set world clip or null of the world clip isn't set
+ booleanisAntiAlias() + +
+          True if antialiasing has been turned on for this graphics context
+ voidpopTransform() + +
+          Pop a previously pushed transform from the stack to the current.
+ voidpushTransform() + +
+          Push the current state of the transform from this graphics contexts + onto the underlying graphics stack's transform stack.
+ voidresetFont() + +
+          Reset to using the default font for this context
+ voidresetLineWidth() + +
+          Reset the line width in use to the default for this graphics context
+ voidresetTransform() + +
+          Reset the transformation on this graphics context
+ voidrotate(float rx, + float ry, + float ang) + +
+          Apply a rotation to everything draw on the graphics context
+ voidscale(float sx, + float sy) + +
+          Apply a scaling factor to everything drawn on the graphics context
+ voidsetAntiAlias(boolean anti) + +
+          Indicate if we should antialias as we draw primitives
+ voidsetBackground(Color color) + +
+          Set the background colour of the graphics context.
+ voidsetClip(int x, + int y, + int width, + int height) + +
+          Set the clipping to apply to the drawing.
+ voidsetClip(Rectangle rect) + +
+          Set the clipping to apply to the drawing.
+ voidsetColor(Color color) + +
+          Set the color to use when rendering to this context
+static voidsetCurrent(Graphics current) + +
+          Set the current graphics context in use
+ voidsetDrawMode(int mode) + +
+          Set the drawing mode to use.
+ voidsetFont(Font font) + +
+          Set the font to be used when rendering text
+ voidsetLineWidth(float width) + +
+          Set the with of the line to be used when drawing line based primitives
+ voidsetWorldClip(float x, + float y, + float width, + float height) + +
+          Set clipping that controls which areas of the world will be drawn to.
+ voidsetWorldClip(Rectangle clip) + +
+          Set the world clip to be applied
+ voidtexture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture
+ voidtexture(Shape shape, + Image image, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidtexture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture
+ voidtexture(Shape shape, + Image image, + float scaleX, + float scaleY, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidtexture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+ voidtexture(Shape shape, + Image image, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+ voidtranslate(float x, + float y) + +
+          Apply a translation to everything drawn to the context
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+MODE_NORMAL

+
+public static int MODE_NORMAL
+
+
The normal drawing mode +

+

+
+
+
+ +

+MODE_ALPHA_MAP

+
+public static int MODE_ALPHA_MAP
+
+
Draw to the alpha map +

+

+
+
+
+ +

+MODE_ALPHA_BLEND

+
+public static int MODE_ALPHA_BLEND
+
+
Draw using the alpha blending +

+

+
+
+
+ +

+MODE_COLOR_MULTIPLY

+
+public static int MODE_COLOR_MULTIPLY
+
+
Draw multiplying the source and destination colours +

+

+
+
+
+ +

+MODE_ADD

+
+public static int MODE_ADD
+
+
Draw adding the existing colour to the new colour +

+

+
+
+
+ +

+MODE_SCREEN

+
+public static int MODE_SCREEN
+
+
Draw blending the new image into the old one by a factor of it's colour +

+

+
+
+
+ +

+currentGraphics

+
+protected static Graphics currentGraphics
+
+
The last graphics context in use +

+

+
+
+
+ +

+DEFAULT_FONT

+
+protected static Font DEFAULT_FONT
+
+
The default font to use +

+

+
+
+
+ +

+screenWidth

+
+protected int screenWidth
+
+
The width of the screen +

+

+
+
+
+ +

+screenHeight

+
+protected int screenHeight
+
+
The height of the screen +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Graphics

+
+public Graphics()
+
+
Default constructor for sub-classes +

+

+
+ +

+Graphics

+
+public Graphics(int width,
+                int height)
+
+
Create a new graphics context. Only the container should be doing this + really +

+

+
Parameters:
width - The width of the screen for this context
height - The height of the screen for this context
+
+ + + + + + + + +
+Method Detail
+ +

+setCurrent

+
+public static void setCurrent(Graphics current)
+
+
Set the current graphics context in use +

+

+
Parameters:
current - The graphics context that should be considered current
+
+
+
+ +

+setDrawMode

+
+public void setDrawMode(int mode)
+
+
Set the drawing mode to use. This mode defines how pixels are drawn to + the graphics context. It can be used to draw into the alpha map. + + The mode supplied should be one of MODE_NORMAL or + MODE_ALPHA_MAP or MODE_ALPHA_BLEND +

+

+
Parameters:
mode - The mode to apply.
+
+
+
+ +

+clearAlphaMap

+
+public void clearAlphaMap()
+
+
Clear the state of the alpha map across the entire screen. This sets + alpha to 0 everywhere, meaning in MODE_ALPHA_BLEND + nothing will be drawn. +

+

+
+
+
+
+ +

+enable

+
+protected void enable()
+
+
Enable rendering to this graphics context +

+

+
+
+
+
+ +

+flush

+
+public void flush()
+
+
Flush this graphics context to the underlying rendering context +

+

+
+
+
+
+ +

+disable

+
+protected void disable()
+
+
Disable rendering to this graphics context +

+

+
+
+
+
+ +

+getFont

+
+public Font getFont()
+
+
Get the current font +

+

+ +
Returns:
The current font
+
+
+
+ +

+setBackground

+
+public void setBackground(Color color)
+
+
Set the background colour of the graphics context. This colour + is used when clearing the context. Note that calling this method + alone does not cause the context to be cleared. +

+

+
Parameters:
color - The background color of the graphics context
+
+
+
+ +

+getBackground

+
+public Color getBackground()
+
+
Get the current graphics context background color +

+

+ +
Returns:
The background color of this graphics context
+
+
+
+ +

+clear

+
+public void clear()
+
+
Clear the graphics context +

+

+
+
+
+
+ +

+resetTransform

+
+public void resetTransform()
+
+
Reset the transformation on this graphics context +

+

+
+
+
+
+ +

+scale

+
+public void scale(float sx,
+                  float sy)
+
+
Apply a scaling factor to everything drawn on the graphics context +

+

+
Parameters:
sx - The scaling factor to apply to the x axis
sy - The scaling factor to apply to the y axis
+
+
+
+ +

+rotate

+
+public void rotate(float rx,
+                   float ry,
+                   float ang)
+
+
Apply a rotation to everything draw on the graphics context +

+

+
Parameters:
rx - The x coordinate of the center of rotation
ry - The y coordinate of the center of rotation
ang - The angle (in degrees) to rotate by
+
+
+
+ +

+translate

+
+public void translate(float x,
+                      float y)
+
+
Apply a translation to everything drawn to the context +

+

+
Parameters:
x - The amount to translate on the x-axis
y - The amount of translate on the y-axis
+
+
+
+ +

+setFont

+
+public void setFont(Font font)
+
+
Set the font to be used when rendering text +

+

+
Parameters:
font - The font to be used when rendering text
+
+
+
+ +

+resetFont

+
+public void resetFont()
+
+
Reset to using the default font for this context +

+

+
+
+
+
+ +

+setColor

+
+public void setColor(Color color)
+
+
Set the color to use when rendering to this context +

+

+
Parameters:
color - The color to use when rendering to this context
+
+
+
+ +

+getColor

+
+public Color getColor()
+
+
Get the color in use by this graphics context +

+

+ +
Returns:
The color in use by this graphics context
+
+
+
+ +

+drawLine

+
+public void drawLine(float x1,
+                     float y1,
+                     float x2,
+                     float y2)
+
+
Draw a line on the canvas in the current colour +

+

+
Parameters:
x1 - The x coordinate of the start point
y1 - The y coordinate of the start point
x2 - The x coordinate of the end point
y2 - The y coordinate of the end point
+
+
+
+ +

+draw

+
+public void draw(Shape shape,
+                 ShapeFill fill)
+
+
Draw the outline of the given shape. +

+

+
Parameters:
shape - The shape to draw.
fill - The fill type to apply
+
+
+
+ +

+fill

+
+public void fill(Shape shape,
+                 ShapeFill fill)
+
+
Draw the the given shape filled in. +

+

+
Parameters:
shape - The shape to fill.
fill - The fill type to apply
+
+
+
+ +

+draw

+
+public void draw(Shape shape)
+
+
Draw the outline of the given shape. +

+

+
Parameters:
shape - The shape to draw.
+
+
+
+ +

+fill

+
+public void fill(Shape shape)
+
+
Draw the the given shape filled in. +

+

+
Parameters:
shape - The shape to fill.
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image,
+                    ShapeFill fill)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
fill - The shape fill to apply
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image,
+                    boolean fit)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
fit - True if we want to fit the image on to the shape
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image,
+                    float scaleX,
+                    float scaleY)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image,
+                    float scaleX,
+                    float scaleY,
+                    boolean fit)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
fit - True if we want to fit the image on to the shape
+
+
+
+ +

+texture

+
+public void texture(Shape shape,
+                    Image image,
+                    float scaleX,
+                    float scaleY,
+                    ShapeFill fill)
+
+
Draw the the given shape filled in with a texture +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
fill - The shape fill to apply
+
+
+
+ +

+drawRect

+
+public void drawRect(float x1,
+                     float y1,
+                     float width,
+                     float height)
+
+
Draw a rectangle to the canvas in the current colour +

+

+
Parameters:
x1 - The x coordinate of the top left corner
y1 - The y coordinate of the top left corner
width - The width of the rectangle to draw
height - The height of the rectangle to draw
+
+
+
+ +

+clearClip

+
+public void clearClip()
+
+
Clear the clipping being applied. This will allow graphics to be drawn + anywhere on the screen +

+

+
+
+
+
+ +

+setWorldClip

+
+public void setWorldClip(float x,
+                         float y,
+                         float width,
+                         float height)
+
+
Set clipping that controls which areas of the world will be drawn to. + Note that world clip is different from standard screen clip in that it's + defined in the space of the current world coordinate - i.e. it's affected + by translate, rotate, scale etc. +

+

+
Parameters:
x - The x coordinate of the top left corner of the allowed area
y - The y coordinate of the top left corner of the allowed area
width - The width of the allowed area
height - The height of the allowed area
+
+
+
+ +

+clearWorldClip

+
+public void clearWorldClip()
+
+
Clear world clipping setup. This does not effect screen clipping +

+

+
+
+
+
+ +

+setWorldClip

+
+public void setWorldClip(Rectangle clip)
+
+
Set the world clip to be applied +

+

+
Parameters:
clip - The area still visible
See Also:
setWorldClip(float, float, float, float)
+
+
+
+ +

+getWorldClip

+
+public Rectangle getWorldClip()
+
+
Get the last set world clip or null of the world clip isn't set +

+

+ +
Returns:
The last set world clip rectangle
+
+
+
+ +

+setClip

+
+public void setClip(int x,
+                    int y,
+                    int width,
+                    int height)
+
+
Set the clipping to apply to the drawing. Note that this clipping takes + no note of the transforms that have been applied to the context and is + always in absolute screen space coordinates. +

+

+
Parameters:
x - The x coordinate of the top left corner of the allowed area
y - The y coordinate of the top left corner of the allowed area
width - The width of the allowed area
height - The height of the allowed area
+
+
+
+ +

+setClip

+
+public void setClip(Rectangle rect)
+
+
Set the clipping to apply to the drawing. Note that this clipping takes + no note of the transforms that have been applied to the context and is + always in absolute screen space coordinates. +

+

+
Parameters:
rect - The rectangle describing the clipped area in screen + coordinates
+
+
+
+ +

+getClip

+
+public Rectangle getClip()
+
+
Return the currently applied clipping rectangle +

+

+ +
Returns:
The current applied clipping rectangle or null if no clipping is + applied
+
+
+
+ +

+fillRect

+
+public void fillRect(float x,
+                     float y,
+                     float width,
+                     float height,
+                     Image pattern,
+                     float offX,
+                     float offY)
+
+
Tile a rectangle with a pattern specifing the offset from the top corner + that one tile should match +

+

+
Parameters:
x - The x coordinate of the rectangle
y - The y coordinate of the rectangle
width - The width of the rectangle
height - The height of the rectangle
pattern - The image to tile across the rectangle
offX - The offset on the x axis from the top left corner
offY - The offset on the y axis from the top left corner
+
+
+
+ +

+fillRect

+
+public void fillRect(float x1,
+                     float y1,
+                     float width,
+                     float height)
+
+
Fill a rectangle on the canvas in the current color +

+

+
Parameters:
x1 - The x coordinate of the top left corner
y1 - The y coordinate of the top left corner
width - The width of the rectangle to fill
height - The height of the rectangle to fill
+
+
+
+ +

+drawOval

+
+public void drawOval(float x1,
+                     float y1,
+                     float width,
+                     float height)
+
+
Draw an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the oval
y1 - The y coordinate of the top left corner of a box containing + the oval
width - The width of the oval
height - The height of the oval
+
+
+
+ +

+drawOval

+
+public void drawOval(float x1,
+                     float y1,
+                     float width,
+                     float height,
+                     int segments)
+
+
Draw an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the oval
y1 - The y coordinate of the top left corner of a box containing + the oval
width - The width of the oval
height - The height of the oval
segments - The number of line segments to use when drawing the oval
+
+
+
+ +

+drawArc

+
+public void drawArc(float x1,
+                    float y1,
+                    float width,
+                    float height,
+                    float start,
+                    float end)
+
+
Draw an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the arc
y1 - The y coordinate of the top left corner of a box containing + the arc
width - The width of the arc
height - The height of the arc
start - The angle the arc starts at
end - The angle the arc ends at
+
+
+
+ +

+drawArc

+
+public void drawArc(float x1,
+                    float y1,
+                    float width,
+                    float height,
+                    int segments,
+                    float start,
+                    float end)
+
+
Draw an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the arc
y1 - The y coordinate of the top left corner of a box containing + the arc
width - The width of the arc
height - The height of the arc
segments - The number of line segments to use when drawing the arc
start - The angle the arc starts at
end - The angle the arc ends at
+
+
+
+ +

+fillOval

+
+public void fillOval(float x1,
+                     float y1,
+                     float width,
+                     float height)
+
+
Fill an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the oval
y1 - The y coordinate of the top left corner of a box containing + the oval
width - The width of the oval
height - The height of the oval
+
+
+
+ +

+fillOval

+
+public void fillOval(float x1,
+                     float y1,
+                     float width,
+                     float height,
+                     int segments)
+
+
Fill an oval to the canvas +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the oval
y1 - The y coordinate of the top left corner of a box containing + the oval
width - The width of the oval
height - The height of the oval
segments - The number of line segments to use when filling the oval
+
+
+
+ +

+fillArc

+
+public void fillArc(float x1,
+                    float y1,
+                    float width,
+                    float height,
+                    float start,
+                    float end)
+
+
Fill an arc to the canvas (a wedge) +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the arc
y1 - The y coordinate of the top left corner of a box containing + the arc
width - The width of the arc
height - The height of the arc
start - The angle the arc starts at
end - The angle the arc ends at
+
+
+
+ +

+fillArc

+
+public void fillArc(float x1,
+                    float y1,
+                    float width,
+                    float height,
+                    int segments,
+                    float start,
+                    float end)
+
+
Fill an arc to the canvas (a wedge) +

+

+
Parameters:
x1 - The x coordinate of the top left corner of a box containing + the arc
y1 - The y coordinate of the top left corner of a box containing + the arc
width - The width of the arc
height - The height of the arc
segments - The number of line segments to use when filling the arc
start - The angle the arc starts at
end - The angle the arc ends at
+
+
+
+ +

+drawRoundRect

+
+public void drawRoundRect(float x,
+                          float y,
+                          float width,
+                          float height,
+                          int cornerRadius)
+
+
Draw a rounded rectangle +

+

+
Parameters:
x - The x coordinate of the top left corner of the rectangle
y - The y coordinate of the top left corner of the rectangle
width - The width of the rectangle
height - The height of the rectangle
cornerRadius - The radius of the rounded edges on the corners
+
+
+
+ +

+drawRoundRect

+
+public void drawRoundRect(float x,
+                          float y,
+                          float width,
+                          float height,
+                          int cornerRadius,
+                          int segs)
+
+
Draw a rounded rectangle +

+

+
Parameters:
x - The x coordinate of the top left corner of the rectangle
y - The y coordinate of the top left corner of the rectangle
width - The width of the rectangle
height - The height of the rectangle
cornerRadius - The radius of the rounded edges on the corners
segs - The number of segments to make the corners out of
+
+
+
+ +

+fillRoundRect

+
+public void fillRoundRect(float x,
+                          float y,
+                          float width,
+                          float height,
+                          int cornerRadius)
+
+
Fill a rounded rectangle +

+

+
Parameters:
x - The x coordinate of the top left corner of the rectangle
y - The y coordinate of the top left corner of the rectangle
width - The width of the rectangle
height - The height of the rectangle
cornerRadius - The radius of the rounded edges on the corners
+
+
+
+ +

+fillRoundRect

+
+public void fillRoundRect(float x,
+                          float y,
+                          float width,
+                          float height,
+                          int cornerRadius,
+                          int segs)
+
+
Fill a rounded rectangle +

+

+
Parameters:
x - The x coordinate of the top left corner of the rectangle
y - The y coordinate of the top left corner of the rectangle
width - The width of the rectangle
height - The height of the rectangle
cornerRadius - The radius of the rounded edges on the corners
segs - The number of segments to make the corners out of
+
+
+
+ +

+setLineWidth

+
+public void setLineWidth(float width)
+
+
Set the with of the line to be used when drawing line based primitives +

+

+
Parameters:
width - The width of the line to be used when drawing line based + primitives
+
+
+
+ +

+getLineWidth

+
+public float getLineWidth()
+
+
Get the width of lines being drawn in this context +

+

+ +
Returns:
The width of lines being draw in this context
+
+
+
+ +

+resetLineWidth

+
+public void resetLineWidth()
+
+
Reset the line width in use to the default for this graphics context +

+

+
+
+
+
+ +

+setAntiAlias

+
+public void setAntiAlias(boolean anti)
+
+
Indicate if we should antialias as we draw primitives +

+

+
Parameters:
anti - True if we should antialias
+
+
+
+ +

+isAntiAlias

+
+public boolean isAntiAlias()
+
+
True if antialiasing has been turned on for this graphics context +

+

+ +
Returns:
True if antialiasing has been turned on for this graphics context
+
+
+
+ +

+drawString

+
+public void drawString(java.lang.String str,
+                       float x,
+                       float y)
+
+
Draw a string to the screen using the current font +

+

+
Parameters:
str - The string to draw
x - The x coordinate to draw the string at
y - The y coordinate to draw the string at
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y,
+                      Color col)
+
+
Draw an image to the screen +

+

+
Parameters:
image - The image to draw to the screen
x - The x location at which to draw the image
y - The y location at which to draw the image
col - The color to apply to the image as a filter
+
+
+
+ +

+drawAnimation

+
+public void drawAnimation(Animation anim,
+                          float x,
+                          float y)
+
+
Draw an animation to this graphics context +

+

+
Parameters:
anim - The animation to be drawn
x - The x position to draw the animation at
y - The y position to draw the animation at
+
+
+
+ +

+drawAnimation

+
+public void drawAnimation(Animation anim,
+                          float x,
+                          float y,
+                          Color col)
+
+
Draw an animation to this graphics context +

+

+
Parameters:
anim - The animation to be drawn
x - The x position to draw the animation at
y - The y position to draw the animation at
col - The color to apply to the animation as a filter
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y)
+
+
Draw an image to the screen +

+

+
Parameters:
image - The image to draw to the screen
x - The x location at which to draw the image
y - The y location at which to draw the image
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y,
+                      float x2,
+                      float y2,
+                      float srcx,
+                      float srcy,
+                      float srcx2,
+                      float srcy2)
+
+
Draw a section of an image at a particular location and scale on the + screen +

+

+
Parameters:
image - The image to draw a section of
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. + relative to the image)
srcy - The y position of the rectangle to draw from this image (i.e. + relative to the image)
srcx2 - The x position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
srcy2 - The t position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y,
+                      float srcx,
+                      float srcy,
+                      float srcx2,
+                      float srcy2)
+
+
Draw a section of an image at a particular location and scale on the + screen +

+

+
Parameters:
image - The image to draw a section of
x - The x position to draw the image
y - The y position to draw the image
srcx - The x position of the rectangle to draw from this image (i.e. + relative to the image)
srcy - The y position of the rectangle to draw from this image (i.e. + relative to the image)
srcx2 - The x position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
srcy2 - The t position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
+
+
+
+ +

+copyArea

+
+public void copyArea(Image target,
+                     int x,
+                     int y)
+
+
Copy an area of the rendered screen into an image. The width and height + of the area are assumed to match that of the image +

+

+
Parameters:
target - The target image
x - The x position to copy from
y - The y position to copy from
+
+
+
+ +

+getPixel

+
+public Color getPixel(int x,
+                      int y)
+
+
Get the colour of a single pixel in this graphics context +

+

+
Parameters:
x - The x coordinate of the pixel to read
y - The y coordinate of the pixel to read +
Returns:
The colour of the pixel at the specified location
+
+
+
+ +

+getArea

+
+public void getArea(int x,
+                    int y,
+                    int width,
+                    int height,
+                    java.nio.ByteBuffer target)
+
+
Get an ara of pixels as RGBA values into a buffer +

+

+
Parameters:
x - The x position in the context to grab from
y - The y position in the context to grab from
width - The width of the area to grab from
height - The hiehgt of the area to grab from
target - The target buffer to grab into
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y,
+                      float x2,
+                      float y2,
+                      float srcx,
+                      float srcy,
+                      float srcx2,
+                      float srcy2,
+                      Color col)
+
+
Draw a section of an image at a particular location and scale on the + screen +

+

+
Parameters:
image - The image to draw a section of
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. + relative to the image)
srcy - The y position of the rectangle to draw from this image (i.e. + relative to the image)
srcx2 - The x position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
srcy2 - The t position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
col - The color to apply to the image as a filter
+
+
+
+ +

+drawImage

+
+public void drawImage(Image image,
+                      float x,
+                      float y,
+                      float srcx,
+                      float srcy,
+                      float srcx2,
+                      float srcy2,
+                      Color col)
+
+
Draw a section of an image at a particular location and scale on the + screen +

+

+
Parameters:
image - The image to draw a section of
x - The x position to draw the image
y - The y position to draw the image
srcx - The x position of the rectangle to draw from this image (i.e. + relative to the image)
srcy - The y position of the rectangle to draw from this image (i.e. + relative to the image)
srcx2 - The x position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
srcy2 - The t position of the bottom right cornder of rectangle to + draw from this image (i.e. relative to the image)
col - The color to apply to the image as a filter
+
+
+
+ +

+drawGradientLine

+
+public void drawGradientLine(float x1,
+                             float y1,
+                             float red1,
+                             float green1,
+                             float blue1,
+                             float alpha1,
+                             float x2,
+                             float y2,
+                             float red2,
+                             float green2,
+                             float blue2,
+                             float alpha2)
+
+
Draw a line with a gradient between the two points. +

+

+
Parameters:
x1 - The starting x position to draw the line
y1 - The starting y position to draw the line
red1 - The starting position's shade of red
green1 - The starting position's shade of green
blue1 - The starting position's shade of blue
alpha1 - The starting position's alpha value
x2 - The ending x position to draw the line
y2 - The ending y position to draw the line
red2 - The ending position's shade of red
green2 - The ending position's shade of green
blue2 - The ending position's shade of blue
alpha2 - The ending position's alpha value
+
+
+
+ +

+drawGradientLine

+
+public void drawGradientLine(float x1,
+                             float y1,
+                             Color Color1,
+                             float x2,
+                             float y2,
+                             Color Color2)
+
+
Draw a line with a gradient between the two points. +

+

+
Parameters:
x1 - The starting x position to draw the line
y1 - The starting y position to draw the line
Color1 - The starting position's color
x2 - The ending x position to draw the line
y2 - The ending y position to draw the line
Color2 - The ending position's color
+
+
+
+ +

+pushTransform

+
+public void pushTransform()
+
+
Push the current state of the transform from this graphics contexts + onto the underlying graphics stack's transform stack. An associated + popTransform() must be performed to restore the state before the end + of the rendering loop. +

+

+
+
+
+
+ +

+popTransform

+
+public void popTransform()
+
+
Pop a previously pushed transform from the stack to the current. This should + only be called if a transform has been previously pushed. +

+

+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Dispose this graphics context, this will release any underlying resourses. However + this will also invalidate it's use +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Image.html b/lib/javadoc/org/newdawn/slick/Image.html new file mode 100644 index 000000000..144b0f965 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Image.html @@ -0,0 +1,2859 @@ + + + + + + +Image (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Image

+
+java.lang.Object
+  extended by org.newdawn.slick.Image
+
+
+
All Implemented Interfaces:
Renderable
+
+
+
Direct Known Subclasses:
BigImage, SpriteSheet
+
+
+
+
public class Image
extends java.lang.Object
implements Renderable
+ + +

+An image loaded from a file and renderable to the canvas +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  floatalpha + +
+          The alpha to draw the image at
+protected  floatangle + +
+          Angle to rotate the image to.
+static intBOTTOM_LEFT + +
+          The bottom left corner identifier
+static intBOTTOM_RIGHT + +
+          The bottom right corner identifier
+protected  floatcenterX + +
+          The x coordinate of the centre of rotation
+protected  floatcenterY + +
+          The y coordinate of the centre of rotation
+protected  Color[]corners + +
+          The colours for each of the corners
+protected  booleandestroyed + +
+          True if the image has been destroyed
+static intFILTER_LINEAR + +
+          Use Linear Filtering
+static intFILTER_NEAREST + +
+          Use Nearest Filtering
+protected static SGLGL + +
+          The renderer to use for all GL operations
+protected  intheight + +
+          The height of the image
+protected  booleaninited + +
+          True if this image's state has been initialised
+protected static ImageinUse + +
+          The sprite sheet currently in use
+protected  java.lang.Stringname + +
+          A meaningful name provided by the user of the image to tag it
+protected  byte[]pixelData + +
+          A pixelData holding the pixel data if it's been read for this texture
+protected  java.lang.Stringref + +
+          The name given for the image
+protected  Texturetexture + +
+          The OpenGL texture for this image
+protected  floattextureHeight + +
+          The texture coordinate height to use to find our image
+protected  floattextureOffsetX + +
+          The x texture offset to use to find our image
+protected  floattextureOffsetY + +
+          The y texture offset to use to find our image
+protected  floattextureWidth + +
+          The texture coordinate width to use to find our image
+static intTOP_LEFT + +
+          The top left corner identifier
+static intTOP_RIGHT + +
+          The top right corner identifier
+protected  intwidth + +
+          The width of the image
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected Image() + +
+          Cloning constructor - only used internally.
+protected Image(Image other) + +
+          Create a texture as a copy of another
+ Image(ImageData data) + +
+          Create an image from a image data source
+ Image(ImageData data, + int f) + +
+          Create an image from a image data source.
+ Image(java.io.InputStream in, + java.lang.String ref, + boolean flipped) + +
+          Create an image based on a file at the specified location
+ Image(java.io.InputStream in, + java.lang.String ref, + boolean flipped, + int filter) + +
+          Create an image based on a file at the specified location
+ Image(int width, + int height) + +
+          Create an empty image
+ Image(int width, + int height, + int f) + +
+          Create an empty image
+ Image(java.lang.String ref) + +
+          Create an image based on a file at the specified location
+ Image(java.lang.String ref, + boolean flipped) + +
+          Create an image based on a file at the specified location
+ Image(java.lang.String ref, + boolean flipped, + int filter) + +
+          Create an image based on a file at the specified location
+ Image(java.lang.String ref, + boolean flipped, + int f, + Color transparent) + +
+          Create an image based on a file at the specified location
+ Image(java.lang.String ref, + Color trans) + +
+          Create an image based on a file at the specified location
+ Image(Texture texture) + +
+          Creates an image using the specified texture
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbind() + +
+          Bind to the texture of this image
+ voidclampTexture() + +
+          Clamp the loaded texture to it's edges
+ Imagecopy() + +
+          Get a copy of this image.
+ voiddestroy() + +
+          Destroy the image and release any native resources.
+ voiddraw() + +
+          Draw this image at the current location
+ voiddraw(float x, + float y) + +
+          Draw this image at the specified location
+ voiddraw(float x, + float y, + Color filter) + +
+          Draw this image at the specified location
+ voiddraw(float x, + float y, + float scale) + +
+          Draw the image with a given scale
+ voiddraw(float x, + float y, + float scale, + Color filter) + +
+          Draw the image with a given scale
+ voiddraw(float x, + float y, + float width, + float height) + +
+          Draw this image at a specified location and size
+ voiddraw(float x, + float y, + float width, + float height, + Color filter) + +
+          Draw this image at a specified location and size
+ voiddraw(float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddraw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddraw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voiddrawCentered(float x, + float y) + +
+          Draw the image based on it's center
+ voiddrawEmbedded(float x, + float y, + float width, + float height) + +
+          Draw this image as part of a collection of images
+ voiddrawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e.
+ voiddrawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e.
+ voiddrawFlash(float x, + float y) + +
+          Draw this image at a specified location and size in a white silohette
+ voiddrawFlash(float x, + float y, + float width, + float height) + +
+          Draw this image at a specified location and size as a silohette
+ voiddrawFlash(float x, + float y, + float width, + float height, + Color col) + +
+          Draw this image at a specified location and size as a silohette
+ voiddrawSheared(float x, + float y, + float hshear, + float vshear) + +
+          Draw this image at a specified location and size
+ voiddrawSheared(float x, + float y, + float hshear, + float vshear, + Color filter) + +
+          Draw this image at a specified location and size
+ voiddrawWarped(float x1, + float y1, + float x2, + float y2, + float x3, + float y3, + float x4, + float y4) + +
+          Draw the image in a warper rectangle.
+ voidendUse() + +
+          End the use of this sprite sheet and release the lock.
+ voidensureInverted() + +
+          Make sure the texture cordinates are inverse on the y axis
+ voidflushPixelData() + +
+          Flush the current pixel data to force a re-read next update
+ floatgetAlpha() + +
+          Get the alpha value to use when rendering this image
+ floatgetCenterOfRotationX() + +
+          Get the x component of the center of rotation of this image
+ floatgetCenterOfRotationY() + +
+          Get the y component of the center of rotation of this image
+ ColorgetColor(int x, + int y) + +
+          Get the colour of a pixel at a specified location in this image
+ intgetFilter() + +
+          Get the OpenGL image filter in use
+ ImagegetFlippedCopy(boolean flipHorizontal, + boolean flipVertical) + +
+          Get a copy image flipped on potentially two axis
+ GraphicsgetGraphics() + +
+          Get a graphics context that can be used to draw to this image
+ intgetHeight() + +
+          Get the height of this image
+ java.lang.StringgetName() + +
+          Return a meaningful tagging name that has been assigned to this image.
+ java.lang.StringgetResourceReference() + +
+          Get the reference to the resource this image was loaded from, if any.
+ floatgetRotation() + +
+          Get the current angle of rotation for this image.
+ ImagegetScaledCopy(float scale) + +
+          Get a scaled copy of this image with a uniform scale
+ ImagegetScaledCopy(int width, + int height) + +
+          Get a scaled copy of this image
+ ImagegetSubImage(int x, + int y, + int width, + int height) + +
+          Get a sub-part of this image.
+ TexturegetTexture() + +
+          Get the OpenGL texture holding this image
+ floatgetTextureHeight() + +
+          Get the height in texels into the source texture
+ floatgetTextureOffsetX() + +
+          Get the x offset in texels into the source texture
+ floatgetTextureOffsetY() + +
+          Get the y offset in texels into the source texture
+ floatgetTextureWidth() + +
+          Get the width in texels into the source texture
+ intgetWidth() + +
+          Get the width of this image
+protected  voidinit() + +
+          Initialise internal data
+protected  voidinitImpl() + +
+          Hook for subclasses to perform initialisation
+ booleanisDestroyed() + +
+          Check if this image has been destroyed
+protected  voidreinit() + +
+          Reinitialise internal data
+ voidrotate(float angle) + +
+          Add the angle provided to the current rotation.
+ voidsetAlpha(float alpha) + +
+          Set the alpha value to use when rendering this image
+ voidsetCenterOfRotation(float x, + float y) + +
+          Set the centre of the rotation when applied to this image
+ voidsetColor(int corner, + float r, + float g, + float b) + +
+          Set the color of the given corner when this image is rendered.
+ voidsetColor(int corner, + float r, + float g, + float b, + float a) + +
+          Set the color of the given corner when this image is rendered.
+ voidsetFilter(int f) + +
+          Set the image filtering to be used.
+ voidsetImageColor(float r, + float g, + float b) + +
+          Set the filter to apply when drawing this image
+ voidsetImageColor(float r, + float g, + float b, + float a) + +
+          Set the filter to apply when drawing this image
+ voidsetName(java.lang.String name) + +
+          Give this image a meaningful tagging name.
+ voidsetRotation(float angle) + +
+          Set the angle to rotate this image to.
+ voidsetTexture(Texture texture) + +
+          Set the texture used by this image
+ voidstartUse() + +
+          Start using this sheet.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TOP_LEFT

+
+public static final int TOP_LEFT
+
+
The top left corner identifier +

+

+
See Also:
Constant Field Values
+
+
+ +

+TOP_RIGHT

+
+public static final int TOP_RIGHT
+
+
The top right corner identifier +

+

+
See Also:
Constant Field Values
+
+
+ +

+BOTTOM_RIGHT

+
+public static final int BOTTOM_RIGHT
+
+
The bottom right corner identifier +

+

+
See Also:
Constant Field Values
+
+
+ +

+BOTTOM_LEFT

+
+public static final int BOTTOM_LEFT
+
+
The bottom left corner identifier +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+inUse

+
+protected static Image inUse
+
+
The sprite sheet currently in use +

+

+
+
+
+ +

+FILTER_LINEAR

+
+public static final int FILTER_LINEAR
+
+
Use Linear Filtering +

+

+
See Also:
Constant Field Values
+
+
+ +

+FILTER_NEAREST

+
+public static final int FILTER_NEAREST
+
+
Use Nearest Filtering +

+

+
See Also:
Constant Field Values
+
+
+ +

+texture

+
+protected Texture texture
+
+
The OpenGL texture for this image +

+

+
+
+
+ +

+width

+
+protected int width
+
+
The width of the image +

+

+
+
+
+ +

+height

+
+protected int height
+
+
The height of the image +

+

+
+
+
+ +

+textureWidth

+
+protected float textureWidth
+
+
The texture coordinate width to use to find our image +

+

+
+
+
+ +

+textureHeight

+
+protected float textureHeight
+
+
The texture coordinate height to use to find our image +

+

+
+
+
+ +

+textureOffsetX

+
+protected float textureOffsetX
+
+
The x texture offset to use to find our image +

+

+
+
+
+ +

+textureOffsetY

+
+protected float textureOffsetY
+
+
The y texture offset to use to find our image +

+

+
+
+
+ +

+angle

+
+protected float angle
+
+
Angle to rotate the image to. +

+

+
+
+
+ +

+alpha

+
+protected float alpha
+
+
The alpha to draw the image at +

+

+
+
+
+ +

+ref

+
+protected java.lang.String ref
+
+
The name given for the image +

+

+
+
+
+ +

+inited

+
+protected boolean inited
+
+
True if this image's state has been initialised +

+

+
+
+
+ +

+pixelData

+
+protected byte[] pixelData
+
+
A pixelData holding the pixel data if it's been read for this texture +

+

+
+
+
+ +

+destroyed

+
+protected boolean destroyed
+
+
True if the image has been destroyed +

+

+
+
+
+ +

+centerX

+
+protected float centerX
+
+
The x coordinate of the centre of rotation +

+

+
+
+
+ +

+centerY

+
+protected float centerY
+
+
The y coordinate of the centre of rotation +

+

+
+
+
+ +

+name

+
+protected java.lang.String name
+
+
A meaningful name provided by the user of the image to tag it +

+

+
+
+
+ +

+corners

+
+protected Color[] corners
+
+
The colours for each of the corners +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Image

+
+protected Image(Image other)
+
+
Create a texture as a copy of another +

+

+
Parameters:
other - The other texture to copy
+
+
+ +

+Image

+
+protected Image()
+
+
Cloning constructor - only used internally. +

+

+
+ +

+Image

+
+public Image(Texture texture)
+
+
Creates an image using the specified texture +

+

+
Parameters:
texture - The texture to use
+
+
+ +

+Image

+
+public Image(java.lang.String ref)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
ref - The location of the image file to load +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(java.lang.String ref,
+             Color trans)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
ref - The location of the image file to load
trans - The color to be treated as transparent +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(java.lang.String ref,
+             boolean flipped)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
ref - The location of the image file to load
flipped - True if the image should be flipped on the y-axis on load +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(java.lang.String ref,
+             boolean flipped,
+             int filter)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
ref - The location of the image file to load
flipped - True if the image should be flipped on the y-axis on load
filter - The filtering method to use when scaling this image +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(java.lang.String ref,
+             boolean flipped,
+             int f,
+             Color transparent)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
ref - The location of the image file to load
flipped - True if the image should be flipped on the y-axis on load
f - The filtering method to use when scaling this image
transparent - The color to treat as transparent +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(int width,
+             int height)
+      throws SlickException
+
+
Create an empty image +

+

+
Parameters:
width - The width of the image
height - The height of the image +
Throws: +
SlickException - Indicates a failure to create the underlying resource
+
+
+ +

+Image

+
+public Image(int width,
+             int height,
+             int f)
+      throws SlickException
+
+
Create an empty image +

+

+
Parameters:
width - The width of the image
height - The height of the image
f - The filter to apply to scaling the new image +
Throws: +
SlickException - Indicates a failure to create the underlying resource
+
+
+ +

+Image

+
+public Image(java.io.InputStream in,
+             java.lang.String ref,
+             boolean flipped)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
in - The input stream to read the image from
ref - The name that should be assigned to the image
flipped - True if the image should be flipped on the y-axis on load +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(java.io.InputStream in,
+             java.lang.String ref,
+             boolean flipped,
+             int filter)
+      throws SlickException
+
+
Create an image based on a file at the specified location +

+

+
Parameters:
in - The input stream to read the image from
ref - The name that should be assigned to the image
flipped - True if the image should be flipped on the y-axis on load
filter - The filter to use when scaling this image +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+Image

+
+public Image(ImageData data)
+
+
Create an image from a image data source +

+

+
Parameters:
data - The pixelData to use to create the image
+
+
+ +

+Image

+
+public Image(ImageData data,
+             int f)
+
+
Create an image from a image data source. Note that this method uses +

+

+
Parameters:
data - The pixelData to use to create the image
f - The filter to use when scaling this image
+
+ + + + + + + + +
+Method Detail
+ +

+setFilter

+
+public void setFilter(int f)
+
+
Set the image filtering to be used. Note that this will also affect any + image that was derived from this one (i.e. sub-images etc) +

+

+
+
+
+
Parameters:
f - The filtering mode to use
+
+
+
+ +

+getFilter

+
+public int getFilter()
+
+
Get the OpenGL image filter in use +

+

+
+
+
+ +
Returns:
The filter for magnification
+
+
+
+ +

+getResourceReference

+
+public java.lang.String getResourceReference()
+
+
Get the reference to the resource this image was loaded from, if any. Note that + this can be null in the cases where an image was programatically generated. +

+

+
+
+
+ +
Returns:
The reference to the resource the reference was loaded from
+
+
+
+ +

+setImageColor

+
+public void setImageColor(float r,
+                          float g,
+                          float b,
+                          float a)
+
+
Set the filter to apply when drawing this image +

+

+
+
+
+
Parameters:
r - The red component of the filter colour
g - The green component of the filter colour
b - The blue component of the filter colour
a - The alpha component of the filter colour
+
+
+
+ +

+setImageColor

+
+public void setImageColor(float r,
+                          float g,
+                          float b)
+
+
Set the filter to apply when drawing this image +

+

+
+
+
+
Parameters:
r - The red component of the filter colour
g - The green component of the filter colour
b - The blue component of the filter colour
+
+
+
+ +

+setColor

+
+public void setColor(int corner,
+                     float r,
+                     float g,
+                     float b,
+                     float a)
+
+
Set the color of the given corner when this image is rendered. This is + useful lots of visual effect but especially light maps +

+

+
+
+
+
Parameters:
corner - The corner identifier for the corner to be set
r - The red component value to set (between 0 and 1)
g - The green component value to set (between 0 and 1)
b - The blue component value to set (between 0 and 1)
a - The alpha component value to set (between 0 and 1)
+
+
+
+ +

+setColor

+
+public void setColor(int corner,
+                     float r,
+                     float g,
+                     float b)
+
+
Set the color of the given corner when this image is rendered. This is + useful lots of visual effect but especially light maps +

+

+
+
+
+
Parameters:
corner - The corner identifier for the corner to be set
r - The red component value to set (between 0 and 1)
g - The green component value to set (between 0 and 1)
b - The blue component value to set (between 0 and 1)
+
+
+
+ +

+clampTexture

+
+public void clampTexture()
+
+
Clamp the loaded texture to it's edges +

+

+
+
+
+
+
+
+
+ +

+setName

+
+public void setName(java.lang.String name)
+
+
Give this image a meaningful tagging name. Can be used as user data/identifier + for the image. +

+

+
+
+
+
Parameters:
name - The name to assign the image
+
+
+
+ +

+getName

+
+public java.lang.String getName()
+
+
Return a meaningful tagging name that has been assigned to this image. +

+

+
+
+
+ +
Returns:
A name or null if the name hasn't been set
+
+
+
+ +

+getGraphics

+
+public Graphics getGraphics()
+                     throws SlickException
+
+
Get a graphics context that can be used to draw to this image +

+

+
+
+
+ +
Returns:
The graphics context used to render to this image +
Throws: +
SlickException - Indicates a failure to create a graphics context
+
+
+
+ +

+bind

+
+public void bind()
+
+
Bind to the texture of this image +

+

+
+
+
+
+
+
+
+ +

+reinit

+
+protected void reinit()
+
+
Reinitialise internal data +

+

+
+
+
+
+
+
+
+ +

+init

+
+protected final void init()
+
+
Initialise internal data +

+

+
+
+
+
+
+
+
+ +

+initImpl

+
+protected void initImpl()
+
+
Hook for subclasses to perform initialisation +

+

+
+
+
+
+
+
+
+ +

+draw

+
+public void draw()
+
+
Draw this image at the current location +

+

+
+
+
+
+
+
+
+ +

+drawCentered

+
+public void drawCentered(float x,
+                         float y)
+
+
Draw the image based on it's center +

+

+
+
+
+
Parameters:
x - The x coordinate to place the image's center at
y - The y coordinate to place the image's center at
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y)
+
+
Draw this image at the specified location +

+

+
Specified by:
draw in interface Renderable
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 Color filter)
+
+
Draw this image at the specified location +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
filter - The color to filter with when drawing
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float width,
+                         float height)
+
+
Draw this image as part of a collection of images +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
+
+
+
+ +

+getTextureOffsetX

+
+public float getTextureOffsetX()
+
+
Get the x offset in texels into the source texture +

+

+
+
+
+ +
Returns:
The x offset
+
+
+
+ +

+getTextureOffsetY

+
+public float getTextureOffsetY()
+
+
Get the y offset in texels into the source texture +

+

+
+
+
+ +
Returns:
The y offset
+
+
+
+ +

+getTextureWidth

+
+public float getTextureWidth()
+
+
Get the width in texels into the source texture +

+

+
+
+
+ +
Returns:
The width
+
+
+
+ +

+getTextureHeight

+
+public float getTextureHeight()
+
+
Get the height in texels into the source texture +

+

+
+
+
+ +
Returns:
The height
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float scale)
+
+
Draw the image with a given scale +

+

+
+
+
+
Parameters:
x - The x position to draw the image at
y - The y position to draw the image at
scale - The scaling to apply
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float scale,
+                 Color filter)
+
+
Draw the image with a given scale +

+

+
+
+
+
Parameters:
x - The x position to draw the image at
y - The y position to draw the image at
scale - The scaling to apply
filter - The colour filter to adapt the image with
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height)
+
+
Draw this image at a specified location and size +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
+
+
+
+ +

+drawSheared

+
+public void drawSheared(float x,
+                        float y,
+                        float hshear,
+                        float vshear)
+
+
Draw this image at a specified location and size +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
hshear - The amount to shear the bottom points by horizontally
vshear - The amount to shear the right points by vertically
+
+
+
+ +

+drawSheared

+
+public void drawSheared(float x,
+                        float y,
+                        float hshear,
+                        float vshear,
+                        Color filter)
+
+
Draw this image at a specified location and size +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
hshear - The amount to shear the bottom points by horizontally
vshear - The amount to shear the right points by vertically
filter - The colour filter to apply
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float width,
+                 float height,
+                 Color filter)
+
+
Draw this image at a specified location and size +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
filter - The color to filter with while drawing
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height)
+
+
Draw this image at a specified location and size as a silohette +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
+
+
+
+ +

+setCenterOfRotation

+
+public void setCenterOfRotation(float x,
+                                float y)
+
+
Set the centre of the rotation when applied to this image +

+

+
+
+
+
Parameters:
x - The x coordinate of center of rotation relative to the top left corner of the image
y - The y coordinate of center of rotation relative to the top left corner of the image
+
+
+
+ +

+getCenterOfRotationX

+
+public float getCenterOfRotationX()
+
+
Get the x component of the center of rotation of this image +

+

+
+
+
+ +
Returns:
The x component of the center of rotation
+
+
+
+ +

+getCenterOfRotationY

+
+public float getCenterOfRotationY()
+
+
Get the y component of the center of rotation of this image +

+

+
+
+
+ +
Returns:
The y component of the center of rotation
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y,
+                      float width,
+                      float height,
+                      Color col)
+
+
Draw this image at a specified location and size as a silohette +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
width - The width to render the image at
height - The height to render the image at
col - The color for the sillohette
+
+
+
+ +

+drawFlash

+
+public void drawFlash(float x,
+                      float y)
+
+
Draw this image at a specified location and size in a white silohette +

+

+
+
+
+
Parameters:
x - The x location to draw the image at
y - The y location to draw the image at
+
+
+
+ +

+setRotation

+
+public void setRotation(float angle)
+
+
Set the angle to rotate this image to. The angle will be normalized to + be 0 <= angle < 360. The image will be rotated around its center. +

+

+
+
+
+
Parameters:
angle - The angle to be set
+
+
+
+ +

+getRotation

+
+public float getRotation()
+
+
Get the current angle of rotation for this image. + The image will be rotated around its center. +

+

+
+
+
+ +
Returns:
The current angle.
+
+
+
+ +

+getAlpha

+
+public float getAlpha()
+
+
Get the alpha value to use when rendering this image +

+

+
+
+
+ +
Returns:
The alpha value to use when rendering this image
+
+
+
+ +

+setAlpha

+
+public void setAlpha(float alpha)
+
+
Set the alpha value to use when rendering this image +

+

+
+
+
+
Parameters:
alpha - The alpha value to use when rendering this image
+
+
+
+ +

+rotate

+
+public void rotate(float angle)
+
+
Add the angle provided to the current rotation. The angle will be normalized to + be 0 <= angle < 360. The image will be rotated around its center. +

+

+
+
+
+
Parameters:
angle - The angle to add.
+
+
+
+ +

+getSubImage

+
+public Image getSubImage(int x,
+                         int y,
+                         int width,
+                         int height)
+
+
Get a sub-part of this image. Note that the create image retains a reference to the + image data so should anything change it will affect sub-images too. +

+

+
+
+
+
Parameters:
x - The x coordinate of the sub-image
y - The y coordinate of the sub-image
width - The width of the sub-image
height - The height of the sub-image +
Returns:
The image represent the sub-part of this image
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2)
+
+
Draw a section of this image at a particular location and scale on the screen +

+

+
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float x2,
+                 float y2,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2)
+
+
Draw a section of this image at a particular location and scale on the screen +

+

+
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
+
+
+
+ +

+draw

+
+public void draw(float x,
+                 float y,
+                 float x2,
+                 float y2,
+                 float srcx,
+                 float srcy,
+                 float srcx2,
+                 float srcy2,
+                 Color filter)
+
+
Draw a section of this image at a particular location and scale on the screen +

+

+
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
filter - The colour filter to apply when drawing
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float x2,
+                         float y2,
+                         float srcx,
+                         float srcy,
+                         float srcx2,
+                         float srcy2)
+
+
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. between calls to startUse and endUse. +

+

+
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
+
+
+
+ +

+drawEmbedded

+
+public void drawEmbedded(float x,
+                         float y,
+                         float x2,
+                         float y2,
+                         float srcx,
+                         float srcy,
+                         float srcx2,
+                         float srcy2,
+                         Color filter)
+
+
Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e. between calls to startUse and endUse. +

+

+
+
+
+
Parameters:
x - The x position to draw the image
y - The y position to draw the image
x2 - The x position of the bottom right corner of the drawn image
y2 - The y position of the bottom right corner of the drawn image
srcx - The x position of the rectangle to draw from this image (i.e. relative to this image)
srcy - The y position of the rectangle to draw from this image (i.e. relative to this image)
srcx2 - The x position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
srcy2 - The t position of the bottom right cornder of rectangle to draw from this image (i.e. relative to this image)
filter - The colour filter to apply when drawing
+
+
+
+ +

+drawWarped

+
+public void drawWarped(float x1,
+                       float y1,
+                       float x2,
+                       float y2,
+                       float x3,
+                       float y3,
+                       float x4,
+                       float y4)
+
+
Draw the image in a warper rectangle. The effects this can + have are many and varied, might be interesting though. +

+

+
+
+
+
Parameters:
x1 - The top left corner x coordinate
y1 - The top left corner y coordinate
x2 - The top right corner x coordinate
y2 - The top right corner y coordinate
x3 - The bottom right corner x coordinate
y3 - The bottom right corner y coordinate
x4 - The bottom left corner x coordinate
y4 - The bottom left corner y coordinate
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Get the width of this image +

+

+
+
+
+ +
Returns:
The width of this image
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the height of this image +

+

+
+
+
+ +
Returns:
The height of this image
+
+
+
+ +

+copy

+
+public Image copy()
+
+
Get a copy of this image. This is a shallow copy and does not + duplicate image adata. +

+

+
+
+
+ +
Returns:
The copy of this image
+
+
+
+ +

+getScaledCopy

+
+public Image getScaledCopy(float scale)
+
+
Get a scaled copy of this image with a uniform scale +

+

+
+
+
+
Parameters:
scale - The scale to apply +
Returns:
The new scaled image
+
+
+
+ +

+getScaledCopy

+
+public Image getScaledCopy(int width,
+                           int height)
+
+
Get a scaled copy of this image +

+

+
+
+
+
Parameters:
width - The width of the copy
height - The height of the copy +
Returns:
The new scaled image
+
+
+
+ +

+ensureInverted

+
+public void ensureInverted()
+
+
Make sure the texture cordinates are inverse on the y axis +

+

+
+
+
+
+
+
+
+ +

+getFlippedCopy

+
+public Image getFlippedCopy(boolean flipHorizontal,
+                            boolean flipVertical)
+
+
Get a copy image flipped on potentially two axis +

+

+
+
+
+
Parameters:
flipHorizontal - True if we want to flip the image horizontally
flipVertical - True if we want to flip the image vertically +
Returns:
The flipped image instance
+
+
+
+ +

+endUse

+
+public void endUse()
+
+
End the use of this sprite sheet and release the lock. +

+

+
+
+
+
See Also:
startUse()
+
+
+
+ +

+startUse

+
+public void startUse()
+
+
Start using this sheet. This method can be used for optimal rendering of a collection + of sprites from a single sprite sheet. First, startUse(). Then render each sprite by + calling renderInUse(). Finally, endUse(). Between start and end there can be no rendering + of other sprites since the rendering is locked for this sprite sheet. +

+

+
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+getTexture

+
+public Texture getTexture()
+
+
Get the OpenGL texture holding this image +

+

+
+
+
+ +
Returns:
The OpenGL texture holding this image
+
+
+
+ +

+setTexture

+
+public void setTexture(Texture texture)
+
+
Set the texture used by this image +

+

+
+
+
+
Parameters:
texture - The texture used by this image
+
+
+
+ +

+getColor

+
+public Color getColor(int x,
+                      int y)
+
+
Get the colour of a pixel at a specified location in this image +

+

+
+
+
+
Parameters:
x - The x coordinate of the pixel
y - The y coordinate of the pixel +
Returns:
The Color of the pixel at the specified location
+
+
+
+ +

+isDestroyed

+
+public boolean isDestroyed()
+
+
Check if this image has been destroyed +

+

+
+
+
+ +
Returns:
True if this image has been destroyed
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws SlickException
+
+
Destroy the image and release any native resources. + Calls on a destroyed image have undefined results +

+

+
+
+
+ +
Throws: +
SlickException - Indicates a failure to release resources on the graphics card
+
+
+
+ +

+flushPixelData

+
+public void flushPixelData()
+
+
Flush the current pixel data to force a re-read next update +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/ImageBuffer.html b/lib/javadoc/org/newdawn/slick/ImageBuffer.html new file mode 100644 index 000000000..8f283e84d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/ImageBuffer.html @@ -0,0 +1,521 @@ + + + + + + +ImageBuffer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class ImageBuffer

+
+java.lang.Object
+  extended by org.newdawn.slick.ImageBuffer
+
+
+
All Implemented Interfaces:
ImageData
+
+
+
+
public class ImageBuffer
extends java.lang.Object
implements ImageData
+ + +

+A utility for creating images from pixel operations + + Expected usage is: + + ImageBuffer buffer = new ImageBuffer(320,200); + buffer.setRGBA(100,100,50,50,20,255); + .. + Image image = buffer.getImage(); + +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ImageBuffer(int width, + int height) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ ImagegetImage() + +
+          Get an image generated based on this buffer
+ ImagegetImage(int filter) + +
+          Get an image generated based on this buffer
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ byte[]getRGBA() + +
+          Retrieve the raw data stored within the image buffer
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ voidsetRGBA(int x, + int y, + int r, + int g, + int b, + int a) + +
+          Set a pixel in the image buffer
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageBuffer

+
+public ImageBuffer(int width,
+                   int height)
+
+
+
Parameters:
width -
height -
+
+ + + + + + + + +
+Method Detail
+ +

+getRGBA

+
+public byte[] getRGBA()
+
+
Retrieve the raw data stored within the image buffer +

+

+
+
+
+ +
Returns:
The raw data in RGBA packed format from within the image buffer
+
+
+
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
See Also:
ImageData.getHeight()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
See Also:
ImageData.getWidth()
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+setRGBA

+
+public void setRGBA(int x,
+                    int y,
+                    int r,
+                    int g,
+                    int b,
+                    int a)
+
+
Set a pixel in the image buffer +

+

+
+
+
+
Parameters:
x - The x position of the pixel to set
y - The y position of the pixel to set
r - The red component to set (0->255)
g - The green component to set (0->255)
b - The blue component to set (0->255)
a - The alpha component to set (0->255)
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
Get an image generated based on this buffer +

+

+
+
+
+ +
Returns:
The image generated from this buffer
+
+
+
+ +

+getImage

+
+public Image getImage(int filter)
+
+
Get an image generated based on this buffer +

+

+
+
+
+
Parameters:
filter - The filtering method to use when scaling this image +
Returns:
The image generated from this buffer
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Input.html b/lib/javadoc/org/newdawn/slick/Input.html new file mode 100644 index 000000000..f01ca3651 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Input.html @@ -0,0 +1,4061 @@ + + + + + + +Input (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Input

+
+java.lang.Object
+  extended by org.newdawn.slick.Input
+
+
+
+
public class Input
extends java.lang.Object
+ + +

+A wrapped for all keyboard, mouse and controller input +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  java.util.HashSetallListeners + +
+          A list of listeners to be notified of input events
+static intANY_CONTROLLER + +
+          The controller index to pass to check all controllers
+protected  booleanconsumed + +
+          True if the event has been consumed
+protected  java.util.ArrayListcontrollerListeners + +
+          The listener to nofiy of controller events
+static intKEY_0 + +
+           
+static intKEY_1 + +
+           
+static intKEY_2 + +
+           
+static intKEY_3 + +
+           
+static intKEY_4 + +
+           
+static intKEY_5 + +
+           
+static intKEY_6 + +
+           
+static intKEY_7 + +
+           
+static intKEY_8 + +
+           
+static intKEY_9 + +
+           
+static intKEY_A + +
+           
+static intKEY_ADD + +
+           
+static intKEY_APOSTROPHE + +
+           
+static intKEY_APPS + +
+           
+static intKEY_AT + +
+           
+static intKEY_AX + +
+           
+static intKEY_B + +
+           
+static intKEY_BACK + +
+           
+static intKEY_BACKSLASH + +
+           
+static intKEY_C + +
+           
+static intKEY_CAPITAL + +
+           
+static intKEY_CIRCUMFLEX + +
+           
+static intKEY_COLON + +
+           
+static intKEY_COMMA + +
+           
+static intKEY_CONVERT + +
+           
+static intKEY_D + +
+           
+static intKEY_DECIMAL + +
+           
+static intKEY_DELETE + +
+           
+static intKEY_DIVIDE + +
+           
+static intKEY_DOWN + +
+           
+static intKEY_E + +
+           
+static intKEY_END + +
+           
+static intKEY_ENTER + +
+           
+static intKEY_EQUALS + +
+           
+static intKEY_ESCAPE + +
+           
+static intKEY_F + +
+           
+static intKEY_F1 + +
+           
+static intKEY_F10 + +
+           
+static intKEY_F11 + +
+           
+static intKEY_F12 + +
+           
+static intKEY_F13 + +
+           
+static intKEY_F14 + +
+           
+static intKEY_F15 + +
+           
+static intKEY_F2 + +
+           
+static intKEY_F3 + +
+           
+static intKEY_F4 + +
+           
+static intKEY_F5 + +
+           
+static intKEY_F6 + +
+           
+static intKEY_F7 + +
+           
+static intKEY_F8 + +
+           
+static intKEY_F9 + +
+           
+static intKEY_G + +
+           
+static intKEY_GRAVE + +
+           
+static intKEY_H + +
+           
+static intKEY_HOME + +
+           
+static intKEY_I + +
+           
+static intKEY_INSERT + +
+           
+static intKEY_J + +
+           
+static intKEY_K + +
+           
+static intKEY_KANA + +
+           
+static intKEY_KANJI + +
+           
+static intKEY_L + +
+           
+static intKEY_LALT + +
+          A helper for left ALT
+static intKEY_LBRACKET + +
+           
+static intKEY_LCONTROL + +
+           
+static intKEY_LEFT + +
+           
+static intKEY_LMENU + +
+           
+static intKEY_LSHIFT + +
+           
+static intKEY_LWIN + +
+           
+static intKEY_M + +
+           
+static intKEY_MINUS + +
+           
+static intKEY_MULTIPLY + +
+           
+static intKEY_N + +
+           
+static intKEY_NEXT + +
+           
+static intKEY_NOCONVERT + +
+           
+static intKEY_NUMLOCK + +
+           
+static intKEY_NUMPAD0 + +
+           
+static intKEY_NUMPAD1 + +
+           
+static intKEY_NUMPAD2 + +
+           
+static intKEY_NUMPAD3 + +
+           
+static intKEY_NUMPAD4 + +
+           
+static intKEY_NUMPAD5 + +
+           
+static intKEY_NUMPAD6 + +
+           
+static intKEY_NUMPAD7 + +
+           
+static intKEY_NUMPAD8 + +
+           
+static intKEY_NUMPAD9 + +
+           
+static intKEY_NUMPADCOMMA + +
+           
+static intKEY_NUMPADENTER + +
+           
+static intKEY_NUMPADEQUALS + +
+           
+static intKEY_O + +
+           
+static intKEY_P + +
+           
+static intKEY_PAUSE + +
+           
+static intKEY_PERIOD + +
+           
+static intKEY_POWER + +
+           
+static intKEY_PRIOR + +
+           
+static intKEY_Q + +
+           
+static intKEY_R + +
+           
+static intKEY_RALT + +
+          A helper for right ALT
+static intKEY_RBRACKET + +
+           
+static intKEY_RCONTROL + +
+           
+static intKEY_RETURN + +
+           
+static intKEY_RIGHT + +
+           
+static intKEY_RMENU + +
+           
+static intKEY_RSHIFT + +
+           
+static intKEY_RWIN + +
+           
+static intKEY_S + +
+           
+static intKEY_SCROLL + +
+           
+static intKEY_SEMICOLON + +
+           
+static intKEY_SLASH + +
+           
+static intKEY_SLEEP + +
+           
+static intKEY_SPACE + +
+           
+static intKEY_STOP + +
+           
+static intKEY_SUBTRACT + +
+           
+static intKEY_SYSRQ + +
+           
+static intKEY_T + +
+           
+static intKEY_TAB + +
+           
+static intKEY_U + +
+           
+static intKEY_UNDERLINE + +
+           
+static intKEY_UNLABELED + +
+           
+static intKEY_UP + +
+           
+static intKEY_V + +
+           
+static intKEY_W + +
+           
+static intKEY_X + +
+           
+static intKEY_Y + +
+           
+static intKEY_YEN + +
+           
+static intKEY_Z + +
+           
+protected  java.util.ArrayListkeyListeners + +
+          The listeners to notify of key events
+protected  java.util.ArrayListkeyListenersToAdd + +
+          The listener to add
+protected  char[]keys + +
+          The character values representing the pressed keys
+static intMOUSE_LEFT_BUTTON + +
+          The left mouse button indicator
+static intMOUSE_MIDDLE_BUTTON + +
+          The middle mouse button indicator
+static intMOUSE_RIGHT_BUTTON + +
+          The right mouse button indicator
+protected  java.util.ArrayListmouseListeners + +
+          The listeners to notify of mouse events
+protected  java.util.ArrayListmouseListenersToAdd + +
+          The listener to add
+protected  boolean[]mousePressed + +
+          THe state of the mouse buttons
+protected  long[]nextRepeat + +
+          The time since the next key repeat to be fired for the key
+protected  boolean[]pressed + +
+          True if the key has been pressed since last queries
+  + + + + + + + + + + +
+Constructor Summary
Input(int height) + +
+          Create a new input with the height of the screen
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddControllerListener(ControllerListener listener) + +
+          Add a controller listener to be notified of controller input events
+ voidaddKeyListener(KeyListener listener) + +
+          Add a key listener to be notified of key input events
+ voidaddListener(InputListener listener) + +
+          Add a listener to be notified of input events
+ voidaddMouseListener(MouseListener listener) + +
+          Add a mouse listener to be notified of mouse input events
+ voidaddPrimaryListener(InputListener listener) + +
+          Add a listener to be notified of input events.
+ voidclearControlPressedRecord() + +
+          Clear the state for isControlPressed method.
+ voidclearKeyPressedRecord() + +
+          Clear the state for the isKeyPressed method.
+ voidclearMousePressedRecord() + +
+          Clear the state for the isMousePressed method.
+ voidconsiderDoubleClick(int button, + int x, + int y) + +
+          Notification that the mouse has been pressed and hence we + should consider what we're doing with double clicking
+ voidconsumeEvent() + +
+          Notification from an event handle that an event has been consumed
+static voiddisableControllers() + +
+          Disables support for controllers.
+ voiddisableKeyRepeat() + +
+          Disable key repeat for this input context
+ voidenableKeyRepeat() + +
+          Enable key repeat for this input context.
+ voidenableKeyRepeat(int initial, + int interval) + +
+          Deprecated.  
+ intgetAbsoluteMouseX() + +
+          Get the absolute x position of the mouse cursor within the container
+ intgetAbsoluteMouseY() + +
+          Get the absolute y position of the mouse cursor within the container
+ intgetAxisCount(int controller) + +
+          Get the number of axis that are avaiable on a given controller
+ java.lang.StringgetAxisName(int controller, + int axis) + +
+          Get the name of the axis with the given index
+ floatgetAxisValue(int controller, + int axis) + +
+          Get the value of the axis with the given index
+ intgetControllerCount() + +
+          Get a count of the number of controlles available
+static java.lang.StringgetKeyName(int code) + +
+          Get the character representation of the key identified by the specified code
+ intgetMouseX() + +
+          Get the x position of the mouse cursor
+ intgetMouseY() + +
+          Get the y position of the mouse cursor
+ voidinitControllers() + +
+          Initialise the controllers system
+ booleanisButton1Pressed(int controller) + +
+          Check if button 1 is pressed
+ booleanisButton2Pressed(int controller) + +
+          Check if button 2 is pressed
+ booleanisButton3Pressed(int controller) + +
+          Check if button 3 is pressed
+ booleanisButtonPressed(int index, + int controller) + +
+          Check if controller button is pressed
+ booleanisControllerDown(int controller) + +
+          Check if the controller has the down direction pressed
+ booleanisControllerLeft(int controller) + +
+          Check if the controller has the left direction pressed
+ booleanisControllerRight(int controller) + +
+          Check if the controller has the right direction pressed
+ booleanisControllerUp(int controller) + +
+          Check if the controller has the up direction pressed
+ booleanisControlPressed(int button) + +
+          Check if a controller button has been pressed since last + time
+ booleanisControlPressed(int button, + int controller) + +
+          Check if a controller button has been pressed since last + time
+ booleanisKeyDown(int code) + +
+          Check if a particular key is down
+ booleanisKeyPressed(int code) + +
+          Check if a particular key has been pressed since this method + was last called for the specified key
+ booleanisKeyRepeatEnabled() + +
+          Check if key repeat is enabled
+ booleanisMouseButtonDown(int button) + +
+          Check if a given mouse button is down
+ booleanisMousePressed(int button) + +
+          Check if a mouse button has been pressed since last call
+ voidpause() + +
+          Pauses the polling and sending of input events.
+ voidpoll(int width, + int height) + +
+          Poll the state of the input
+ voidremoveAllControllerListeners() + +
+          Remove all the controller listeners from this input
+ voidremoveAllKeyListeners() + +
+          Remove all the key listeners from this input
+ voidremoveAllListeners() + +
+          Remove all the listeners from this input
+ voidremoveAllMouseListeners() + +
+          Remove all the mouse listeners from this input
+ voidremoveControllerListener(ControllerListener listener) + +
+          Remove a controller listener that will no longer be notified
+ voidremoveKeyListener(KeyListener listener) + +
+          Remove a key listener that will no longer be notified
+ voidremoveListener(InputListener listener) + +
+          Remove a listener that will no longer be notified
+ voidremoveMouseListener(MouseListener listener) + +
+          Remove a mouse listener that will no longer be notified
+ voidresetInputTransform() + +
+          Reset the transformation being applied to the input to the default
+ voidresume() + +
+          Resumes the polling and sending of input events.
+ voidsetDoubleClickInterval(int delay) + +
+          Set the double click interval, the time between the first + and second clicks that should be interpreted as a + double click.
+ voidsetMouseClickTolerance(int mouseClickTolerance) + +
+          Set the pixel distance the mouse can move to accept a mouse click.
+ voidsetOffset(float xoffset, + float yoffset) + +
+          Set the offset to apply to the screen coodinates
+ voidsetScale(float scaleX, + float scaleY) + +
+          Set the scaling to apply to screen coordinates
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ANY_CONTROLLER

+
+public static final int ANY_CONTROLLER
+
+
The controller index to pass to check all controllers +

+

+
See Also:
Constant Field Values
+
+
+ +

+KEY_ESCAPE

+
+public static final int KEY_ESCAPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_1

+
+public static final int KEY_1
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_2

+
+public static final int KEY_2
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_3

+
+public static final int KEY_3
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_4

+
+public static final int KEY_4
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_5

+
+public static final int KEY_5
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_6

+
+public static final int KEY_6
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_7

+
+public static final int KEY_7
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_8

+
+public static final int KEY_8
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_9

+
+public static final int KEY_9
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_0

+
+public static final int KEY_0
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_MINUS

+
+public static final int KEY_MINUS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_EQUALS

+
+public static final int KEY_EQUALS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_BACK

+
+public static final int KEY_BACK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_TAB

+
+public static final int KEY_TAB
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_Q

+
+public static final int KEY_Q
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_W

+
+public static final int KEY_W
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_E

+
+public static final int KEY_E
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_R

+
+public static final int KEY_R
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_T

+
+public static final int KEY_T
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_Y

+
+public static final int KEY_Y
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_U

+
+public static final int KEY_U
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_I

+
+public static final int KEY_I
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_O

+
+public static final int KEY_O
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_P

+
+public static final int KEY_P
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LBRACKET

+
+public static final int KEY_LBRACKET
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RBRACKET

+
+public static final int KEY_RBRACKET
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RETURN

+
+public static final int KEY_RETURN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_ENTER

+
+public static final int KEY_ENTER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LCONTROL

+
+public static final int KEY_LCONTROL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_A

+
+public static final int KEY_A
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_S

+
+public static final int KEY_S
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_D

+
+public static final int KEY_D
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F

+
+public static final int KEY_F
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_G

+
+public static final int KEY_G
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_H

+
+public static final int KEY_H
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_J

+
+public static final int KEY_J
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_K

+
+public static final int KEY_K
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_L

+
+public static final int KEY_L
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SEMICOLON

+
+public static final int KEY_SEMICOLON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_APOSTROPHE

+
+public static final int KEY_APOSTROPHE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_GRAVE

+
+public static final int KEY_GRAVE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LSHIFT

+
+public static final int KEY_LSHIFT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_BACKSLASH

+
+public static final int KEY_BACKSLASH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_Z

+
+public static final int KEY_Z
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_X

+
+public static final int KEY_X
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_C

+
+public static final int KEY_C
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_V

+
+public static final int KEY_V
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_B

+
+public static final int KEY_B
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_N

+
+public static final int KEY_N
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_M

+
+public static final int KEY_M
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_COMMA

+
+public static final int KEY_COMMA
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_PERIOD

+
+public static final int KEY_PERIOD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SLASH

+
+public static final int KEY_SLASH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RSHIFT

+
+public static final int KEY_RSHIFT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_MULTIPLY

+
+public static final int KEY_MULTIPLY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LMENU

+
+public static final int KEY_LMENU
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SPACE

+
+public static final int KEY_SPACE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_CAPITAL

+
+public static final int KEY_CAPITAL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F1

+
+public static final int KEY_F1
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F2

+
+public static final int KEY_F2
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F3

+
+public static final int KEY_F3
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F4

+
+public static final int KEY_F4
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F5

+
+public static final int KEY_F5
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F6

+
+public static final int KEY_F6
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F7

+
+public static final int KEY_F7
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F8

+
+public static final int KEY_F8
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F9

+
+public static final int KEY_F9
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F10

+
+public static final int KEY_F10
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMLOCK

+
+public static final int KEY_NUMLOCK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SCROLL

+
+public static final int KEY_SCROLL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD7

+
+public static final int KEY_NUMPAD7
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD8

+
+public static final int KEY_NUMPAD8
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD9

+
+public static final int KEY_NUMPAD9
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SUBTRACT

+
+public static final int KEY_SUBTRACT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD4

+
+public static final int KEY_NUMPAD4
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD5

+
+public static final int KEY_NUMPAD5
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD6

+
+public static final int KEY_NUMPAD6
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_ADD

+
+public static final int KEY_ADD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD1

+
+public static final int KEY_NUMPAD1
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD2

+
+public static final int KEY_NUMPAD2
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD3

+
+public static final int KEY_NUMPAD3
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPAD0

+
+public static final int KEY_NUMPAD0
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_DECIMAL

+
+public static final int KEY_DECIMAL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F11

+
+public static final int KEY_F11
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F12

+
+public static final int KEY_F12
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F13

+
+public static final int KEY_F13
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F14

+
+public static final int KEY_F14
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_F15

+
+public static final int KEY_F15
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_KANA

+
+public static final int KEY_KANA
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_CONVERT

+
+public static final int KEY_CONVERT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NOCONVERT

+
+public static final int KEY_NOCONVERT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_YEN

+
+public static final int KEY_YEN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPADEQUALS

+
+public static final int KEY_NUMPADEQUALS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_CIRCUMFLEX

+
+public static final int KEY_CIRCUMFLEX
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_AT

+
+public static final int KEY_AT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_COLON

+
+public static final int KEY_COLON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_UNDERLINE

+
+public static final int KEY_UNDERLINE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_KANJI

+
+public static final int KEY_KANJI
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_STOP

+
+public static final int KEY_STOP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_AX

+
+public static final int KEY_AX
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_UNLABELED

+
+public static final int KEY_UNLABELED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPADENTER

+
+public static final int KEY_NUMPADENTER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RCONTROL

+
+public static final int KEY_RCONTROL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NUMPADCOMMA

+
+public static final int KEY_NUMPADCOMMA
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_DIVIDE

+
+public static final int KEY_DIVIDE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SYSRQ

+
+public static final int KEY_SYSRQ
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RMENU

+
+public static final int KEY_RMENU
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_PAUSE

+
+public static final int KEY_PAUSE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_HOME

+
+public static final int KEY_HOME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_UP

+
+public static final int KEY_UP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_PRIOR

+
+public static final int KEY_PRIOR
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LEFT

+
+public static final int KEY_LEFT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RIGHT

+
+public static final int KEY_RIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_END

+
+public static final int KEY_END
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_DOWN

+
+public static final int KEY_DOWN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_NEXT

+
+public static final int KEY_NEXT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_INSERT

+
+public static final int KEY_INSERT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_DELETE

+
+public static final int KEY_DELETE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LWIN

+
+public static final int KEY_LWIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_RWIN

+
+public static final int KEY_RWIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_APPS

+
+public static final int KEY_APPS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_POWER

+
+public static final int KEY_POWER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_SLEEP

+
+public static final int KEY_SLEEP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LALT

+
+public static final int KEY_LALT
+
+
A helper for left ALT +

+

+
See Also:
Constant Field Values
+
+
+ +

+KEY_RALT

+
+public static final int KEY_RALT
+
+
A helper for right ALT +

+

+
See Also:
Constant Field Values
+
+
+ +

+MOUSE_LEFT_BUTTON

+
+public static final int MOUSE_LEFT_BUTTON
+
+
The left mouse button indicator +

+

+
See Also:
Constant Field Values
+
+
+ +

+MOUSE_RIGHT_BUTTON

+
+public static final int MOUSE_RIGHT_BUTTON
+
+
The right mouse button indicator +

+

+
See Also:
Constant Field Values
+
+
+ +

+MOUSE_MIDDLE_BUTTON

+
+public static final int MOUSE_MIDDLE_BUTTON
+
+
The middle mouse button indicator +

+

+
See Also:
Constant Field Values
+
+
+ +

+mousePressed

+
+protected boolean[] mousePressed
+
+
THe state of the mouse buttons +

+

+
+
+
+ +

+keys

+
+protected char[] keys
+
+
The character values representing the pressed keys +

+

+
+
+
+ +

+pressed

+
+protected boolean[] pressed
+
+
True if the key has been pressed since last queries +

+

+
+
+
+ +

+nextRepeat

+
+protected long[] nextRepeat
+
+
The time since the next key repeat to be fired for the key +

+

+
+
+
+ +

+consumed

+
+protected boolean consumed
+
+
True if the event has been consumed +

+

+
+
+
+ +

+allListeners

+
+protected java.util.HashSet allListeners
+
+
A list of listeners to be notified of input events +

+

+
+
+
+ +

+keyListeners

+
+protected java.util.ArrayList keyListeners
+
+
The listeners to notify of key events +

+

+
+
+
+ +

+keyListenersToAdd

+
+protected java.util.ArrayList keyListenersToAdd
+
+
The listener to add +

+

+
+
+
+ +

+mouseListeners

+
+protected java.util.ArrayList mouseListeners
+
+
The listeners to notify of mouse events +

+

+
+
+
+ +

+mouseListenersToAdd

+
+protected java.util.ArrayList mouseListenersToAdd
+
+
The listener to add +

+

+
+
+
+ +

+controllerListeners

+
+protected java.util.ArrayList controllerListeners
+
+
The listener to nofiy of controller events +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Input

+
+public Input(int height)
+
+
Create a new input with the height of the screen +

+

+
Parameters:
height - The height of the screen
+
+ + + + + + + + +
+Method Detail
+ +

+disableControllers

+
+public static void disableControllers()
+
+
Disables support for controllers. This means the jinput JAR and native libs + are not required. +

+

+
+
+
+
+ +

+setDoubleClickInterval

+
+public void setDoubleClickInterval(int delay)
+
+
Set the double click interval, the time between the first + and second clicks that should be interpreted as a + double click. +

+

+
Parameters:
delay - The delay between clicks
+
+
+
+ +

+setMouseClickTolerance

+
+public void setMouseClickTolerance(int mouseClickTolerance)
+
+
Set the pixel distance the mouse can move to accept a mouse click. + Default is 5. +

+

+
Parameters:
mouseClickTolerance - The number of pixels.
+
+
+
+ +

+setScale

+
+public void setScale(float scaleX,
+                     float scaleY)
+
+
Set the scaling to apply to screen coordinates +

+

+
Parameters:
scaleX - The scaling to apply to the horizontal axis
scaleY - The scaling to apply to the vertical axis
+
+
+
+ +

+setOffset

+
+public void setOffset(float xoffset,
+                      float yoffset)
+
+
Set the offset to apply to the screen coodinates +

+

+
Parameters:
xoffset - The offset on the x-axis
yoffset - The offset on the y-axis
+
+
+
+ +

+resetInputTransform

+
+public void resetInputTransform()
+
+
Reset the transformation being applied to the input to the default +

+

+
+
+
+
+ +

+addListener

+
+public void addListener(InputListener listener)
+
+
Add a listener to be notified of input events +

+

+
Parameters:
listener - The listener to be notified
+
+
+
+ +

+addKeyListener

+
+public void addKeyListener(KeyListener listener)
+
+
Add a key listener to be notified of key input events +

+

+
Parameters:
listener - The listener to be notified
+
+
+
+ +

+addMouseListener

+
+public void addMouseListener(MouseListener listener)
+
+
Add a mouse listener to be notified of mouse input events +

+

+
Parameters:
listener - The listener to be notified
+
+
+
+ +

+addControllerListener

+
+public void addControllerListener(ControllerListener listener)
+
+
Add a controller listener to be notified of controller input events +

+

+
Parameters:
listener - The listener to be notified
+
+
+
+ +

+removeAllListeners

+
+public void removeAllListeners()
+
+
Remove all the listeners from this input +

+

+
+
+
+
+ +

+removeAllKeyListeners

+
+public void removeAllKeyListeners()
+
+
Remove all the key listeners from this input +

+

+
+
+
+
+ +

+removeAllMouseListeners

+
+public void removeAllMouseListeners()
+
+
Remove all the mouse listeners from this input +

+

+
+
+
+
+ +

+removeAllControllerListeners

+
+public void removeAllControllerListeners()
+
+
Remove all the controller listeners from this input +

+

+
+
+
+
+ +

+addPrimaryListener

+
+public void addPrimaryListener(InputListener listener)
+
+
Add a listener to be notified of input events. This listener + will get events before others that are currently registered +

+

+
Parameters:
listener - The listener to be notified
+
+
+
+ +

+removeListener

+
+public void removeListener(InputListener listener)
+
+
Remove a listener that will no longer be notified +

+

+
Parameters:
listener - The listen to be removed
+
+
+
+ +

+removeKeyListener

+
+public void removeKeyListener(KeyListener listener)
+
+
Remove a key listener that will no longer be notified +

+

+
Parameters:
listener - The listen to be removed
+
+
+
+ +

+removeControllerListener

+
+public void removeControllerListener(ControllerListener listener)
+
+
Remove a controller listener that will no longer be notified +

+

+
Parameters:
listener - The listen to be removed
+
+
+
+ +

+removeMouseListener

+
+public void removeMouseListener(MouseListener listener)
+
+
Remove a mouse listener that will no longer be notified +

+

+
Parameters:
listener - The listen to be removed
+
+
+
+ +

+getKeyName

+
+public static java.lang.String getKeyName(int code)
+
+
Get the character representation of the key identified by the specified code +

+

+
Parameters:
code - The key code of the key to retrieve the name of +
Returns:
The name or character representation of the key requested
+
+
+
+ +

+isKeyPressed

+
+public boolean isKeyPressed(int code)
+
+
Check if a particular key has been pressed since this method + was last called for the specified key +

+

+
Parameters:
code - The key code of the key to check +
Returns:
True if the key has been pressed
+
+
+
+ +

+isMousePressed

+
+public boolean isMousePressed(int button)
+
+
Check if a mouse button has been pressed since last call +

+

+
Parameters:
button - The button to check +
Returns:
True if the button has been pressed since last call
+
+
+
+ +

+isControlPressed

+
+public boolean isControlPressed(int button)
+
+
Check if a controller button has been pressed since last + time +

+

+
Parameters:
button - The button to check for (note that this includes directional controls first) +
Returns:
True if the button has been pressed since last time
+
+
+
+ +

+isControlPressed

+
+public boolean isControlPressed(int button,
+                                int controller)
+
+
Check if a controller button has been pressed since last + time +

+

+
Parameters:
controller - The index of the controller to check
button - The button to check for (note that this includes directional controls first) +
Returns:
True if the button has been pressed since last time
+
+
+
+ +

+clearControlPressedRecord

+
+public void clearControlPressedRecord()
+
+
Clear the state for isControlPressed method. This will reset all + controls to not pressed +

+

+
+
+
+
+ +

+clearKeyPressedRecord

+
+public void clearKeyPressedRecord()
+
+
Clear the state for the isKeyPressed method. This will + resort in all keys returning that they haven't been pressed, until + they are pressed again +

+

+
+
+
+
+ +

+clearMousePressedRecord

+
+public void clearMousePressedRecord()
+
+
Clear the state for the isMousePressed method. This will + resort in all mouse buttons returning that they haven't been pressed, until + they are pressed again +

+

+
+
+
+
+ +

+isKeyDown

+
+public boolean isKeyDown(int code)
+
+
Check if a particular key is down +

+

+
Parameters:
code - The key code of the key to check +
Returns:
True if the key is down
+
+
+
+ +

+getAbsoluteMouseX

+
+public int getAbsoluteMouseX()
+
+
Get the absolute x position of the mouse cursor within the container +

+

+ +
Returns:
The absolute x position of the mouse cursor
+
+
+
+ +

+getAbsoluteMouseY

+
+public int getAbsoluteMouseY()
+
+
Get the absolute y position of the mouse cursor within the container +

+

+ +
Returns:
The absolute y position of the mouse cursor
+
+
+
+ +

+getMouseX

+
+public int getMouseX()
+
+
Get the x position of the mouse cursor +

+

+ +
Returns:
The x position of the mouse cursor
+
+
+
+ +

+getMouseY

+
+public int getMouseY()
+
+
Get the y position of the mouse cursor +

+

+ +
Returns:
The y position of the mouse cursor
+
+
+
+ +

+isMouseButtonDown

+
+public boolean isMouseButtonDown(int button)
+
+
Check if a given mouse button is down +

+

+
Parameters:
button - The index of the button to check (starting at 0) +
Returns:
True if the mouse button is down
+
+
+
+ +

+getControllerCount

+
+public int getControllerCount()
+
+
Get a count of the number of controlles available +

+

+ +
Returns:
The number of controllers available
+
+
+
+ +

+getAxisCount

+
+public int getAxisCount(int controller)
+
+
Get the number of axis that are avaiable on a given controller +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
The number of axis available on the controller
+
+
+
+ +

+getAxisValue

+
+public float getAxisValue(int controller,
+                          int axis)
+
+
Get the value of the axis with the given index +

+

+
Parameters:
controller - The index of the controller to check
axis - The index of the axis to read +
Returns:
The axis value at time of reading
+
+
+
+ +

+getAxisName

+
+public java.lang.String getAxisName(int controller,
+                                    int axis)
+
+
Get the name of the axis with the given index +

+

+
Parameters:
controller - The index of the controller to check
axis - The index of the axis to read +
Returns:
The name of the specified axis
+
+
+
+ +

+isControllerLeft

+
+public boolean isControllerLeft(int controller)
+
+
Check if the controller has the left direction pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the controller is pressed to the left
+
+
+
+ +

+isControllerRight

+
+public boolean isControllerRight(int controller)
+
+
Check if the controller has the right direction pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the controller is pressed to the right
+
+
+
+ +

+isControllerUp

+
+public boolean isControllerUp(int controller)
+
+
Check if the controller has the up direction pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the controller is pressed to the up
+
+
+
+ +

+isControllerDown

+
+public boolean isControllerDown(int controller)
+
+
Check if the controller has the down direction pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the controller is pressed to the down
+
+
+
+ +

+isButtonPressed

+
+public boolean isButtonPressed(int index,
+                               int controller)
+
+
Check if controller button is pressed +

+

+
Parameters:
controller - The index of the controller to check
index - The index of the button to check +
Returns:
True if the button is pressed
+
+
+
+ +

+isButton1Pressed

+
+public boolean isButton1Pressed(int controller)
+
+
Check if button 1 is pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the button is pressed
+
+
+
+ +

+isButton2Pressed

+
+public boolean isButton2Pressed(int controller)
+
+
Check if button 2 is pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the button is pressed
+
+
+
+ +

+isButton3Pressed

+
+public boolean isButton3Pressed(int controller)
+
+
Check if button 3 is pressed +

+

+
Parameters:
controller - The index of the controller to check +
Returns:
True if the button is pressed
+
+
+
+ +

+initControllers

+
+public void initControllers()
+                     throws SlickException
+
+
Initialise the controllers system +

+

+ +
Throws: +
SlickException - Indicates a failure to use the hardware
+
+
+
+ +

+consumeEvent

+
+public void consumeEvent()
+
+
Notification from an event handle that an event has been consumed +

+

+
+
+
+
+ +

+considerDoubleClick

+
+public void considerDoubleClick(int button,
+                                int x,
+                                int y)
+
+
Notification that the mouse has been pressed and hence we + should consider what we're doing with double clicking +

+

+
Parameters:
button - The button pressed/released
x - The location of the mouse
y - The location of the mouse
+
+
+
+ +

+poll

+
+public void poll(int width,
+                 int height)
+
+
Poll the state of the input +

+

+
Parameters:
width - The width of the game view
height - The height of the game view
+
+
+
+ +

+enableKeyRepeat

+
+public void enableKeyRepeat(int initial,
+                            int interval)
+
+
Deprecated.  +

+

Enable key repeat for this input context. This will cause keyPressed to get called repeatedly + at a set interval while the key is pressed +

+

+
Parameters:
initial - The interval before key repreating starts after a key press
interval - The interval between key repeats in ms
+
+
+
+ +

+enableKeyRepeat

+
+public void enableKeyRepeat()
+
+
Enable key repeat for this input context. Uses the system settings for repeat + interval configuration. +

+

+
+
+
+
+ +

+disableKeyRepeat

+
+public void disableKeyRepeat()
+
+
Disable key repeat for this input context +

+

+
+
+
+
+ +

+isKeyRepeatEnabled

+
+public boolean isKeyRepeatEnabled()
+
+
Check if key repeat is enabled +

+

+ +
Returns:
True if key repeat is enabled
+
+
+
+ +

+pause

+
+public void pause()
+
+
Pauses the polling and sending of input events. +

+

+
+
+
+
+ +

+resume

+
+public void resume()
+
+
Resumes the polling and sending of input events. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/InputListener.html b/lib/javadoc/org/newdawn/slick/InputListener.html new file mode 100644 index 000000000..3911dac40 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/InputListener.html @@ -0,0 +1,231 @@ + + + + + + +InputListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface InputListener

+
+
All Superinterfaces:
ControlledInputReciever, ControllerListener, KeyListener, MouseListener
+
+
+
All Known Subinterfaces:
GameState
+
+
+
All Known Implementing Classes:
AbstractComponent, AlphaMapTest, AnimationTest, AntiAliasTest, BasicComponent, BasicGame, BasicGameState, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputAdapter, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MouseOverArea, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TestState1, TestState2, TestState3, TextField, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface InputListener
extends MouseListener, KeyListener, ControllerListener
+ + +

+A listener that will be notified of keyboard, mouse and controller events +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.MouseListener
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.KeyListener
keyPressed, keyReleased
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControllerListener
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControlledInputReciever
inputEnded, inputStarted, isAcceptingInput, setInput
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/KeyListener.html b/lib/javadoc/org/newdawn/slick/KeyListener.html new file mode 100644 index 000000000..408d39e7b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/KeyListener.html @@ -0,0 +1,265 @@ + + + + + + +KeyListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface KeyListener

+
+
All Superinterfaces:
ControlledInputReciever
+
+
+
All Known Subinterfaces:
GameState, InputListener
+
+
+
All Known Implementing Classes:
AbstractComponent, AlphaMapTest, AnimationTest, AntiAliasTest, BasicComponent, BasicGame, BasicGameState, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputAdapter, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MouseOverArea, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TestState1, TestState2, TestState3, TextField, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface KeyListener
extends ControlledInputReciever
+ + +

+Describes classes capable of responding to key presses +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControlledInputReciever
inputEnded, inputStarted, isAcceptingInput, setInput
+  +

+ + + + + + + + +
+Method Detail
+ +

+keyPressed

+
+void keyPressed(int key,
+                char c)
+
+
Notification that a key was pressed +

+

+
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
+
+
+
+ +

+keyReleased

+
+void keyReleased(int key,
+                 char c)
+
+
Notification that a key was released +

+

+
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/MouseListener.html b/lib/javadoc/org/newdawn/slick/MouseListener.html new file mode 100644 index 000000000..916f7e55d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/MouseListener.html @@ -0,0 +1,387 @@ + + + + + + +MouseListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface MouseListener

+
+
All Superinterfaces:
ControlledInputReciever
+
+
+
All Known Subinterfaces:
GameState, InputListener
+
+
+
All Known Implementing Classes:
AbstractComponent, AlphaMapTest, AnimationTest, AntiAliasTest, BasicComponent, BasicGame, BasicGameState, BigImageTest, BigSpriteSheetTest, CachedRenderTest, CanvasContainerTest, CanvasSizeTest, ClipTest, CopyAreaAlphaTest, CurveTest, DeferredLoadingTest, DistanceFieldTest, DoubleClickTest, DuplicateEmitterTest, FlashTest, FontPerformanceTest, FontTest, GeomAccuracyTest, GeomTest, GeomUtilTest, GeomUtilTileTest, GradientImageTest, GradientTest, GraphicsTest, GUITest, ImageBufferEndianTest, ImageBufferTest, ImageCornerTest, ImageGraphicsTest, ImageMemTest, ImageOutTest, ImageReadTest, ImageTest, InkscapeTest, InputAdapter, InputProviderTest, InputTest, IsoTiledTest, KeyRepeatTest, LameTest, LineRenderTest, MorphShapeTest, MorphSVGTest, MouseOverArea, MusicListenerTest, NavMeshTest, PackedSheetTest, ParticleTest, PedigreeTest, PolygonTest, PureFontTest, SavedStateTest, ScalableTest, ShapeTest, SlickCallableTest, SoundPositionTest, SoundTest, SoundURLTest, SpriteSheetFontTest, StateBasedGame, StateBasedTest, TestBox, TestState1, TestState2, TestState3, TextField, TexturePaintTest, TileMapTest, TransformTest, TransformTest2, TransitionTest, TransparentColorTest, TrueTypeFontPerformanceTest, UnicodeFontTest
+
+
+
+
public interface MouseListener
extends ControlledInputReciever
+ + +

+Description of classes that respond to mouse related input events +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControlledInputReciever
inputEnded, inputStarted, isAcceptingInput, setInput
+  +

+ + + + + + + + +
+Method Detail
+ +

+mouseWheelMoved

+
+void mouseWheelMoved(int change)
+
+
Notification that the mouse wheel position was updated +

+

+
+
+
+
Parameters:
change - The amount of the wheel has moved
+
+
+
+ +

+mouseClicked

+
+void mouseClicked(int button,
+                  int x,
+                  int y,
+                  int clickCount)
+
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
+
+
+
+ +

+mousePressed

+
+void mousePressed(int button,
+                  int x,
+                  int y)
+
+
Notification that a mouse button was pressed +

+

+
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
+
+
+
+ +

+mouseReleased

+
+void mouseReleased(int button,
+                   int x,
+                   int y)
+
+
Notification that a mouse button was released +

+

+
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
+
+
+
+ +

+mouseMoved

+
+void mouseMoved(int oldx,
+                int oldy,
+                int newx,
+                int newy)
+
+
Notification that mouse cursor was moved +

+

+
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
+
+
+
+ +

+mouseDragged

+
+void mouseDragged(int oldx,
+                  int oldy,
+                  int newx,
+                  int newy)
+
+
Notification that mouse cursor was dragged +

+

+
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Music.html b/lib/javadoc/org/newdawn/slick/Music.html new file mode 100644 index 000000000..d4c1d7ce4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Music.html @@ -0,0 +1,690 @@ + + + + + + +Music (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Music

+
+java.lang.Object
+  extended by org.newdawn.slick.Music
+
+
+
+
public class Music
extends java.lang.Object
+ + +

+A piece of music loaded and playable within the game. Only one piece of music can + play at any given time and a channel is reserved so music will always play. +

+ +

+

+
Author:
+
kevin, Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Music(java.io.InputStream in, + java.lang.String ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.lang.String ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.lang.String ref, + boolean streamingHint) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.net.URL ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.net.URL url, + boolean streamingHint) + +
+          Create and load a piece of music (either OGG or MOD/XM)
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(MusicListener listener) + +
+          Add a listener to this music
+ voidfade(int duration, + float endVolume, + boolean stopAfterFade) + +
+          Fade this music to the volume specified
+ floatgetPosition() + +
+          The position into the sound thats being played
+ floatgetVolume() + +
+          Get the individual volume of the music
+ voidloop() + +
+          Loop the music
+ voidloop(float pitch, + float volume) + +
+          Loop the music at a given pitch and volume
+ voidpause() + +
+          Pause the music playback
+ voidplay() + +
+          Play the music
+ voidplay(float pitch, + float volume) + +
+          Play the music at a given pitch and volume
+ booleanplaying() + +
+          Check if the music is being played
+static voidpoll(int delta) + +
+          Poll the state of the current music.
+ voidremoveListener(MusicListener listener) + +
+          Remove a listener from this music
+ voidresume() + +
+          Resume the music playback
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidsetVolume(float volume) + +
+          Set the volume of the music as a factor of the global volume setting
+ voidstop() + +
+          Stop the music playing
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Music

+
+public Music(java.lang.String ref)
+      throws SlickException
+
+
Create and load a piece of music (either OGG or MOD/XM) +

+

+
Parameters:
ref - The location of the music +
Throws: +
SlickException
+
+
+ +

+Music

+
+public Music(java.net.URL ref)
+      throws SlickException
+
+
Create and load a piece of music (either OGG or MOD/XM) +

+

+
Parameters:
ref - The location of the music +
Throws: +
SlickException
+
+
+ +

+Music

+
+public Music(java.io.InputStream in,
+             java.lang.String ref)
+      throws SlickException
+
+
Create and load a piece of music (either OGG or MOD/XM) +

+

+
Parameters:
in - The stream to read the music from
ref - The symbolic name of this music +
Throws: +
SlickException - Indicates a failure to read the music from the stream
+
+
+ +

+Music

+
+public Music(java.net.URL url,
+             boolean streamingHint)
+      throws SlickException
+
+
Create and load a piece of music (either OGG or MOD/XM) +

+

+
Parameters:
url - The location of the music
streamingHint - A hint to indicate whether streaming should be used if possible +
Throws: +
SlickException
+
+
+ +

+Music

+
+public Music(java.lang.String ref,
+             boolean streamingHint)
+      throws SlickException
+
+
Create and load a piece of music (either OGG or MOD/XM) +

+

+
Parameters:
ref - The location of the music
streamingHint - A hint to indicate whether streaming should be used if possible +
Throws: +
SlickException
+
+ + + + + + + + +
+Method Detail
+ +

+poll

+
+public static void poll(int delta)
+
+
Poll the state of the current music. This causes streaming music + to stream and checks listeners. Note that if you're using a game container + this will be auto-magically called for you. +

+

+
Parameters:
delta - The amount of time since last poll
+
+
+
+ +

+addListener

+
+public void addListener(MusicListener listener)
+
+
Add a listener to this music +

+

+
Parameters:
listener - The listener to add
+
+
+
+ +

+removeListener

+
+public void removeListener(MusicListener listener)
+
+
Remove a listener from this music +

+

+
Parameters:
listener - The listener to remove
+
+
+
+ +

+loop

+
+public void loop()
+
+
Loop the music +

+

+
+
+
+
+ +

+play

+
+public void play()
+
+
Play the music +

+

+
+
+
+
+ +

+play

+
+public void play(float pitch,
+                 float volume)
+
+
Play the music at a given pitch and volume +

+

+
Parameters:
pitch - The pitch to play the music at (1.0 = default)
volume - The volume to play the music at (1.0 = default)
+
+
+
+ +

+loop

+
+public void loop(float pitch,
+                 float volume)
+
+
Loop the music at a given pitch and volume +

+

+
Parameters:
pitch - The pitch to play the music at (1.0 = default)
volume - The volume to play the music at (1.0 = default)
+
+
+
+ +

+pause

+
+public void pause()
+
+
Pause the music playback +

+

+
+
+
+
+ +

+stop

+
+public void stop()
+
+
Stop the music playing +

+

+
+
+
+
+ +

+resume

+
+public void resume()
+
+
Resume the music playback +

+

+
+
+
+
+ +

+playing

+
+public boolean playing()
+
+
Check if the music is being played +

+

+ +
Returns:
True if the music is being played
+
+
+
+ +

+setVolume

+
+public void setVolume(float volume)
+
+
Set the volume of the music as a factor of the global volume setting +

+

+
Parameters:
volume - The volume to play music at. 0 - 1, 1 is Max
+
+
+
+ +

+getVolume

+
+public float getVolume()
+
+
Get the individual volume of the music +

+

+ +
Returns:
The volume of this music, still effected by global SoundStore volume. 0 - 1, 1 is Max
+
+
+
+ +

+fade

+
+public void fade(int duration,
+                 float endVolume,
+                 boolean stopAfterFade)
+
+
Fade this music to the volume specified +

+

+
Parameters:
duration - Fade time in milliseconds.
endVolume - The target volume
stopAfterFade - True if music should be stopped after fading in/out
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Seeks to a position in the music. For streaming music, seeking before the current position causes + the stream to be reloaded. +

+

+
Parameters:
position - Position in seconds. +
Returns:
True if the seek was successful
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
The position into the sound thats being played +

+

+ +
Returns:
The current position in seconds.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/MusicListener.html b/lib/javadoc/org/newdawn/slick/MusicListener.html new file mode 100644 index 000000000..e731fc0b1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/MusicListener.html @@ -0,0 +1,245 @@ + + + + + + +MusicListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface MusicListener

+
+
All Known Implementing Classes:
MusicListenerTest
+
+
+
+
public interface MusicListener
+ + +

+The description of any class needing to recieve notification of changes + to music state. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidmusicEnded(Music music) + +
+          Notification that a piece of music finished playing
+ voidmusicSwapped(Music music, + Music newMusic) + +
+          Notification that a piece of music has been swapped + for another.
+  +

+ + + + + + + + +
+Method Detail
+ +

+musicEnded

+
+void musicEnded(Music music)
+
+
Notification that a piece of music finished playing +

+

+
Parameters:
music - The music that finished playing
+
+
+
+ +

+musicSwapped

+
+void musicSwapped(Music music,
+                  Music newMusic)
+
+
Notification that a piece of music has been swapped + for another. +

+

+
Parameters:
music - The music that has been swapped out
newMusic - The new music we're playing
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/PackedSpriteSheet.html b/lib/javadoc/org/newdawn/slick/PackedSpriteSheet.html new file mode 100644 index 000000000..c7eed9df6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/PackedSpriteSheet.html @@ -0,0 +1,388 @@ + + + + + + +PackedSpriteSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class PackedSpriteSheet

+
+java.lang.Object
+  extended by org.newdawn.slick.PackedSpriteSheet
+
+
+
+
public class PackedSpriteSheet
extends java.lang.Object
+ + +

+A sprite sheet packed and defined by the Pacific Software Image Packer available + from: + + http://homepage.ntlworld.com/config/imagepacker/ +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
PackedSpriteSheet(java.lang.String def) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + int filter) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + int filter, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ImagegetFullImage() + +
+          Get the full image contaning all the sprites/sections
+ ImagegetSprite(java.lang.String name) + +
+          Get a single named sprite from the sheet
+ SpriteSheetgetSpriteSheet(java.lang.String name) + +
+          Get a sprite sheet that has been packed into the greater image
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PackedSpriteSheet

+
+public PackedSpriteSheet(java.lang.String def)
+                  throws SlickException
+
+
Create a new packed sprite sheet based on a ImagePacker definition file +

+

+
Parameters:
def - The location of the definition file to read +
Throws: +
SlickException - Indicates a failure to read the definition file
+
+
+ +

+PackedSpriteSheet

+
+public PackedSpriteSheet(java.lang.String def,
+                         Color trans)
+                  throws SlickException
+
+
Create a new packed sprite sheet based on a ImagePacker definition file +

+

+
Parameters:
def - The location of the definition file to read
trans - The color to be treated as transparent +
Throws: +
SlickException - Indicates a failure to read the definition file
+
+
+ +

+PackedSpriteSheet

+
+public PackedSpriteSheet(java.lang.String def,
+                         int filter)
+                  throws SlickException
+
+
Create a new packed sprite sheet based on a ImagePacker definition file +

+

+
Parameters:
def - The location of the definition file to read
filter - The image filter to use when loading the packed sprite image +
Throws: +
SlickException - Indicates a failure to read the definition file
+
+
+ +

+PackedSpriteSheet

+
+public PackedSpriteSheet(java.lang.String def,
+                         int filter,
+                         Color trans)
+                  throws SlickException
+
+
Create a new packed sprite sheet based on a ImagePacker definition file +

+

+
Parameters:
def - The location of the definition file to read
filter - The image filter to use when loading the packed sprite image
trans - The color to be treated as transparent +
Throws: +
SlickException - Indicates a failure to read the definition file
+
+ + + + + + + + +
+Method Detail
+ +

+getFullImage

+
+public Image getFullImage()
+
+
Get the full image contaning all the sprites/sections +

+

+ +
Returns:
The full image containing all the sprites/sections
+
+
+
+ +

+getSprite

+
+public Image getSprite(java.lang.String name)
+
+
Get a single named sprite from the sheet +

+

+
Parameters:
name - The name of the sprite to retrieve +
Returns:
The sprite requested (image of)
+
+
+
+ +

+getSpriteSheet

+
+public SpriteSheet getSpriteSheet(java.lang.String name)
+
+
Get a sprite sheet that has been packed into the greater image +

+

+
Parameters:
name - The name of the sprite sheet to retrieve +
Returns:
The sprite sheet from the packed sheet
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Renderable.html b/lib/javadoc/org/newdawn/slick/Renderable.html new file mode 100644 index 000000000..024b79a1a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Renderable.html @@ -0,0 +1,221 @@ + + + + + + +Renderable (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface Renderable

+
+
All Known Implementing Classes:
Animation, BigImage, Image, SpriteSheet
+
+
+
+
public interface Renderable
+ + +

+Description of anything that can be drawn +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voiddraw(float x, + float y) + +
+          Draw this artefact at the given location
+  +

+ + + + + + + + +
+Method Detail
+ +

+draw

+
+void draw(float x,
+          float y)
+
+
Draw this artefact at the given location +

+

+
Parameters:
x - The x coordinate to draw the artefact at
y - The y coordinate to draw the artefact at
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/SavedState.html b/lib/javadoc/org/newdawn/slick/SavedState.html new file mode 100644 index 000000000..4cba3cc82 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/SavedState.html @@ -0,0 +1,465 @@ + + + + + + +SavedState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class SavedState

+
+java.lang.Object
+  extended by org.newdawn.slick.SavedState
+
+
+
+
public class SavedState
extends java.lang.Object
+ + +

+A utility to allow game setup/state to be stored locally. This utility will adapt to the + current enviornment (webstart or file based). Note that this will not currently + work in an applet. +

+ +

+

+
Author:
+
kappaOne
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SavedState(java.lang.String fileName) + +
+          Create and Test to see if the app is running + as webstart or local app and select the appropriate + muffin type
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclear() + +
+          Will delete all current data held in Score
+ doublegetNumber(java.lang.String nameOfField) + +
+          Get number stored at given location
+ doublegetNumber(java.lang.String nameOfField, + double defaultValue) + +
+          Get number stored at given location
+ java.lang.StringgetString(java.lang.String nameOfField) + +
+          Get the String at the given location
+ java.lang.StringgetString(java.lang.String nameOfField, + java.lang.String defaultValue) + +
+          Get the String at the given location
+ voidload() + +
+          Load the data from file/muffin
+ voidsave() + +
+          Save the stored data to file/muffin
+ voidsetNumber(java.lang.String nameOfField, + double value) + +
+          Save the given value at the given location + will overwrite any previous value at this location
+ voidsetString(java.lang.String nameOfField, + java.lang.String value) + +
+          Save the given value at the given location + will overwrite any previous value at this location
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SavedState

+
+public SavedState(java.lang.String fileName)
+           throws SlickException
+
+
Create and Test to see if the app is running + as webstart or local app and select the appropriate + muffin type +

+

+
Parameters:
fileName - name of muffin where data will be saved +
Throws: +
SlickException - Indicates a failure to load the stored state
+
+ + + + + + + + +
+Method Detail
+ +

+getNumber

+
+public double getNumber(java.lang.String nameOfField)
+
+
Get number stored at given location +

+

+
Parameters:
nameOfField - The name of the number to retrieve +
Returns:
The number saved at this location
+
+
+
+ +

+getNumber

+
+public double getNumber(java.lang.String nameOfField,
+                        double defaultValue)
+
+
Get number stored at given location +

+

+
Parameters:
nameOfField - The name of the number to retrieve
defaultValue - The value to return if the specified value hasn't been set +
Returns:
The number saved at this location
+
+
+
+ +

+setNumber

+
+public void setNumber(java.lang.String nameOfField,
+                      double value)
+
+
Save the given value at the given location + will overwrite any previous value at this location +

+

+
Parameters:
nameOfField - The name to store the value against
value - The value to store
+
+
+
+ +

+getString

+
+public java.lang.String getString(java.lang.String nameOfField)
+
+
Get the String at the given location +

+

+
Parameters:
nameOfField - location of string +
Returns:
String stored at the location given
+
+
+
+ +

+getString

+
+public java.lang.String getString(java.lang.String nameOfField,
+                                  java.lang.String defaultValue)
+
+
Get the String at the given location +

+

+
Parameters:
nameOfField - location of string
defaultValue - The value to return if the specified value hasn't been set +
Returns:
String stored at the location given
+
+
+
+ +

+setString

+
+public void setString(java.lang.String nameOfField,
+                      java.lang.String value)
+
+
Save the given value at the given location + will overwrite any previous value at this location +

+

+
Parameters:
nameOfField - location to store int
value - The value to store
+
+
+
+ +

+save

+
+public void save()
+          throws java.io.IOException
+
+
Save the stored data to file/muffin +

+

+ +
Throws: +
java.io.IOException - Indicates it wasn't possible to store the state
+
+
+
+ +

+load

+
+public void load()
+          throws java.io.IOException
+
+
Load the data from file/muffin +

+

+ +
Throws: +
java.io.IOException - Indicates it wasn't possible to load the state
+
+
+
+ +

+clear

+
+public void clear()
+
+
Will delete all current data held in Score +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/ScalableGame.html b/lib/javadoc/org/newdawn/slick/ScalableGame.html new file mode 100644 index 000000000..8e5d472d4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/ScalableGame.html @@ -0,0 +1,477 @@ + + + + + + +ScalableGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class ScalableGame

+
+java.lang.Object
+  extended by org.newdawn.slick.ScalableGame
+
+
+
All Implemented Interfaces:
Game
+
+
+
+
public class ScalableGame
extends java.lang.Object
implements Game
+ + +

+A wrapper to allow any game to be scalable. This relies on knowing the + normal width/height of the game - i.e. the dimensions that the game is + expecting to be run at. The wrapper then takes the size of the container + and scales rendering and input based on the ratio. + + Note: Using OpenGL directly within a ScalableGame can break it +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ScalableGame(Game held, + int normalWidth, + int normalHeight) + +
+          Create a new scalable game wrapper
ScalableGame(Game held, + int normalWidth, + int normalHeight, + boolean maintainAspect) + +
+          Create a new scalable game wrapper
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancloseRequested() + +
+          Notification that a game close has been requested
+ java.lang.StringgetTitle() + +
+          Get the title of this game
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidrecalculateScale() + +
+          Recalculate the scale of the game
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+protected  voidrenderOverlay(GameContainer container, + Graphics g) + +
+          Render the overlay that will sit over the scaled screen
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ScalableGame

+
+public ScalableGame(Game held,
+                    int normalWidth,
+                    int normalHeight)
+
+
Create a new scalable game wrapper +

+

+
Parameters:
held - The game to be wrapper and displayed at a different resolution
normalWidth - The normal width of the game
normalHeight - The noral height of the game
+
+
+ +

+ScalableGame

+
+public ScalableGame(Game held,
+                    int normalWidth,
+                    int normalHeight,
+                    boolean maintainAspect)
+
+
Create a new scalable game wrapper +

+

+
Parameters:
held - The game to be wrapper and displayed at a different resolution
normalWidth - The normal width of the game
normalHeight - The noral height of the game
maintainAspect - True if we should maintain the aspect ratio
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+recalculateScale

+
+public void recalculateScale()
+                      throws SlickException
+
+
Recalculate the scale of the game +

+

+
+
+
+ +
Throws: +
SlickException - Indicates a failure to reinit the game
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public final void render(GameContainer container,
+                         Graphics g)
+                  throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+renderOverlay

+
+protected void renderOverlay(GameContainer container,
+                             Graphics g)
+
+
Render the overlay that will sit over the scaled screen +

+

+
+
+
+
Parameters:
container - The container holding the game being render
g - Graphics context on which to render
+
+
+
+ +

+closeRequested

+
+public boolean closeRequested()
+
+
Description copied from interface: Game
+
Notification that a game close has been requested +

+

+
Specified by:
closeRequested in interface Game
+
+
+ +
Returns:
True if the game should close
See Also:
Game.closeRequested()
+
+
+
+ +

+getTitle

+
+public java.lang.String getTitle()
+
+
Description copied from interface: Game
+
Get the title of this game +

+

+
Specified by:
getTitle in interface Game
+
+
+ +
Returns:
The title of the game
See Also:
Game.getTitle()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/ShapeFill.html b/lib/javadoc/org/newdawn/slick/ShapeFill.html new file mode 100644 index 000000000..c9a2f575e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/ShapeFill.html @@ -0,0 +1,251 @@ + + + + + + +ShapeFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Interface ShapeFill

+
+
All Known Implementing Classes:
GradientFill
+
+
+
+
public interface ShapeFill
+ + +

+A filling method for a shape. This allows changing colours at shape verticies and + modify they're positions as required +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ ColorcolorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ Vector2fgetOffsetAt(Shape shape, + float x, + float y) + +
+          Get the offset for a vertex at a given location based on it's shape
+  +

+ + + + + + + + +
+Method Detail
+ +

+colorAt

+
+Color colorAt(Shape shape,
+              float x,
+              float y)
+
+
Get the colour that should be applied at the specified location +

+

+
Parameters:
shape - The shape being filled
x - The x coordinate of the point being coloured
y - The y coordinate of the point being coloured +
Returns:
The colour that should be applied based on the control points of this gradient
+
+
+
+ +

+getOffsetAt

+
+Vector2f getOffsetAt(Shape shape,
+                     float x,
+                     float y)
+
+
Get the offset for a vertex at a given location based on it's shape +

+

+
Parameters:
shape - The shape being filled
x - The x coordinate of the point being drawn
y - The y coordinate of the point being drawn +
Returns:
The offset to apply to this vertex
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/SlickException.html b/lib/javadoc/org/newdawn/slick/SlickException.html new file mode 100644 index 000000000..7b358ac8b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/SlickException.html @@ -0,0 +1,273 @@ + + + + + + +SlickException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class SlickException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.newdawn.slick.SlickException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Direct Known Subclasses:
ParsingException, SlickXMLException
+
+
+
+
public class SlickException
extends java.lang.Exception
+ + +

+A generic exception thrown by everything in the library +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
SlickException(java.lang.String message) + +
+          Create a new exception with a detail message
SlickException(java.lang.String message, + java.lang.Throwable e) + +
+          Create a new exception with a detail message
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SlickException

+
+public SlickException(java.lang.String message)
+
+
Create a new exception with a detail message +

+

+
Parameters:
message - The message describing the cause of this exception
+
+
+ +

+SlickException

+
+public SlickException(java.lang.String message,
+                      java.lang.Throwable e)
+
+
Create a new exception with a detail message +

+

+
Parameters:
message - The message describing the cause of this exception
e - The exception causing this exception to be thrown
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/Sound.html b/lib/javadoc/org/newdawn/slick/Sound.html new file mode 100644 index 000000000..da0598fc8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/Sound.html @@ -0,0 +1,478 @@ + + + + + + +Sound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class Sound

+
+java.lang.Object
+  extended by org.newdawn.slick.Sound
+
+
+
+
public class Sound
extends java.lang.Object
+ + +

+A single sound effect loaded from either OGG or XM/MOD file. Sounds are allocated to + channels dynamically - if not channel is available the sound will not play. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
Sound(java.io.InputStream in, + java.lang.String ref) + +
+          Create a new Sound
Sound(java.lang.String ref) + +
+          Create a new Sound
Sound(java.net.URL url) + +
+          Create a new Sound
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidloop() + +
+          Loop this sound effect at default volume and pitch
+ voidloop(float pitch, + float volume) + +
+          Loop this sound effect at a given volume and pitch
+ voidplay() + +
+          Play this sound effect at default volume and pitch
+ voidplay(float pitch, + float volume) + +
+          Play this sound effect at a given volume and pitch
+ voidplayAt(float x, + float y, + float z) + +
+          Play a sound effect from a particular location
+ voidplayAt(float pitch, + float volume, + float x, + float y, + float z) + +
+          Play a sound effect from a particular location
+ booleanplaying() + +
+          Check if the sound is currently playing
+ voidstop() + +
+          Stop the sound being played
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Sound

+
+public Sound(java.io.InputStream in,
+             java.lang.String ref)
+      throws SlickException
+
+
Create a new Sound +

+

+
Parameters:
in - The location of the OGG or MOD/XM to load
ref - The name to associate this stream +
Throws: +
SlickException - Indicates a failure to load the sound effect
+
+
+ +

+Sound

+
+public Sound(java.net.URL url)
+      throws SlickException
+
+
Create a new Sound +

+

+
Parameters:
url - The location of the OGG or MOD/XM to load +
Throws: +
SlickException - Indicates a failure to load the sound effect
+
+
+ +

+Sound

+
+public Sound(java.lang.String ref)
+      throws SlickException
+
+
Create a new Sound +

+

+
Parameters:
ref - The location of the OGG or MOD/XM to load +
Throws: +
SlickException - Indicates a failure to load the sound effect
+
+ + + + + + + + +
+Method Detail
+ +

+play

+
+public void play()
+
+
Play this sound effect at default volume and pitch +

+

+
+
+
+
+ +

+play

+
+public void play(float pitch,
+                 float volume)
+
+
Play this sound effect at a given volume and pitch +

+

+
Parameters:
pitch - The pitch to play the sound effect at
volume - The volumen to play the sound effect at
+
+
+
+ +

+playAt

+
+public void playAt(float x,
+                   float y,
+                   float z)
+
+
Play a sound effect from a particular location +

+

+
Parameters:
x - The x position of the source of the effect
y - The y position of the source of the effect
z - The z position of the source of the effect
+
+
+
+ +

+playAt

+
+public void playAt(float pitch,
+                   float volume,
+                   float x,
+                   float y,
+                   float z)
+
+
Play a sound effect from a particular location +

+

+
Parameters:
pitch - The pitch to play the sound effect at
volume - The volumen to play the sound effect at
x - The x position of the source of the effect
y - The y position of the source of the effect
z - The z position of the source of the effect
+
+
+
+ +

+loop

+
+public void loop()
+
+
Loop this sound effect at default volume and pitch +

+

+
+
+
+
+ +

+loop

+
+public void loop(float pitch,
+                 float volume)
+
+
Loop this sound effect at a given volume and pitch +

+

+
Parameters:
pitch - The pitch to play the sound effect at
volume - The volumen to play the sound effect at
+
+
+
+ +

+playing

+
+public boolean playing()
+
+
Check if the sound is currently playing +

+

+ +
Returns:
True if the sound is playing
+
+
+
+ +

+stop

+
+public void stop()
+
+
Stop the sound being played +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/SpriteSheet.html b/lib/javadoc/org/newdawn/slick/SpriteSheet.html new file mode 100644 index 000000000..d62290bd4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/SpriteSheet.html @@ -0,0 +1,715 @@ + + + + + + +SpriteSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class SpriteSheet

+
+java.lang.Object
+  extended by org.newdawn.slick.Image
+      extended by org.newdawn.slick.SpriteSheet
+
+
+
All Implemented Interfaces:
Renderable
+
+
+
+
public class SpriteSheet
extends Image
+ + +

+A sheet of sprites that can be drawn individually +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.Image
alpha, angle, BOTTOM_LEFT, BOTTOM_RIGHT, centerX, centerY, corners, destroyed, FILTER_LINEAR, FILTER_NEAREST, GL, height, inited, inUse, name, pixelData, ref, texture, textureHeight, textureOffsetX, textureOffsetY, textureWidth, TOP_LEFT, TOP_RIGHT, width
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
SpriteSheet(Image image, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(Image image, + int tw, + int th, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(Image image, + int tw, + int th, + int spacing, + int margin) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String name, + java.io.InputStream ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.net.URL ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidendUse() + +
+          End the use of this sprite sheet and release the lock.
+ intgetHorizontalCount() + +
+          Get the number of sprites across the sheet
+ ImagegetSprite(int x, + int y) + +
+          Get a sprite at a particular cell on the sprite sheet
+ ImagegetSubImage(int x, + int y) + +
+          Get the sub image cached in this sprite sheet
+ intgetVerticalCount() + +
+          Get the number of sprites down the sheet
+protected  voidinitImpl() + +
+          Hook for subclasses to perform initialisation
+ voidrenderInUse(int x, + int y, + int sx, + int sy) + +
+          Render a sprite when this sprite sheet is in use.
+ voidsetTexture(Texture texture) + +
+          Set the texture used by this image
+ voidstartUse() + +
+          Start using this sheet.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.Image
bind, clampTexture, copy, destroy, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, drawCentered, drawEmbedded, drawEmbedded, drawEmbedded, drawFlash, drawFlash, drawFlash, drawSheared, drawSheared, drawWarped, ensureInverted, flushPixelData, getAlpha, getCenterOfRotationX, getCenterOfRotationY, getColor, getFilter, getFlippedCopy, getGraphics, getHeight, getName, getResourceReference, getRotation, getScaledCopy, getScaledCopy, getSubImage, getTexture, getTextureHeight, getTextureOffsetX, getTextureOffsetY, getTextureWidth, getWidth, init, isDestroyed, reinit, rotate, setAlpha, setCenterOfRotation, setColor, setColor, setFilter, setImageColor, setImageColor, setName, setRotation, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SpriteSheet

+
+public SpriteSheet(java.net.URL ref,
+                   int tw,
+                   int th)
+            throws SlickException,
+                   java.io.IOException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
ref - The URL to the image to use
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet +
Throws: +
SlickException - Indicates a failure to read image data +
java.io.IOException - Indicates the URL could not be opened
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(Image image,
+                   int tw,
+                   int th)
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
image - The image to based the sheet of
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(Image image,
+                   int tw,
+                   int th,
+                   int spacing,
+                   int margin)
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
image - The image to based the sheet of
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
spacing - The spacing between tiles
margin - The magrin around the tiles
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(Image image,
+                   int tw,
+                   int th,
+                   int spacing)
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
image - The image to based the sheet of
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
spacing - The spacing between tiles
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(java.lang.String ref,
+                   int tw,
+                   int th,
+                   int spacing)
+            throws SlickException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
ref - The location of the sprite sheet to load
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
spacing - The spacing between tiles +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(java.lang.String ref,
+                   int tw,
+                   int th)
+            throws SlickException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
ref - The location of the sprite sheet to load
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(java.lang.String ref,
+                   int tw,
+                   int th,
+                   Color col)
+            throws SlickException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
ref - The location of the sprite sheet to load
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
col - The colour to treat as transparent +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(java.lang.String ref,
+                   int tw,
+                   int th,
+                   Color col,
+                   int spacing)
+            throws SlickException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
ref - The location of the sprite sheet to load
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet
col - The colour to treat as transparent
spacing - The spacing between tiles +
Throws: +
SlickException - Indicates a failure to load the image
+
+
+ +

+SpriteSheet

+
+public SpriteSheet(java.lang.String name,
+                   java.io.InputStream ref,
+                   int tw,
+                   int th)
+            throws SlickException
+
+
Create a new sprite sheet based on a image location +

+

+
Parameters:
name - The name to give to the image in the image cache
ref - The stream from which we can load the image
tw - The width of the tiles on the sheet
th - The height of the tiles on the sheet +
Throws: +
SlickException - Indicates a failure to load the image
+
+ + + + + + + + +
+Method Detail
+ +

+initImpl

+
+protected void initImpl()
+
+
Description copied from class: Image
+
Hook for subclasses to perform initialisation +

+

+
Overrides:
initImpl in class Image
+
+
+
See Also:
Image.initImpl()
+
+
+
+ +

+getSubImage

+
+public Image getSubImage(int x,
+                         int y)
+
+
Get the sub image cached in this sprite sheet +

+

+
Parameters:
x - The x position in tiles of the image to get
y - The y position in tiles of the image to get +
Returns:
The subimage at that location on the sheet
+
+
+
+ +

+getSprite

+
+public Image getSprite(int x,
+                       int y)
+
+
Get a sprite at a particular cell on the sprite sheet +

+

+
Parameters:
x - The x position of the cell on the sprite sheet
y - The y position of the cell on the sprite sheet +
Returns:
The single image from the sprite sheet
+
+
+
+ +

+getHorizontalCount

+
+public int getHorizontalCount()
+
+
Get the number of sprites across the sheet +

+

+ +
Returns:
The number of sprites across the sheet
+
+
+
+ +

+getVerticalCount

+
+public int getVerticalCount()
+
+
Get the number of sprites down the sheet +

+

+ +
Returns:
The number of sprite down the sheet
+
+
+
+ +

+renderInUse

+
+public void renderInUse(int x,
+                        int y,
+                        int sx,
+                        int sy)
+
+
Render a sprite when this sprite sheet is in use. +

+

+
Parameters:
x - The x position to render the sprite at
y - The y position to render the sprite at
sx - The x location of the cell to render
sy - The y location of the cell to render
See Also:
startUse(), +endUse()
+
+
+
+ +

+endUse

+
+public void endUse()
+
+
Description copied from class: Image
+
End the use of this sprite sheet and release the lock. +

+

+
Overrides:
endUse in class Image
+
+
+
See Also:
Image.endUse()
+
+
+
+ +

+startUse

+
+public void startUse()
+
+
Description copied from class: Image
+
Start using this sheet. This method can be used for optimal rendering of a collection + of sprites from a single sprite sheet. First, startUse(). Then render each sprite by + calling renderInUse(). Finally, endUse(). Between start and end there can be no rendering + of other sprites since the rendering is locked for this sprite sheet. +

+

+
Overrides:
startUse in class Image
+
+
+
See Also:
Image.startUse()
+
+
+
+ +

+setTexture

+
+public void setTexture(Texture texture)
+
+
Description copied from class: Image
+
Set the texture used by this image +

+

+
Overrides:
setTexture in class Image
+
+
+
Parameters:
texture - The texture used by this image
See Also:
Image.setTexture(org.newdawn.slick.opengl.Texture)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/SpriteSheetFont.html b/lib/javadoc/org/newdawn/slick/SpriteSheetFont.html new file mode 100644 index 000000000..acc6ea469 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/SpriteSheetFont.html @@ -0,0 +1,435 @@ + + + + + + +SpriteSheetFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class SpriteSheetFont

+
+java.lang.Object
+  extended by org.newdawn.slick.SpriteSheetFont
+
+
+
All Implemented Interfaces:
Font
+
+
+
+
public class SpriteSheetFont
extends java.lang.Object
implements Font
+ + +

+A font implementation that will use the graphics inside a SpriteSheet for its data. + This is useful when your font has a fixed width and height for each character as + opposed to the more complex AngelCodeFont that allows different sizes and kerning + for each character. +

+ +

+

+
Author:
+
Onno Scheffers
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SpriteSheetFont(SpriteSheet font, + char startingCharacter) + +
+          Create a new font based on a SpriteSheet.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddrawString(float x, + float y, + java.lang.String text) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ intgetHeight(java.lang.String text) + +
+          Get the height of the given string
+ intgetLineHeight() + +
+          Get the maximum height of any line drawn by this font
+ intgetWidth(java.lang.String text) + +
+          Get the width of the given string
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SpriteSheetFont

+
+public SpriteSheetFont(SpriteSheet font,
+                       char startingCharacter)
+
+
Create a new font based on a SpriteSheet. The SpriteSheet should hold your + fixed-width character set in ASCII order. To only get upper-case characters + working you would usually set up a SpriteSheet with characters for these values: +
+   !"#$%&'()*+,-./
+  0123456789:;<=>?
+  @ABCDEFGHIJKLMNO
+  PQRSTUVWXYZ[\]^_
+ In this set, ' ' (SPACE) would be the startingCharacter of your characterSet.
+

+

+
Parameters:
font - The SpriteSheet holding the font data.
startingCharacter - The first character that is defined in the SpriteSheet.
+
+ + + + + + + + +
+Method Detail
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
See Also:
Font.drawString(float, float, java.lang.String)
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color col)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
See Also:
Font.drawString(float, float, java.lang.String, org.newdawn.slick.Color)
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color col,
+                       int startIndex,
+                       int endIndex)
+
+
Description copied from interface: Font
+
Draw part of a string to the screen. Note that this will + still position the text as though it's part of the bigger string. +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
startIndex - The index of the first character to draw
endIndex - The index of the last character from the string to draw
See Also:
Font.drawString(float, float, String, Color, int, int)
+
+
+
+ +

+getHeight

+
+public int getHeight(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the height of the given string +

+

+
Specified by:
getHeight in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getHeight(java.lang.String)
+
+
+
+ +

+getWidth

+
+public int getWidth(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the width of the given string +

+

+
Specified by:
getWidth in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getWidth(java.lang.String)
+
+
+
+ +

+getLineHeight

+
+public int getLineHeight()
+
+
Description copied from interface: Font
+
Get the maximum height of any line drawn by this font +

+

+
Specified by:
getLineHeight in interface Font
+
+
+ +
Returns:
The maxium height of any line drawn by this font
See Also:
Font.getLineHeight()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/TrueTypeFont.html b/lib/javadoc/org/newdawn/slick/TrueTypeFont.html new file mode 100644 index 000000000..e53ef675a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/TrueTypeFont.html @@ -0,0 +1,474 @@ + + + + + + +TrueTypeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class TrueTypeFont

+
+java.lang.Object
+  extended by org.newdawn.slick.TrueTypeFont
+
+
+
All Implemented Interfaces:
Font
+
+
+
+
public class TrueTypeFont
extends java.lang.Object
implements Font
+ + +

+A TrueType font implementation for Slick +

+ +

+

+
Author:
+
James Chambers (Jimmy), Jeremy Adams (elias4444), Kevin Glass (kevglass), Peter Korzuszek (genail)
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
TrueTypeFont(java.awt.Font font, + boolean antiAlias) + +
+          Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied.
TrueTypeFont(java.awt.Font font, + boolean antiAlias, + char[] additionalChars) + +
+          Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddrawString(float x, + float y, + java.lang.String whatchars) + +
+          Draw a string
+ voiddrawString(float x, + float y, + java.lang.String whatchars, + Color color) + +
+          Draw a string
+ voiddrawString(float x, + float y, + java.lang.String whatchars, + Color color, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ intgetHeight() + +
+          Get the font's height
+ intgetHeight(java.lang.String HeightString) + +
+          Get the height of a String
+ intgetLineHeight() + +
+          Get the font's line height
+ intgetWidth(java.lang.String whatchars) + +
+          Get the width of a given String
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TrueTypeFont

+
+public TrueTypeFont(java.awt.Font font,
+                    boolean antiAlias,
+                    char[] additionalChars)
+
+
Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied. +

+

+
Parameters:
font - Standard Java AWT font
antiAlias - Whether or not to apply AntiAliasing to the cached font
additionalChars - Characters of font that will be used in addition of first 256 (by unicode).
+
+
+ +

+TrueTypeFont

+
+public TrueTypeFont(java.awt.Font font,
+                    boolean antiAlias)
+
+
Constructor for the TrueTypeFont class Pass in the preloaded standard + Java TrueType font, and whether you want it to be cached with + AntiAliasing applied. +

+

+
Parameters:
font - Standard Java AWT font
antiAlias - Whether or not to apply AntiAliasing to the cached font
+
+ + + + + + + + +
+Method Detail
+ +

+getWidth

+
+public int getWidth(java.lang.String whatchars)
+
+
Get the width of a given String +

+

+
Specified by:
getWidth in interface Font
+
+
+
Parameters:
whatchars - The characters to get the width of +
Returns:
The width of the characters
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the font's height +

+

+
+
+
+ +
Returns:
The height of the font
+
+
+
+ +

+getHeight

+
+public int getHeight(java.lang.String HeightString)
+
+
Get the height of a String +

+

+
Specified by:
getHeight in interface Font
+
+
+
Parameters:
HeightString - The string to obtain the rendered with of +
Returns:
The height of a given string
+
+
+
+ +

+getLineHeight

+
+public int getLineHeight()
+
+
Get the font's line height +

+

+
Specified by:
getLineHeight in interface Font
+
+
+ +
Returns:
The line height of the font
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String whatchars,
+                       Color color)
+
+
Draw a string +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x position to draw the string
y - The y position to draw the string
whatchars - The string to draw
color - The color to draw the text
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String whatchars,
+                       Color color,
+                       int startIndex,
+                       int endIndex)
+
+
Description copied from interface: Font
+
Draw part of a string to the screen. Note that this will + still position the text as though it's part of the bigger string. +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
whatchars - The text to be displayed
color - The colour to draw with
startIndex - The index of the first character to draw
endIndex - The index of the last character from the string to draw
See Also:
Font.drawString(float, float, String, org.newdawn.slick.Color, int, int)
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String whatchars)
+
+
Draw a string +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x position to draw the string
y - The y position to draw the string
whatchars - The string to draw
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/UnicodeFont.DisplayList.html b/lib/javadoc/org/newdawn/slick/UnicodeFont.DisplayList.html new file mode 100644 index 000000000..bd3bc3295 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/UnicodeFont.DisplayList.html @@ -0,0 +1,276 @@ + + + + + + +UnicodeFont.DisplayList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class UnicodeFont.DisplayList

+
+java.lang.Object
+  extended by org.newdawn.slick.UnicodeFont.DisplayList
+
+
+
Enclosing class:
UnicodeFont
+
+
+
+
public static class UnicodeFont.DisplayList
extends java.lang.Object
+ + +

+A simple descriptor for display lists cached within this font +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+ shortheight + +
+          The height of the rendered text in the list
+ java.lang.ObjectuserData + +
+          Application data stored in the list
+ shortwidth + +
+          The width of rendered text in the list
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+width

+
+public short width
+
+
The width of rendered text in the list +

+

+
+
+
+ +

+height

+
+public short height
+
+
The height of the rendered text in the list +

+

+
+
+
+ +

+userData

+
+public java.lang.Object userData
+
+
Application data stored in the list +

+

+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/UnicodeFont.html b/lib/javadoc/org/newdawn/slick/UnicodeFont.html new file mode 100644 index 000000000..d1ff92834 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/UnicodeFont.html @@ -0,0 +1,1509 @@ + + + + + + +UnicodeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class UnicodeFont

+
+java.lang.Object
+  extended by org.newdawn.slick.UnicodeFont
+
+
+
All Implemented Interfaces:
Font
+
+
+
+
public class UnicodeFont
extends java.lang.Object
implements Font
+ + +

+A Slick bitmap font that can display unicode glyphs from a TrueTypeFont. + + For efficiency, glyphs are packed on to textures. Glyphs can be loaded to the textures on the fly, when they are first needed + for display. However, it is best to load the glyphs that are known to be needed at startup. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classUnicodeFont.DisplayList + +
+          A simple descriptor for display lists cached within this font
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
UnicodeFont(java.awt.Font font) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.awt.Font font, + HieroSettings settings) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.awt.Font font, + int size, + boolean bold, + boolean italic) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.awt.Font font, + java.lang.String hieroFileRef) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.lang.String ttfFileRef, + HieroSettings settings) + +
+          Create a new unicode font based on a TTF file and a set of heiro configuration
UnicodeFont(java.lang.String ttfFileRef, + int size, + boolean bold, + boolean italic) + +
+          Create a new unicode font based on a TTF file alone
UnicodeFont(java.lang.String ttfFileRef, + java.lang.String hieroFileRef) + +
+          Create a new unicode font based on a TTF file
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAsciiGlyphs() + +
+          Queues the glyphs in the ASCII character set (codepoints 32 through 255) to be loaded.
+ voidaddGlyphs(int startCodePoint, + int endCodePoint) + +
+          Queues the glyphs in the specified codepoint range (inclusive) to be loaded.
+ voidaddGlyphs(java.lang.String text) + +
+          Queues the glyphs in the specified text to be loaded.
+ voidaddNeheGlyphs() + +
+          Queues the glyphs in the NEHE character set (codepoints 32 through 128) to be loaded.
+ voidclearGlyphs() + +
+          Clears all loaded and queued glyphs.
+ voiddestroy() + +
+          Releases all resources used by this UnicodeFont.
+ UnicodeFont.DisplayListdrawDisplayList(float x, + float y, + java.lang.String text, + Color color, + int startIndex, + int endIndex) + +
+          Identical to drawString(float, float, String, Color, int, int) but returns a + DisplayList which provides access to the width and height of the text drawn.
+ voiddrawString(float x, + float y, + java.lang.String text) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color col) + +
+          Draw a string to the screen
+ voiddrawString(float x, + float y, + java.lang.String text, + Color color, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ intgetAscent() + +
+          Gets the distance from the baseline to the y drawing location.
+ intgetDescent() + +
+          Gets the distance from the baseline to the bottom of most alphanumeric characters + with descenders.
+ java.util.ListgetEffects() + +
+          Returns a list of Effects that will be applied + to the glyphs.
+ java.awt.FontgetFont() + +
+          Returns the TrueTypeFont for this UnicodeFont.
+ java.lang.StringgetFontFile() + +
+          Returns the path to the TTF file for this UnicodeFont, or null.
+ intgetGlyphPageHeight() + +
+          Returns the height of the backing textures.
+ java.util.ListgetGlyphPages() + +
+          Returns the GlyphPages for this UnicodeFont.
+ intgetGlyphPageWidth() + +
+          Returns the width of the backing textures.
+ intgetHeight(java.lang.String text) + +
+          Get the height of the given string
+ intgetLeading() + +
+          Gets the extra distance between the descent of one line of text to the ascent of the next.
+ intgetLineHeight() + +
+          Returns the distance from one line of text to the next.
+ intgetPaddingAdvanceX() + +
+          Gets the additional amount to offset glyphs on the x axis.
+ intgetPaddingAdvanceY() + +
+          Gets the additional amount to offset a line of text on the y axis.
+ intgetPaddingBottom() + +
+          Returns the padding below a glyph on the GlyphPage to allow for effects to be drawn.
+ intgetPaddingLeft() + +
+          Returns the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn.
+ intgetPaddingRight() + +
+          Returns the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn.
+ intgetPaddingTop() + +
+          Returns the padding above a glyph on the GlyphPage to allow for effects to be drawn.
+ intgetSpaceWidth() + +
+          Returns the width of the space character.
+ intgetWidth(java.lang.String text) + +
+          Get the width of the given string
+ intgetYOffset(java.lang.String text) + +
+          Returns the distance from the y drawing location to the top most pixel of the + specified text.
+ booleanisCaching() + +
+          Returns true if this UnicodeFont caches the glyph drawing instructions to + improve performance.
+ booleanloadGlyphs() + +
+          Loads all queued glyphs to the backing textures.
+ booleanloadGlyphs(int maxGlyphsToLoad) + +
+          Loads up to the specified number of queued glyphs to the backing textures.
+ voidsetDisplayListCaching(boolean displayListCaching) + +
+          Sets if this UnicodeFont caches the glyph drawing instructions to improve performance.
+ voidsetGlyphPageHeight(int glyphPageHeight) + +
+          Sets the height of the backing textures.
+ voidsetGlyphPageWidth(int glyphPageWidth) + +
+          Sets the width of the backing textures.
+ voidsetPaddingAdvanceX(int paddingAdvanceX) + +
+          Sets the additional amount to offset glyphs on the x axis.
+ voidsetPaddingAdvanceY(int paddingAdvanceY) + +
+          Sets the additional amount to offset a line of text on the y axis.
+ voidsetPaddingBottom(int paddingBottom) + +
+          Sets the padding below a glyph on the GlyphPage to allow for effects to be drawn.
+ voidsetPaddingLeft(int paddingLeft) + +
+          Sets the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn.
+ voidsetPaddingRight(int paddingRight) + +
+          Sets the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn.
+ voidsetPaddingTop(int paddingTop) + +
+          Sets the padding above a glyph on the GlyphPage to allow for effects to be drawn.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UnicodeFont

+
+public UnicodeFont(java.lang.String ttfFileRef,
+                   java.lang.String hieroFileRef)
+            throws SlickException
+
+
Create a new unicode font based on a TTF file +

+

+
Parameters:
ttfFileRef - The file system or classpath location of the TrueTypeFont file.
hieroFileRef - The file system or classpath location of the Hiero settings file. +
Throws: +
SlickException - if the UnicodeFont could not be initialized.
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.lang.String ttfFileRef,
+                   HieroSettings settings)
+            throws SlickException
+
+
Create a new unicode font based on a TTF file and a set of heiro configuration +

+

+
Parameters:
ttfFileRef - The file system or classpath location of the TrueTypeFont file.
settings - The settings configured via the Hiero tool +
Throws: +
SlickException - if the UnicodeFont could not be initialized.
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.lang.String ttfFileRef,
+                   int size,
+                   boolean bold,
+                   boolean italic)
+            throws SlickException
+
+
Create a new unicode font based on a TTF file alone +

+

+
Parameters:
ttfFileRef - The file system or classpath location of the TrueTypeFont file.
size - The point size of the font to generated
bold - True if the font should be rendered in bold typeface
italic - True if the font should be rendered in bold typeface +
Throws: +
SlickException - if the UnicodeFont could not be initialized.
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.awt.Font font,
+                   java.lang.String hieroFileRef)
+            throws SlickException
+
+
Creates a new UnicodeFont. +

+

+
Parameters:
font - The AWT font to render
hieroFileRef - The file system or classpath location of the Hiero settings file. +
Throws: +
SlickException - if the UnicodeFont could not be initialized.
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.awt.Font font,
+                   HieroSettings settings)
+
+
Creates a new UnicodeFont. +

+

+
Parameters:
font - The AWT font to render
settings - The settings configured via the Hiero tool
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.awt.Font font)
+
+
Creates a new UnicodeFont. +

+

+
Parameters:
font - The AWT font to render
+
+
+ +

+UnicodeFont

+
+public UnicodeFont(java.awt.Font font,
+                   int size,
+                   boolean bold,
+                   boolean italic)
+
+
Creates a new UnicodeFont. +

+

+
Parameters:
font - The AWT font to render
size - The point size of the font to generated
bold - True if the font should be rendered in bold typeface
italic - True if the font should be rendered in bold typeface
+
+ + + + + + + + +
+Method Detail
+ +

+addGlyphs

+
+public void addGlyphs(int startCodePoint,
+                      int endCodePoint)
+
+
Queues the glyphs in the specified codepoint range (inclusive) to be loaded. Note that the glyphs are not actually loaded + until loadGlyphs() is called. + + Some characters like combining marks and non-spacing marks can only be rendered with the context of other glyphs. In this + case, use addGlyphs(String). +

+

+
+
+
+
Parameters:
startCodePoint - The code point of the first glyph to add
endCodePoint - The code point of the last glyph to add
+
+
+
+ +

+addGlyphs

+
+public void addGlyphs(java.lang.String text)
+
+
Queues the glyphs in the specified text to be loaded. Note that the glyphs are not actually loaded until + loadGlyphs() is called. +

+

+
+
+
+
Parameters:
text - The text containing the glyphs to be added
+
+
+
+ +

+addAsciiGlyphs

+
+public void addAsciiGlyphs()
+
+
Queues the glyphs in the ASCII character set (codepoints 32 through 255) to be loaded. Note that the glyphs are not actually + loaded until loadGlyphs() is called. +

+

+
+
+
+
+
+
+
+ +

+addNeheGlyphs

+
+public void addNeheGlyphs()
+
+
Queues the glyphs in the NEHE character set (codepoints 32 through 128) to be loaded. Note that the glyphs are not actually + loaded until loadGlyphs() is called. +

+

+
+
+
+
+
+
+
+ +

+loadGlyphs

+
+public boolean loadGlyphs()
+                   throws SlickException
+
+
Loads all queued glyphs to the backing textures. Glyphs that are typically displayed together should be added and loaded at + the same time so that they are stored on the same backing texture. This reduces the number of backing texture binds required + to draw glyphs. +

+

+
+
+
+ +
Returns:
True if the glyphs were loaded entirely +
Throws: +
SlickException - if the glyphs could not be loaded.
+
+
+
+ +

+loadGlyphs

+
+public boolean loadGlyphs(int maxGlyphsToLoad)
+                   throws SlickException
+
+
Loads up to the specified number of queued glyphs to the backing textures. This is typically called from the game loop to + load glyphs on the fly that were requested for display but have not yet been loaded. +

+

+
+
+
+
Parameters:
maxGlyphsToLoad - The maximum number of glyphs to be loaded this time +
Returns:
True if the glyphs were loaded entirely +
Throws: +
SlickException - if the glyphs could not be loaded.
+
+
+
+ +

+clearGlyphs

+
+public void clearGlyphs()
+
+
Clears all loaded and queued glyphs. +

+

+
+
+
+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Releases all resources used by this UnicodeFont. This method should be called when this UnicodeFont instance is no longer + needed. +

+

+
+
+
+
+
+
+
+ +

+drawDisplayList

+
+public UnicodeFont.DisplayList drawDisplayList(float x,
+                                               float y,
+                                               java.lang.String text,
+                                               Color color,
+                                               int startIndex,
+                                               int endIndex)
+
+
Identical to drawString(float, float, String, Color, int, int) but returns a + DisplayList which provides access to the width and height of the text drawn. +

+

+
+
+
+
Parameters:
text - The text to render
x - The horizontal location to render at
y - The vertical location to render at
color - The colour to apply as a filter on the text
startIndex - The start index into the string to start rendering at
endIndex - The end index into the string to render to +
Returns:
The reference to the display list that was drawn and potentiall ygenerated
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color color,
+                       int startIndex,
+                       int endIndex)
+
+
Description copied from interface: Font
+
Draw part of a string to the screen. Note that this will + still position the text as though it's part of the bigger string. +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
color - The colour to draw with
startIndex - The index of the first character to draw
endIndex - The index of the last character from the string to draw
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
+
+
+
+ +

+drawString

+
+public void drawString(float x,
+                       float y,
+                       java.lang.String text,
+                       Color col)
+
+
Description copied from interface: Font
+
Draw a string to the screen +

+

+
Specified by:
drawString in interface Font
+
+
+
Parameters:
x - The x location at which to draw the string
y - The y location at which to draw the string
text - The text to be displayed
col - The colour to draw with
+
+
+
+ +

+getSpaceWidth

+
+public int getSpaceWidth()
+
+
Returns the width of the space character. +

+

+
+
+
+
+
+
+
+ +

+getWidth

+
+public int getWidth(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the width of the given string +

+

+
Specified by:
getWidth in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getWidth(java.lang.String)
+
+
+
+ +

+getHeight

+
+public int getHeight(java.lang.String text)
+
+
Description copied from interface: Font
+
Get the height of the given string +

+

+
Specified by:
getHeight in interface Font
+
+
+
Parameters:
text - The string to obtain the rendered with of +
Returns:
The width of the given string
See Also:
Font.getHeight(java.lang.String)
+
+
+
+ +

+getYOffset

+
+public int getYOffset(java.lang.String text)
+
+
Returns the distance from the y drawing location to the top most pixel of the + specified text. +

+

+
+
+
+
Parameters:
text - The text to analyse +
Returns:
The distance fro the y drawing location ot the top most pixel of the specified text
+
+
+
+ +

+getFont

+
+public java.awt.Font getFont()
+
+
Returns the TrueTypeFont for this UnicodeFont. +

+

+
+
+
+ +
Returns:
The AWT Font being rendered
+
+
+
+ +

+getPaddingTop

+
+public int getPaddingTop()
+
+
Returns the padding above a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+ +
Returns:
The padding at the top of the glyphs when drawn
+
+
+
+ +

+setPaddingTop

+
+public void setPaddingTop(int paddingTop)
+
+
Sets the padding above a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+
Parameters:
paddingTop - The padding at the top of the glyphs when drawn
+
+
+
+ +

+getPaddingLeft

+
+public int getPaddingLeft()
+
+
Returns the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+ +
Returns:
The padding at the left of the glyphs when drawn
+
+
+
+ +

+setPaddingLeft

+
+public void setPaddingLeft(int paddingLeft)
+
+
Sets the padding to the left of a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+
Parameters:
paddingLeft - The padding at the left of the glyphs when drawn
+
+
+
+ +

+getPaddingBottom

+
+public int getPaddingBottom()
+
+
Returns the padding below a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+ +
Returns:
The padding at the bottom of the glyphs when drawn
+
+
+
+ +

+setPaddingBottom

+
+public void setPaddingBottom(int paddingBottom)
+
+
Sets the padding below a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+
Parameters:
paddingBottom - The padding at the bottom of the glyphs when drawn
+
+
+
+ +

+getPaddingRight

+
+public int getPaddingRight()
+
+
Returns the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+ +
Returns:
The padding at the right of the glyphs when drawn
+
+
+
+ +

+setPaddingRight

+
+public void setPaddingRight(int paddingRight)
+
+
Sets the padding to the right of a glyph on the GlyphPage to allow for effects to be drawn. +

+

+
+
+
+
Parameters:
paddingRight - The padding at the right of the glyphs when drawn
+
+
+
+ +

+getPaddingAdvanceX

+
+public int getPaddingAdvanceX()
+
+
Gets the additional amount to offset glyphs on the x axis. +

+

+
+
+
+ +
Returns:
The padding applied for each horizontal advance (i.e. when a glyph is rendered)
+
+
+
+ +

+setPaddingAdvanceX

+
+public void setPaddingAdvanceX(int paddingAdvanceX)
+
+
Sets the additional amount to offset glyphs on the x axis. This is typically set to a negative number when left or right + padding is used so that glyphs are not spaced too far apart. +

+

+
+
+
+
Parameters:
paddingAdvanceX - The padding applied for each horizontal advance (i.e. when a glyph is rendered)
+
+
+
+ +

+getPaddingAdvanceY

+
+public int getPaddingAdvanceY()
+
+
Gets the additional amount to offset a line of text on the y axis. +

+

+
+
+
+ +
Returns:
The padding applied for each vertical advance (i.e. when a glyph is rendered)
+
+
+
+ +

+setPaddingAdvanceY

+
+public void setPaddingAdvanceY(int paddingAdvanceY)
+
+
Sets the additional amount to offset a line of text on the y axis. This is typically set to a negative number when top or + bottom padding is used so that lines of text are not spaced too far apart. +

+

+
+
+
+
Parameters:
paddingAdvanceY - The padding applied for each vertical advance (i.e. when a glyph is rendered)
+
+
+
+ +

+getLineHeight

+
+public int getLineHeight()
+
+
Returns the distance from one line of text to the next. This is the sum of the descent, ascent, leading, padding top, + padding bottom, and padding advance y. To change the line height, use setPaddingAdvanceY(int). +

+

+
Specified by:
getLineHeight in interface Font
+
+
+ +
Returns:
The maxium height of any line drawn by this font
+
+
+
+ +

+getAscent

+
+public int getAscent()
+
+
Gets the distance from the baseline to the y drawing location. +

+

+
+
+
+ +
Returns:
The ascent of this font
+
+
+
+ +

+getDescent

+
+public int getDescent()
+
+
Gets the distance from the baseline to the bottom of most alphanumeric characters + with descenders. +

+

+
+
+
+ +
Returns:
The distance from the baseline to the bottom of the font
+
+
+
+ +

+getLeading

+
+public int getLeading()
+
+
Gets the extra distance between the descent of one line of text to the ascent of the next. +

+

+
+
+
+ +
Returns:
The leading edge of the font
+
+
+
+ +

+getGlyphPageWidth

+
+public int getGlyphPageWidth()
+
+
Returns the width of the backing textures. +

+

+
+
+
+ +
Returns:
The width of the glyph pages in this font
+
+
+
+ +

+setGlyphPageWidth

+
+public void setGlyphPageWidth(int glyphPageWidth)
+
+
Sets the width of the backing textures. Default is 512. +

+

+
+
+
+
Parameters:
glyphPageWidth - The width of the glyph pages in this font
+
+
+
+ +

+getGlyphPageHeight

+
+public int getGlyphPageHeight()
+
+
Returns the height of the backing textures. +

+

+
+
+
+ +
Returns:
The height of the glyph pages in this font
+
+
+
+ +

+setGlyphPageHeight

+
+public void setGlyphPageHeight(int glyphPageHeight)
+
+
Sets the height of the backing textures. Default is 512. +

+

+
+
+
+
Parameters:
glyphPageHeight - The width of the glyph pages in this font
+
+
+
+ +

+getGlyphPages

+
+public java.util.List getGlyphPages()
+
+
Returns the GlyphPages for this UnicodeFont. +

+

+
+
+
+ +
Returns:
The glyph pages that have been loaded into this font
+
+
+
+ +

+getEffects

+
+public java.util.List getEffects()
+
+
Returns a list of Effects that will be applied + to the glyphs. +

+

+
+
+
+ +
Returns:
The list of effects to be applied to the font
+
+
+
+ +

+isCaching

+
+public boolean isCaching()
+
+
Returns true if this UnicodeFont caches the glyph drawing instructions to + improve performance. +

+

+
+
+
+ +
Returns:
True if caching is turned on
+
+
+
+ +

+setDisplayListCaching

+
+public void setDisplayListCaching(boolean displayListCaching)
+
+
Sets if this UnicodeFont caches the glyph drawing instructions to improve performance. + Default is true. Text rendering is very slow without display list caching. +

+

+
+
+
+
Parameters:
displayListCaching - True if caching should be turned on
+
+
+
+ +

+getFontFile

+
+public java.lang.String getFontFile()
+
+
Returns the path to the TTF file for this UnicodeFont, or null. If this UnicodeFont was created without specifying the TTF + file, it will try to determine the path using Sun classes. If this fails, null is returned. +

+

+
+
+
+ +
Returns:
The reference to the font file that the kerning was loaded from
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/XMLPackedSheet.html b/lib/javadoc/org/newdawn/slick/XMLPackedSheet.html new file mode 100644 index 000000000..34a0e8301 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/XMLPackedSheet.html @@ -0,0 +1,272 @@ + + + + + + +XMLPackedSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick +
+Class XMLPackedSheet

+
+java.lang.Object
+  extended by org.newdawn.slick.XMLPackedSheet
+
+
+
+
public class XMLPackedSheet
extends java.lang.Object
+ + +

+A sprite sheet based on an XML descriptor generated from the simple slick tool +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XMLPackedSheet(java.lang.String imageRef, + java.lang.String xmlRef) + +
+          Create a new XML packed sheet from the XML output by the slick tool
+  + + + + + + + + + + + +
+Method Summary
+ ImagegetSprite(java.lang.String name) + +
+          Get a sprite by it's given name
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMLPackedSheet

+
+public XMLPackedSheet(java.lang.String imageRef,
+                      java.lang.String xmlRef)
+               throws SlickException
+
+
Create a new XML packed sheet from the XML output by the slick tool +

+

+
Parameters:
imageRef - The reference to the image
xmlRef - The reference to the XML +
Throws: +
SlickException - Indicates a failure to parse the XML or read the image
+
+ + + + + + + + +
+Method Detail
+ +

+getSprite

+
+public Image getSprite(java.lang.String name)
+
+
Get a sprite by it's given name +

+

+
Parameters:
name - The name of the sprite to retrieve +
Returns:
The sprite from the sheet or null if the name isn't used in this sheet
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AngelCodeFont.html b/lib/javadoc/org/newdawn/slick/class-use/AngelCodeFont.html new file mode 100644 index 000000000..7efad87bb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AngelCodeFont.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.AngelCodeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AngelCodeFont

+
+No usage of org.newdawn.slick.AngelCodeFont +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Animation.html b/lib/javadoc/org/newdawn/slick/class-use/Animation.html new file mode 100644 index 000000000..d05a012d5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Animation.html @@ -0,0 +1,209 @@ + + + + + + +Uses of Class org.newdawn.slick.Animation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Animation

+
+ + + + + + + + + +
+Packages that use Animation
org.newdawn.slick  
+  +

+ + + + + +
+Uses of Animation in org.newdawn.slick
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick that return Animation
+ AnimationAnimation.copy() + +
+          Create a copy of this animation.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Animation
+ voidGraphics.drawAnimation(Animation anim, + float x, + float y) + +
+          Draw an animation to this graphics context
+ voidGraphics.drawAnimation(Animation anim, + float x, + float y, + Color col) + +
+          Draw an animation to this graphics context
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AppGameContainer.html b/lib/javadoc/org/newdawn/slick/class-use/AppGameContainer.html new file mode 100644 index 000000000..db89f95f4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AppGameContainer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.AppGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AppGameContainer

+
+No usage of org.newdawn.slick.AppGameContainer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ConsolePanel.html b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ConsolePanel.html new file mode 100644 index 000000000..6f513d6e0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ConsolePanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.AppletGameContainer.ConsolePanel (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AppletGameContainer.ConsolePanel

+
+No usage of org.newdawn.slick.AppletGameContainer.ConsolePanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.Container.html b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.Container.html new file mode 100644 index 000000000..f923637d5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.Container.html @@ -0,0 +1,194 @@ + + + + + + +Uses of Class org.newdawn.slick.AppletGameContainer.Container (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AppletGameContainer.Container

+
+ + + + + + + + + +
+Packages that use AppletGameContainer.Container
org.newdawn.slick  
+  +

+ + + + + +
+Uses of AppletGameContainer.Container in org.newdawn.slick
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as AppletGameContainer.Container
+protected  AppletGameContainer.ContainerAppletGameContainer.container + +
+          The actual container implementation
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick with parameters of type AppletGameContainer.Container
AppletGameContainer.ContainerPanel(AppletGameContainer.Container container) + +
+          Create a new panel
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ContainerPanel.html b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ContainerPanel.html new file mode 100644 index 000000000..fc40fd86e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.ContainerPanel.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.AppletGameContainer.ContainerPanel (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AppletGameContainer.ContainerPanel

+
+ + + + + + + + + +
+Packages that use AppletGameContainer.ContainerPanel
org.newdawn.slick  
+  +

+ + + + + +
+Uses of AppletGameContainer.ContainerPanel in org.newdawn.slick
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as AppletGameContainer.ContainerPanel
+protected  AppletGameContainer.ContainerPanelAppletGameContainer.canvas + +
+          The GL Canvas used for this container
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.html b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.html new file mode 100644 index 000000000..c22bbbb63 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/AppletGameContainer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.AppletGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.AppletGameContainer

+
+No usage of org.newdawn.slick.AppletGameContainer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/BasicGame.html b/lib/javadoc/org/newdawn/slick/class-use/BasicGame.html new file mode 100644 index 000000000..31ca74211 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/BasicGame.html @@ -0,0 +1,703 @@ + + + + + + +Uses of Class org.newdawn.slick.BasicGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.BasicGame

+
+ + + + + + + + + +
+Packages that use BasicGame
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of BasicGame in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of BasicGame in org.newdawn.slick.tests
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/BigImage.html b/lib/javadoc/org/newdawn/slick/class-use/BigImage.html new file mode 100644 index 000000000..27eaec8c5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/BigImage.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.BigImage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.BigImage

+
+No usage of org.newdawn.slick.BigImage +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/CachedRender.html b/lib/javadoc/org/newdawn/slick/class-use/CachedRender.html new file mode 100644 index 000000000..f5877e6f3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/CachedRender.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.CachedRender (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.CachedRender

+
+No usage of org.newdawn.slick.CachedRender +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/CanvasGameContainer.html b/lib/javadoc/org/newdawn/slick/class-use/CanvasGameContainer.html new file mode 100644 index 000000000..ce630b99f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/CanvasGameContainer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.CanvasGameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.CanvasGameContainer

+
+No usage of org.newdawn.slick.CanvasGameContainer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Color.html b/lib/javadoc/org/newdawn/slick/class-use/Color.html new file mode 100644 index 000000000..cce517926 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Color.html @@ -0,0 +1,1463 @@ + + + + + + +Uses of Class org.newdawn.slick.Color (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Color

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Color
org.newdawn.slick  
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick declared as Color
+static ColorColor.black + +
+          The fixed colour black
+static ColorColor.blue + +
+          The fixed colour blue
+protected  Color[]Image.corners + +
+          The colours for each of the corners
+static ColorColor.cyan + +
+          The fixed colour cyan
+static ColorColor.darkGray + +
+          The fixed colour dark gray
+static ColorColor.gray + +
+          The fixed colour gray
+static ColorColor.green + +
+          The fixed colour green
+static ColorColor.lightGray + +
+          The fixed colour light gray
+static ColorColor.magenta + +
+          The fixed colour dark magenta
+static ColorColor.orange + +
+          The fixed colour dark orange
+static ColorColor.pink + +
+          The fixed colour dark pink
+static ColorColor.red + +
+          The fixed colour red
+static ColorColor.transparent + +
+          The fixed color transparent
+static ColorColor.white + +
+          The fixed colour white
+static ColorColor.yellow + +
+          The fixed colour yellow
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Color
+ ColorColor.addToCopy(Color c) + +
+          Add another colour to this one
+ ColorColor.brighter() + +
+          Make a brighter instance of this colour
+ ColorColor.brighter(float scale) + +
+          Make a brighter instance of this colour
+ ColorShapeFill.colorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ ColorColor.darker() + +
+          Make a darker instance of this colour
+ ColorColor.darker(float scale) + +
+          Make a darker instance of this colour
+static ColorColor.decode(java.lang.String nm) + +
+          Decode a number in a string and process it as a colour + reference.
+ ColorGraphics.getBackground() + +
+          Get the current graphics context background color
+ ColorGraphics.getColor() + +
+          Get the color in use by this graphics context
+ ColorImage.getColor(int x, + int y) + +
+          Get the colour of a pixel at a specified location in this image
+ ColorBigImage.getColor(int x, + int y) + +
+          Not supported in BigImage
+ ColorGraphics.getPixel(int x, + int y) + +
+          Get the colour of a single pixel in this graphics context
+ ColorColor.multiply(Color c) + +
+          Multiply this color by another
+ ColorColor.scaleCopy(float value) + +
+          Scale the components of the colour by the given value
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Color
+ voidColor.add(Color c) + +
+          Add another colour to this one
+ ColorColor.addToCopy(Color c) + +
+          Add another colour to this one
+ voidImage.draw(float x, + float y, + Color filter) + +
+          Draw this image at the specified location
+ voidBigImage.draw(float x, + float y, + Color filter) + +
+           
+ voidAnimation.draw(float x, + float y, + Color filter) + +
+          Draw the animation at a specific location
+ voidImage.draw(float x, + float y, + float scale, + Color filter) + +
+          Draw the image with a given scale
+ voidBigImage.draw(float x, + float y, + float scale, + Color filter) + +
+           
+ voidImage.draw(float x, + float y, + float width, + float height, + Color filter) + +
+          Draw this image at a specified location and size
+ voidBigImage.draw(float x, + float y, + float width, + float height, + Color filter) + +
+           
+ voidAnimation.draw(float x, + float y, + float width, + float height, + Color col) + +
+          Draw the animation
+ voidImage.draw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen
+ voidBigImage.draw(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+           
+ voidGraphics.drawAnimation(Animation anim, + float x, + float y, + Color col) + +
+          Draw an animation to this graphics context
+ UnicodeFont.DisplayListUnicodeFont.drawDisplayList(float x, + float y, + java.lang.String text, + Color color, + int startIndex, + int endIndex) + +
+          Identical to UnicodeFont.drawString(float, float, String, Color, int, int) but returns a + DisplayList which provides access to the width and height of the text drawn.
+ voidImage.drawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+          Draw a section of this image at a particular location and scale on the screen, while this + is image is "in use", i.e.
+ voidBigImage.drawEmbedded(float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color filter) + +
+           
+ voidImage.drawFlash(float x, + float y, + float width, + float height, + Color col) + +
+          Draw this image at a specified location and size as a silohette
+ voidBigImage.drawFlash(float x, + float y, + float width, + float height, + Color col) + +
+           
+ voidAnimation.drawFlash(float x, + float y, + float width, + float height, + Color col) + +
+          Draw the animation
+ voidGraphics.drawGradientLine(float x1, + float y1, + Color Color1, + float x2, + float y2, + Color Color2) + +
+          Draw a line with a gradient between the two points.
+ voidGraphics.drawImage(Image image, + float x, + float y, + Color col) + +
+          Draw an image to the screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidImage.drawSheared(float x, + float y, + float hshear, + float vshear, + Color filter) + +
+          Draw this image at a specified location and size
+ voidUnicodeFont.drawString(float x, + float y, + java.lang.String text, + Color col) + +
+           
+ voidTrueTypeFont.drawString(float x, + float y, + java.lang.String whatchars, + Color color) + +
+          Draw a string
+ voidSpriteSheetFont.drawString(float x, + float y, + java.lang.String text, + Color col) + +
+           
+ voidFont.drawString(float x, + float y, + java.lang.String text, + Color col) + +
+          Draw a string to the screen
+ voidAngelCodeFont.drawString(float x, + float y, + java.lang.String text, + Color col) + +
+           
+ voidUnicodeFont.drawString(float x, + float y, + java.lang.String text, + Color color, + int startIndex, + int endIndex) + +
+           
+ voidTrueTypeFont.drawString(float x, + float y, + java.lang.String whatchars, + Color color, + int startIndex, + int endIndex) + +
+           
+ voidSpriteSheetFont.drawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+           
+ voidFont.drawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+          Draw part of a string to the screen.
+ voidAngelCodeFont.drawString(float x, + float y, + java.lang.String text, + Color col, + int startIndex, + int endIndex) + +
+           
+ ColorColor.multiply(Color c) + +
+          Multiply this color by another
+ voidGraphics.setBackground(Color color) + +
+          Set the background colour of the graphics context.
+ voidGraphics.setColor(Color color) + +
+          Set the color to use when rendering to this context
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type Color
Color(Color color) + +
+          Copy constructor
Image(java.lang.String ref, + boolean flipped, + int f, + Color transparent) + +
+          Create an image based on a file at the specified location
Image(java.lang.String ref, + Color trans) + +
+          Create an image based on a file at the specified location
PackedSpriteSheet(java.lang.String def, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + int filter, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col, + int spacing) + +
+          Create a new sprite sheet based on a image location
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.fills
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.fills that return Color
+ ColorGradientFill.colorAt(float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ ColorGradientFill.colorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ ColorGradientFill.getEndColor() + +
+          Get the colour at the end control point
+ ColorGradientFill.getStartColor() + +
+          Get the colour at the start control point
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.fills with parameters of type Color
+ voidGradientFill.setEndColor(Color color) + +
+          Set the colour to apply at the end control's position
+ voidGradientFill.setStartColor(Color color) + +
+          Set the colour to apply at the start control's position
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.fills with parameters of type Color
GradientFill(float sx, + float sy, + Color startCol, + float ex, + float ey, + Color endCol) + +
+          Create a gradient fill
GradientFill(float sx, + float sy, + Color startCol, + float ex, + float ey, + Color endCol, + boolean local) + +
+          Create a gradient fill
GradientFill(Vector2f start, + Color startCol, + Vector2f end, + Color endCol, + boolean local) + +
+          Create a gradient fill
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type Color
+ voidTextField.setBackgroundColor(Color color) + +
+          Set the background color.
+ voidTextField.setBorderColor(Color color) + +
+          Set the border color.
+ voidMouseOverArea.setMouseDownColor(Color color) + +
+          Set the color to be used when the mouse is down the area
+ voidMouseOverArea.setMouseOverColor(Color color) + +
+          Set the color to be used when the mouse is over the area
+ voidMouseOverArea.setNormalColor(Color color) + +
+          Set the normal color used on the image in the default state
+ voidTextField.setTextColor(Color color) + +
+          Set the text color.
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + +
Fields in org.newdawn.slick.particles declared as Color
+ ColorConfigurableEmitter.ColorRecord.col + +
+          The color at this position
+protected  ColorParticle.color + +
+          The colour of the particle
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.particles that return Color
+ ColorParticle.getColor() + +
+          Get the color of this particle
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type Color
+ voidConfigurableEmitter.addColorPoint(float pos, + Color col) + +
+          Add a point in the colour cycle
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory, + ParticleSystem system, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.lang.String ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.particles with parameters of type Color
ConfigurableEmitter.ColorRecord(float pos, + Color col) + +
+          Create a new record
ParticleSystem(java.lang.String defaultSpriteRef, + int maxParticles, + Color mask) + +
+          Create a new particle system
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.state.transition with parameters of type Color
BlobbyTransition(Color background) + +
+          Create a new transition
FadeInTransition(Color color) + +
+          Create a new fade in transition
FadeInTransition(Color color, + int fadeTime) + +
+          Create a new fade in transition
FadeOutTransition(Color color) + +
+          Create a new fade out transition
FadeOutTransition(Color color, + int fadeTime) + +
+          Create a new fade out transition
HorizontalSplitTransition(Color background) + +
+          Create a new transition
RotateTransition(Color background) + +
+          Create a new transition
SelectTransition(Color background) + +
+          Create a new transition
VerticalSplitTransition(Color background) + +
+          Create a new transition
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that return Color
+ ColorNonGeometricData.getAsColor(java.lang.String attribute) + +
+          Get an attribute value converted to a color.
+ ColorGradient.getColorAt(float p) + +
+          Get the intepolated colour at the given location on the gradient
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Color
+ voidGradient.addStep(float location, + Color c) + +
+          Add a colour step/stop to the gradient
+  +

+ + + + + +
+Uses of Color in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util that return Color
+ ColorLocatedImage.getColor() + +
+          Get the colour filter being applied
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type Color
+static voidFontUtils.drawCenter(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text center justified
+static voidFontUtils.drawRight(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text right justified
+static intFontUtils.drawString(Font font, + java.lang.String s, + int alignment, + int x, + int y, + int width, + Color color) + +
+          Draw a string
+ voidLocatedImage.setColor(Color c) + +
+          Set the colour filter to apply to the image
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/ControlledInputReciever.html b/lib/javadoc/org/newdawn/slick/class-use/ControlledInputReciever.html new file mode 100644 index 000000000..fadb918f3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/ControlledInputReciever.html @@ -0,0 +1,972 @@ + + + + + + +Uses of Interface org.newdawn.slick.ControlledInputReciever (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.ControlledInputReciever

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use ControlledInputReciever
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subinterfaces of ControlledInputReciever in org.newdawn.slick
+ interfaceControllerListener + +
+          Description of classes capable of responding to controller events
+ interfaceInputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
+ interfaceKeyListener + +
+          Describes classes capable of responding to key presses
+ interfaceMouseListener + +
+          Description of classes that respond to mouse related input events
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement ControlledInputReciever
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.gui that implement ControlledInputReciever
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Subinterfaces of ControlledInputReciever in org.newdawn.slick.state
+ interfaceGameState + +
+          A single state building up part of the game.
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.state that implement ControlledInputReciever
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement ControlledInputReciever
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement ControlledInputReciever
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+ + + + + +
+Uses of ControlledInputReciever in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement ControlledInputReciever
+ classInputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/ControllerListener.html b/lib/javadoc/org/newdawn/slick/class-use/ControllerListener.html new file mode 100644 index 000000000..8bc37ebcc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/ControllerListener.html @@ -0,0 +1,972 @@ + + + + + + +Uses of Interface org.newdawn.slick.ControllerListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.ControllerListener

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use ControllerListener
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick
+  +

+ + + + + + + + + +
Subinterfaces of ControllerListener in org.newdawn.slick
+ interfaceInputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement ControllerListener
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type ControllerListener
+ voidInput.addControllerListener(ControllerListener listener) + +
+          Add a controller listener to be notified of controller input events
+ voidInput.removeControllerListener(ControllerListener listener) + +
+          Remove a controller listener that will no longer be notified
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.gui that implement ControllerListener
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Subinterfaces of ControllerListener in org.newdawn.slick.state
+ interfaceGameState + +
+          A single state building up part of the game.
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.state that implement ControllerListener
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement ControllerListener
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement ControllerListener
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+ + + + + +
+Uses of ControllerListener in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement ControllerListener
+ classInputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Font.html b/lib/javadoc/org/newdawn/slick/class-use/Font.html new file mode 100644 index 000000000..512fa19a9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Font.html @@ -0,0 +1,424 @@ + + + + + + +Uses of Interface org.newdawn.slick.Font (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.Font

+
+ + + + + + + + + + + + + + + + + +
+Packages that use Font
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Font in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick that implement Font
+ classAngelCodeFont + +
+          A font implementation that will parse BMFont format font files.
+ classSpriteSheetFont + +
+          A font implementation that will use the graphics inside a SpriteSheet for its data.
+ classTrueTypeFont + +
+          A TrueType font implementation for Slick
+ classUnicodeFont + +
+          A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as Font
+protected static FontGraphics.DEFAULT_FONT + +
+          The default font to use
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Font
+ FontGameContainer.getDefaultFont() + +
+          Get the default system font
+ FontGraphics.getFont() + +
+          Get the current font
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Font
+ voidGameContainer.setDefaultFont(Font font) + +
+          Set the default font that will be intialised in the graphics held in this container
+ voidGraphics.setFont(Font font) + +
+          Set the font to be used when rendering text
+  +

+ + + + + +
+Uses of Font in org.newdawn.slick.gui
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.gui that return Font
+ FontGUIContext.getDefaultFont() + +
+          Get the default system font
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.gui with parameters of type Font
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height) + +
+          Create a new text field
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new text field
+  +

+ + + + + +
+Uses of Font in org.newdawn.slick.util
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type Font
+static voidFontUtils.drawCenter(Font font, + java.lang.String s, + int x, + int y, + int width) + +
+          Draw text center justified
+static voidFontUtils.drawCenter(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text center justified
+static voidFontUtils.drawLeft(Font font, + java.lang.String s, + int x, + int y) + +
+          Draw text left justified
+static voidFontUtils.drawRight(Font font, + java.lang.String s, + int x, + int y, + int width) + +
+          Draw text right justified
+static voidFontUtils.drawRight(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text right justified
+static intFontUtils.drawString(Font font, + java.lang.String s, + int alignment, + int x, + int y, + int width, + Color color) + +
+          Draw a string
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Game.html b/lib/javadoc/org/newdawn/slick/class-use/Game.html new file mode 100644 index 000000000..08c3180a3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Game.html @@ -0,0 +1,916 @@ + + + + + + +Uses of Interface org.newdawn.slick.Game (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.Game

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use Game
org.newdawn.slick  
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Game in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick that implement Game
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+ classScalableGame + +
+          A wrapper to allow any game to be scalable.
+  +

+ + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick declared as Game
+protected  GameGameContainer.game + +
+          The game being managed
+protected  GameCanvasGameContainer.game + +
+          The game being held in this container
+protected  GameGameContainer.lastGame + +
+          The last game started
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type Game
AppGameContainer(Game game) + +
+          Create a new container wrapping a game
AppGameContainer(Game game, + int width, + int height, + boolean fullscreen) + +
+          Create a new container wrapping a game
AppletGameContainer.Container(Game game) + +
+          Create a new container wrapped round the game
CanvasGameContainer(Game game) + +
+          Create a new panel
CanvasGameContainer(Game game, + boolean shared) + +
+          Create a new panel
GameContainer(Game game) + +
+          Create a new game container wrapping a given game
ScalableGame(Game held, + int normalWidth, + int normalHeight) + +
+          Create a new scalable game wrapper
ScalableGame(Game held, + int normalWidth, + int normalHeight, + boolean maintainAspect) + +
+          Create a new scalable game wrapper
+  +

+ + + + + +
+Uses of Game in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.state that implement Game
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of Game in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement Game
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of Game in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type Game
+static voidBootstrap.runAsApplication(Game game, + int width, + int height, + boolean fullscreen) + +
+          Start the game as an application
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/GameContainer.html b/lib/javadoc/org/newdawn/slick/class-use/GameContainer.html new file mode 100644 index 000000000..10182960f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/GameContainer.html @@ -0,0 +1,2722 @@ + + + + + + +Uses of Class org.newdawn.slick.GameContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.GameContainer

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use GameContainer
org.newdawn.slick  
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + +
+Uses of GameContainer in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Subclasses of GameContainer in org.newdawn.slick
+ classAppGameContainer + +
+          A game container that will display the game as an stand alone + application.
+ classAppletGameContainer.Container + +
+          A game container to provide the applet context
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick that return GameContainer
+ GameContainerCanvasGameContainer.getContainer() + +
+          Get the GameContainer providing this canvas
+ GameContainerAppletGameContainer.getContainer() + +
+          Get the GameContainer providing this applet
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type GameContainer
+ voidScalableGame.init(GameContainer container) + +
+           
+ voidGame.init(GameContainer container) + +
+          Initialise the game.
+abstract  voidBasicGame.init(GameContainer container) + +
+           
+ voidScalableGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGame.render(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+protected  voidScalableGame.renderOverlay(GameContainer container, + Graphics g) + +
+          Render the overlay that will sit over the scaled screen
+ voidScalableGame.update(GameContainer container, + int delta) + +
+           
+ voidGame.update(GameContainer container, + int delta) + +
+          Update the game logic here.
+abstract  voidBasicGame.update(GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of GameContainer in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.state that return GameContainer
+ GameContainerStateBasedGame.getContainer() + +
+          Get the container holding this game
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type GameContainer
+ voidGameState.enter(GameContainer container, + StateBasedGame game) + +
+          Notification that we've entered this game state
+ voidBasicGameState.enter(GameContainer container, + StateBasedGame game) + +
+           
+ voidStateBasedGame.init(GameContainer container) + +
+           
+ voidGameState.init(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+abstract  voidStateBasedGame.initStatesList(GameContainer container) + +
+          Initialise the list of states making up this game
+ voidGameState.leave(GameContainer container, + StateBasedGame game) + +
+          Notification that we're leaving this game state
+ voidBasicGameState.leave(GameContainer container, + StateBasedGame game) + +
+           
+protected  voidStateBasedGame.postRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the game level after the current state + and/or transition have been rendered
+protected  voidStateBasedGame.postUpdateState(GameContainer container, + int delta) + +
+          User hook for rendering at the game level after the current state + and/or transition have been updated
+protected  voidStateBasedGame.preRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the before the current state + and/or transition have been rendered
+protected  voidStateBasedGame.preUpdateState(GameContainer container, + int delta) + +
+          User hook for updating at the game before the current state + and/or transition have been updated
+ voidStateBasedGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGameState.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidStateBasedGame.update(GameContainer container, + int delta) + +
+           
+ voidGameState.update(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+  +

+ + + + + +
+Uses of GameContainer in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state.transition with parameters of type GameContainer
+ voidVerticalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidSelectTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is has just rendered the second state is the cross + transition.
+ voidVerticalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidSelectTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRenderFirstState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the first state is the cross + transition.
+ voidCrossStateTransition.preRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the second state is the cross + transition.
+ voidVerticalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ voidSelectTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidRotateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidHorizontalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidFadeOutTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidFadeInTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidEmptyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCrossStateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCombinedTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidBlobbyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of GameContainer in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type GameContainer
+ voidUnicodeFontTest.init(GameContainer container) + +
+           
+ voidTrueTypeFontPerformanceTest.init(GameContainer container) + +
+           
+ voidTransparentColorTest.init(GameContainer container) + +
+           
+ voidTransformTest2.init(GameContainer container) + +
+           
+ voidTransformTest.init(GameContainer container) + +
+           
+ voidTileMapTest.init(GameContainer container) + +
+           
+ voidTexturePaintTest.init(GameContainer container) + +
+           
+ voidTestBox.init(GameContainer c) + +
+           
+ voidSpriteSheetFontTest.init(GameContainer container) + +
+           
+ voidSoundURLTest.init(GameContainer container) + +
+           
+ voidSoundTest.init(GameContainer container) + +
+           
+ voidSoundPositionTest.init(GameContainer container) + +
+           
+ voidSlickCallableTest.init(GameContainer container) + +
+           
+ voidShapeTest.init(GameContainer container) + +
+           
+ voidScalableTest.init(GameContainer container) + +
+           
+ voidSavedStateTest.init(GameContainer container) + +
+           
+ voidPureFontTest.init(GameContainer container) + +
+           
+ voidPolygonTest.init(GameContainer container) + +
+           
+ voidPedigreeTest.init(GameContainer container) + +
+           
+ voidParticleTest.init(GameContainer container) + +
+           
+ voidPackedSheetTest.init(GameContainer container) + +
+           
+ voidNavMeshTest.init(GameContainer container) + +
+          Initialise resources and the map data
+ voidMusicListenerTest.init(GameContainer container) + +
+           
+ voidMorphShapeTest.init(GameContainer container) + +
+           
+ voidMorphSVGTest.init(GameContainer container) + +
+           
+ voidLineRenderTest.init(GameContainer container) + +
+           
+ voidLameTest.init(GameContainer container) + +
+           
+ voidKeyRepeatTest.init(GameContainer container) + +
+           
+ voidIsoTiledTest.init(GameContainer container) + +
+           
+ voidInputTest.init(GameContainer container) + +
+           
+ voidInputProviderTest.init(GameContainer container) + +
+           
+ voidInkscapeTest.init(GameContainer container) + +
+           
+ voidImageTest.init(GameContainer container) + +
+           
+ voidImageReadTest.init(GameContainer container) + +
+           
+ voidImageOutTest.init(GameContainer container) + +
+           
+ voidImageMemTest.init(GameContainer container) + +
+           
+ voidImageGraphicsTest.init(GameContainer container) + +
+           
+ voidImageCornerTest.init(GameContainer container) + +
+           
+ voidImageBufferTest.init(GameContainer container) + +
+           
+ voidImageBufferEndianTest.init(GameContainer container) + +
+           
+ voidGraphicsTest.init(GameContainer container) + +
+           
+ voidGradientTest.init(GameContainer container) + +
+           
+ voidGradientImageTest.init(GameContainer container) + +
+           
+ voidGeomUtilTileTest.init(GameContainer container) + +
+           
+ voidGeomUtilTest.init(GameContainer container) + +
+           
+ voidGeomTest.init(GameContainer container) + +
+           
+ voidGeomAccuracyTest.init(GameContainer container) + +
+           
+ voidGUITest.init(GameContainer container) + +
+           
+ voidFontTest.init(GameContainer container) + +
+           
+ voidFontPerformanceTest.init(GameContainer container) + +
+           
+ voidFlashTest.init(GameContainer container) + +
+           
+ voidDuplicateEmitterTest.init(GameContainer container) + +
+          load ressources (the particle system) and create our duplicate emitters + and place them nicely on the screen
+ voidDoubleClickTest.init(GameContainer container) + +
+           
+ voidDistanceFieldTest.init(GameContainer container) + +
+           
+ voidDeferredLoadingTest.init(GameContainer container) + +
+           
+ voidCurveTest.init(GameContainer container) + +
+           
+ voidCopyAreaAlphaTest.init(GameContainer container) + +
+           
+ voidClipTest.init(GameContainer container) + +
+           
+ voidCanvasSizeTest.init(GameContainer container) + +
+           
+ voidCanvasContainerTest.init(GameContainer container) + +
+           
+ voidCachedRenderTest.init(GameContainer container) + +
+           
+ voidBigSpriteSheetTest.init(GameContainer container) + +
+           
+ voidBigImageTest.init(GameContainer container) + +
+           
+ voidAntiAliasTest.init(GameContainer container) + +
+           
+ voidAnimationTest.init(GameContainer container) + +
+           
+ voidAlphaMapTest.init(GameContainer container) + +
+           
+ voidTransitionTest.initStatesList(GameContainer container) + +
+           
+ voidStateBasedTest.initStatesList(GameContainer container) + +
+           
+ voidUnicodeFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTrueTypeFontPerformanceTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTransparentColorTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTransformTest2.render(GameContainer contiainer, + Graphics g) + +
+           
+ voidTransformTest.render(GameContainer contiainer, + Graphics g) + +
+           
+ voidTileMapTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTexturePaintTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTestBox.render(GameContainer container, + Graphics g) + +
+           
+ voidSpriteSheetFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundURLTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundPositionTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSlickCallableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidShapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidScalableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSavedStateTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPureFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPolygonTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPedigreeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidParticleTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPackedSheetTest.render(GameContainer container, + Graphics g) + +
+           
+ voidNavMeshTest.render(GameContainer container, + Graphics g) + +
+          Render the game - in this case render the map and diagnostic data
+ voidMusicListenerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphShapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphSVGTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLineRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLameTest.render(GameContainer container, + Graphics g) + +
+           
+ voidKeyRepeatTest.render(GameContainer container, + Graphics g) + +
+           
+ voidIsoTiledTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInputTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInputProviderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInkscapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageReadTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageOutTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageMemTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageCornerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageBufferTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageBufferEndianTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGradientTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGradientImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTileTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomAccuracyTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGUITest.render(GameContainer container, + Graphics g) + +
+           
+ voidFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidFontPerformanceTest.render(GameContainer container, + Graphics g) + +
+           
+ voidFlashTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDuplicateEmitterTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDoubleClickTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDistanceFieldTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDeferredLoadingTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCurveTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCopyAreaAlphaTest.render(GameContainer container, + Graphics g) + +
+           
+ voidClipTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCanvasSizeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCanvasContainerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCachedRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidBigSpriteSheetTest.render(GameContainer container, + Graphics g) + +
+           
+ voidBigImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAntiAliasTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAnimationTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAlphaMapTest.render(GameContainer container, + Graphics g) + +
+           
+ voidUnicodeFontTest.update(GameContainer container, + int delta) + +
+           
+ voidTrueTypeFontPerformanceTest.update(GameContainer container, + int delta) + +
+           
+ voidTransparentColorTest.update(GameContainer container, + int delta) + +
+           
+ voidTransformTest2.update(GameContainer container, + int delta) + +
+           
+ voidTransformTest.update(GameContainer container, + int delta) + +
+           
+ voidTileMapTest.update(GameContainer container, + int delta) + +
+           
+ voidTexturePaintTest.update(GameContainer container, + int delta) + +
+           
+ voidTestBox.update(GameContainer container, + int delta) + +
+           
+ voidSpriteSheetFontTest.update(GameContainer container, + int delta) + +
+           
+ voidSoundURLTest.update(GameContainer container, + int delta) + +
+           
+ voidSoundTest.update(GameContainer container, + int delta) + +
+           
+ voidSoundPositionTest.update(GameContainer container, + int delta) + +
+           
+ voidSlickCallableTest.update(GameContainer container, + int delta) + +
+           
+ voidShapeTest.update(GameContainer container, + int delta) + +
+           
+ voidScalableTest.update(GameContainer container, + int delta) + +
+           
+ voidSavedStateTest.update(GameContainer container, + int delta) + +
+           
+ voidPureFontTest.update(GameContainer container, + int delta) + +
+           
+ voidPolygonTest.update(GameContainer container, + int delta) + +
+           
+ voidPedigreeTest.update(GameContainer container, + int delta) + +
+           
+ voidParticleTest.update(GameContainer container, + int delta) + +
+           
+ voidPackedSheetTest.update(GameContainer container, + int delta) + +
+           
+ voidNavMeshTest.update(GameContainer container, + int delta) + +
+          Update data map etc
+ voidMusicListenerTest.update(GameContainer container, + int delta) + +
+           
+ voidMorphShapeTest.update(GameContainer container, + int delta) + +
+           
+ voidMorphSVGTest.update(GameContainer container, + int delta) + +
+           
+ voidLineRenderTest.update(GameContainer container, + int delta) + +
+           
+ voidLameTest.update(GameContainer container, + int delta) + +
+           
+ voidKeyRepeatTest.update(GameContainer container, + int delta) + +
+           
+ voidIsoTiledTest.update(GameContainer container, + int delta) + +
+           
+ voidInputTest.update(GameContainer container, + int delta) + +
+           
+ voidInputProviderTest.update(GameContainer container, + int delta) + +
+           
+ voidInkscapeTest.update(GameContainer container, + int delta) + +
+           
+ voidImageTest.update(GameContainer container, + int delta) + +
+           
+ voidImageReadTest.update(GameContainer container, + int delta) + +
+           
+ voidImageOutTest.update(GameContainer container, + int delta) + +
+           
+ voidImageMemTest.update(GameContainer container, + int delta) + +
+           
+ voidImageGraphicsTest.update(GameContainer container, + int delta) + +
+           
+ voidImageCornerTest.update(GameContainer container, + int delta) + +
+           
+ voidImageBufferTest.update(GameContainer container, + int delta) + +
+           
+ voidImageBufferEndianTest.update(GameContainer container, + int delta) + +
+           
+ voidGraphicsTest.update(GameContainer container, + int delta) + +
+           
+ voidGradientTest.update(GameContainer container, + int delta) + +
+           
+ voidGradientImageTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomUtilTileTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomUtilTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomAccuracyTest.update(GameContainer container, + int delta) + +
+           
+ voidGUITest.update(GameContainer container, + int delta) + +
+           
+ voidFontTest.update(GameContainer container, + int delta) + +
+           
+ voidFontPerformanceTest.update(GameContainer container, + int delta) + +
+           
+ voidFlashTest.update(GameContainer container, + int delta) + +
+           
+ voidDuplicateEmitterTest.update(GameContainer container, + int delta) + +
+           
+ voidDoubleClickTest.update(GameContainer container, + int delta) + +
+           
+ voidDistanceFieldTest.update(GameContainer container, + int delta) + +
+           
+ voidDeferredLoadingTest.update(GameContainer container, + int delta) + +
+           
+ voidCurveTest.update(GameContainer container, + int delta) + +
+           
+ voidCopyAreaAlphaTest.update(GameContainer container, + int delta) + +
+           
+ voidClipTest.update(GameContainer container, + int delta) + +
+           
+ voidCanvasSizeTest.update(GameContainer container, + int delta) + +
+           
+ voidCanvasContainerTest.update(GameContainer container, + int delta) + +
+           
+ voidCachedRenderTest.update(GameContainer container, + int delta) + +
+           
+ voidBigSpriteSheetTest.update(GameContainer container, + int delta) + +
+           
+ voidBigImageTest.update(GameContainer container, + int delta) + +
+           
+ voidAntiAliasTest.update(GameContainer container, + int delta) + +
+           
+ voidAnimationTest.update(GameContainer container, + int delta) + +
+           
+ voidAlphaMapTest.update(GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of GameContainer in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests.states with parameters of type GameContainer
+ voidTestState3.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState2.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState1.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState3.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState2.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState1.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState3.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+ voidTestState2.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+ voidTestState1.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Graphics.html b/lib/javadoc/org/newdawn/slick/class-use/Graphics.html new file mode 100644 index 000000000..027befc5d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Graphics.html @@ -0,0 +1,1421 @@ + + + + + + +Uses of Class org.newdawn.slick.Graphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Graphics

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Graphics
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.opengl.pbuffer  
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as Graphics
+protected static GraphicsGraphics.currentGraphics + +
+          The last graphics context in use
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Graphics
+ GraphicsImage.getGraphics() + +
+          Get a graphics context that can be used to draw to this image
+ GraphicsGameContainer.getGraphics() + +
+          Get the graphics context used by this container.
+ GraphicsBigImage.getGraphics() + +
+          Not supported in BigImage
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Graphics
+ voidScalableGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGame.render(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+protected  voidScalableGame.renderOverlay(GameContainer container, + Graphics g) + +
+          Render the overlay that will sit over the scaled screen
+static voidGraphics.setCurrent(Graphics current) + +
+          Set the current graphics context in use
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type Graphics
+ voidTextField.render(GUIContext container, + Graphics g) + +
+           
+ voidMouseOverArea.render(GUIContext container, + Graphics g) + +
+           
+ voidBasicComponent.render(GUIContext container, + Graphics g) + +
+          Deprecated.  
+abstract  voidAbstractComponent.render(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+abstract  voidBasicComponent.renderImpl(GUIContext container, + Graphics g) + +
+          Deprecated. Allow the sub-component to render
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.opengl.pbuffer
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of Graphics in org.newdawn.slick.opengl.pbuffer
+ classFBOGraphics + +
+          A graphics implementation that renders to an FBO
+ classPBufferGraphics + +
+          A graphics implementation that renders to a PBuffer
+ classPBufferUniqueGraphics + +
+          A graphics implementation that renders to a PBuffer using a unique context, i.e.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl.pbuffer that return Graphics
+static GraphicsGraphicsFactory.getGraphicsForImage(Image image) + +
+          Get a graphics context for a particular image
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.state
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type Graphics
+protected  voidStateBasedGame.postRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the game level after the current state + and/or transition have been rendered
+protected  voidStateBasedGame.preRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the before the current state + and/or transition have been rendered
+ voidStateBasedGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGameState.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state.transition with parameters of type Graphics
+ voidVerticalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidSelectTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is has just rendered the second state is the cross + transition.
+ voidVerticalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidSelectTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRenderFirstState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the first state is the cross + transition.
+ voidCrossStateTransition.preRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the second state is the cross + transition.
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Graphics
+ voidSimpleDiagramRenderer.render(Graphics g) + +
+          Render the diagram to the given graphics context
+static voidSimpleDiagramRenderer.render(Graphics g, + Diagram diagram) + +
+          Utility method to render a diagram in immediate mode
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type Graphics
+ voidUnicodeFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTrueTypeFontPerformanceTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTransparentColorTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTransformTest2.render(GameContainer contiainer, + Graphics g) + +
+           
+ voidTransformTest.render(GameContainer contiainer, + Graphics g) + +
+           
+ voidTileMapTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTexturePaintTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTestBox.render(GameContainer container, + Graphics g) + +
+           
+ voidSpriteSheetFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundURLTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSoundPositionTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSlickCallableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidShapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidScalableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidSavedStateTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPureFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPolygonTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPedigreeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidParticleTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPackedSheetTest.render(GameContainer container, + Graphics g) + +
+           
+ voidNavMeshTest.render(GameContainer container, + Graphics g) + +
+          Render the game - in this case render the map and diagnostic data
+ voidMusicListenerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphShapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphSVGTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLineRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLameTest.render(GameContainer container, + Graphics g) + +
+           
+ voidKeyRepeatTest.render(GameContainer container, + Graphics g) + +
+           
+ voidIsoTiledTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInputTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInputProviderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInkscapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageReadTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageOutTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageMemTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageCornerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageBufferTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageBufferEndianTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGradientTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGradientImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTileTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomAccuracyTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGUITest.render(GameContainer container, + Graphics g) + +
+           
+ voidFontTest.render(GameContainer container, + Graphics g) + +
+           
+ voidFontPerformanceTest.render(GameContainer container, + Graphics g) + +
+           
+ voidFlashTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDuplicateEmitterTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDoubleClickTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDistanceFieldTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDeferredLoadingTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCurveTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCopyAreaAlphaTest.render(GameContainer container, + Graphics g) + +
+           
+ voidClipTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCanvasSizeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCanvasContainerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCachedRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidBigSpriteSheetTest.render(GameContainer container, + Graphics g) + +
+           
+ voidBigImageTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAntiAliasTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAnimationTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAlphaMapTest.render(GameContainer container, + Graphics g) + +
+           
+  +

+ + + + + +
+Uses of Graphics in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests.states with parameters of type Graphics
+ voidTestState3.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState2.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState1.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Image.html b/lib/javadoc/org/newdawn/slick/class-use/Image.html new file mode 100644 index 000000000..2b99221c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Image.html @@ -0,0 +1,1349 @@ + + + + + + +Uses of Class org.newdawn.slick.Image (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Image

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Image
org.newdawn.slick  
org.newdawn.slick.font  
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.imageoutSupports saving of slick images to various file types. 
org.newdawn.slick.opengl.pbuffer  
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Subclasses of Image in org.newdawn.slick
+ classBigImage + +
+          An image implementation that handles loaded images that are larger than the + maximum texture size supported by the card.
+ classSpriteSheet + +
+          A sheet of sprites that can be drawn individually
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as Image
+protected static ImageImage.inUse + +
+          The sprite sheet currently in use
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Image
+ ImageImage.copy() + +
+          Get a copy of this image.
+ ImageBigImage.copy() + +
+          Not supported in BigImage
+ ImageAnimation.getCurrentFrame() + +
+          Get the image associated with the current animation frame
+ ImageImage.getFlippedCopy(boolean flipHorizontal, + boolean flipVertical) + +
+          Get a copy image flipped on potentially two axis
+ ImageBigImage.getFlippedCopy(boolean flipHorizontal, + boolean flipVertical) + +
+           
+ ImagePackedSpriteSheet.getFullImage() + +
+          Get the full image contaning all the sprites/sections
+ ImageImageBuffer.getImage() + +
+          Get an image generated based on this buffer
+ ImageImageBuffer.getImage(int filter) + +
+          Get an image generated based on this buffer
+ ImageAnimation.getImage(int index) + +
+          Get the image assocaited with a given frame index
+ ImageImage.getScaledCopy(float scale) + +
+          Get a scaled copy of this image with a uniform scale
+ ImageBigImage.getScaledCopy(float scale) + +
+           
+ ImageImage.getScaledCopy(int width, + int height) + +
+          Get a scaled copy of this image
+ ImageBigImage.getScaledCopy(int width, + int height) + +
+           
+ ImageSpriteSheet.getSprite(int x, + int y) + +
+          Get a sprite at a particular cell on the sprite sheet
+ ImageXMLPackedSheet.getSprite(java.lang.String name) + +
+          Get a sprite by it's given name
+ ImagePackedSpriteSheet.getSprite(java.lang.String name) + +
+          Get a single named sprite from the sheet
+ ImageSpriteSheet.getSubImage(int x, + int y) + +
+          Get the sub image cached in this sprite sheet
+ ImageBigImage.getSubImage(int offsetX, + int offsetY) + +
+          Get a sub-image that builds up this image.
+ ImageImage.getSubImage(int x, + int y, + int width, + int height) + +
+          Get a sub-part of this image.
+ ImageBigImage.getSubImage(int x, + int y, + int width, + int height) + +
+           
+ ImageBigImage.getTile(int x, + int y) + +
+          Get a sub tile of this big image.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Image
+ voidAnimation.addFrame(Image frame, + int duration) + +
+          Add animation frame to the animation
+ voidGraphics.copyArea(Image target, + int x, + int y) + +
+          Copy an area of the rendered screen into an image.
+ voidGraphics.drawImage(Image image, + float x, + float y) + +
+          Draw an image to the screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + Color col) + +
+          Draw an image to the screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidGraphics.drawImage(Image image, + float x, + float y, + float x2, + float y2, + float srcx, + float srcy, + float srcx2, + float srcy2, + Color col) + +
+          Draw a section of an image at a particular location and scale on the + screen
+ voidGraphics.fillRect(float x, + float y, + float width, + float height, + Image pattern, + float offX, + float offY) + +
+          Tile a rectangle with a pattern specifing the offset from the top corner + that one tile should match
+abstract  voidGameContainer.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidAppletGameContainer.Container.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidAppGameContainer.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+           
+ voidGraphics.texture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type Image
AngelCodeFont(java.lang.String fntFile, + Image image) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + Image image, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
Animation(Image[] frames, + int duration) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int[] durations) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int[] durations, + boolean autoUpdate) + +
+          Create a new animation from a set of images
Animation(Image[] frames, + int duration, + boolean autoUpdate) + +
+          Create a new animation from a set of images
Image(Image other) + +
+          Create a texture as a copy of another
SpriteSheet(Image image, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(Image image, + int tw, + int th, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(Image image, + int tw, + int th, + int spacing, + int margin) + +
+          Create a new sprite sheet based on a image location
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.font
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.font that return Image
+ ImageGlyphPage.getImage() + +
+          Returns the backing texture for this page.
+ ImageGlyph.getImage() + +
+          The image to use for this glyph.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.font with parameters of type Image
+ voidGlyph.setImage(Image image) + +
+          Set the image that has been generated for this glyph
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Image
+static voidShapeRenderer.texture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + TexCoordGenerator gen) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.textureFit(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.textureFit(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type Image
+ voidMouseOverArea.setMouseDownImage(Image image) + +
+          Set the image to be used when the mouse is down the area
+ voidMouseOverArea.setMouseOverImage(Image image) + +
+          Set the image to be used when the mouse is over the area
+ voidMouseOverArea.setNormalImage(Image image) + +
+          Set the normal image used on the image in the default state
+  +

+ + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.gui with parameters of type Image
MouseOverArea(GUIContext container, + Image image, + int x, + int y) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + Shape shape) + +
+          Create a new mouse over area
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.imageout
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.imageout with parameters of type Image
+ voidTGAWriter.saveImage(Image image, + java.lang.String format, + java.io.OutputStream output, + boolean writeAlpha) + +
+           
+ voidImageWriter.saveImage(Image image, + java.lang.String format, + java.io.OutputStream out, + boolean writeAlpha) + +
+          Save an Image to an given location
+ voidImageIOWriter.saveImage(Image image, + java.lang.String format, + java.io.OutputStream output, + boolean hasAlpha) + +
+           
+static voidImageOut.write(Image image, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String format, + java.io.OutputStream out) + +
+          Write an image out to a specified output stream
+static voidImageOut.write(Image image, + java.lang.String format, + java.io.OutputStream out, + boolean writeAlpha) + +
+          Write an image out to a specified output stream
+static voidImageOut.write(Image image, + java.lang.String format, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String format, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.opengl.pbuffer
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl.pbuffer with parameters of type Image
+static GraphicsGraphicsFactory.getGraphicsForImage(Image image) + +
+          Get a graphics context for a particular image
+static voidGraphicsFactory.releaseGraphicsForImage(Image image) + +
+          Release any graphics context that is assocaited with the given image
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.opengl.pbuffer with parameters of type Image
FBOGraphics(Image image) + +
+          Create a new graphics context around an FBO
PBufferGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
PBufferUniqueGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.particles
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.particles declared as Image
+protected  ImageParticle.image + +
+          The image for this particle
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles that return Image
+ ImageParticleEmitter.getImage() + +
+          Get the image to draw for each particle
+ ImageConfigurableEmitter.getImage() + +
+           
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type Image
+ voidParticle.setImage(Image image) + +
+          Set the image used to render this particle
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.particles with parameters of type Image
ParticleSystem(Image defaultSprite) + +
+          Create a new particle system
ParticleSystem(Image defaultSprite, + int maxParticles) + +
+          Create a new particle system
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.particles.effects
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.particles.effects that return Image
+ ImageFireEmitter.getImage() + +
+           
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg that return Image
+ ImageGradient.getImage() + +
+          Get the image generated for this gradient
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.tiled
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tiled that return Image
+ ImageTiledMap.getTileImage(int x, + int y, + int layerIndex) + +
+          Gets the Image used to draw the tile at the given x and y coordinates.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tiled with parameters of type Image
+ voidTileSet.setTileSetImage(Image image) + +
+          Set the image to use for this sprite sheet image to use for this tileset
+  +

+ + + + + +
+Uses of Image in org.newdawn.slick.util
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.util with parameters of type Image
LocatedImage(Image image, + int x, + int y) + +
+          Create a new located image
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/ImageBuffer.html b/lib/javadoc/org/newdawn/slick/class-use/ImageBuffer.html new file mode 100644 index 000000000..f9cd972e7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/ImageBuffer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.ImageBuffer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.ImageBuffer

+
+No usage of org.newdawn.slick.ImageBuffer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Input.html b/lib/javadoc/org/newdawn/slick/class-use/Input.html new file mode 100644 index 000000000..1d77ac0c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Input.html @@ -0,0 +1,361 @@ + + + + + + +Uses of Class org.newdawn.slick.Input (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Input

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Input
org.newdawn.slick  
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Input in org.newdawn.slick
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as Input
+protected  InputGameContainer.input + +
+          The input system to pass to the game
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick that return Input
+ InputGameContainer.getInput() + +
+          Get the input system
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Input
+ voidControlledInputReciever.setInput(Input input) + +
+          Set the input that events are being sent from
+ voidBasicGame.setInput(Input input) + +
+           
+  +

+ + + + + +
+Uses of Input in org.newdawn.slick.command
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.command with parameters of type Input
InputProvider(Input input) + +
+          Create a new input proider which will provide abstract input descriptions + based on the input from the supplied context.
+  +

+ + + + + +
+Uses of Input in org.newdawn.slick.gui
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.gui declared as Input
+protected  InputAbstractComponent.input + +
+          The input we're responding to
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.gui that return Input
+ InputGUIContext.getInput() + +
+          Get the input system
+  +

+ + + + + +
+Uses of Input in org.newdawn.slick.state
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type Input
+ voidStateBasedGame.setInput(Input input) + +
+           
+ voidBasicGameState.setInput(Input input) + +
+           
+  +

+ + + + + +
+Uses of Input in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type Input
+ voidInputAdapter.setInput(Input input) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/InputListener.html b/lib/javadoc/org/newdawn/slick/class-use/InputListener.html new file mode 100644 index 000000000..2960f20c5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/InputListener.html @@ -0,0 +1,964 @@ + + + + + + +Uses of Interface org.newdawn.slick.InputListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.InputListener

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use InputListener
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement InputListener
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type InputListener
+ voidInput.addListener(InputListener listener) + +
+          Add a listener to be notified of input events
+ voidInput.addPrimaryListener(InputListener listener) + +
+          Add a listener to be notified of input events.
+ voidInput.removeListener(InputListener listener) + +
+          Remove a listener that will no longer be notified
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.gui that implement InputListener
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Subinterfaces of InputListener in org.newdawn.slick.state
+ interfaceGameState + +
+          A single state building up part of the game.
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.state that implement InputListener
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement InputListener
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement InputListener
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+ + + + + +
+Uses of InputListener in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement InputListener
+ classInputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/KeyListener.html b/lib/javadoc/org/newdawn/slick/class-use/KeyListener.html new file mode 100644 index 000000000..31e67809a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/KeyListener.html @@ -0,0 +1,972 @@ + + + + + + +Uses of Interface org.newdawn.slick.KeyListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.KeyListener

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use KeyListener
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick
+  +

+ + + + + + + + + +
Subinterfaces of KeyListener in org.newdawn.slick
+ interfaceInputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement KeyListener
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type KeyListener
+ voidInput.addKeyListener(KeyListener listener) + +
+          Add a key listener to be notified of key input events
+ voidInput.removeKeyListener(KeyListener listener) + +
+          Remove a key listener that will no longer be notified
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.gui that implement KeyListener
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Subinterfaces of KeyListener in org.newdawn.slick.state
+ interfaceGameState + +
+          A single state building up part of the game.
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.state that implement KeyListener
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement KeyListener
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement KeyListener
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+ + + + + +
+Uses of KeyListener in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement KeyListener
+ classInputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/MouseListener.html b/lib/javadoc/org/newdawn/slick/class-use/MouseListener.html new file mode 100644 index 000000000..9c99cc6e9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/MouseListener.html @@ -0,0 +1,972 @@ + + + + + + +Uses of Interface org.newdawn.slick.MouseListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.MouseListener

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use MouseListener
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick
+  +

+ + + + + + + + + +
Subinterfaces of MouseListener in org.newdawn.slick
+ interfaceInputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement MouseListener
+ classBasicGame + +
+          A basic implementation of a game to take out the boring bits
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type MouseListener
+ voidInput.addMouseListener(MouseListener listener) + +
+          Add a mouse listener to be notified of mouse input events
+ voidInput.removeMouseListener(MouseListener listener) + +
+          Remove a mouse listener that will no longer be notified
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.gui that implement MouseListener
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Subinterfaces of MouseListener in org.newdawn.slick.state
+ interfaceGameState + +
+          A single state building up part of the game.
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.state that implement MouseListener
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+ classStateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement MouseListener
+ classAlphaMapTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classAnimationTest + +
+          A test for basic animation rendering
+ classAntiAliasTest + +
+          Test to view the effects of antialiasing on cirles
+ classBigImageTest + +
+          A test for basic image rendering
+ classBigSpriteSheetTest + +
+          A test for big images used as sprites sheets
+ classCachedRenderTest + +
+          A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
+ classCanvasContainerTest + +
+          A test for the AWT Canvas container
+ classCanvasSizeTest + +
+          Quick test to confirm canvas size is reported correctly
+ classClipTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCopyAreaAlphaTest + +
+          A test to demonstrate world clipping as opposed to screen clipping
+ classCurveTest + +
+          A rudimentry test of loading SVG from inkscape
+ classDeferredLoadingTest + +
+          A test for deferred loading.
+ classDistanceFieldTest + +
+          A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
+ classDoubleClickTest + +
+          The double click testing
+ classDuplicateEmitterTest + +
+          A test for duplicating a ConfigurableEmitter several times
+ classFlashTest + +
+          A test for image flashes
+ classFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classFontTest + +
+          A test of the font rendering capabilities
+ classGeomAccuracyTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGeomTest + +
+          A geomertry test
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+ classGradientImageTest + +
+          A test for applying gradients to images
+ classGradientTest + +
+          A test for gradient fill on polygons
+ classGraphicsTest + +
+          A simple graphics test for the context allowing vector based graphics
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classImageBufferEndianTest + +
+          Quick test for endianess in image buffers
+ classImageBufferTest + +
+          A test for image buffer maniupulation rendering
+ classImageCornerTest + +
+          A test for basic image rendering
+ classImageGraphicsTest + +
+          A test for rendering to an image
+ classImageMemTest + +
+          A test for basic image rendering
+ classImageOutTest + +
+          A test for saving images
+ classImageReadTest + +
+          A test for reading image data from a teture
+ classImageTest + +
+          A test for basic image rendering
+ classInkscapeTest + +
+          A rudimentry test of loading SVG from inkscape
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+ classInputTest + +
+          A test for input
+ classIsoTiledTest + +
+          Simple test for isometric map rendering
+ classKeyRepeatTest + +
+          A test for basic image rendering
+ classLameTest + +
+          Lame test
+ classLineRenderTest + +
+          A test for the line rendering capability
+ classMorphShapeTest + +
+          A test to try shape morphing
+ classMorphSVGTest + +
+          A test to try shape morphing
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+ classPackedSheetTest + +
+          A test for packed sprite sheets
+ classParticleTest + +
+          A particle test using built in effects
+ classPedigreeTest + +
+          A test for loading editing particle systems
+ classPolygonTest + +
+          A test for polygon collision
+ classPureFontTest + +
+          A test of the font rendering capabilities
+ classSavedStateTest + +
+          A test of the the local storage utilities
+ classScalableTest + +
+          A test for a scalable game
+ classShapeTest + +
+          A geomertry test
+ classSlickCallableTest + +
+          A test for slick callables giving the chance to perform normal GL in mid Slick render
+ classSoundPositionTest + +
+          A test for the sound system (positioning) of the library
+ classSoundTest + +
+          A test for the sound system of the library
+ classSoundURLTest + +
+          A test for the sound system of the library
+ classSpriteSheetFontTest + +
+          Tests the SpriteSheetFont.
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTestBox + +
+          A test box containing a bunch of tests that can be used for quickly sanity + checking tests.
+ classTexturePaintTest + +
+          Test to emulate texture paint
+ classTileMapTest + +
+          A test of the tile map system based around the TilED (http://www.mapeditor.org) tool
+ classTransformTest + +
+          A test for transforming the graphics context
+ classTransformTest2 + +
+          A test for transforming the graphics context
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+ classTransparentColorTest + +
+          A test for transparent colour specification
+ classTrueTypeFontPerformanceTest + +
+          A test of the font rendering capabilities
+ classUnicodeFontTest + +
+          A simple test of the unicode font functionality provided
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement MouseListener
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+ + + + + +
+Uses of MouseListener in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement MouseListener
+ classInputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Music.html b/lib/javadoc/org/newdawn/slick/class-use/Music.html new file mode 100644 index 000000000..19135995a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Music.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Class org.newdawn.slick.Music (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Music

+
+ + + + + + + + + + + + + +
+Packages that use Music
org.newdawn.slick  
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of Music in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Music
+ voidMusicListener.musicEnded(Music music) + +
+          Notification that a piece of music finished playing
+ voidMusicListener.musicSwapped(Music music, + Music newMusic) + +
+          Notification that a piece of music has been swapped + for another.
+  +

+ + + + + +
+Uses of Music in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type Music
+ voidMusicListenerTest.musicEnded(Music music) + +
+           
+ voidMusicListenerTest.musicSwapped(Music music, + Music newMusic) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/MusicListener.html b/lib/javadoc/org/newdawn/slick/class-use/MusicListener.html new file mode 100644 index 000000000..535e004b0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/MusicListener.html @@ -0,0 +1,217 @@ + + + + + + +Uses of Interface org.newdawn.slick.MusicListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.MusicListener

+
+ + + + + + + + + + + + + +
+Packages that use MusicListener
org.newdawn.slick  
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of MusicListener in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type MusicListener
+ voidMusic.addListener(MusicListener listener) + +
+          Add a listener to this music
+ voidMusic.removeListener(MusicListener listener) + +
+          Remove a listener from this music
+  +

+ + + + + +
+Uses of MusicListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.tests that implement MusicListener
+ classMusicListenerTest + +
+          A test for music listeners which notify you when the music has eneded
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/PackedSpriteSheet.html b/lib/javadoc/org/newdawn/slick/class-use/PackedSpriteSheet.html new file mode 100644 index 000000000..2d30ffe1a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/PackedSpriteSheet.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.PackedSpriteSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.PackedSpriteSheet

+
+No usage of org.newdawn.slick.PackedSpriteSheet +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Renderable.html b/lib/javadoc/org/newdawn/slick/class-use/Renderable.html new file mode 100644 index 000000000..fe9ebdc8b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Renderable.html @@ -0,0 +1,205 @@ + + + + + + +Uses of Interface org.newdawn.slick.Renderable (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.Renderable

+
+ + + + + + + + + +
+Packages that use Renderable
org.newdawn.slick  
+  +

+ + + + + +
+Uses of Renderable in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick that implement Renderable
+ classAnimation + +
+          A utility to hold and render animations
+ classBigImage + +
+          An image implementation that handles loaded images that are larger than the + maximum texture size supported by the card.
+ classImage + +
+          An image loaded from a file and renderable to the canvas
+ classSpriteSheet + +
+          A sheet of sprites that can be drawn individually
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/SavedState.html b/lib/javadoc/org/newdawn/slick/class-use/SavedState.html new file mode 100644 index 000000000..3c6f2e409 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/SavedState.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.SavedState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.SavedState

+
+No usage of org.newdawn.slick.SavedState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/ScalableGame.html b/lib/javadoc/org/newdawn/slick/class-use/ScalableGame.html new file mode 100644 index 000000000..74da74a5a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/ScalableGame.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.ScalableGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.ScalableGame

+
+No usage of org.newdawn.slick.ScalableGame +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/ShapeFill.html b/lib/javadoc/org/newdawn/slick/class-use/ShapeFill.html new file mode 100644 index 000000000..00b647b26 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/ShapeFill.html @@ -0,0 +1,292 @@ + + + + + + +Uses of Interface org.newdawn.slick.ShapeFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.ShapeFill

+
+ + + + + + + + + + + + + + + + + +
+Packages that use ShapeFill
org.newdawn.slick  
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of ShapeFill in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type ShapeFill
+ voidGraphics.draw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+ voidGraphics.fill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+  +

+ + + + + +
+Uses of ShapeFill in org.newdawn.slick.fills
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.fills that implement ShapeFill
+ classGradientFill + +
+          A fill effect used to define gradients when filling and drawing shapes.
+  +

+ + + + + +
+Uses of ShapeFill in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type ShapeFill
+static voidShapeRenderer.draw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+static voidShapeRenderer.fill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+static voidShapeRenderer.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/SlickException.html b/lib/javadoc/org/newdawn/slick/class-use/SlickException.html new file mode 100644 index 000000000..fadb38ff7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/SlickException.html @@ -0,0 +1,3215 @@ + + + + + + +Uses of Class org.newdawn.slick.SlickException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.SlickException

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use SlickException
org.newdawn.slick  
org.newdawn.slick.font  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.imageoutSupports saving of slick images to various file types. 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.opengl.pbuffer  
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick that throw SlickException
+ voidImage.destroy() + +
+          Destroy the image and release any native resources.
+ voidBigImage.destroy() + +
+          Destroy the image and release any native resources.
+static voidGameContainer.enableSharedContext() + +
+          Enable shared OpenGL context.
+protected  voidAppGameContainer.gameLoop() + +
+          Strategy for overloading game loop context handling
+ GraphicsImage.getGraphics() + +
+          Get a graphics context that can be used to draw to this image
+ GraphicsBigImage.getGraphics() + +
+          Not supported in BigImage
+ voidScalableGame.init(GameContainer container) + +
+           
+ voidGame.init(GameContainer container) + +
+          Initialise the game.
+abstract  voidBasicGame.init(GameContainer container) + +
+           
+ voidAppletGameContainer.Container.initApplet() + +
+          Initiliase based on Applet init
+ voidInput.initControllers() + +
+          Initialise the controllers system
+protected  voidGameContainer.initSystem() + +
+          Initialise the system components, OpenGL and OpenAL.
+ booleanUnicodeFont.loadGlyphs() + +
+          Loads all queued glyphs to the backing textures.
+ booleanUnicodeFont.loadGlyphs(int maxGlyphsToLoad) + +
+          Loads up to the specified number of queued glyphs to the backing textures.
+ voidScalableGame.recalculateScale() + +
+          Recalculate the scale of the game
+ voidGameContainer.reinit() + +
+          Renitialise the game and the context in which it's being rendered
+ voidAppGameContainer.reinit() + +
+           
+ voidScalableGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGame.render(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidGameContainer.setAnimatedMouseCursor(java.lang.String ref, + int x, + int y, + int width, + int height, + int[] cursorDelays) + +
+          Get a cursor based on a image reference on the classpath.
+ voidAppGameContainer.setDisplayMode(int width, + int height, + boolean fullscreen) + +
+          Set the display mode to be used
+ voidGameContainer.setFullscreen(boolean fullscreen) + +
+          Indicate whether we want to be in fullscreen mode.
+ voidAppletGameContainer.Container.setFullscreen(boolean fullscreen) + +
+           
+ voidAppGameContainer.setFullscreen(boolean fullscreen) + +
+          Indicate whether we want to be in fullscreen mode.
+abstract  voidGameContainer.setIcon(java.lang.String ref) + +
+          Set the icon to be displayed if possible in this type of + container
+ voidAppletGameContainer.Container.setIcon(java.lang.String ref) + +
+           
+ voidAppGameContainer.setIcon(java.lang.String ref) + +
+           
+abstract  voidGameContainer.setIcons(java.lang.String[] refs) + +
+          Set the icons to be used for this application.
+ voidAppletGameContainer.Container.setIcons(java.lang.String[] refs) + +
+           
+ voidAppGameContainer.setIcons(java.lang.String[] refs) + +
+           
+abstract  voidGameContainer.setMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidAppletGameContainer.Container.setMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+           
+ voidAppGameContainer.setMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+           
+abstract  voidGameContainer.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidAppletGameContainer.Container.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+           
+ voidAppGameContainer.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+           
+abstract  voidGameContainer.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidAppletGameContainer.Container.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor based on the contents of the image.
+ voidAppGameContainer.setMouseCursor(Image image, + int hotSpotX, + int hotSpotY) + +
+           
+abstract  voidGameContainer.setMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidAppletGameContainer.Container.setMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+           
+ voidAppGameContainer.setMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+           
+protected  voidAppGameContainer.setup() + +
+          Setup the environment
+ voidCanvasGameContainer.start() + +
+          Start the game container rendering
+ voidAppGameContainer.start() + +
+          Start running the game
+ voidScalableGame.update(GameContainer container, + int delta) + +
+           
+ voidGame.update(GameContainer container, + int delta) + +
+          Update the game logic here.
+abstract  voidBasicGame.update(GameContainer container, + int delta) + +
+           
+protected  voidGameContainer.updateAndRender(int delta) + +
+          Update and render the game
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick that throw SlickException
AngelCodeFont(java.lang.String fntFile, + Image image) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + Image image, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String name, + java.io.InputStream fntFile, + java.io.InputStream imgFile) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String name, + java.io.InputStream fntFile, + java.io.InputStream imgFile, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + java.lang.String imgFile) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AngelCodeFont(java.lang.String fntFile, + java.lang.String imgFile, + boolean caching) + +
+          Create a new font based on a font definition from AngelCode's tool and + the font image generated from the tool.
AppGameContainer(Game game) + +
+          Create a new container wrapping a game
AppGameContainer(Game game, + int width, + int height, + boolean fullscreen) + +
+          Create a new container wrapping a game
BigImage(java.lang.String ref) + +
+          Create a new big image by loading it from the specified reference
BigImage(java.lang.String ref, + int filter) + +
+          Create a new big image by loading it from the specified reference
BigImage(java.lang.String ref, + int filter, + int tileSize) + +
+          Create a new big image by loading it from the specified reference
CanvasGameContainer(Game game) + +
+          Create a new panel
CanvasGameContainer(Game game, + boolean shared) + +
+          Create a new panel
Image(java.io.InputStream in, + java.lang.String ref, + boolean flipped) + +
+          Create an image based on a file at the specified location
Image(java.io.InputStream in, + java.lang.String ref, + boolean flipped, + int filter) + +
+          Create an image based on a file at the specified location
Image(int width, + int height) + +
+          Create an empty image
Image(int width, + int height, + int f) + +
+          Create an empty image
Image(java.lang.String ref) + +
+          Create an image based on a file at the specified location
Image(java.lang.String ref, + boolean flipped) + +
+          Create an image based on a file at the specified location
Image(java.lang.String ref, + boolean flipped, + int filter) + +
+          Create an image based on a file at the specified location
Image(java.lang.String ref, + boolean flipped, + int f, + Color transparent) + +
+          Create an image based on a file at the specified location
Image(java.lang.String ref, + Color trans) + +
+          Create an image based on a file at the specified location
Music(java.io.InputStream in, + java.lang.String ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.lang.String ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.lang.String ref, + boolean streamingHint) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.net.URL ref) + +
+          Create and load a piece of music (either OGG or MOD/XM)
Music(java.net.URL url, + boolean streamingHint) + +
+          Create and load a piece of music (either OGG or MOD/XM)
PackedSpriteSheet(java.lang.String def) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + int filter) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
PackedSpriteSheet(java.lang.String def, + int filter, + Color trans) + +
+          Create a new packed sprite sheet based on a ImagePacker definition file
SavedState(java.lang.String fileName) + +
+          Create and Test to see if the app is running + as webstart or local app and select the appropriate + muffin type
Sound(java.io.InputStream in, + java.lang.String ref) + +
+          Create a new Sound
Sound(java.lang.String ref) + +
+          Create a new Sound
Sound(java.net.URL url) + +
+          Create a new Sound
SpriteSheet(java.lang.String name, + java.io.InputStream ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + Color col, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.lang.String ref, + int tw, + int th, + int spacing) + +
+          Create a new sprite sheet based on a image location
SpriteSheet(java.net.URL ref, + int tw, + int th) + +
+          Create a new sprite sheet based on a image location
UnicodeFont(java.awt.Font font, + java.lang.String hieroFileRef) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.lang.String ttfFileRef, + HieroSettings settings) + +
+          Create a new unicode font based on a TTF file and a set of heiro configuration
UnicodeFont(java.lang.String ttfFileRef, + int size, + boolean bold, + boolean italic) + +
+          Create a new unicode font based on a TTF file alone
UnicodeFont(java.lang.String ttfFileRef, + java.lang.String hieroFileRef) + +
+          Create a new unicode font based on a TTF file
XMLPackedSheet(java.lang.String imageRef, + java.lang.String xmlRef) + +
+          Create a new XML packed sheet from the XML output by the slick tool
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.font
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.font that throw SlickException
+ intGlyphPage.loadGlyphs(java.util.List glyphs, + int maxGlyphsToLoad) + +
+          Loads glyphs to the backing texture and sets the image on each loaded glyph.
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.font that throw SlickException
GlyphPage(UnicodeFont unicodeFont, + int pageWidth, + int pageHeight) + +
+          Create a new page of glyphs
HieroSettings(java.io.InputStream in) + +
+          Create a new set of configuration from a file
HieroSettings(java.lang.String hieroFileRef) + +
+          Create a new set of configuration from a file
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui that throw SlickException
+ voidBasicComponent.render(GUIContext container, + Graphics g) + +
+          Deprecated.  
+abstract  voidAbstractComponent.render(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+ voidGUIContext.setMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidGUIContext.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidGUIContext.setMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.imageout
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.imageout that throw SlickException
+static ImageWriterImageWriterFactory.getWriterForFormat(java.lang.String format) + +
+          Get a Slick image writer for the given format
+static voidImageOut.write(Image image, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String format, + java.io.OutputStream out) + +
+          Write an image out to a specified output stream
+static voidImageOut.write(Image image, + java.lang.String format, + java.io.OutputStream out, + boolean writeAlpha) + +
+          Write an image out to a specified output stream
+static voidImageOut.write(Image image, + java.lang.String format, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidImageOut.write(Image image, + java.lang.String format, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.opengl
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl that throw SlickException
+ voidSlickCallable.call() + +
+          Cause this callable to perform it's GL operations (@see performGLOperations()).
+protected abstract  voidSlickCallable.performGLOperations() + +
+          Perform the GL operations that this callable is intended to.
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.opengl.pbuffer
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl.pbuffer that throw SlickException
+static GraphicsGraphicsFactory.getGraphicsForImage(Image image) + +
+          Get a graphics context for a particular image
+static voidGraphicsFactory.releaseGraphicsForImage(Image image) + +
+          Release any graphics context that is assocaited with the given image
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.opengl.pbuffer that throw SlickException
FBOGraphics(Image image) + +
+          Create a new graphics context around an FBO
PBufferGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
PBufferUniqueGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.particles
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.particles that throw SlickException
+ ParticleSystemParticleSystem.duplicate() + +
+          Create a duplicate of this system.
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.state
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state that throw SlickException
+ voidGameState.enter(GameContainer container, + StateBasedGame game) + +
+          Notification that we've entered this game state
+ voidBasicGameState.enter(GameContainer container, + StateBasedGame game) + +
+           
+ voidStateBasedGame.init(GameContainer container) + +
+           
+ voidGameState.init(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+abstract  voidStateBasedGame.initStatesList(GameContainer container) + +
+          Initialise the list of states making up this game
+ voidGameState.leave(GameContainer container, + StateBasedGame game) + +
+          Notification that we're leaving this game state
+ voidBasicGameState.leave(GameContainer container, + StateBasedGame game) + +
+           
+protected  voidStateBasedGame.postRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the game level after the current state + and/or transition have been rendered
+protected  voidStateBasedGame.postUpdateState(GameContainer container, + int delta) + +
+          User hook for rendering at the game level after the current state + and/or transition have been updated
+protected  voidStateBasedGame.preRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the before the current state + and/or transition have been rendered
+protected  voidStateBasedGame.preUpdateState(GameContainer container, + int delta) + +
+          User hook for updating at the game before the current state + and/or transition have been updated
+ voidStateBasedGame.render(GameContainer container, + Graphics g) + +
+           
+ voidGameState.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidStateBasedGame.update(GameContainer container, + int delta) + +
+           
+ voidGameState.update(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state.transition that throw SlickException
+ voidVerticalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidSelectTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is has just rendered the second state is the cross + transition.
+ voidVerticalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidSelectTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRenderFirstState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the first state is the cross + transition.
+ voidCrossStateTransition.preRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the second state is the cross + transition.
+ voidVerticalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ voidSelectTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidRotateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidHorizontalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidEmptyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCrossStateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCombinedTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidBlobbyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Subclasses of SlickException in org.newdawn.slick.svg
+ classParsingException + +
+          Exception indicating a failure to parse XML, giving element information
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that throw SlickException
+static DiagramInkscapeLoader.load(java.io.InputStream in, + boolean offset) + +
+          Load a SVG document into a diagram
+static DiagramInkscapeLoader.load(java.lang.String ref) + +
+          Load a SVG document into a diagram
+static DiagramInkscapeLoader.load(java.lang.String ref, + boolean offset) + +
+          Load a SVG document into a diagram
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests that throw SlickException
+ voidUnicodeFontTest.init(GameContainer container) + +
+           
+ voidTrueTypeFontPerformanceTest.init(GameContainer container) + +
+           
+ voidTransparentColorTest.init(GameContainer container) + +
+           
+ voidTransformTest2.init(GameContainer container) + +
+           
+ voidTransformTest.init(GameContainer container) + +
+           
+ voidTileMapTest.init(GameContainer container) + +
+           
+ voidTexturePaintTest.init(GameContainer container) + +
+           
+ voidTestBox.init(GameContainer c) + +
+           
+ voidSpriteSheetFontTest.init(GameContainer container) + +
+           
+ voidSoundURLTest.init(GameContainer container) + +
+           
+ voidSoundTest.init(GameContainer container) + +
+           
+ voidSoundPositionTest.init(GameContainer container) + +
+           
+ voidSlickCallableTest.init(GameContainer container) + +
+           
+ voidShapeTest.init(GameContainer container) + +
+           
+ voidScalableTest.init(GameContainer container) + +
+           
+ voidSavedStateTest.init(GameContainer container) + +
+           
+ voidPureFontTest.init(GameContainer container) + +
+           
+ voidPolygonTest.init(GameContainer container) + +
+           
+ voidPedigreeTest.init(GameContainer container) + +
+           
+ voidParticleTest.init(GameContainer container) + +
+           
+ voidPackedSheetTest.init(GameContainer container) + +
+           
+ voidNavMeshTest.init(GameContainer container) + +
+          Initialise resources and the map data
+ voidMusicListenerTest.init(GameContainer container) + +
+           
+ voidMorphShapeTest.init(GameContainer container) + +
+           
+ voidMorphSVGTest.init(GameContainer container) + +
+           
+ voidLineRenderTest.init(GameContainer container) + +
+           
+ voidLameTest.init(GameContainer container) + +
+           
+ voidKeyRepeatTest.init(GameContainer container) + +
+           
+ voidIsoTiledTest.init(GameContainer container) + +
+           
+ voidInputTest.init(GameContainer container) + +
+           
+ voidInputProviderTest.init(GameContainer container) + +
+           
+ voidInkscapeTest.init(GameContainer container) + +
+           
+ voidImageTest.init(GameContainer container) + +
+           
+ voidImageReadTest.init(GameContainer container) + +
+           
+ voidImageOutTest.init(GameContainer container) + +
+           
+ voidImageMemTest.init(GameContainer container) + +
+           
+ voidImageGraphicsTest.init(GameContainer container) + +
+           
+ voidImageCornerTest.init(GameContainer container) + +
+           
+ voidImageBufferTest.init(GameContainer container) + +
+           
+ voidImageBufferEndianTest.init(GameContainer container) + +
+           
+ voidGraphicsTest.init(GameContainer container) + +
+           
+ voidGradientTest.init(GameContainer container) + +
+           
+ voidGradientImageTest.init(GameContainer container) + +
+           
+ voidGeomUtilTileTest.init(GameContainer container) + +
+           
+ voidGeomUtilTest.init(GameContainer container) + +
+           
+ voidGeomTest.init(GameContainer container) + +
+           
+ voidGeomAccuracyTest.init(GameContainer container) + +
+           
+ voidGUITest.init(GameContainer container) + +
+           
+ voidFontTest.init(GameContainer container) + +
+           
+ voidFontPerformanceTest.init(GameContainer container) + +
+           
+ voidFlashTest.init(GameContainer container) + +
+           
+ voidDuplicateEmitterTest.init(GameContainer container) + +
+          load ressources (the particle system) and create our duplicate emitters + and place them nicely on the screen
+ voidDoubleClickTest.init(GameContainer container) + +
+           
+ voidDistanceFieldTest.init(GameContainer container) + +
+           
+ voidDeferredLoadingTest.init(GameContainer container) + +
+           
+ voidCurveTest.init(GameContainer container) + +
+           
+ voidCopyAreaAlphaTest.init(GameContainer container) + +
+           
+ voidClipTest.init(GameContainer container) + +
+           
+ voidCanvasSizeTest.init(GameContainer container) + +
+           
+ voidCanvasContainerTest.init(GameContainer container) + +
+           
+ voidCachedRenderTest.init(GameContainer container) + +
+           
+ voidBigSpriteSheetTest.init(GameContainer container) + +
+           
+ voidBigImageTest.init(GameContainer container) + +
+           
+ voidAntiAliasTest.init(GameContainer container) + +
+           
+ voidAnimationTest.init(GameContainer container) + +
+           
+ voidAlphaMapTest.init(GameContainer container) + +
+           
+ voidTransitionTest.initStatesList(GameContainer container) + +
+           
+static voidUnicodeFontTest.main(java.lang.String[] args) + +
+          Entry point to our simple test
+ voidTexturePaintTest.render(GameContainer container, + Graphics g) + +
+           
+ voidTestBox.render(GameContainer container, + Graphics g) + +
+           
+ voidSlickCallableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidScalableTest.render(GameContainer container, + Graphics g) + +
+           
+ voidPolygonTest.render(GameContainer container, + Graphics g) + +
+           
+ voidNavMeshTest.render(GameContainer container, + Graphics g) + +
+          Render the game - in this case render the map and diagnostic data
+ voidMusicListenerTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphShapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidMorphSVGTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLineRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidLameTest.render(GameContainer container, + Graphics g) + +
+           
+ voidIsoTiledTest.render(GameContainer container, + Graphics g) + +
+           
+ voidInkscapeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidImageBufferEndianTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGraphicsTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTileTest.render(GameContainer container, + Graphics g) + +
+           
+ voidGeomUtilTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDuplicateEmitterTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDoubleClickTest.render(GameContainer container, + Graphics g) + +
+           
+ voidDistanceFieldTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCurveTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCopyAreaAlphaTest.render(GameContainer container, + Graphics g) + +
+           
+ voidClipTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCanvasSizeTest.render(GameContainer container, + Graphics g) + +
+           
+ voidCachedRenderTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAntiAliasTest.render(GameContainer container, + Graphics g) + +
+           
+ voidAlphaMapTest.render(GameContainer container, + Graphics g) + +
+           
+ voidUnicodeFontTest.update(GameContainer container, + int delta) + +
+           
+ voidTrueTypeFontPerformanceTest.update(GameContainer container, + int delta) + +
+           
+ voidTexturePaintTest.update(GameContainer container, + int delta) + +
+           
+ voidTestBox.update(GameContainer container, + int delta) + +
+           
+ voidSpriteSheetFontTest.update(GameContainer container, + int delta) + +
+           
+ voidScalableTest.update(GameContainer container, + int delta) + +
+           
+ voidSavedStateTest.update(GameContainer container, + int delta) + +
+           
+ voidPureFontTest.update(GameContainer container, + int delta) + +
+           
+ voidPolygonTest.update(GameContainer container, + int delta) + +
+           
+ voidNavMeshTest.update(GameContainer container, + int delta) + +
+          Update data map etc
+ voidMusicListenerTest.update(GameContainer container, + int delta) + +
+           
+ voidMorphShapeTest.update(GameContainer container, + int delta) + +
+           
+ voidMorphSVGTest.update(GameContainer container, + int delta) + +
+           
+ voidLineRenderTest.update(GameContainer container, + int delta) + +
+           
+ voidLameTest.update(GameContainer container, + int delta) + +
+           
+ voidIsoTiledTest.update(GameContainer container, + int delta) + +
+           
+ voidInkscapeTest.update(GameContainer container, + int delta) + +
+           
+ voidImageOutTest.update(GameContainer container, + int delta) + +
+           
+ voidImageCornerTest.update(GameContainer container, + int delta) + +
+           
+ voidImageBufferEndianTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomUtilTileTest.update(GameContainer container, + int delta) + +
+           
+ voidGeomUtilTest.update(GameContainer container, + int delta) + +
+           
+ voidFontTest.update(GameContainer container, + int delta) + +
+           
+ voidFontPerformanceTest.update(GameContainer container, + int delta) + +
+           
+ voidDuplicateEmitterTest.update(GameContainer container, + int delta) + +
+           
+ voidDoubleClickTest.update(GameContainer container, + int delta) + +
+           
+ voidDistanceFieldTest.update(GameContainer container, + int delta) + +
+           
+ voidDeferredLoadingTest.update(GameContainer container, + int delta) + +
+           
+ voidCurveTest.update(GameContainer container, + int delta) + +
+           
+ voidCopyAreaAlphaTest.update(GameContainer container, + int delta) + +
+           
+ voidClipTest.update(GameContainer container, + int delta) + +
+           
+ voidCanvasSizeTest.update(GameContainer container, + int delta) + +
+           
+ voidCachedRenderTest.update(GameContainer container, + int delta) + +
+           
+ voidBigSpriteSheetTest.update(GameContainer container, + int delta) + +
+           
+ voidBigImageTest.update(GameContainer container, + int delta) + +
+           
+ voidAntiAliasTest.update(GameContainer container, + int delta) + +
+           
+ voidAlphaMapTest.update(GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests.states that throw SlickException
+ voidTestState3.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState2.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState1.init(GameContainer container, + StateBasedGame game) + +
+           
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.tests.xml
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tests.xml that throw SlickException
+static voidXMLTest.main(java.lang.String[] argv) + +
+          Simple test for the XML parsing API
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.tiled
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.tiled that throw SlickException
Layer(TiledMap map, + org.w3c.dom.Element element) + +
+          Create a new layer based on the XML definition
TiledMap.GroupObject(org.w3c.dom.Element element) + +
+          Create a new group based on the XML definition
TiledMap.ObjectGroup(org.w3c.dom.Element element) + +
+          Create a new group based on the XML definition
TiledMap(java.io.InputStream in) + +
+          Load a tile map from an arbitary input stream
TiledMap(java.io.InputStream in, + java.lang.String tileSetsLocation) + +
+          Load a tile map from an arbitary input stream
TiledMap(java.lang.String ref) + +
+          Create a new tile map based on a given TMX file
TiledMap(java.lang.String ref, + boolean loadTileSets) + +
+          Create a new tile map based on a given TMX file
TiledMap(java.lang.String ref, + java.lang.String tileSetsLocation) + +
+          Create a new tile map based on a given TMX file
TileSet(TiledMap map, + org.w3c.dom.Element element, + boolean loadImage) + +
+          Create a tile set based on an XML definition
+  +

+ + + + + +
+Uses of SlickException in org.newdawn.slick.util.xml
+  +

+ + + + + + + + + +
Subclasses of SlickException in org.newdawn.slick.util.xml
+ classSlickXMLException + +
+          An exception to describe failures in XML.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.xml that throw SlickException
+ XMLElementXMLParser.parse(java.lang.String ref) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/Sound.html b/lib/javadoc/org/newdawn/slick/class-use/Sound.html new file mode 100644 index 000000000..fead488da --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/Sound.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Class org.newdawn.slick.Sound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.Sound

+
+ + + + + + + + + +
+Packages that use Sound
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
+  +

+ + + + + +
+Uses of Sound in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type Sound
+ voidMouseOverArea.setMouseDownSound(Sound sound) + +
+          Set the mouse down sound effect
+ voidMouseOverArea.setMouseOverSound(Sound sound) + +
+          Set the mouse over sound effect
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/SpriteSheet.html b/lib/javadoc/org/newdawn/slick/class-use/SpriteSheet.html new file mode 100644 index 000000000..0ec228667 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/SpriteSheet.html @@ -0,0 +1,253 @@ + + + + + + +Uses of Class org.newdawn.slick.SpriteSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.SpriteSheet

+
+ + + + + + + + + + + + + +
+Packages that use SpriteSheet
org.newdawn.slick  
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
+  +

+ + + + + +
+Uses of SpriteSheet in org.newdawn.slick
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick that return SpriteSheet
+ SpriteSheetPackedSpriteSheet.getSpriteSheet(java.lang.String name) + +
+          Get a sprite sheet that has been packed into the greater image
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type SpriteSheet
Animation(SpriteSheet frames, + int duration) + +
+          Create a new animation based on the sprite from a sheet.
Animation(SpriteSheet ss, + int[] frames, + int[] duration) + +
+          Creates a new Animation where each frame is a sub-image of SpriteSheet ss.
Animation(SpriteSheet frames, + int x1, + int y1, + int x2, + int y2, + boolean horizontalScan, + int duration, + boolean autoUpdate) + +
+          Create a new animation based on a selection of sprites from a sheet
SpriteSheetFont(SpriteSheet font, + char startingCharacter) + +
+          Create a new font based on a SpriteSheet.
+  +

+ + + + + +
+Uses of SpriteSheet in org.newdawn.slick.tiled
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.tiled declared as SpriteSheet
+ SpriteSheetTileSet.tiles + +
+          The image containing the tiles
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/SpriteSheetFont.html b/lib/javadoc/org/newdawn/slick/class-use/SpriteSheetFont.html new file mode 100644 index 000000000..e451eb2c3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/SpriteSheetFont.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.SpriteSheetFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.SpriteSheetFont

+
+No usage of org.newdawn.slick.SpriteSheetFont +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/TrueTypeFont.html b/lib/javadoc/org/newdawn/slick/class-use/TrueTypeFont.html new file mode 100644 index 000000000..acafc2da1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/TrueTypeFont.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.TrueTypeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.TrueTypeFont

+
+No usage of org.newdawn.slick.TrueTypeFont +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.DisplayList.html b/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.DisplayList.html new file mode 100644 index 000000000..f846c2c8b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.DisplayList.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class org.newdawn.slick.UnicodeFont.DisplayList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.UnicodeFont.DisplayList

+
+ + + + + + + + + +
+Packages that use UnicodeFont.DisplayList
org.newdawn.slick  
+  +

+ + + + + +
+Uses of UnicodeFont.DisplayList in org.newdawn.slick
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick that return UnicodeFont.DisplayList
+ UnicodeFont.DisplayListUnicodeFont.drawDisplayList(float x, + float y, + java.lang.String text, + Color color, + int startIndex, + int endIndex) + +
+          Identical to UnicodeFont.drawString(float, float, String, Color, int, int) but returns a + DisplayList which provides access to the width and height of the text drawn.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.html b/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.html new file mode 100644 index 000000000..31cd0fcaa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/UnicodeFont.html @@ -0,0 +1,277 @@ + + + + + + +Uses of Class org.newdawn.slick.UnicodeFont (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.UnicodeFont

+
+ + + + + + + + + + + + + +
+Packages that use UnicodeFont
org.newdawn.slick.font  
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of UnicodeFont in org.newdawn.slick.font
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.font with parameters of type UnicodeFont
Glyph(int codePoint, + java.awt.Rectangle bounds, + java.awt.font.GlyphVector vector, + int index, + UnicodeFont unicodeFont) + +
+          Create a new glyph
GlyphPage(UnicodeFont unicodeFont, + int pageWidth, + int pageHeight) + +
+          Create a new page of glyphs
+  +

+ + + + + +
+Uses of UnicodeFont in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.font.effects with parameters of type UnicodeFont
+ voidShadowEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidOutlineEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidGradientEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidFilterEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ voidColorEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/class-use/XMLPackedSheet.html b/lib/javadoc/org/newdawn/slick/class-use/XMLPackedSheet.html new file mode 100644 index 000000000..24d9cb13a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/class-use/XMLPackedSheet.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.XMLPackedSheet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.XMLPackedSheet

+
+No usage of org.newdawn.slick.XMLPackedSheet +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/BasicCommand.html b/lib/javadoc/org/newdawn/slick/command/BasicCommand.html new file mode 100644 index 000000000..7a2145d6c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/BasicCommand.html @@ -0,0 +1,339 @@ + + + + + + +BasicCommand (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class BasicCommand

+
+java.lang.Object
+  extended by org.newdawn.slick.command.BasicCommand
+
+
+
All Implemented Interfaces:
Command
+
+
+
+
public class BasicCommand
extends java.lang.Object
implements Command
+ + +

+A simple named command +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BasicCommand(java.lang.String name) + +
+          Create a new basic command
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object other) + +
+           
+ java.lang.StringgetName() + +
+          Get the name given for this basic command
+ inthashCode() + +
+           
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BasicCommand

+
+public BasicCommand(java.lang.String name)
+
+
Create a new basic command +

+

+
Parameters:
name - The name to give this command
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public java.lang.String getName()
+
+
Get the name given for this basic command +

+

+
+
+
+ +
Returns:
The name given for this basic command
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+
+ +

+equals

+
+public boolean equals(java.lang.Object other)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/Command.html b/lib/javadoc/org/newdawn/slick/command/Command.html new file mode 100644 index 000000000..0043fa4ea --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/Command.html @@ -0,0 +1,181 @@ + + + + + + +Command (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Interface Command

+
+
All Known Implementing Classes:
BasicCommand
+
+
+
+
public interface Command
+ + +

+The description of a action feedback from the abstract input system. This marker allows the + creation of action objects that can contain useful state. If you don't need state and just + a name use BasicCommand + +

+

+
Author:
+
kevin
+
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/Control.html b/lib/javadoc/org/newdawn/slick/command/Control.html new file mode 100644 index 000000000..925de71a2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/Control.html @@ -0,0 +1,179 @@ + + + + + + +Control (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Interface Control

+
+
All Known Implementing Classes:
ControllerButtonControl, ControllerDirectionControl, KeyControl, MouseButtonControl
+
+
+
+
public interface Control
+ + +

+Marker class for abstract input controls +

+ +

+

+
Author:
+
joverton
+
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/ControllerButtonControl.html b/lib/javadoc/org/newdawn/slick/command/ControllerButtonControl.html new file mode 100644 index 000000000..1a6fdb64b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/ControllerButtonControl.html @@ -0,0 +1,413 @@ + + + + + + +ControllerButtonControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class ControllerButtonControl

+
+java.lang.Object
+  extended by org.newdawn.slick.command.ControllerButtonControl
+
+
+
All Implemented Interfaces:
Control
+
+
+
+
public class ControllerButtonControl
extends java.lang.Object
+ + +

+A control indicating that a gamepad/joystick button must be pressed + or released to invoke an command. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static intBUTTON_EVENT + +
+          Indicates a button was pressed
+protected static intDOWN_EVENT + +
+          Indicates down was pressed
+protected static intLEFT_EVENT + +
+          Indicates left was pressed
+protected static intRIGHT_EVENT + +
+          Indicates right was pressed
+protected static intUP_EVENT + +
+          Indicates up was pressed
+  + + + + + + + + + + +
+Constructor Summary
ControllerButtonControl(int controllerIndex, + int button) + +
+          Create a new control based on a controller input
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+BUTTON_EVENT

+
+protected static final int BUTTON_EVENT
+
+
Indicates a button was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+LEFT_EVENT

+
+protected static final int LEFT_EVENT
+
+
Indicates left was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+RIGHT_EVENT

+
+protected static final int RIGHT_EVENT
+
+
Indicates right was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+UP_EVENT

+
+protected static final int UP_EVENT
+
+
Indicates up was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+DOWN_EVENT

+
+protected static final int DOWN_EVENT
+
+
Indicates down was pressed +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+ControllerButtonControl

+
+public ControllerButtonControl(int controllerIndex,
+                               int button)
+
+
Create a new control based on a controller input +

+

+
Parameters:
controllerIndex - The index of the controller to listen to
button - The index of the button that causes the command
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(java.lang.Object o)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/ControllerDirectionControl.html b/lib/javadoc/org/newdawn/slick/command/ControllerDirectionControl.html new file mode 100644 index 000000000..bfd36bce1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/ControllerDirectionControl.html @@ -0,0 +1,493 @@ + + + + + + +ControllerDirectionControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class ControllerDirectionControl

+
+java.lang.Object
+  extended by org.newdawn.slick.command.ControllerDirectionControl
+
+
+
All Implemented Interfaces:
Control
+
+
+
+
public class ControllerDirectionControl
extends java.lang.Object
+ + +

+A control indicating that a particular direction must be pressed or released + on a controller to cause the command to fire +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static intBUTTON_EVENT + +
+          Indicates a button was pressed
+static org.newdawn.slick.command.ControllerDirectionControl.DirectionDOWN + +
+          The direction indicating we're waiting for the user to press down
+protected static intDOWN_EVENT + +
+          Indicates down was pressed
+static org.newdawn.slick.command.ControllerDirectionControl.DirectionLEFT + +
+          The direction indicating we're waiting for the user to press left
+protected static intLEFT_EVENT + +
+          Indicates left was pressed
+static org.newdawn.slick.command.ControllerDirectionControl.DirectionRIGHT + +
+          The direction indicating we're waiting for the user to press right
+protected static intRIGHT_EVENT + +
+          Indicates right was pressed
+static org.newdawn.slick.command.ControllerDirectionControl.DirectionUP + +
+          The direction indicating we're waiting for the user to press up
+protected static intUP_EVENT + +
+          Indicates up was pressed
+  + + + + + + + + + + +
+Constructor Summary
ControllerDirectionControl(int controllerIndex, + org.newdawn.slick.command.ControllerDirectionControl.Direction dir) + +
+          Create a new input that indicates a direcitonal control must be pressed
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+LEFT

+
+public static final org.newdawn.slick.command.ControllerDirectionControl.Direction LEFT
+
+
The direction indicating we're waiting for the user to press left +

+

+
+
+
+ +

+UP

+
+public static final org.newdawn.slick.command.ControllerDirectionControl.Direction UP
+
+
The direction indicating we're waiting for the user to press up +

+

+
+
+
+ +

+DOWN

+
+public static final org.newdawn.slick.command.ControllerDirectionControl.Direction DOWN
+
+
The direction indicating we're waiting for the user to press down +

+

+
+
+
+ +

+RIGHT

+
+public static final org.newdawn.slick.command.ControllerDirectionControl.Direction RIGHT
+
+
The direction indicating we're waiting for the user to press right +

+

+
+
+
+ +

+BUTTON_EVENT

+
+protected static final int BUTTON_EVENT
+
+
Indicates a button was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+LEFT_EVENT

+
+protected static final int LEFT_EVENT
+
+
Indicates left was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+RIGHT_EVENT

+
+protected static final int RIGHT_EVENT
+
+
Indicates right was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+UP_EVENT

+
+protected static final int UP_EVENT
+
+
Indicates up was pressed +

+

+
See Also:
Constant Field Values
+
+
+ +

+DOWN_EVENT

+
+protected static final int DOWN_EVENT
+
+
Indicates down was pressed +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+ControllerDirectionControl

+
+public ControllerDirectionControl(int controllerIndex,
+                                  org.newdawn.slick.command.ControllerDirectionControl.Direction dir)
+
+
Create a new input that indicates a direcitonal control must be pressed +

+

+
Parameters:
controllerIndex - The index of the controller to listen to
dir - The direction to wait for
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(java.lang.Object o)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/InputProvider.html b/lib/javadoc/org/newdawn/slick/command/InputProvider.html new file mode 100644 index 000000000..628ae262f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/InputProvider.html @@ -0,0 +1,545 @@ + + + + + + +InputProvider (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class InputProvider

+
+java.lang.Object
+  extended by org.newdawn.slick.command.InputProvider
+
+
+
+
public class InputProvider
extends java.lang.Object
+ + +

+The central provider that maps real device input into abstract commands + defined by the developer. Registering a control against an command with this + class will cause the provider to produce an event for the command when the + input is pressed and released. +

+ +

+

+
Author:
+
joverton
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
InputProvider(Input input) + +
+          Create a new input proider which will provide abstract input descriptions + based on the input from the supplied context.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(InputProviderListener listener) + +
+          Add a listener to the provider.
+ voidbindCommand(Control control, + Command command) + +
+          Bind an command to a control.
+ voidclearCommand(Command command) + +
+          Clear all the controls that have been configured for a given command
+protected  voidfirePressed(Command command) + +
+          Fire notification to any interested listeners that a control has been + pressed indication an particular command
+protected  voidfireReleased(Command command) + +
+          Fire notification to any interested listeners that a control has been + released indication an particular command should be stopped
+ java.util.ListgetControlsFor(Command command) + +
+          Get a list of the registered controls (@see Control) that can cause a + particular command to be invoked
+ java.util.ListgetUniqueCommands() + +
+          Get the list of commands that have been registered with the provider, + i.e.
+ booleanisActive() + +
+          Check if this provider should be sending events
+ booleanisCommandControlDown(Command command) + +
+          Check if the last control event we recieved related to the given command + indicated that a control was down
+ booleanisCommandControlPressed(Command command) + +
+          Check if one of the controls related to the command specified has been + pressed since we last called this method
+ voidremoveListener(InputProviderListener listener) + +
+          Remove a listener from this provider.
+ voidsetActive(boolean active) + +
+          Indicate whether this provider should be sending events
+ voidunbindCommand(Control control) + +
+          Unbinds the command associated with this control
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InputProvider

+
+public InputProvider(Input input)
+
+
Create a new input proider which will provide abstract input descriptions + based on the input from the supplied context. +

+

+
Parameters:
input - The input from which this provider will receive events
+
+ + + + + + + + +
+Method Detail
+ +

+getUniqueCommands

+
+public java.util.List getUniqueCommands()
+
+
Get the list of commands that have been registered with the provider, + i.e. the commands that can be issued to the listeners +

+

+ +
Returns:
The list of commands (@see Command) that can be issued from this + provider
+
+
+
+ +

+getControlsFor

+
+public java.util.List getControlsFor(Command command)
+
+
Get a list of the registered controls (@see Control) that can cause a + particular command to be invoked +

+

+
Parameters:
command - The command to be invoked +
Returns:
The list of controls that can cause the command (@see Control)
+
+
+
+ +

+setActive

+
+public void setActive(boolean active)
+
+
Indicate whether this provider should be sending events +

+

+
Parameters:
active - True if this provider should be sending events
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Check if this provider should be sending events +

+

+ +
Returns:
True if this provider should be sending events
+
+
+
+ +

+addListener

+
+public void addListener(InputProviderListener listener)
+
+
Add a listener to the provider. This listener will be notified of + commands detected from the input. +

+

+
Parameters:
listener - The listener to be added
+
+
+
+ +

+removeListener

+
+public void removeListener(InputProviderListener listener)
+
+
Remove a listener from this provider. The listener will no longer be + provided with notification of commands performe. +

+

+
Parameters:
listener - The listener to be removed
+
+
+
+ +

+bindCommand

+
+public void bindCommand(Control control,
+                        Command command)
+
+
Bind an command to a control. +

+

+
Parameters:
command - The command to bind to
control - The control that is pressed/released to represent the command
+
+
+
+ +

+clearCommand

+
+public void clearCommand(Command command)
+
+
Clear all the controls that have been configured for a given command +

+

+
Parameters:
command - The command whose controls should be unbound
+
+
+
+ +

+unbindCommand

+
+public void unbindCommand(Control control)
+
+
Unbinds the command associated with this control +

+

+
Parameters:
control - The control to remove
+
+
+
+ +

+isCommandControlDown

+
+public boolean isCommandControlDown(Command command)
+
+
Check if the last control event we recieved related to the given command + indicated that a control was down +

+

+
Parameters:
command - The command to check +
Returns:
True if the last event indicated a button down
+
+
+
+ +

+isCommandControlPressed

+
+public boolean isCommandControlPressed(Command command)
+
+
Check if one of the controls related to the command specified has been + pressed since we last called this method +

+

+
Parameters:
command - The command to check +
Returns:
True if one of the controls has been pressed
+
+
+
+ +

+firePressed

+
+protected void firePressed(Command command)
+
+
Fire notification to any interested listeners that a control has been + pressed indication an particular command +

+

+
Parameters:
command - The command that has been pressed
+
+
+
+ +

+fireReleased

+
+protected void fireReleased(Command command)
+
+
Fire notification to any interested listeners that a control has been + released indication an particular command should be stopped +

+

+
Parameters:
command - The command that has been pressed
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/InputProviderListener.html b/lib/javadoc/org/newdawn/slick/command/InputProviderListener.html new file mode 100644 index 000000000..7e6c49d7b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/InputProviderListener.html @@ -0,0 +1,241 @@ + + + + + + +InputProviderListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Interface InputProviderListener

+
+
All Known Implementing Classes:
InputProviderTest
+
+
+
+
public interface InputProviderListener
+ + +

+Description of any class wishing to recieve notifications of command invocations. Implementations + should be added to an appropriate input provider to recieve input notification +

+ +

+

+
Author:
+
joverton
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrolPressed(Command command) + +
+          A control representing an control was pressed relating to a given command.
+ voidcontrolReleased(Command command) + +
+          A control representing an control was released relating to a given command.
+  +

+ + + + + + + + +
+Method Detail
+ +

+controlPressed

+
+void controlPressed(Command command)
+
+
A control representing an control was pressed relating to a given command. +

+

+
Parameters:
command - The command that the control related to
+
+
+
+ +

+controlReleased

+
+void controlReleased(Command command)
+
+
A control representing an control was released relating to a given command. +

+

+
Parameters:
command - The command that the control related to
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/KeyControl.html b/lib/javadoc/org/newdawn/slick/command/KeyControl.html new file mode 100644 index 000000000..5d4484d6b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/KeyControl.html @@ -0,0 +1,293 @@ + + + + + + +KeyControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class KeyControl

+
+java.lang.Object
+  extended by org.newdawn.slick.command.KeyControl
+
+
+
All Implemented Interfaces:
Control
+
+
+
+
public class KeyControl
extends java.lang.Object
implements Control
+ + +

+A control relating to a command indicate that it should be fired when a specific key is pressed + or released. +

+ +

+

+
Author:
+
joverton
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
KeyControl(int keycode) + +
+          Create a new control that caused an command to be fired on a key pressed/released
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+KeyControl

+
+public KeyControl(int keycode)
+
+
Create a new control that caused an command to be fired on a key pressed/released +

+

+
Parameters:
keycode - The code of the key that causes the command
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(java.lang.Object o)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/MouseButtonControl.html b/lib/javadoc/org/newdawn/slick/command/MouseButtonControl.html new file mode 100644 index 000000000..603215d07 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/MouseButtonControl.html @@ -0,0 +1,292 @@ + + + + + + +MouseButtonControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.command +
+Class MouseButtonControl

+
+java.lang.Object
+  extended by org.newdawn.slick.command.MouseButtonControl
+
+
+
All Implemented Interfaces:
Control
+
+
+
+
public class MouseButtonControl
extends java.lang.Object
implements Control
+ + +

+A control indicating that a mouse button must be pressed or released to cause an command +

+ +

+

+
Author:
+
joverton
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MouseButtonControl(int button) + +
+          Create a new control that indicates a mouse button to be pressed or released
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MouseButtonControl

+
+public MouseButtonControl(int button)
+
+
Create a new control that indicates a mouse button to be pressed or released +

+

+
Parameters:
button - The button that should be pressed to cause the command
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(java.lang.Object o)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/BasicCommand.html b/lib/javadoc/org/newdawn/slick/command/class-use/BasicCommand.html new file mode 100644 index 000000000..73fa74126 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/BasicCommand.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.BasicCommand (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.BasicCommand

+
+No usage of org.newdawn.slick.command.BasicCommand +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/Command.html b/lib/javadoc/org/newdawn/slick/command/class-use/Command.html new file mode 100644 index 000000000..00b958ffe --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/Command.html @@ -0,0 +1,304 @@ + + + + + + +Uses of Interface org.newdawn.slick.command.Command (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.command.Command

+
+ + + + + + + + + + + + + +
+Packages that use Command
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of Command in org.newdawn.slick.command
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.command that implement Command
+ classBasicCommand + +
+          A simple named command
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.command with parameters of type Command
+ voidInputProvider.bindCommand(Control control, + Command command) + +
+          Bind an command to a control.
+ voidInputProvider.clearCommand(Command command) + +
+          Clear all the controls that have been configured for a given command
+ voidInputProviderListener.controlPressed(Command command) + +
+          A control representing an control was pressed relating to a given command.
+ voidInputProviderListener.controlReleased(Command command) + +
+          A control representing an control was released relating to a given command.
+protected  voidInputProvider.firePressed(Command command) + +
+          Fire notification to any interested listeners that a control has been + pressed indication an particular command
+protected  voidInputProvider.fireReleased(Command command) + +
+          Fire notification to any interested listeners that a control has been + released indication an particular command should be stopped
+ java.util.ListInputProvider.getControlsFor(Command command) + +
+          Get a list of the registered controls (@see Control) that can cause a + particular command to be invoked
+ booleanInputProvider.isCommandControlDown(Command command) + +
+          Check if the last control event we recieved related to the given command + indicated that a control was down
+ booleanInputProvider.isCommandControlPressed(Command command) + +
+          Check if one of the controls related to the command specified has been + pressed since we last called this method
+  +

+ + + + + +
+Uses of Command in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type Command
+ voidInputProviderTest.controlPressed(Command command) + +
+           
+ voidInputProviderTest.controlReleased(Command command) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/Control.html b/lib/javadoc/org/newdawn/slick/command/class-use/Control.html new file mode 100644 index 000000000..585b61ca1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/Control.html @@ -0,0 +1,233 @@ + + + + + + +Uses of Interface org.newdawn.slick.command.Control (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.command.Control

+
+ + + + + + + + + +
+Packages that use Control
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
+  +

+ + + + + +
+Uses of Control in org.newdawn.slick.command
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.command that implement Control
+ classControllerButtonControl + +
+          A control indicating that a gamepad/joystick button must be pressed + or released to invoke an command.
+ classControllerDirectionControl + +
+          A control indicating that a particular direction must be pressed or released + on a controller to cause the command to fire
+ classKeyControl + +
+          A control relating to a command indicate that it should be fired when a specific key is pressed + or released.
+ classMouseButtonControl + +
+          A control indicating that a mouse button must be pressed or released to cause an command
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.command with parameters of type Control
+ voidInputProvider.bindCommand(Control control, + Command command) + +
+          Bind an command to a control.
+ voidInputProvider.unbindCommand(Control control) + +
+          Unbinds the command associated with this control
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/ControllerButtonControl.html b/lib/javadoc/org/newdawn/slick/command/class-use/ControllerButtonControl.html new file mode 100644 index 000000000..47b1a3251 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/ControllerButtonControl.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.ControllerButtonControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.ControllerButtonControl

+
+No usage of org.newdawn.slick.command.ControllerButtonControl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/ControllerDirectionControl.html b/lib/javadoc/org/newdawn/slick/command/class-use/ControllerDirectionControl.html new file mode 100644 index 000000000..74e2c993f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/ControllerDirectionControl.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.ControllerDirectionControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.ControllerDirectionControl

+
+No usage of org.newdawn.slick.command.ControllerDirectionControl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/InputProvider.html b/lib/javadoc/org/newdawn/slick/command/class-use/InputProvider.html new file mode 100644 index 000000000..a2530480e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/InputProvider.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.InputProvider (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.InputProvider

+
+No usage of org.newdawn.slick.command.InputProvider +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/InputProviderListener.html b/lib/javadoc/org/newdawn/slick/command/class-use/InputProviderListener.html new file mode 100644 index 000000000..2abae5166 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/InputProviderListener.html @@ -0,0 +1,218 @@ + + + + + + +Uses of Interface org.newdawn.slick.command.InputProviderListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.command.InputProviderListener

+
+ + + + + + + + + + + + + +
+Packages that use InputProviderListener
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of InputProviderListener in org.newdawn.slick.command
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.command with parameters of type InputProviderListener
+ voidInputProvider.addListener(InputProviderListener listener) + +
+          Add a listener to the provider.
+ voidInputProvider.removeListener(InputProviderListener listener) + +
+          Remove a listener from this provider.
+  +

+ + + + + +
+Uses of InputProviderListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.tests that implement InputProviderListener
+ classInputProviderTest + +
+          A test for abstract input via InputProvider
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/KeyControl.html b/lib/javadoc/org/newdawn/slick/command/class-use/KeyControl.html new file mode 100644 index 000000000..9f68f740b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/KeyControl.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.KeyControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.KeyControl

+
+No usage of org.newdawn.slick.command.KeyControl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/class-use/MouseButtonControl.html b/lib/javadoc/org/newdawn/slick/command/class-use/MouseButtonControl.html new file mode 100644 index 000000000..d646215e7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/class-use/MouseButtonControl.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.command.MouseButtonControl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.command.MouseButtonControl

+
+No usage of org.newdawn.slick.command.MouseButtonControl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/package-frame.html b/lib/javadoc/org/newdawn/slick/command/package-frame.html new file mode 100644 index 000000000..a538c6af3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/package-frame.html @@ -0,0 +1,57 @@ + + + + + + +org.newdawn.slick.command (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.command + + + + +
+Interfaces  + +
+Command +
+Control +
+InputProviderListener
+ + + + + + +
+Classes  + +
+BasicCommand +
+ControllerButtonControl +
+ControllerDirectionControl +
+InputProvider +
+KeyControl +
+MouseButtonControl
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/command/package-summary.html b/lib/javadoc/org/newdawn/slick/command/package-summary.html new file mode 100644 index 000000000..e7df3a8cb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/package-summary.html @@ -0,0 +1,220 @@ + + + + + + +org.newdawn.slick.command (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.command +

+Provides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
CommandThe description of a action feedback from the abstract input system.
ControlMarker class for abstract input controls
InputProviderListenerDescription of any class wishing to recieve notifications of command invocations.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BasicCommandA simple named command
ControllerButtonControlA control indicating that a gamepad/joystick button must be pressed + or released to invoke an command.
ControllerDirectionControlA control indicating that a particular direction must be pressed or released + on a controller to cause the command to fire
InputProviderThe central provider that maps real device input into abstract commands + defined by the developer.
KeyControlA control relating to a command indicate that it should be fired when a specific key is pressed + or released.
MouseButtonControlA control indicating that a mouse button must be pressed or released to cause an command
+  + +

+

+Package org.newdawn.slick.command Description +

+ +

+Provides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/package-tree.html b/lib/javadoc/org/newdawn/slick/command/package-tree.html new file mode 100644 index 000000000..282d13a59 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/package-tree.html @@ -0,0 +1,161 @@ + + + + + + +org.newdawn.slick.command Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.command +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/command/package-use.html b/lib/javadoc/org/newdawn/slick/command/package-use.html new file mode 100644 index 000000000..b0b73d2d5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/command/package-use.html @@ -0,0 +1,208 @@ + + + + + + +Uses of Package org.newdawn.slick.command (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.command

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.command
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.command used by org.newdawn.slick.command
Command + +
+          The description of a action feedback from the abstract input system.
Control + +
+          Marker class for abstract input controls
InputProviderListener + +
+          Description of any class wishing to recieve notifications of command invocations.
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.command used by org.newdawn.slick.tests
Command + +
+          The description of a action feedback from the abstract input system.
InputProviderListener + +
+          Description of any class wishing to recieve notifications of command invocations.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/fills/GradientFill.html b/lib/javadoc/org/newdawn/slick/fills/GradientFill.html new file mode 100644 index 000000000..ff0478b4c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/GradientFill.html @@ -0,0 +1,701 @@ + + + + + + +GradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.fills +
+Class GradientFill

+
+java.lang.Object
+  extended by org.newdawn.slick.fills.GradientFill
+
+
+
All Implemented Interfaces:
ShapeFill
+
+
+
+
public class GradientFill
extends java.lang.Object
implements ShapeFill
+ + +

+A fill effect used to define gradients when filling and drawing shapes. A gradient is defined + by two control points. Each point that is rendered is coloured based on it's proximity to the + points. Note that the points are defined relative to the center of the shape being drawn. This + is with the intention that the gradient fills can be used and do not need to be updated when + the geometry is moved +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
GradientFill(float sx, + float sy, + Color startCol, + float ex, + float ey, + Color endCol) + +
+          Create a gradient fill
GradientFill(float sx, + float sy, + Color startCol, + float ex, + float ey, + Color endCol, + boolean local) + +
+          Create a gradient fill
GradientFill(Vector2f start, + Color startCol, + Vector2f end, + Color endCol, + boolean local) + +
+          Create a gradient fill
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ColorcolorAt(float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ ColorcolorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ Vector2fgetEnd() + +
+          Get the position of the end control point
+ ColorgetEndColor() + +
+          Get the colour at the end control point
+ GradientFillgetInvertedCopy() + +
+          Get an inverted copy of the gradient
+ Vector2fgetOffsetAt(Shape shape, + float x, + float y) + +
+          Get the offset for a vertex at a given location based on it's shape
+ Vector2fgetStart() + +
+          Get the position of the start control point
+ ColorgetStartColor() + +
+          Get the colour at the start control point
+ voidsetEnd(float x, + float y) + +
+          Set the end control point's position
+ voidsetEnd(Vector2f end) + +
+          Set the end control point's position
+ voidsetEndColor(Color color) + +
+          Set the colour to apply at the end control's position
+ voidsetLocal(boolean local) + +
+          Indicate if the gradient is defined in shape local coordinates
+ voidsetStart(float x, + float y) + +
+          Set the start point's position
+ voidsetStart(Vector2f start) + +
+          Set the start control point's position
+ voidsetStartColor(Color color) + +
+          Set the colour to apply at the start control's position
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GradientFill

+
+public GradientFill(float sx,
+                    float sy,
+                    Color startCol,
+                    float ex,
+                    float ey,
+                    Color endCol)
+
+
Create a gradient fill +

+

+
Parameters:
sx - The x coordinate of the starting control point
sy - The y coordinate of the starting control point
startCol - The colour to apply at the starting control point
ex - The x coordinate of the ending control point
ey - The y coordinate of the ending control point
endCol - The colour to apply at the ending control point
+
+
+ +

+GradientFill

+
+public GradientFill(float sx,
+                    float sy,
+                    Color startCol,
+                    float ex,
+                    float ey,
+                    Color endCol,
+                    boolean local)
+
+
Create a gradient fill +

+

+
Parameters:
sx - The x coordinate of the starting control point
sy - The y coordinate of the starting control point
startCol - The colour to apply at the starting control point
ex - The x coordinate of the ending control point
ey - The y coordinate of the ending control point
endCol - The colour to apply at the ending control point
local - True if the gradient is defined in local shape coordinates
+
+
+ +

+GradientFill

+
+public GradientFill(Vector2f start,
+                    Color startCol,
+                    Vector2f end,
+                    Color endCol,
+                    boolean local)
+
+
Create a gradient fill +

+

+
Parameters:
start - The position of the starting control point
startCol - The colour to apply at the starting control point
end - The position of the ending control point
endCol - The colour to apply at the ending control point
local - True if the gradient is defined in local shape coordinates
+
+ + + + + + + + +
+Method Detail
+ +

+getInvertedCopy

+
+public GradientFill getInvertedCopy()
+
+
Get an inverted copy of the gradient +

+

+
+
+
+ +
Returns:
The copy with the colours inverted
+
+
+
+ +

+setLocal

+
+public void setLocal(boolean local)
+
+
Indicate if the gradient is defined in shape local coordinates +

+

+
+
+
+
Parameters:
local - True if the gradient is defined in shape local coordinates
+
+
+
+ +

+getStart

+
+public Vector2f getStart()
+
+
Get the position of the start control point +

+

+
+
+
+ +
Returns:
The position of the start control point
+
+
+
+ +

+getEnd

+
+public Vector2f getEnd()
+
+
Get the position of the end control point +

+

+
+
+
+ +
Returns:
The position of the end control point
+
+
+
+ +

+getStartColor

+
+public Color getStartColor()
+
+
Get the colour at the start control point +

+

+
+
+
+ +
Returns:
The color at the start control point
+
+
+
+ +

+getEndColor

+
+public Color getEndColor()
+
+
Get the colour at the end control point +

+

+
+
+
+ +
Returns:
The color at the end control point
+
+
+
+ +

+setStart

+
+public void setStart(float x,
+                     float y)
+
+
Set the start point's position +

+

+
+
+
+
Parameters:
x - The x coordinate of the start control point
y - The y coordinate of the start control point
+
+
+
+ +

+setStart

+
+public void setStart(Vector2f start)
+
+
Set the start control point's position +

+

+
+
+
+
Parameters:
start - The new poisition for the start point
+
+
+
+ +

+setEnd

+
+public void setEnd(float x,
+                   float y)
+
+
Set the end control point's position +

+

+
+
+
+
Parameters:
x - The x coordinate of the end control point
y - The y coordinate of the end control point
+
+
+
+ +

+setEnd

+
+public void setEnd(Vector2f end)
+
+
Set the end control point's position +

+

+
+
+
+
Parameters:
end - The new position for the end point
+
+
+
+ +

+setStartColor

+
+public void setStartColor(Color color)
+
+
Set the colour to apply at the start control's position +

+

+
+
+
+
Parameters:
color - The colour to apply at the start control point
+
+
+
+ +

+setEndColor

+
+public void setEndColor(Color color)
+
+
Set the colour to apply at the end control's position +

+

+
+
+
+
Parameters:
color - The colour to apply at the end control point
+
+
+
+ +

+colorAt

+
+public Color colorAt(Shape shape,
+                     float x,
+                     float y)
+
+
Get the colour that should be applied at the specified location +

+

+
Specified by:
colorAt in interface ShapeFill
+
+
+
Parameters:
shape - The shape being filled
x - The x coordinate of the point being coloured
y - The y coordinate of the point being coloured +
Returns:
The colour that should be applied based on the control points of this gradient
+
+
+
+ +

+colorAt

+
+public Color colorAt(float x,
+                     float y)
+
+
Get the colour that should be applied at the specified location +

+

+
+
+
+
Parameters:
x - The x coordinate of the point being coloured
y - The y coordinate of the point being coloured +
Returns:
The colour that should be applied based on the control points of this gradient
+
+
+
+ +

+getOffsetAt

+
+public Vector2f getOffsetAt(Shape shape,
+                            float x,
+                            float y)
+
+
Description copied from interface: ShapeFill
+
Get the offset for a vertex at a given location based on it's shape +

+

+
Specified by:
getOffsetAt in interface ShapeFill
+
+
+
Parameters:
shape - The shape being filled
x - The x coordinate of the point being drawn
y - The y coordinate of the point being drawn +
Returns:
The offset to apply to this vertex
See Also:
ShapeFill.getOffsetAt(org.newdawn.slick.geom.Shape, float, float)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/fills/class-use/GradientFill.html b/lib/javadoc/org/newdawn/slick/fills/class-use/GradientFill.html new file mode 100644 index 000000000..8894c400c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/class-use/GradientFill.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.fills.GradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.fills.GradientFill

+
+ + + + + + + + + +
+Packages that use GradientFill
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
+  +

+ + + + + +
+Uses of GradientFill in org.newdawn.slick.fills
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.fills that return GradientFill
+ GradientFillGradientFill.getInvertedCopy() + +
+          Get an inverted copy of the gradient
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/fills/package-frame.html b/lib/javadoc/org/newdawn/slick/fills/package-frame.html new file mode 100644 index 000000000..cc7ea3c28 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.newdawn.slick.fills (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.fills + + + + +
+Classes  + +
+GradientFill
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/fills/package-summary.html b/lib/javadoc/org/newdawn/slick/fills/package-summary.html new file mode 100644 index 000000000..89e9afdb4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/package-summary.html @@ -0,0 +1,172 @@ + + + + + + +org.newdawn.slick.fills (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.fills +

+Fill effects used to colour and mogrify shapes during rendering +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
GradientFillA fill effect used to define gradients when filling and drawing shapes.
+  + +

+

+Package org.newdawn.slick.fills Description +

+ +

+Fill effects used to colour and mogrify shapes during rendering +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/fills/package-tree.html b/lib/javadoc/org/newdawn/slick/fills/package-tree.html new file mode 100644 index 000000000..994b8bca9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.newdawn.slick.fills Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.fills +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/fills/package-use.html b/lib/javadoc/org/newdawn/slick/fills/package-use.html new file mode 100644 index 000000000..6e235086b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/fills/package-use.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Package org.newdawn.slick.fills (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.fills

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.fills
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.fills used by org.newdawn.slick.fills
GradientFill + +
+          A fill effect used to define gradients when filling and drawing shapes.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/Glyph.html b/lib/javadoc/org/newdawn/slick/font/Glyph.html new file mode 100644 index 000000000..096ba743a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/Glyph.html @@ -0,0 +1,453 @@ + + + + + + +Glyph (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font +
+Class Glyph

+
+java.lang.Object
+  extended by org.newdawn.slick.font.Glyph
+
+
+
+
public class Glyph
extends java.lang.Object
+ + +

+Represents the glyph in a font for a unicode codepoint. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Glyph(int codePoint, + java.awt.Rectangle bounds, + java.awt.font.GlyphVector vector, + int index, + UnicodeFont unicodeFont) + +
+          Create a new glyph
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetCodePoint() + +
+          The unicode codepoint the glyph represents.
+ intgetHeight() + +
+          The height of the glyph's image.
+ ImagegetImage() + +
+          The image to use for this glyph.
+ java.awt.ShapegetShape() + +
+          The shape to use to draw this glyph.
+ intgetWidth() + +
+          The width of the glyph's image.
+ intgetYOffset() + +
+          The distance from drawing y location to top of this glyph, causing the glyph to sit + on the baseline.
+ booleanisMissing() + +
+          Returns true if the font does not have a glyph for this codepoint.
+ voidsetImage(Image image) + +
+          Set the image that has been generated for this glyph
+ voidsetShape(java.awt.Shape shape) + +
+          Set the shape that should be drawn for this glyph
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Glyph

+
+public Glyph(int codePoint,
+             java.awt.Rectangle bounds,
+             java.awt.font.GlyphVector vector,
+             int index,
+             UnicodeFont unicodeFont)
+
+
Create a new glyph +

+

+
Parameters:
codePoint - The code point in which this glyph can be found
bounds - The bounds that this glrph can fill
vector - The vector this glyph is part of
index - The index of this glyph within the vector
unicodeFont - The font this glyph forms part of
+
+ + + + + + + + +
+Method Detail
+ +

+getCodePoint

+
+public int getCodePoint()
+
+
The unicode codepoint the glyph represents. +

+

+ +
Returns:
The codepoint the glyph represents
+
+
+
+ +

+isMissing

+
+public boolean isMissing()
+
+
Returns true if the font does not have a glyph for this codepoint. +

+

+ +
Returns:
True if this glyph is not defined in the given code point
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
The width of the glyph's image. +

+

+ +
Returns:
The width in pixels of the glyphs image
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
The height of the glyph's image. +

+

+ +
Returns:
The height in pixels of the glyphs image
+
+
+
+ +

+getShape

+
+public java.awt.Shape getShape()
+
+
The shape to use to draw this glyph. This is set to null after the glyph is stored + in a GlyphPage. +

+

+ +
Returns:
The shape drawn for this glyph
+
+
+
+ +

+setShape

+
+public void setShape(java.awt.Shape shape)
+
+
Set the shape that should be drawn for this glyph +

+

+
Parameters:
shape - The shape that should be drawn for this glyph
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
The image to use for this glyph. This is null until after the glyph is stored in a + GlyphPage. +

+

+ +
Returns:
The image that has been generated for this glyph
+
+
+
+ +

+setImage

+
+public void setImage(Image image)
+
+
Set the image that has been generated for this glyph +

+

+
Parameters:
image - The image that has been generated for this glyph
+
+
+
+ +

+getYOffset

+
+public int getYOffset()
+
+
The distance from drawing y location to top of this glyph, causing the glyph to sit + on the baseline. +

+

+ +
Returns:
The offset on the y axis this glyph should be drawn at
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/GlyphPage.html b/lib/javadoc/org/newdawn/slick/font/GlyphPage.html new file mode 100644 index 000000000..3aecb1b3d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/GlyphPage.html @@ -0,0 +1,407 @@ + + + + + + +GlyphPage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font +
+Class GlyphPage

+
+java.lang.Object
+  extended by org.newdawn.slick.font.GlyphPage
+
+
+
+
public class GlyphPage
extends java.lang.Object
+ + +

+Stores a number of glyphs on a single texture. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intMAX_GLYPH_SIZE + +
+          The maxium size of an individual glyph
+static java.awt.font.FontRenderContextrenderContext + +
+          The render context in which the glyphs will be generated
+  + + + + + + + + + + +
+Constructor Summary
GlyphPage(UnicodeFont unicodeFont, + int pageWidth, + int pageHeight) + +
+          Create a new page of glyphs
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.ListgetGlyphs() + +
+          Returns the glyphs stored on this page.
+ ImagegetImage() + +
+          Returns the backing texture for this page.
+static java.awt.Graphics2DgetScratchGraphics() + +
+          Get the scratch graphics used to generate the page of glyphs
+ intloadGlyphs(java.util.List glyphs, + int maxGlyphsToLoad) + +
+          Loads glyphs to the backing texture and sets the image on each loaded glyph.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+MAX_GLYPH_SIZE

+
+public static final int MAX_GLYPH_SIZE
+
+
The maxium size of an individual glyph +

+

+
See Also:
Constant Field Values
+
+
+ +

+renderContext

+
+public static java.awt.font.FontRenderContext renderContext
+
+
The render context in which the glyphs will be generated +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GlyphPage

+
+public GlyphPage(UnicodeFont unicodeFont,
+                 int pageWidth,
+                 int pageHeight)
+          throws SlickException
+
+
Create a new page of glyphs +

+

+
Parameters:
unicodeFont - The font this page forms part of
pageWidth - The width of the backing texture.
pageHeight - The height of the backing texture. +
Throws: +
SlickException - if the backing texture could not be created.
+
+ + + + + + + + +
+Method Detail
+ +

+getScratchGraphics

+
+public static java.awt.Graphics2D getScratchGraphics()
+
+
Get the scratch graphics used to generate the page of glyphs +

+

+ +
Returns:
The scratch graphics used to build the page
+
+
+
+ +

+loadGlyphs

+
+public int loadGlyphs(java.util.List glyphs,
+                      int maxGlyphsToLoad)
+               throws SlickException
+
+
Loads glyphs to the backing texture and sets the image on each loaded glyph. Loaded glyphs are removed from the list. + + If this page already has glyphs and maxGlyphsToLoad is -1, then this method will return 0 if all the new glyphs don't fit. + This reduces texture binds when drawing since glyphs loaded at once are typically displayed together. +

+

+
Parameters:
glyphs - The glyphs to load.
maxGlyphsToLoad - This is the maximum number of glyphs to load from the list. Set to -1 to attempt to load all the + glyphs. +
Returns:
The number of glyphs that were actually loaded. +
Throws: +
SlickException - if the glyph could not be rendered.
+
+
+
+ +

+getGlyphs

+
+public java.util.List getGlyphs()
+
+
Returns the glyphs stored on this page. +

+

+ +
Returns:
A list of Glyph elements on this page
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
Returns the backing texture for this page. +

+

+ +
Returns:
The image of this page of glyphs
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/HieroSettings.html b/lib/javadoc/org/newdawn/slick/font/HieroSettings.html new file mode 100644 index 000000000..5679a09cc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/HieroSettings.html @@ -0,0 +1,764 @@ + + + + + + +HieroSettings (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font +
+Class HieroSettings

+
+java.lang.Object
+  extended by org.newdawn.slick.font.HieroSettings
+
+
+
+
public class HieroSettings
extends java.lang.Object
+ + +

+Holds the settings needed to configure a UnicodeFont. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
HieroSettings() + +
+          Default constructor for injection
HieroSettings(java.io.InputStream in) + +
+          Create a new set of configuration from a file
HieroSettings(java.lang.String hieroFileRef) + +
+          Create a new set of configuration from a file
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.ListgetEffects() + +
+           
+ intgetFontSize() + +
+           
+ intgetGlyphPageHeight() + +
+           
+ intgetGlyphPageWidth() + +
+           
+ intgetPaddingAdvanceX() + +
+           
+ intgetPaddingAdvanceY() + +
+           
+ intgetPaddingBottom() + +
+           
+ intgetPaddingLeft() + +
+           
+ intgetPaddingRight() + +
+           
+ intgetPaddingTop() + +
+           
+ booleanisBold() + +
+           
+ booleanisItalic() + +
+           
+ voidsave(java.io.File file) + +
+          Saves the settings to a file.
+ voidsetBold(boolean bold) + +
+           
+ voidsetFontSize(int fontSize) + +
+           
+ voidsetGlyphPageHeight(int glyphPageHeight) + +
+           
+ voidsetGlyphPageWidth(int glyphPageWidth) + +
+           
+ voidsetItalic(boolean italic) + +
+           
+ voidsetPaddingAdvanceX(int paddingAdvanceX) + +
+           
+ voidsetPaddingAdvanceY(int paddingAdvanceY) + +
+           
+ voidsetPaddingBottom(int paddingBottom) + +
+           
+ voidsetPaddingLeft(int paddingLeft) + +
+           
+ voidsetPaddingRight(int paddingRight) + +
+           
+ voidsetPaddingTop(int paddingTop) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HieroSettings

+
+public HieroSettings()
+
+
Default constructor for injection +

+

+
+ +

+HieroSettings

+
+public HieroSettings(java.lang.String hieroFileRef)
+              throws SlickException
+
+
Create a new set of configuration from a file +

+

+
Parameters:
hieroFileRef - The file system or classpath location of the Hiero settings file. +
Throws: +
SlickException - if the file could not be read.
+
+
+ +

+HieroSettings

+
+public HieroSettings(java.io.InputStream in)
+              throws SlickException
+
+
Create a new set of configuration from a file +

+

+
Parameters:
in - The stream from which to read the settings from +
Throws: +
SlickException - if the file could not be read.
+
+ + + + + + + + +
+Method Detail
+ +

+getPaddingTop

+
+public int getPaddingTop()
+
+
+ +
Returns:
The padding for the top of the glyph area in pixels
See Also:
UnicodeFont.getPaddingTop()
+
+
+
+ +

+setPaddingTop

+
+public void setPaddingTop(int paddingTop)
+
+
+
Parameters:
paddingTop - The padding for the top of the glyph area in pixels
See Also:
UnicodeFont.setPaddingTop(int)
+
+
+
+ +

+getPaddingLeft

+
+public int getPaddingLeft()
+
+
+ +
Returns:
The padding for the left of the glyph area in pixels
See Also:
UnicodeFont.getPaddingLeft()
+
+
+
+ +

+setPaddingLeft

+
+public void setPaddingLeft(int paddingLeft)
+
+
+
Parameters:
paddingLeft - The padding for the left of the glyph area in pixels
See Also:
UnicodeFont.setPaddingLeft(int)
+
+
+
+ +

+getPaddingBottom

+
+public int getPaddingBottom()
+
+
+ +
Returns:
The padding for the bottom of the glyph area in pixels
See Also:
UnicodeFont.getPaddingBottom()
+
+
+
+ +

+setPaddingBottom

+
+public void setPaddingBottom(int paddingBottom)
+
+
+
Parameters:
paddingBottom - The padding for the bottom of the glyph area in pixels
See Also:
UnicodeFont.setPaddingBottom(int)
+
+
+
+ +

+getPaddingRight

+
+public int getPaddingRight()
+
+
+ +
Returns:
The padding for the right of the glyph area in pixels
See Also:
UnicodeFont.getPaddingRight()
+
+
+
+ +

+setPaddingRight

+
+public void setPaddingRight(int paddingRight)
+
+
+
Parameters:
paddingRight - The padding for the right of the glyph area in pixels
See Also:
UnicodeFont.setPaddingRight(int)
+
+
+
+ +

+getPaddingAdvanceX

+
+public int getPaddingAdvanceX()
+
+
+ +
Returns:
The padding for the horizontal advance of each glyph
See Also:
UnicodeFont.getPaddingAdvanceX()
+
+
+
+ +

+setPaddingAdvanceX

+
+public void setPaddingAdvanceX(int paddingAdvanceX)
+
+
+
Parameters:
paddingAdvanceX - The padding for the horizontal advance of each glyph
See Also:
UnicodeFont.setPaddingAdvanceX(int)
+
+
+
+ +

+getPaddingAdvanceY

+
+public int getPaddingAdvanceY()
+
+
+ +
Returns:
The padding for the vertical advance of each glyph
See Also:
UnicodeFont.getPaddingAdvanceY()
+
+
+
+ +

+setPaddingAdvanceY

+
+public void setPaddingAdvanceY(int paddingAdvanceY)
+
+
+
Parameters:
paddingAdvanceY - The padding for the vertical advance of each glyph
See Also:
UnicodeFont.setPaddingAdvanceY(int)
+
+
+
+ +

+getGlyphPageWidth

+
+public int getGlyphPageWidth()
+
+
+ +
Returns:
The width of the generate glyph pages
See Also:
UnicodeFont.getGlyphPageWidth()
+
+
+
+ +

+setGlyphPageWidth

+
+public void setGlyphPageWidth(int glyphPageWidth)
+
+
+
Parameters:
glyphPageWidth - The width of the generate glyph pages
See Also:
UnicodeFont.setGlyphPageWidth(int)
+
+
+
+ +

+getGlyphPageHeight

+
+public int getGlyphPageHeight()
+
+
+ +
Returns:
The height of the generate glyph pages
See Also:
UnicodeFont.getGlyphPageHeight()
+
+
+
+ +

+setGlyphPageHeight

+
+public void setGlyphPageHeight(int glyphPageHeight)
+
+
+
Parameters:
glyphPageHeight - The height of the generate glyph pages
See Also:
UnicodeFont.setGlyphPageHeight(int)
+
+
+
+ +

+getFontSize

+
+public int getFontSize()
+
+
+ +
Returns:
The point size of the font generated
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+setFontSize

+
+public void setFontSize(int fontSize)
+
+
+
Parameters:
fontSize - The point size of the font generated
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+isBold

+
+public boolean isBold()
+
+
+ +
Returns:
True if the font was generated in bold typeface
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+setBold

+
+public void setBold(boolean bold)
+
+
+
Parameters:
bold - True if the font was generated in bold typeface
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+isItalic

+
+public boolean isItalic()
+
+
+ +
Returns:
True if the font was generated in italic typeface
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+setItalic

+
+public void setItalic(boolean italic)
+
+
+
Parameters:
italic - True if the font was generated in italic typeface
See Also:
UnicodeFont.UnicodeFont(String, int, boolean, boolean), +UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
+
+
+
+ +

+getEffects

+
+public java.util.List getEffects()
+
+
+ +
Returns:
The list of effects applied to the text
See Also:
UnicodeFont.getEffects()
+
+
+
+ +

+save

+
+public void save(java.io.File file)
+          throws java.io.IOException
+
+
Saves the settings to a file. +

+

+
Parameters:
file - The file we're saving to +
Throws: +
java.io.IOException - if the file could not be saved.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/class-use/Glyph.html b/lib/javadoc/org/newdawn/slick/font/class-use/Glyph.html new file mode 100644 index 000000000..edaa0b922 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/class-use/Glyph.html @@ -0,0 +1,238 @@ + + + + + + +Uses of Class org.newdawn.slick.font.Glyph (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.Glyph

+
+ + + + + + + + + +
+Packages that use Glyph
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of Glyph in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.font.effects with parameters of type Glyph
+ voidShadowEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidOutlineEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidGradientEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidFilterEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+ voidEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ voidColorEffect.draw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/class-use/GlyphPage.html b/lib/javadoc/org/newdawn/slick/font/class-use/GlyphPage.html new file mode 100644 index 000000000..681bfe319 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/class-use/GlyphPage.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.GlyphPage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.GlyphPage

+
+No usage of org.newdawn.slick.font.GlyphPage +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/class-use/HieroSettings.html b/lib/javadoc/org/newdawn/slick/font/class-use/HieroSettings.html new file mode 100644 index 000000000..3044b12de --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/class-use/HieroSettings.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class org.newdawn.slick.font.HieroSettings (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.HieroSettings

+
+ + + + + + + + + +
+Packages that use HieroSettings
org.newdawn.slick  
+  +

+ + + + + +
+Uses of HieroSettings in org.newdawn.slick
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type HieroSettings
UnicodeFont(java.awt.Font font, + HieroSettings settings) + +
+          Creates a new UnicodeFont.
UnicodeFont(java.lang.String ttfFileRef, + HieroSettings settings) + +
+          Create a new unicode font based on a TTF file and a set of heiro configuration
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/ColorEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/ColorEffect.html new file mode 100644 index 000000000..2ab042449 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/ColorEffect.html @@ -0,0 +1,436 @@ + + + + + + +ColorEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class ColorEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.ColorEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
+
public class ColorEffect
extends java.lang.Object
implements ConfigurableEffect
+ + +

+Makes glyphs a solid color. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + +
+Constructor Summary
ColorEffect() + +
+          Default constructor for injection
ColorEffect(java.awt.Color color) + +
+          Create a new effect to colour the text
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ java.awt.ColorgetColor() + +
+          Get the colour being applied by this effect
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ voidsetColor(java.awt.Color color) + +
+          Set the colour being applied by this effect
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ColorEffect

+
+public ColorEffect()
+
+
Default constructor for injection +

+

+
+ +

+ColorEffect

+
+public ColorEffect(java.awt.Color color)
+
+
Create a new effect to colour the text +

+

+
Parameters:
color - The colour to apply across the text
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(java.awt.image.BufferedImage image,
+                 java.awt.Graphics2D g,
+                 UnicodeFont unicodeFont,
+                 Glyph glyph)
+
+
Description copied from interface: Effect
+
Called to draw the effect. +

+

+
Specified by:
draw in interface Effect
+
+
+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
See Also:
Effect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
+
+
+
+ +

+getColor

+
+public java.awt.Color getColor()
+
+
Get the colour being applied by this effect +

+

+
+
+
+ +
Returns:
The colour being applied by this effect
+
+
+
+ +

+setColor

+
+public void setColor(java.awt.Color color)
+
+
Set the colour being applied by this effect +

+

+
+
+
+
Parameters:
color - The colour being applied by this effect
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.Value.html b/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.Value.html new file mode 100644 index 000000000..1b90facf7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.Value.html @@ -0,0 +1,299 @@ + + + + + + +ConfigurableEffect.Value (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Interface ConfigurableEffect.Value

+
+
Enclosing interface:
ConfigurableEffect
+
+
+
+
public static interface ConfigurableEffect.Value
+ + +

+Represents a configurable value for an effect. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetName() + +
+          Returns the name of the value.
+ java.lang.ObjectgetObject() + +
+          Gets the object representation of the value.
+ java.lang.StringgetString() + +
+          Gets the string representation of the value.
+ voidsetString(java.lang.String value) + +
+          Sets the string representation of the value.
+ voidshowDialog() + +
+          Shows a dialog allowing a user to configure this value.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getName

+
+java.lang.String getName()
+
+
Returns the name of the value. +

+

+
+
+
+
+ +

+setString

+
+void setString(java.lang.String value)
+
+
Sets the string representation of the value. +

+

+
+
+
+
+ +

+getString

+
+java.lang.String getString()
+
+
Gets the string representation of the value. +

+

+
+
+
+
+ +

+getObject

+
+java.lang.Object getObject()
+
+
Gets the object representation of the value. +

+

+
+
+
+
+ +

+showDialog

+
+void showDialog()
+
+
Shows a dialog allowing a user to configure this value. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.html new file mode 100644 index 000000000..d27c0296f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/ConfigurableEffect.html @@ -0,0 +1,277 @@ + + + + + + +ConfigurableEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Interface ConfigurableEffect

+
+
All Superinterfaces:
Effect
+
+
+
All Known Implementing Classes:
ColorEffect, GradientEffect, OutlineEffect, OutlineWobbleEffect, OutlineZigzagEffect, ShadowEffect
+
+
+
+
public interface ConfigurableEffect
extends Effect
+ + +

+An effect that has a number of configuration values. This allows the effect to be configured in the Hiero GUI and to be saved + and loaded to and from a file. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static interfaceConfigurableEffect.Value + +
+          Represents a configurable value for an effect.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.font.effects.Effect
draw
+  +

+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+java.util.List getValues()
+
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until setValues(List) is called. +

+

+
+
+
+
+
+
+
+ +

+setValues

+
+void setValues(java.util.List values)
+
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/Effect.html b/lib/javadoc/org/newdawn/slick/font/effects/Effect.html new file mode 100644 index 000000000..fde2eb7ed --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/Effect.html @@ -0,0 +1,228 @@ + + + + + + +Effect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Interface Effect

+
+
All Known Subinterfaces:
ConfigurableEffect
+
+
+
All Known Implementing Classes:
ColorEffect, FilterEffect, GradientEffect, OutlineEffect, OutlineWobbleEffect, OutlineZigzagEffect, ShadowEffect
+
+
+
+
public interface Effect
+ + +

+A graphical effect that is applied to glyphs in a UnicodeFont. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+  +

+ + + + + + + + +
+Method Detail
+ +

+draw

+
+void draw(java.awt.image.BufferedImage image,
+          java.awt.Graphics2D g,
+          UnicodeFont unicodeFont,
+          Glyph glyph)
+
+
Called to draw the effect. +

+

+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/EffectUtil.html b/lib/javadoc/org/newdawn/slick/font/effects/EffectUtil.html new file mode 100644 index 000000000..8a68018c6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/EffectUtil.html @@ -0,0 +1,443 @@ + + + + + + +EffectUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class EffectUtil

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.EffectUtil
+
+
+
+
public class EffectUtil
extends java.lang.Object
+ + +

+Provides utility methods for effects. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EffectUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static ConfigurableEffect.ValuebooleanValue(java.lang.String name, + boolean currentValue, + java.lang.String description) + +
+          Prompts the user for boolean value
+static ConfigurableEffect.ValuecolorValue(java.lang.String name, + java.awt.Color currentValue) + +
+          Prompts the user for a colour value
+static ConfigurableEffect.ValuefloatValue(java.lang.String name, + float currentValue, + float min, + float max, + java.lang.String description) + +
+          Prompts the user for float value
+static java.awt.ColorfromString(java.lang.String rgb) + +
+          Converts a string to a color.
+static java.awt.image.BufferedImagegetScratchImage() + +
+          Returns an image that can be used by effects as a temp image.
+static ConfigurableEffect.ValueintValue(java.lang.String name, + int currentValue, + java.lang.String description) + +
+          Prompts the user for int value
+static ConfigurableEffect.ValueoptionValue(java.lang.String name, + java.lang.String currentValue, + java.lang.String[][] options, + java.lang.String description) + +
+          Prompts the user for a value that represents a fixed number of options.
+static java.lang.StringtoString(java.awt.Color color) + +
+          Convers a color to a string.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+EffectUtil

+
+public EffectUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getScratchImage

+
+public static java.awt.image.BufferedImage getScratchImage()
+
+
Returns an image that can be used by effects as a temp image. +

+

+ +
Returns:
The scratch image used for temporary operations
+
+
+
+ +

+colorValue

+
+public static ConfigurableEffect.Value colorValue(java.lang.String name,
+                                                  java.awt.Color currentValue)
+
+
Prompts the user for a colour value +

+

+
Parameters:
name - Thename of the value being configured
currentValue - The default value that should be selected +
Returns:
The value selected
+
+
+
+ +

+intValue

+
+public static ConfigurableEffect.Value intValue(java.lang.String name,
+                                                int currentValue,
+                                                java.lang.String description)
+
+
Prompts the user for int value +

+

+
Parameters:
name - The name of the dialog to show
currentValue - The current value to be displayed
description - The help text to provide +
Returns:
The value selected by the user
+
+
+
+ +

+floatValue

+
+public static ConfigurableEffect.Value floatValue(java.lang.String name,
+                                                  float currentValue,
+                                                  float min,
+                                                  float max,
+                                                  java.lang.String description)
+
+
Prompts the user for float value +

+

+
Parameters:
name - The name of the dialog to show
currentValue - The current value to be displayed
description - The help text to provide
min - The minimum value to allow
max - The maximum value to allow +
Returns:
The value selected by the user
+
+
+
+ +

+booleanValue

+
+public static ConfigurableEffect.Value booleanValue(java.lang.String name,
+                                                    boolean currentValue,
+                                                    java.lang.String description)
+
+
Prompts the user for boolean value +

+

+
Parameters:
name - The name of the dialog to show
currentValue - The current value to be displayed
description - The help text to provide +
Returns:
The value selected by the user
+
+
+
+ +

+optionValue

+
+public static ConfigurableEffect.Value optionValue(java.lang.String name,
+                                                   java.lang.String currentValue,
+                                                   java.lang.String[][] options,
+                                                   java.lang.String description)
+
+
Prompts the user for a value that represents a fixed number of options. + All options are strings. +

+

+
Parameters:
options - The first array has an entry for each option. Each entry is either a String[1] that is both the display value + and actual value, or a String[2] whose first element is the display value and second element is the actual value.
name - The name of the value being prompted for
currentValue - The current value to show as default
description - The description of the value +
Returns:
The value selected by the user
+
+
+
+ +

+toString

+
+public static java.lang.String toString(java.awt.Color color)
+
+
Convers a color to a string. +

+

+
Parameters:
color - The color to encode to a string +
Returns:
The colour as a string
+
+
+
+ +

+fromString

+
+public static java.awt.Color fromString(java.lang.String rgb)
+
+
Converts a string to a color. +

+

+
Parameters:
rgb - The string encoding the colour +
Returns:
The colour represented by the given encoded string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/FilterEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/FilterEffect.html new file mode 100644 index 000000000..2320e6a11 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/FilterEffect.html @@ -0,0 +1,345 @@ + + + + + + +FilterEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class FilterEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.FilterEffect
+
+
+
All Implemented Interfaces:
Effect
+
+
+
+
public class FilterEffect
extends java.lang.Object
implements Effect
+ + +

+Applys a BufferedImageOp filter to glyphs. Many filters can be found + here: http://www.jhlabs.com/ip/filters/index.html +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
FilterEffect() + +
+          Default constructor for injection
FilterEffect(java.awt.image.BufferedImageOp filter) + +
+          Create a new filtering effect based on a convolution operation
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ java.awt.image.BufferedImageOpgetFilter() + +
+          Get the filter being applied by this effect
+ voidsetFilter(java.awt.image.BufferedImageOp filter) + +
+          Set the filter being applied by this effect
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FilterEffect

+
+public FilterEffect()
+
+
Default constructor for injection +

+

+
+ +

+FilterEffect

+
+public FilterEffect(java.awt.image.BufferedImageOp filter)
+
+
Create a new filtering effect based on a convolution operation +

+

+
Parameters:
filter - The filter to apply
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(java.awt.image.BufferedImage image,
+                 java.awt.Graphics2D g,
+                 UnicodeFont unicodeFont,
+                 Glyph glyph)
+
+
Description copied from interface: Effect
+
Called to draw the effect. +

+

+
Specified by:
draw in interface Effect
+
+
+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
See Also:
Effect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
+
+
+
+ +

+getFilter

+
+public java.awt.image.BufferedImageOp getFilter()
+
+
Get the filter being applied by this effect +

+

+
+
+
+ +
Returns:
The filter being applied by this effect
+
+
+
+ +

+setFilter

+
+public void setFilter(java.awt.image.BufferedImageOp filter)
+
+
Set the filter being applied by this effect +

+

+
+
+
+
Parameters:
filter - The filter being used by this effect
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/GradientEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/GradientEffect.html new file mode 100644 index 000000000..19a2c3168 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/GradientEffect.html @@ -0,0 +1,638 @@ + + + + + + +GradientEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class GradientEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.GradientEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
+
public class GradientEffect
extends java.lang.Object
implements ConfigurableEffect
+ + +

+Paints glyphs with a gradient fill. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + +
+Constructor Summary
GradientEffect() + +
+          Default constructor for injection
GradientEffect(java.awt.Color topColor, + java.awt.Color bottomColor, + float scale) + +
+          Create a new effect to apply a graident
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ java.awt.ColorgetBottomColor() + +
+          Get the colour at the bottom of the graident
+ intgetOffset() + +
+          Get the offset the gradients starts at
+ floatgetScale() + +
+          Get the percentage scaling being applied to the gradient across the surface
+ java.awt.ColorgetTopColor() + +
+          Get the colour at the top of the graident
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ booleanisCyclic() + +
+          Check if the graident is repeating
+ voidsetBottomColor(java.awt.Color bottomColor) + +
+          Set the colour at the bottom of the graident
+ voidsetCyclic(boolean cyclic) + +
+          If set to true, the gradient will repeat.
+ voidsetOffset(int offset) + +
+          Sets the pixel offset to move the gradient up or down.
+ voidsetScale(float scale) + +
+          Changes the height of the gradient by a percentage.
+ voidsetTopColor(java.awt.Color topColor) + +
+          Set the colour at the top of the graident
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GradientEffect

+
+public GradientEffect()
+
+
Default constructor for injection +

+

+
+ +

+GradientEffect

+
+public GradientEffect(java.awt.Color topColor,
+                      java.awt.Color bottomColor,
+                      float scale)
+
+
Create a new effect to apply a graident +

+

+
Parameters:
topColor - The colour at the top of the graident
bottomColor - The colour at the bottom of the gradient
scale - The scale of the graident
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(java.awt.image.BufferedImage image,
+                 java.awt.Graphics2D g,
+                 UnicodeFont unicodeFont,
+                 Glyph glyph)
+
+
Description copied from interface: Effect
+
Called to draw the effect. +

+

+
Specified by:
draw in interface Effect
+
+
+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
See Also:
Effect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
+
+
+
+ +

+getTopColor

+
+public java.awt.Color getTopColor()
+
+
Get the colour at the top of the graident +

+

+
+
+
+ +
Returns:
The colour at the top of the gradient
+
+
+
+ +

+setTopColor

+
+public void setTopColor(java.awt.Color topColor)
+
+
Set the colour at the top of the graident +

+

+
+
+
+
Parameters:
topColor - The colour at the top of the graident
+
+
+
+ +

+getBottomColor

+
+public java.awt.Color getBottomColor()
+
+
Get the colour at the bottom of the graident +

+

+
+
+
+ +
Returns:
The colour at the bottom of the gradient
+
+
+
+ +

+setBottomColor

+
+public void setBottomColor(java.awt.Color bottomColor)
+
+
Set the colour at the bottom of the graident +

+

+
+
+
+
Parameters:
bottomColor - The colour at the bottom of the graident
+
+
+
+ +

+getOffset

+
+public int getOffset()
+
+
Get the offset the gradients starts at +

+

+
+
+
+ +
Returns:
The offset the gradient starts at
+
+
+
+ +

+setOffset

+
+public void setOffset(int offset)
+
+
Sets the pixel offset to move the gradient up or down. + The gradient is normally centered on the glyph. +

+

+
+
+
+
Parameters:
offset - The offset the gradient is moved by
+
+
+
+ +

+getScale

+
+public float getScale()
+
+
Get the percentage scaling being applied to the gradient across the surface +

+

+
+
+
+ +
Returns:
The scale of the graident
+
+
+
+ +

+setScale

+
+public void setScale(float scale)
+
+
Changes the height of the gradient by a percentage. The gradient is + normally the height of most glyphs in the font. +

+

+
+
+
+
Parameters:
scale - The scale to apply
+
+
+
+ +

+isCyclic

+
+public boolean isCyclic()
+
+
Check if the graident is repeating +

+

+
+
+
+ +
Returns:
True if the gradient is repeating
+
+
+
+ +

+setCyclic

+
+public void setCyclic(boolean cyclic)
+
+
If set to true, the gradient will repeat. +

+

+
+
+
+
Parameters:
cyclic - True if the graident repeats
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/OutlineEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/OutlineEffect.html new file mode 100644 index 000000000..550021b97 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/OutlineEffect.html @@ -0,0 +1,591 @@ + + + + + + +OutlineEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class OutlineEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.OutlineEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
Direct Known Subclasses:
OutlineWobbleEffect, OutlineZigzagEffect
+
+
+
+
public class OutlineEffect
extends java.lang.Object
implements ConfigurableEffect
+ + +

+Strokes glyphs with an outline. +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + +
+Constructor Summary
OutlineEffect() + +
+          Default constructor for injection
OutlineEffect(int width, + java.awt.Color color) + +
+          Create a new effect to draw the outline of the text
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ java.awt.ColorgetColor() + +
+          Get the colour of the outline being drawn
+ intgetJoin() + +
+          Get the join type as indicated by @see BasicStroke
+ java.awt.StrokegetStroke() + +
+          Get the stroke being used to draw the outline
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ floatgetWidth() + +
+          Get the width of the outline being drawn
+ voidsetColor(java.awt.Color color) + +
+          Set the colour of the outline being drawn
+ voidsetJoin(int join) + +
+          Sets how the corners of the outline are drawn.
+ voidsetStroke(java.awt.Stroke stroke) + +
+          Sets the stroke to use for the outline.
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ voidsetWidth(int width) + +
+          Sets the width of the outline.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutlineEffect

+
+public OutlineEffect()
+
+
Default constructor for injection +

+

+
+ +

+OutlineEffect

+
+public OutlineEffect(int width,
+                     java.awt.Color color)
+
+
Create a new effect to draw the outline of the text +

+

+
Parameters:
width - The width of the outline
color - The colour of the outline
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(java.awt.image.BufferedImage image,
+                 java.awt.Graphics2D g,
+                 UnicodeFont unicodeFont,
+                 Glyph glyph)
+
+
Description copied from interface: Effect
+
Called to draw the effect. +

+

+
Specified by:
draw in interface Effect
+
+
+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
See Also:
Effect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of the outline being drawn +

+

+
+
+
+ +
Returns:
The width of the outline being drawn
+
+
+
+ +

+setWidth

+
+public void setWidth(int width)
+
+
Sets the width of the outline. The glyphs will need padding so the + outline doesn't get clipped. +

+

+
+
+
+
Parameters:
width - The width of the outline being drawn
+
+
+
+ +

+getColor

+
+public java.awt.Color getColor()
+
+
Get the colour of the outline being drawn +

+

+
+
+
+ +
Returns:
The colour of the outline being drawn
+
+
+
+ +

+setColor

+
+public void setColor(java.awt.Color color)
+
+
Set the colour of the outline being drawn +

+

+
+
+
+
Parameters:
color - The colour of the outline to draw
+
+
+
+ +

+getJoin

+
+public int getJoin()
+
+
Get the join type as indicated by @see BasicStroke +

+

+
+
+
+ +
Returns:
The join type between segments in the outline
+
+
+
+ +

+getStroke

+
+public java.awt.Stroke getStroke()
+
+
Get the stroke being used to draw the outline +

+

+
+
+
+ +
Returns:
The stroke being used to draw the outline
+
+
+
+ +

+setStroke

+
+public void setStroke(java.awt.Stroke stroke)
+
+
Sets the stroke to use for the outline. If this is set, + the other outline settings are ignored. +

+

+
+
+
+
Parameters:
stroke - The stroke to be used to draw the outline
+
+
+
+ +

+setJoin

+
+public void setJoin(int join)
+
+
Sets how the corners of the outline are drawn. This is usually only noticeable + at large outline widths. +

+

+
+
+
+
Parameters:
join - One of: BasicStroke.JOIN_BEVEL, BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/OutlineWobbleEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/OutlineWobbleEffect.html new file mode 100644 index 000000000..ccbf83496 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/OutlineWobbleEffect.html @@ -0,0 +1,454 @@ + + + + + + +OutlineWobbleEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class OutlineWobbleEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.OutlineEffect
+      extended by org.newdawn.slick.font.effects.OutlineWobbleEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
+
public class OutlineWobbleEffect
extends OutlineEffect
+ + +

+An effect that genrates a wobbly line around the outline of the text +

+ +

+

+
Author:
+
Jerry Huxtable, Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + +
+Constructor Summary
OutlineWobbleEffect() + +
+          Default constructor for injection
OutlineWobbleEffect(int width, + java.awt.Color color) + +
+          Create a new effect that generates a wobbly line around the text
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetAmplitude() + +
+          Gets the amplitude of the wobble effect.
+ floatgetDetail() + +
+          Gets the detail of the wobble effect.
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ voidsetAmplitude(float amplitude) + +
+          Sets the amplitude of the wobble effect.
+ voidsetDetail(float detail) + +
+          Sets the detail of the wobble effect.
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class org.newdawn.slick.font.effects.OutlineEffect
draw, getColor, getJoin, getStroke, getWidth, setColor, setJoin, setStroke, setWidth
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutlineWobbleEffect

+
+public OutlineWobbleEffect()
+
+
Default constructor for injection +

+

+
+ +

+OutlineWobbleEffect

+
+public OutlineWobbleEffect(int width,
+                           java.awt.Color color)
+
+
Create a new effect that generates a wobbly line around the text +

+

+
Parameters:
width - The width of the line
color - The colour of the line
+
+ + + + + + + + +
+Method Detail
+ +

+getDetail

+
+public float getDetail()
+
+
Gets the detail of the wobble effect. +

+

+ +
Returns:
The detail of the wobble effect
+
+
+
+ +

+setDetail

+
+public void setDetail(float detail)
+
+
Sets the detail of the wobble effect. +

+

+
Parameters:
detail - The detail of the wobble effect
+
+
+
+ +

+getAmplitude

+
+public float getAmplitude()
+
+
Gets the amplitude of the wobble effect. +

+

+ +
Returns:
The amplitude of the wobble effect
+
+
+
+ +

+setAmplitude

+
+public void setAmplitude(float amplitude)
+
+
Sets the amplitude of the wobble effect. +

+

+
Parameters:
amplitude - The detail of the wobble effect
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class OutlineEffect
+
+
+
See Also:
OutlineEffect.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
Overrides:
getValues in class OutlineEffect
+
+
+
See Also:
OutlineEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
Overrides:
setValues in class OutlineEffect
+
+
+
See Also:
OutlineEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/OutlineZigzagEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/OutlineZigzagEffect.html new file mode 100644 index 000000000..b73dbe0b4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/OutlineZigzagEffect.html @@ -0,0 +1,454 @@ + + + + + + +OutlineZigzagEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class OutlineZigzagEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.OutlineEffect
+      extended by org.newdawn.slick.font.effects.OutlineZigzagEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
+
public class OutlineZigzagEffect
extends OutlineEffect
+ + +

+An effect to generate a uniformly zigzaging line around text +

+ +

+

+
Author:
+
Jerry Huxtable, Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + +
+Constructor Summary
OutlineZigzagEffect() + +
+          Default constructor for injection
OutlineZigzagEffect(int width, + java.awt.Color color) + +
+          Create a new effect to generate a zigzagging line around the text
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetAmplitude() + +
+          Gets the amplitude of the wobble effect.
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ floatgetWavelength() + +
+          Gets the wavelength of the wobble effect.
+ voidsetAmplitude(float amplitude) + +
+          Sets the amplitude of the wobble effect.
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ voidsetWavelength(float wavelength) + +
+          Sets the wavelength of the wobble effect.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class org.newdawn.slick.font.effects.OutlineEffect
draw, getColor, getJoin, getStroke, getWidth, setColor, setJoin, setStroke, setWidth
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutlineZigzagEffect

+
+public OutlineZigzagEffect()
+
+
Default constructor for injection +

+

+
+ +

+OutlineZigzagEffect

+
+public OutlineZigzagEffect(int width,
+                           java.awt.Color color)
+
+
Create a new effect to generate a zigzagging line around the text +

+

+
Parameters:
width - The width of the line
color - The colour of the line
+
+ + + + + + + + +
+Method Detail
+ +

+getWavelength

+
+public float getWavelength()
+
+
Gets the wavelength of the wobble effect. +

+

+ +
Returns:
The wavelength of the wobble effect
+
+
+
+ +

+setWavelength

+
+public void setWavelength(float wavelength)
+
+
Sets the wavelength of the wobble effect. +

+

+
Parameters:
wavelength - The wavelength of the wobble effect
+
+
+
+ +

+getAmplitude

+
+public float getAmplitude()
+
+
Gets the amplitude of the wobble effect. +

+

+ +
Returns:
The amplitude of the wobble effect
+
+
+
+ +

+setAmplitude

+
+public void setAmplitude(float amplitude)
+
+
Sets the amplitude of the wobble effect. +

+

+
Parameters:
amplitude - The detail of the wobble effect
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class OutlineEffect
+
+
+
See Also:
OutlineEffect.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
Overrides:
getValues in class OutlineEffect
+
+
+
See Also:
OutlineEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
Overrides:
setValues in class OutlineEffect
+
+
+
See Also:
OutlineEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/ShadowEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/ShadowEffect.html new file mode 100644 index 000000000..0858ccfab --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/ShadowEffect.html @@ -0,0 +1,751 @@ + + + + + + +ShadowEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.font.effects +
+Class ShadowEffect

+
+java.lang.Object
+  extended by org.newdawn.slick.font.effects.ShadowEffect
+
+
+
All Implemented Interfaces:
ConfigurableEffect, Effect
+
+
+
+
public class ShadowEffect
extends java.lang.Object
implements ConfigurableEffect
+ + +

+An effect to generate soft shadows beneath text +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect
ConfigurableEffect.Value
+  + + + + + + + + + + + + + + + +
+Field Summary
+static float[][]GAUSSIAN_BLUR_KERNELS + +
+          The blur kernels applied across the effect
+static intNUM_KERNELS + +
+          The number of kernels to apply
+  + + + + + + + + + + + + + +
+Constructor Summary
ShadowEffect() + +
+          Default constructor for injection
ShadowEffect(java.awt.Color color, + int xDistance, + int yDistance, + float opacity) + +
+          Create a new effect to apply a drop shadow to text
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(java.awt.image.BufferedImage image, + java.awt.Graphics2D g, + UnicodeFont unicodeFont, + Glyph glyph) + +
+          Called to draw the effect.
+ intgetBlurKernelSize() + +
+          Get the size of the kernel used to apply the blur
+ intgetBlurPasses() + +
+          Get the number of passes to apply the kernel for blurring
+ java.awt.ColorgetColor() + +
+          Get the colour of the shadow generated
+ floatgetOpacity() + +
+          Get the opacity of the shadow, i.e.
+ java.util.ListgetValues() + +
+          Returns the list of ConfigurableEffect.Values for this effect.
+ floatgetXDistance() + +
+          Get the distance on the X axis from the text the shadow should + be generated at
+ floatgetYDistance() + +
+          Get the distance on the Y axis from the text the shadow should + be generated at
+ voidsetBlurKernelSize(int blurKernelSize) + +
+          Sets how many neighboring pixels are used to blur the shadow.
+ voidsetBlurPasses(int blurPasses) + +
+          Sets the number of times to apply a blur to the shadow.
+ voidsetColor(java.awt.Color color) + +
+          Set the colour of the shadow to be generated
+ voidsetOpacity(float opacity) + +
+          Set the opacity of the shadow, i.e.
+ voidsetValues(java.util.List values) + +
+          Sets the list of ConfigurableEffect.Values for this effect.
+ voidsetXDistance(float distance) + +
+          Sets the pixels to offset the shadow on the x axis.
+ voidsetYDistance(float distance) + +
+          Sets the pixels to offset the shadow on the y axis.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NUM_KERNELS

+
+public static final int NUM_KERNELS
+
+
The number of kernels to apply +

+

+
See Also:
Constant Field Values
+
+
+ +

+GAUSSIAN_BLUR_KERNELS

+
+public static final float[][] GAUSSIAN_BLUR_KERNELS
+
+
The blur kernels applied across the effect +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ShadowEffect

+
+public ShadowEffect()
+
+
Default constructor for injection +

+

+
+ +

+ShadowEffect

+
+public ShadowEffect(java.awt.Color color,
+                    int xDistance,
+                    int yDistance,
+                    float opacity)
+
+
Create a new effect to apply a drop shadow to text +

+

+
Parameters:
color - The colour of the shadow to generate
xDistance - The distance from the text on the x axis the shadow should be rendered
yDistance - The distance from the text on the y axis the shadow should be rendered
opacity - The transparency factor of the shadow
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(java.awt.image.BufferedImage image,
+                 java.awt.Graphics2D g,
+                 UnicodeFont unicodeFont,
+                 Glyph glyph)
+
+
Description copied from interface: Effect
+
Called to draw the effect. +

+

+
Specified by:
draw in interface Effect
+
+
+
Parameters:
image - The image to draw into
g - The graphics context to use for applying the effect
unicodeFont - The font being rendered
glyph - The particular glyph being rendered
See Also:
Effect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
+
+
+
+ +

+getColor

+
+public java.awt.Color getColor()
+
+
Get the colour of the shadow generated +

+

+
+
+
+ +
Returns:
The colour of the shadow generated
+
+
+
+ +

+setColor

+
+public void setColor(java.awt.Color color)
+
+
Set the colour of the shadow to be generated +

+

+
+
+
+
Parameters:
color - The colour ofthe shadow to be generated
+
+
+
+ +

+getXDistance

+
+public float getXDistance()
+
+
Get the distance on the X axis from the text the shadow should + be generated at +

+

+
+
+
+ +
Returns:
The distance on the X axis the shadow will be from the text
+
+
+
+ +

+setXDistance

+
+public void setXDistance(float distance)
+
+
Sets the pixels to offset the shadow on the x axis. The glyphs will need padding so the + shadow doesn't get clipped. +

+

+
+
+
+
Parameters:
distance - The offset on the x axis
+
+
+
+ +

+getYDistance

+
+public float getYDistance()
+
+
Get the distance on the Y axis from the text the shadow should + be generated at +

+

+
+
+
+ +
Returns:
The distance on the Y axis the shadow will be from the text
+
+
+
+ +

+setYDistance

+
+public void setYDistance(float distance)
+
+
Sets the pixels to offset the shadow on the y axis. The glyphs will need + padding so the shadow doesn't get clipped. +

+

+
+
+
+
Parameters:
distance - The offset on the y axis
+
+
+
+ +

+getBlurKernelSize

+
+public int getBlurKernelSize()
+
+
Get the size of the kernel used to apply the blur +

+

+
+
+
+ +
Returns:
The blur kernel size
+
+
+
+ +

+setBlurKernelSize

+
+public void setBlurKernelSize(int blurKernelSize)
+
+
Sets how many neighboring pixels are used to blur the shadow. Set to 0 for no blur. +

+

+
+
+
+
Parameters:
blurKernelSize - The size of the kernel to apply the blur with
+
+
+
+ +

+getBlurPasses

+
+public int getBlurPasses()
+
+
Get the number of passes to apply the kernel for blurring +

+

+
+
+
+ +
Returns:
The number of passes
+
+
+
+ +

+setBlurPasses

+
+public void setBlurPasses(int blurPasses)
+
+
Sets the number of times to apply a blur to the shadow. Set to 0 for no blur. +

+

+
+
+
+
Parameters:
blurPasses - The number of passes to apply when blurring
+
+
+
+ +

+getOpacity

+
+public float getOpacity()
+
+
Get the opacity of the shadow, i.e. how transparent it is +

+

+
+
+
+ +
Returns:
The opacity of the shadow
+
+
+
+ +

+setOpacity

+
+public void setOpacity(float opacity)
+
+
Set the opacity of the shadow, i.e. how transparent it is +

+

+
+
+
+
Parameters:
opacity - The opacity of the shadow
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+getValues

+
+public java.util.List getValues()
+
+
Description copied from interface: ConfigurableEffect
+
Returns the list of ConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the + values will not take affect until ConfigurableEffect.setValues(List) is called. +

+

+
Specified by:
getValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.getValues()
+
+
+
+ +

+setValues

+
+public void setValues(java.util.List values)
+
+
Description copied from interface: ConfigurableEffect
+
Sets the list of ConfigurableEffect.Values for this effect. +

+

+
Specified by:
setValues in interface ConfigurableEffect
+
+
+
See Also:
ConfigurableEffect.setValues(java.util.List)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/ColorEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ColorEffect.html new file mode 100644 index 000000000..366ad7993 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ColorEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.ColorEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.ColorEffect

+
+No usage of org.newdawn.slick.font.effects.ColorEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.Value.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.Value.html new file mode 100644 index 000000000..321d113f5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.Value.html @@ -0,0 +1,224 @@ + + + + + + +Uses of Interface org.newdawn.slick.font.effects.ConfigurableEffect.Value (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.font.effects.ConfigurableEffect.Value

+
+ + + + + + + + + +
+Packages that use ConfigurableEffect.Value
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of ConfigurableEffect.Value in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.font.effects that return ConfigurableEffect.Value
+static ConfigurableEffect.ValueEffectUtil.booleanValue(java.lang.String name, + boolean currentValue, + java.lang.String description) + +
+          Prompts the user for boolean value
+static ConfigurableEffect.ValueEffectUtil.colorValue(java.lang.String name, + java.awt.Color currentValue) + +
+          Prompts the user for a colour value
+static ConfigurableEffect.ValueEffectUtil.floatValue(java.lang.String name, + float currentValue, + float min, + float max, + java.lang.String description) + +
+          Prompts the user for float value
+static ConfigurableEffect.ValueEffectUtil.intValue(java.lang.String name, + int currentValue, + java.lang.String description) + +
+          Prompts the user for int value
+static ConfigurableEffect.ValueEffectUtil.optionValue(java.lang.String name, + java.lang.String currentValue, + java.lang.String[][] options, + java.lang.String description) + +
+          Prompts the user for a value that represents a fixed number of options.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.html new file mode 100644 index 000000000..1fc62b014 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ConfigurableEffect.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Interface org.newdawn.slick.font.effects.ConfigurableEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.font.effects.ConfigurableEffect

+
+ + + + + + + + + +
+Packages that use ConfigurableEffect
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of ConfigurableEffect in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.font.effects that implement ConfigurableEffect
+ classColorEffect + +
+          Makes glyphs a solid color.
+ classGradientEffect + +
+          Paints glyphs with a gradient fill.
+ classOutlineEffect + +
+          Strokes glyphs with an outline.
+ classOutlineWobbleEffect + +
+          An effect that genrates a wobbly line around the outline of the text
+ classOutlineZigzagEffect + +
+          An effect to generate a uniformly zigzaging line around text
+ classShadowEffect + +
+          An effect to generate soft shadows beneath text
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/Effect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/Effect.html new file mode 100644 index 000000000..b92ce9904 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/Effect.html @@ -0,0 +1,244 @@ + + + + + + +Uses of Interface org.newdawn.slick.font.effects.Effect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.font.effects.Effect

+
+ + + + + + + + + +
+Packages that use Effect
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of Effect in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + +
Subinterfaces of Effect in org.newdawn.slick.font.effects
+ interfaceConfigurableEffect + +
+          An effect that has a number of configuration values.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.font.effects that implement Effect
+ classColorEffect + +
+          Makes glyphs a solid color.
+ classFilterEffect + +
+          Applys a BufferedImageOp filter to glyphs.
+ classGradientEffect + +
+          Paints glyphs with a gradient fill.
+ classOutlineEffect + +
+          Strokes glyphs with an outline.
+ classOutlineWobbleEffect + +
+          An effect that genrates a wobbly line around the outline of the text
+ classOutlineZigzagEffect + +
+          An effect to generate a uniformly zigzaging line around text
+ classShadowEffect + +
+          An effect to generate soft shadows beneath text
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/EffectUtil.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/EffectUtil.html new file mode 100644 index 000000000..59ddb0112 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/EffectUtil.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.EffectUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.EffectUtil

+
+No usage of org.newdawn.slick.font.effects.EffectUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/FilterEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/FilterEffect.html new file mode 100644 index 000000000..cf3e82411 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/FilterEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.FilterEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.FilterEffect

+
+No usage of org.newdawn.slick.font.effects.FilterEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/GradientEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/GradientEffect.html new file mode 100644 index 000000000..238ba3e7f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/GradientEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.GradientEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.GradientEffect

+
+No usage of org.newdawn.slick.font.effects.GradientEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineEffect.html new file mode 100644 index 000000000..98c945b6b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineEffect.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.OutlineEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.OutlineEffect

+
+ + + + + + + + + +
+Packages that use OutlineEffect
org.newdawn.slick.font.effects  
+  +

+ + + + + +
+Uses of OutlineEffect in org.newdawn.slick.font.effects
+  +

+ + + + + + + + + + + + + +
Subclasses of OutlineEffect in org.newdawn.slick.font.effects
+ classOutlineWobbleEffect + +
+          An effect that genrates a wobbly line around the outline of the text
+ classOutlineZigzagEffect + +
+          An effect to generate a uniformly zigzaging line around text
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineWobbleEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineWobbleEffect.html new file mode 100644 index 000000000..84403db47 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineWobbleEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.OutlineWobbleEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.OutlineWobbleEffect

+
+No usage of org.newdawn.slick.font.effects.OutlineWobbleEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineZigzagEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineZigzagEffect.html new file mode 100644 index 000000000..d9cd37114 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/OutlineZigzagEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.OutlineZigzagEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.OutlineZigzagEffect

+
+No usage of org.newdawn.slick.font.effects.OutlineZigzagEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/class-use/ShadowEffect.html b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ShadowEffect.html new file mode 100644 index 000000000..072469d34 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/class-use/ShadowEffect.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.font.effects.ShadowEffect (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.font.effects.ShadowEffect

+
+No usage of org.newdawn.slick.font.effects.ShadowEffect +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/package-frame.html b/lib/javadoc/org/newdawn/slick/font/effects/package-frame.html new file mode 100644 index 000000000..5deebf5bf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/package-frame.html @@ -0,0 +1,61 @@ + + + + + + +org.newdawn.slick.font.effects (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.font.effects + + + + +
+Interfaces  + +
+ConfigurableEffect +
+ConfigurableEffect.Value +
+Effect
+ + + + + + +
+Classes  + +
+ColorEffect +
+EffectUtil +
+FilterEffect +
+GradientEffect +
+OutlineEffect +
+OutlineWobbleEffect +
+OutlineZigzagEffect +
+ShadowEffect
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/package-summary.html b/lib/javadoc/org/newdawn/slick/font/effects/package-summary.html new file mode 100644 index 000000000..85b76d514 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/package-summary.html @@ -0,0 +1,207 @@ + + + + + + +org.newdawn.slick.font.effects (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.font.effects +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
ConfigurableEffectAn effect that has a number of configuration values.
ConfigurableEffect.ValueRepresents a configurable value for an effect.
EffectA graphical effect that is applied to glyphs in a UnicodeFont.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ColorEffectMakes glyphs a solid color.
EffectUtilProvides utility methods for effects.
FilterEffectApplys a BufferedImageOp filter to glyphs.
GradientEffectPaints glyphs with a gradient fill.
OutlineEffectStrokes glyphs with an outline.
OutlineWobbleEffectAn effect that genrates a wobbly line around the outline of the text
OutlineZigzagEffectAn effect to generate a uniformly zigzaging line around text
ShadowEffectAn effect to generate soft shadows beneath text
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/package-tree.html b/lib/javadoc/org/newdawn/slick/font/effects/package-tree.html new file mode 100644 index 000000000..9c2f3f5df --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/package-tree.html @@ -0,0 +1,167 @@ + + + + + + +org.newdawn.slick.font.effects Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.font.effects +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/effects/package-use.html b/lib/javadoc/org/newdawn/slick/font/effects/package-use.html new file mode 100644 index 000000000..758479282 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/effects/package-use.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Package org.newdawn.slick.font.effects (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.font.effects

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.font.effects
org.newdawn.slick.font.effects  
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.font.effects used by org.newdawn.slick.font.effects
ConfigurableEffect + +
+          An effect that has a number of configuration values.
ConfigurableEffect.Value + +
+          Represents a configurable value for an effect.
Effect + +
+          A graphical effect that is applied to glyphs in a UnicodeFont.
OutlineEffect + +
+          Strokes glyphs with an outline.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/package-frame.html b/lib/javadoc/org/newdawn/slick/font/package-frame.html new file mode 100644 index 000000000..b73782b41 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.newdawn.slick.font (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.font + + + + +
+Classes  + +
+Glyph +
+GlyphPage +
+HieroSettings
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/font/package-summary.html b/lib/javadoc/org/newdawn/slick/font/package-summary.html new file mode 100644 index 000000000..0a473fa1a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/package-summary.html @@ -0,0 +1,165 @@ + + + + + + +org.newdawn.slick.font (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.font +

+ + + + + + + + + + + + + + + + + +
+Class Summary
GlyphRepresents the glyph in a font for a unicode codepoint.
GlyphPageStores a number of glyphs on a single texture.
HieroSettingsHolds the settings needed to configure a UnicodeFont.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/package-tree.html b/lib/javadoc/org/newdawn/slick/font/package-tree.html new file mode 100644 index 000000000..c1c1de77b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/package-tree.html @@ -0,0 +1,153 @@ + + + + + + +org.newdawn.slick.font Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.font +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/font/package-use.html b/lib/javadoc/org/newdawn/slick/font/package-use.html new file mode 100644 index 000000000..173cda406 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/font/package-use.html @@ -0,0 +1,189 @@ + + + + + + +Uses of Package org.newdawn.slick.font (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.font

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.font
org.newdawn.slick  
org.newdawn.slick.font.effects  
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.font used by org.newdawn.slick
HieroSettings + +
+          Holds the settings needed to configure a UnicodeFont.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.font used by org.newdawn.slick.font.effects
Glyph + +
+          Represents the glyph in a font for a unicode codepoint.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/BasicTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/BasicTriangulator.html new file mode 100644 index 000000000..6cef33944 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/BasicTriangulator.html @@ -0,0 +1,426 @@ + + + + + + +BasicTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class BasicTriangulator

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.BasicTriangulator
+
+
+
All Implemented Interfaces:
java.io.Serializable, Triangulator
+
+
+
+
public class BasicTriangulator
extends java.lang.Object
implements Triangulator
+ + +

+Triangulates a polygon into triangles - duh. Doesn't handle + holes in polys +

+ +

+

+
Author:
+
Based on Public Source from FlipCode
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BasicTriangulator() + +
+          Create a new triangulator
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPolyPoint(float x, + float y) + +
+          Add a point describing the polygon to be triangulated
+ float[]getPolyPoint(int index) + +
+          Get the coordinates of the point at the specified index
+ intgetPolyPointCount() + +
+          Get the number of points in the polygon
+ intgetTriangleCount() + +
+          Get a count of the number of triangles produced
+ float[]getTrianglePoint(int tri, + int i) + +
+          Get a point on a specified generated triangle
+ voidstartHole() + +
+          Start a hole in the polygon
+ booleantriangulate() + +
+          Cause the triangulator to split the polygon
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BasicTriangulator

+
+public BasicTriangulator()
+
+
Create a new triangulator +

+

+ + + + + + + + +
+Method Detail
+ +

+addPolyPoint

+
+public void addPolyPoint(float x,
+                         float y)
+
+
Add a point describing the polygon to be triangulated +

+

+
Specified by:
addPolyPoint in interface Triangulator
+
+
+
Parameters:
x - The x coordinate of the point
y - the y coordinate of the point
+
+
+
+ +

+getPolyPointCount

+
+public int getPolyPointCount()
+
+
Get the number of points in the polygon +

+

+
+
+
+ +
Returns:
The number of points in the polygon
+
+
+
+ +

+getPolyPoint

+
+public float[] getPolyPoint(int index)
+
+
Get the coordinates of the point at the specified index +

+

+
+
+
+
Parameters:
index - The index of the point to retrieve +
Returns:
The oordinates of the point at the specified index
+
+
+
+ +

+triangulate

+
+public boolean triangulate()
+
+
Cause the triangulator to split the polygon +

+

+
Specified by:
triangulate in interface Triangulator
+
+
+ +
Returns:
True if we managed the task
+
+
+
+ +

+getTriangleCount

+
+public int getTriangleCount()
+
+
Get a count of the number of triangles produced +

+

+
Specified by:
getTriangleCount in interface Triangulator
+
+
+ +
Returns:
The number of triangles produced
+
+
+
+ +

+getTrianglePoint

+
+public float[] getTrianglePoint(int tri,
+                                int i)
+
+
Get a point on a specified generated triangle +

+

+
Specified by:
getTrianglePoint in interface Triangulator
+
+
+
Parameters:
tri - The index of the triangle to interegate
i - The index of the point within the triangle to retrieve + (0 - 2) +
Returns:
The x,y coordinate pair for the point
+
+
+
+ +

+startHole

+
+public void startHole()
+
+
Description copied from interface: Triangulator
+
Start a hole in the polygon +

+

+
Specified by:
startHole in interface Triangulator
+
+
+
See Also:
Triangulator.startHole()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Circle.html b/lib/javadoc/org/newdawn/slick/geom/Circle.html new file mode 100644 index 000000000..f6a265ea0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Circle.html @@ -0,0 +1,572 @@ + + + + + + +Circle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Circle

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Ellipse
+          extended by org.newdawn.slick.geom.Circle
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Circle
extends Ellipse
+ + +

+A simple Circle geometry +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Field Summary
+ floatradius + +
+          The radius of the circle
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Ellipse
DEFAULT_SEGMENT_COUNT
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + +
+Constructor Summary
Circle(float centerPointX, + float centerPointY, + float radius) + +
+          Create a new circle based on its radius
Circle(float centerPointX, + float centerPointY, + float radius, + int segmentCount) + +
+          Create a new circle based on its radius
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcalculateRadius() + +
+          Calculate the radius of a circle that can completely enclose this shape.
+ booleancontains(float x, + float y) + +
+          Check if a point is contained by this circle
+protected  voidfindCenter() + +
+          Get the center of this polygon.
+ float[]getCenter() + +
+          Get the coordinates of the center of the circle
+ floatgetCenterX() + +
+          Get the x coordinate of the centre of the circle
+ floatgetCenterY() + +
+          Get the y coordinate of the centre of the circle
+ floatgetRadius() + +
+          Get the radius of the circle
+ booleanintersects(Shape shape) + +
+          Check if this circle touches another
+ voidsetRadius(float radius) + +
+          Set the radius of this circle
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Ellipse
createPoints, getRadius1, getRadius2, setRadii, setRadius1, setRadius2, transform
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateTriangles, checkPoints, closed, contains, getBoundingCircleRadius, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+radius

+
+public float radius
+
+
The radius of the circle +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Circle

+
+public Circle(float centerPointX,
+              float centerPointY,
+              float radius)
+
+
Create a new circle based on its radius +

+

+
Parameters:
centerPointX - The x location of the center of the circle
centerPointY - The y location of the center of the circle
radius - The radius of the circle
+
+
+ +

+Circle

+
+public Circle(float centerPointX,
+              float centerPointY,
+              float radius,
+              int segmentCount)
+
+
Create a new circle based on its radius +

+

+
Parameters:
centerPointX - The x location of the center of the circle
centerPointY - The y location of the center of the circle
radius - The radius of the circle
segmentCount - The number of segments to build the circle out of
+
+ + + + + + + + +
+Method Detail
+ +

+getCenterX

+
+public float getCenterX()
+
+
Get the x coordinate of the centre of the circle +

+

+
Overrides:
getCenterX in class Shape
+
+
+ +
Returns:
The x coordinate of the centre of the circle
+
+
+
+ +

+getCenterY

+
+public float getCenterY()
+
+
Get the y coordinate of the centre of the circle +

+

+
Overrides:
getCenterY in class Shape
+
+
+ +
Returns:
The y coordinate of the centre of the circle
+
+
+
+ +

+getCenter

+
+public float[] getCenter()
+
+
Get the coordinates of the center of the circle +

+

+
Overrides:
getCenter in class Shape
+
+
+ +
Returns:
2-element array with the center of the circle.
+
+
+
+ +

+setRadius

+
+public void setRadius(float radius)
+
+
Set the radius of this circle +

+

+
Parameters:
radius - The radius of this circle
+
+
+
+ +

+getRadius

+
+public float getRadius()
+
+
Get the radius of the circle +

+

+ +
Returns:
The radius of the circle
+
+
+
+ +

+intersects

+
+public boolean intersects(Shape shape)
+
+
Check if this circle touches another +

+

+
Overrides:
intersects in class Shape
+
+
+
Parameters:
shape - The other circle +
Returns:
True if they touch
+
+
+
+ +

+contains

+
+public boolean contains(float x,
+                        float y)
+
+
Check if a point is contained by this circle +

+

+
Overrides:
contains in class Shape
+
+
+
Parameters:
x - The x coordinate of the point to check
y - The y coorindate of the point to check +
Returns:
True if the point is contained by this circle
+
+
+
+ +

+findCenter

+
+protected void findCenter()
+
+
Description copied from class: Shape
+
Get the center of this polygon. +

+

+
Overrides:
findCenter in class Ellipse
+
+
+
See Also:
Ellipse.findCenter()
+
+
+
+ +

+calculateRadius

+
+protected void calculateRadius()
+
+
Description copied from class: Shape
+
Calculate the radius of a circle that can completely enclose this shape. +

+

+
Overrides:
calculateRadius in class Ellipse
+
+
+
See Also:
Ellipse.calculateRadius()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Curve.html b/lib/javadoc/org/newdawn/slick/geom/Curve.html new file mode 100644 index 000000000..4387c58fa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Curve.html @@ -0,0 +1,409 @@ + + + + + + +Curve (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Curve

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Curve
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Curve
extends Shape
+ + +

+A beizer curve implementation. The curve is defined by a start point, an end point + and two control points that it will tend towards. This is implementation is fixed + segmenting meaning it doesn't scale too well. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + +
+Constructor Summary
Curve(Vector2f p1, + Vector2f c1, + Vector2f c2, + Vector2f p2) + +
+          Create a new curve with the default segments (20)
Curve(Vector2f p1, + Vector2f c1, + Vector2f c2, + Vector2f p2, + int segments) + +
+          Create a new curve
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanclosed() + +
+          True if this is a closed shape
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ Vector2fpointAt(float t) + +
+          Get the point at a particular location on the curve
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, contains, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Curve

+
+public Curve(Vector2f p1,
+             Vector2f c1,
+             Vector2f c2,
+             Vector2f p2)
+
+
Create a new curve with the default segments (20) +

+

+
Parameters:
p1 - The start of the curve
c1 - The first control point
c2 - The second control point
p2 - The end of the curve
+
+
+ +

+Curve

+
+public Curve(Vector2f p1,
+             Vector2f c1,
+             Vector2f c2,
+             Vector2f p2,
+             int segments)
+
+
Create a new curve +

+

+
Parameters:
p1 - The start of the curve
c1 - The first control point
c2 - The second control point
p2 - The end of the curve
segments - The number of segments to use
+
+ + + + + + + + +
+Method Detail
+ +

+pointAt

+
+public Vector2f pointAt(float t)
+
+
Get the point at a particular location on the curve +

+

+
Parameters:
t - A value between 0 and 1 defining the location of the curve the point is at +
Returns:
The point on the curve
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
Shape.createPoints()
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
Shape.transform(org.newdawn.slick.geom.Transform)
+
+
+
+ +

+closed

+
+public boolean closed()
+
+
True if this is a closed shape +

+

+
Overrides:
closed in class Shape
+
+
+ +
Returns:
True if this is a closed shape
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Ellipse.html b/lib/javadoc/org/newdawn/slick/geom/Ellipse.html new file mode 100644 index 000000000..851823c51 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Ellipse.html @@ -0,0 +1,551 @@ + + + + + + +Ellipse (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Ellipse

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Ellipse
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Direct Known Subclasses:
Circle
+
+
+
+
public class Ellipse
extends Shape
+ + +

+An ellipse meeting the Shape contract. The ellipse is actually an approximation using + a series of points generated around the contour of the ellipse. +

+ +

+

+
Author:
+
Mark
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static intDEFAULT_SEGMENT_COUNT + +
+          Default number of segments to draw this ellipse with
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + +
+Constructor Summary
Ellipse(float centerPointX, + float centerPointY, + float radius1, + float radius2) + +
+          Creates a new Ellipse object.
Ellipse(float centerPointX, + float centerPointY, + float radius1, + float radius2, + int segmentCount) + +
+          Creates a new Ellipse object.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcalculateRadius() + +
+          Calculate the radius of a circle that can completely enclose this shape.
+protected  voidcreatePoints() + +
+          Generate the points to outline this ellipse.
+protected  voidfindCenter() + +
+          Get the center of this polygon.
+ floatgetRadius1() + +
+          Get the horizontal radius of the ellipse
+ floatgetRadius2() + +
+          Get the vertical radius of the ellipse
+ voidsetRadii(float radius1, + float radius2) + +
+          Change the shape of this Ellipse
+ voidsetRadius1(float radius1) + +
+          Set the horizontal radius of the ellipse
+ voidsetRadius2(float radius2) + +
+          Set the vertical radius of the ellipse
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateTriangles, checkPoints, closed, contains, contains, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_SEGMENT_COUNT

+
+protected static final int DEFAULT_SEGMENT_COUNT
+
+
Default number of segments to draw this ellipse with +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Ellipse

+
+public Ellipse(float centerPointX,
+               float centerPointY,
+               float radius1,
+               float radius2)
+
+
Creates a new Ellipse object. +

+

+
Parameters:
centerPointX - x coordinate of the center of the ellipse
centerPointY - y coordinate of the center of the ellipse
radius1 - horizontal radius
radius2 - vertical radius
+
+
+ +

+Ellipse

+
+public Ellipse(float centerPointX,
+               float centerPointY,
+               float radius1,
+               float radius2,
+               int segmentCount)
+
+
Creates a new Ellipse object. +

+

+
Parameters:
centerPointX - x coordinate of the center of the ellipse
centerPointY - y coordinate of the center of the ellipse
radius1 - horizontal radius
radius2 - vertical radius
segmentCount - how fine to make the ellipse.
+
+ + + + + + + + +
+Method Detail
+ +

+setRadii

+
+public void setRadii(float radius1,
+                     float radius2)
+
+
Change the shape of this Ellipse +

+

+
Parameters:
radius1 - horizontal radius
radius2 - vertical radius
+
+
+
+ +

+getRadius1

+
+public float getRadius1()
+
+
Get the horizontal radius of the ellipse +

+

+ +
Returns:
The horizontal radius of the ellipse
+
+
+
+ +

+setRadius1

+
+public void setRadius1(float radius1)
+
+
Set the horizontal radius of the ellipse +

+

+
Parameters:
radius1 - The horizontal radius to set
+
+
+
+ +

+getRadius2

+
+public float getRadius2()
+
+
Get the vertical radius of the ellipse +

+

+ +
Returns:
The vertical radius of the ellipse
+
+
+
+ +

+setRadius2

+
+public void setRadius2(float radius2)
+
+
Set the vertical radius of the ellipse +

+

+
Parameters:
radius2 - The vertical radius to set
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Generate the points to outline this ellipse. +

+

+
Specified by:
createPoints in class Shape
+
+
+
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
Shape.transform(org.newdawn.slick.geom.Transform)
+
+
+
+ +

+findCenter

+
+protected void findCenter()
+
+
Description copied from class: Shape
+
Get the center of this polygon. +

+

+
Overrides:
findCenter in class Shape
+
+
+
See Also:
Shape.findCenter()
+
+
+
+ +

+calculateRadius

+
+protected void calculateRadius()
+
+
Description copied from class: Shape
+
Calculate the radius of a circle that can completely enclose this shape. +

+

+
Overrides:
calculateRadius in class Shape
+
+
+
See Also:
Shape.calculateRadius()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/GeomUtil.HitResult.html b/lib/javadoc/org/newdawn/slick/geom/GeomUtil.HitResult.html new file mode 100644 index 000000000..da31b5c9d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/GeomUtil.HitResult.html @@ -0,0 +1,330 @@ + + + + + + +GeomUtil.HitResult (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class GeomUtil.HitResult

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.GeomUtil.HitResult
+
+
+
Enclosing class:
GeomUtil
+
+
+
+
public class GeomUtil.HitResult
extends java.lang.Object
+ + +

+A lightweigtht description of a intersection between a shape and + line. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ Lineline + +
+          The line on the target shape that intersected
+ intp1 + +
+          The index of the first point on the target shape that forms the line
+ intp2 + +
+          The index of the second point on the target shape that forms the line
+ Vector2fpt + +
+          The position of the intersection
+  + + + + + + + + + + +
+Constructor Summary
GeomUtil.HitResult() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+line

+
+public Line line
+
+
The line on the target shape that intersected +

+

+
+
+
+ +

+p1

+
+public int p1
+
+
The index of the first point on the target shape that forms the line +

+

+
+
+
+ +

+p2

+
+public int p2
+
+
The index of the second point on the target shape that forms the line +

+

+
+
+
+ +

+pt

+
+public Vector2f pt
+
+
The position of the intersection +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GeomUtil.HitResult

+
+public GeomUtil.HitResult()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/GeomUtil.html b/lib/javadoc/org/newdawn/slick/geom/GeomUtil.html new file mode 100644 index 000000000..a82aeea2c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/GeomUtil.html @@ -0,0 +1,531 @@ + + + + + + +GeomUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class GeomUtil

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.GeomUtil
+
+
+
+
public class GeomUtil
extends java.lang.Object
+ + +

+A set of utilities to play with geometry +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+ classGeomUtil.HitResult + +
+          A lightweigtht description of a intersection between a shape and + line.
+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ floatEDGE_SCALE + +
+          The tolerance for determining direction change
+ floatEPSILON + +
+          The tolerance for determining changes and steps
+ GeomUtilListenerlistener + +
+          The listener to notify of operations
+ intMAX_POINTS + +
+          The maximum number of points returned by an operation - prevents full lockups
+  + + + + + + + + + + +
+Constructor Summary
GeomUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ LinegetLine(Shape shape, + float sx, + float sy, + int e) + +
+          Get a line between two points in a shape
+ LinegetLine(Shape shape, + int s, + int e) + +
+          Get a line between two points in a shape
+ GeomUtil.HitResultintersect(Shape shape, + Line line) + +
+          Intersect a line with a shape
+static intrationalPoint(Shape shape, + int p) + +
+          Rationalise a point in terms of a given shape
+ voidsetListener(GeomUtilListener listener) + +
+          Set the listener to be notified of geometry based operations
+ Shape[]subtract(Shape target, + Shape missing) + +
+          Subtract one shape from another - note this is experimental and doesn't + currently handle islands
+ Shape[]union(Shape target, + Shape other) + +
+          Join to shapes together.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+EPSILON

+
+public float EPSILON
+
+
The tolerance for determining changes and steps +

+

+
+
+
+ +

+EDGE_SCALE

+
+public float EDGE_SCALE
+
+
The tolerance for determining direction change +

+

+
+
+
+ +

+MAX_POINTS

+
+public int MAX_POINTS
+
+
The maximum number of points returned by an operation - prevents full lockups +

+

+
+
+
+ +

+listener

+
+public GeomUtilListener listener
+
+
The listener to notify of operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GeomUtil

+
+public GeomUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+subtract

+
+public Shape[] subtract(Shape target,
+                        Shape missing)
+
+
Subtract one shape from another - note this is experimental and doesn't + currently handle islands +

+

+
Parameters:
target - The target to be subtracted from
missing - The shape to subtract +
Returns:
The newly created shapes
+
+
+
+ +

+setListener

+
+public void setListener(GeomUtilListener listener)
+
+
Set the listener to be notified of geometry based operations +

+

+
Parameters:
listener - The listener to be notified of geometry based operations
+
+
+
+ +

+union

+
+public Shape[] union(Shape target,
+                     Shape other)
+
+
Join to shapes together. Note that the shapes must be touching + for this method to work. +

+

+
Parameters:
target - The target shape to union with
other - The additional shape to union +
Returns:
The newly created shapes
+
+
+
+ +

+intersect

+
+public GeomUtil.HitResult intersect(Shape shape,
+                                    Line line)
+
+
Intersect a line with a shape +

+

+
Parameters:
shape - The shape to compare
line - The line to intersect against the shape +
Returns:
The result describing the intersection or null if none
+
+
+
+ +

+rationalPoint

+
+public static int rationalPoint(Shape shape,
+                                int p)
+
+
Rationalise a point in terms of a given shape +

+

+
Parameters:
shape - The shape
p - The index of the point +
Returns:
The index that is rational for the shape
+
+
+
+ +

+getLine

+
+public Line getLine(Shape shape,
+                    int s,
+                    int e)
+
+
Get a line between two points in a shape +

+

+
Parameters:
shape - The shape
s - The index of the start point
e - The index of the end point +
Returns:
The line between the two points
+
+
+
+ +

+getLine

+
+public Line getLine(Shape shape,
+                    float sx,
+                    float sy,
+                    int e)
+
+
Get a line between two points in a shape +

+

+
Parameters:
shape - The shape
sx - The x coordinate of the start point
sy - The y coordinate of the start point
e - The index of the end point +
Returns:
The line between the two points
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/GeomUtilListener.html b/lib/javadoc/org/newdawn/slick/geom/GeomUtilListener.html new file mode 100644 index 000000000..809ef7104 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/GeomUtilListener.html @@ -0,0 +1,267 @@ + + + + + + +GeomUtilListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Interface GeomUtilListener

+
+
All Known Implementing Classes:
GeomUtilTest, GeomUtilTileTest
+
+
+
+
public interface GeomUtilListener
+ + +

+Debug listener for notifications assocaited with geometry utilities +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidpointExcluded(float x, + float y) + +
+          Notification that a point was excluded from geometry
+ voidpointIntersected(float x, + float y) + +
+          Notification that a point was intersected between two geometries
+ voidpointUsed(float x, + float y) + +
+          Notification that a point was used to build a new geometry
+  +

+ + + + + + + + +
+Method Detail
+ +

+pointExcluded

+
+void pointExcluded(float x,
+                   float y)
+
+
Notification that a point was excluded from geometry +

+

+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointIntersected

+
+void pointIntersected(float x,
+                      float y)
+
+
Notification that a point was intersected between two geometries +

+

+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointUsed

+
+void pointUsed(float x,
+               float y)
+
+
Notification that a point was used to build a new geometry +

+

+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Line.html b/lib/javadoc/org/newdawn/slick/geom/Line.html new file mode 100644 index 000000000..3e7aeec5b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Line.html @@ -0,0 +1,1026 @@ + + + + + + +Line (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Line

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Line
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Line
extends Shape
+ + +

+Implemenation of a bunch of maths functions to do with lines. Note that lines + can't be used as dynamic shapes right now - also collision with the end of a + line is undefined. +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Line(float[] start, + float[] end) + +
+          Create a new line based on two points
Line(float x, + float y) + +
+          Create a new line based on the origin and a single point
Line(float x, + float y, + boolean inner, + boolean outer) + +
+          Create a new line based on the origin and a single point
Line(float x1, + float y1, + float x2, + float y2) + +
+          Create a new line based on two points
Line(float x1, + float y1, + float dx, + float dy, + boolean dummy) + +
+          Create a line with relative second point
Line(Vector2f start, + Vector2f end) + +
+          Create a new line based on two points
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanclosed() + +
+          True if this is a closed shape
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ floatdistance(Vector2f point) + +
+          Get the shortest distance from a point to this line
+ floatdistanceSquared(Vector2f point) + +
+          Get the shortest distance squared from a point to this line
+ voidgetClosestPoint(Vector2f point, + Vector2f result) + +
+          Get the closest point on the line to a given point
+ floatgetDX() + +
+          Get the x direction of this line
+ floatgetDY() + +
+          Get the y direction of this line
+ Vector2fgetEnd() + +
+          Get the end point of the line
+ Vector2fgetStart() + +
+          Get the start point of the line
+ floatgetX() + +
+          Get the x location of the left side of this shape.
+ floatgetX1() + +
+          Get the x coordinate of the start point
+ floatgetX2() + +
+          Get the x coordinate of the end point
+ floatgetY() + +
+          Get the y position of the top of this shape.
+ floatgetY1() + +
+          Get the y coordinate of the start point
+ floatgetY2() + +
+          Get the y coordinate of the end point
+ Vector2fintersect(Line other) + +
+          Intersect this line with another
+ Vector2fintersect(Line other, + boolean limit) + +
+          Intersect this line with another
+ booleanintersect(Line other, + boolean limit, + Vector2f result) + +
+          Intersect this line with another
+ booleanintersects(Shape shape) + +
+          Check if this shape intersects with the shape provided.
+ floatlength() + +
+          Find the length of the line
+ floatlengthSquared() + +
+          Find the length of the line squared (cheaper and good for comparisons)
+ booleanon(Vector2f point) + +
+          Check if the given point is on the line
+ voidset(float[] start, + float[] end) + +
+          Configure the line
+ voidset(float sx, + float sy, + float ex, + float ey) + +
+          Configure the line without garbage
+ voidset(Vector2f start, + Vector2f end) + +
+          Configure the line
+ java.lang.StringtoString() + +
+           
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, contains, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, hasVertex, includes, increaseTriangulation, indexOf, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Line

+
+public Line(float x,
+            float y,
+            boolean inner,
+            boolean outer)
+
+
Create a new line based on the origin and a single point +

+

+
Parameters:
x - The end point of the line
y - The end point of the line
inner - True if this line blocks on it's inner edge
outer - True if this line blocks on it's outer edge
+
+
+ +

+Line

+
+public Line(float x,
+            float y)
+
+
Create a new line based on the origin and a single point +

+

+
Parameters:
x - The end point of the line
y - The end point of the line
+
+
+ +

+Line

+
+public Line(float x1,
+            float y1,
+            float x2,
+            float y2)
+
+
Create a new line based on two points +

+

+
Parameters:
x1 - The x coordinate of the start point
y1 - The y coordinate of the start point
x2 - The x coordinate of the end point
y2 - The y coordinate of the end point
+
+
+ +

+Line

+
+public Line(float x1,
+            float y1,
+            float dx,
+            float dy,
+            boolean dummy)
+
+
Create a line with relative second point +

+

+
Parameters:
x1 - The x coordinate of the start point
y1 - The y coordinate of the start point
dx - The x change to get to the second point
dy - The y change to get to the second point
dummy - A dummy value
+
+
+ +

+Line

+
+public Line(float[] start,
+            float[] end)
+
+
Create a new line based on two points +

+

+
Parameters:
start - The start point
end - The end point
+
+
+ +

+Line

+
+public Line(Vector2f start,
+            Vector2f end)
+
+
Create a new line based on two points +

+

+
Parameters:
start - The start point
end - The end point
+
+ + + + + + + + +
+Method Detail
+ +

+set

+
+public void set(float[] start,
+                float[] end)
+
+
Configure the line +

+

+
Parameters:
start - The start point of the line
end - The end point of the line
+
+
+
+ +

+getStart

+
+public Vector2f getStart()
+
+
Get the start point of the line +

+

+ +
Returns:
The start point of the line
+
+
+
+ +

+getEnd

+
+public Vector2f getEnd()
+
+
Get the end point of the line +

+

+ +
Returns:
The end point of the line
+
+
+
+ +

+length

+
+public float length()
+
+
Find the length of the line +

+

+ +
Returns:
The the length of the line
+
+
+
+ +

+lengthSquared

+
+public float lengthSquared()
+
+
Find the length of the line squared (cheaper and good for comparisons) +

+

+ +
Returns:
The length of the line squared
+
+
+
+ +

+set

+
+public void set(Vector2f start,
+                Vector2f end)
+
+
Configure the line +

+

+
Parameters:
start - The start point of the line
end - The end point of the line
+
+
+
+ +

+set

+
+public void set(float sx,
+                float sy,
+                float ex,
+                float ey)
+
+
Configure the line without garbage +

+

+
Parameters:
sx - The x coordinate of the start
sy - The y coordinate of the start
ex - The x coordiante of the end
ey - The y coordinate of the end
+
+
+
+ +

+getDX

+
+public float getDX()
+
+
Get the x direction of this line +

+

+ +
Returns:
The x direction of this line
+
+
+
+ +

+getDY

+
+public float getDY()
+
+
Get the y direction of this line +

+

+ +
Returns:
The y direction of this line
+
+
+
+ +

+getX

+
+public float getX()
+
+
Description copied from class: Shape
+
Get the x location of the left side of this shape. +

+

+
Overrides:
getX in class Shape
+
+
+ +
Returns:
The x location of the left side of this shape.
See Also:
Shape.getX()
+
+
+
+ +

+getY

+
+public float getY()
+
+
Description copied from class: Shape
+
Get the y position of the top of this shape. +

+

+
Overrides:
getY in class Shape
+
+
+ +
Returns:
The y position of the top of this shape.
See Also:
Shape.getY()
+
+
+
+ +

+getX1

+
+public float getX1()
+
+
Get the x coordinate of the start point +

+

+ +
Returns:
The x coordinate of the start point
+
+
+
+ +

+getY1

+
+public float getY1()
+
+
Get the y coordinate of the start point +

+

+ +
Returns:
The y coordinate of the start point
+
+
+
+ +

+getX2

+
+public float getX2()
+
+
Get the x coordinate of the end point +

+

+ +
Returns:
The x coordinate of the end point
+
+
+
+ +

+getY2

+
+public float getY2()
+
+
Get the y coordinate of the end point +

+

+ +
Returns:
The y coordinate of the end point
+
+
+
+ +

+distance

+
+public float distance(Vector2f point)
+
+
Get the shortest distance from a point to this line +

+

+
Parameters:
point - The point from which we want the distance +
Returns:
The distance from the line to the point
+
+
+
+ +

+on

+
+public boolean on(Vector2f point)
+
+
Check if the given point is on the line +

+

+
Parameters:
point - The point to check +
Returns:
True if the point is on this line
+
+
+
+ +

+distanceSquared

+
+public float distanceSquared(Vector2f point)
+
+
Get the shortest distance squared from a point to this line +

+

+
Parameters:
point - The point from which we want the distance +
Returns:
The distance squared from the line to the point
+
+
+
+ +

+getClosestPoint

+
+public void getClosestPoint(Vector2f point,
+                            Vector2f result)
+
+
Get the closest point on the line to a given point +

+

+
Parameters:
point - The point which we want to project
result - The point on the line closest to the given point
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+intersect

+
+public Vector2f intersect(Line other)
+
+
Intersect this line with another +

+

+
Parameters:
other - The other line we should intersect with +
Returns:
The intersection point or null if the lines are parallel
+
+
+
+ +

+intersect

+
+public Vector2f intersect(Line other,
+                          boolean limit)
+
+
Intersect this line with another +

+

+
Parameters:
other - The other line we should intersect with
limit - True if the collision is limited to the extent of the lines +
Returns:
The intersection point or null if the lines don't intersect
+
+
+
+ +

+intersect

+
+public boolean intersect(Line other,
+                         boolean limit,
+                         Vector2f result)
+
+
Intersect this line with another +

+

+
Parameters:
other - The other line we should intersect with
limit - True if the collision is limited to the extent of the lines
result - The resulting intersection point if any +
Returns:
True if the lines intersect
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
Shape.createPoints()
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
Shape.transform(org.newdawn.slick.geom.Transform)
+
+
+
+ +

+closed

+
+public boolean closed()
+
+
Description copied from class: Shape
+
True if this is a closed shape +

+

+
Overrides:
closed in class Shape
+
+
+ +
Returns:
True if this is a closed shape
See Also:
Shape.closed()
+
+
+
+ +

+intersects

+
+public boolean intersects(Shape shape)
+
+
Description copied from class: Shape
+
Check if this shape intersects with the shape provided. +

+

+
Overrides:
intersects in class Shape
+
+
+
Parameters:
shape - The shape to check if it intersects with this one. +
Returns:
True if the shapes do intersect, false otherwise.
See Also:
Shape.intersects(org.newdawn.slick.geom.Shape)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.PointBag.html b/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.PointBag.html new file mode 100644 index 000000000..47c9bfc8e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.PointBag.html @@ -0,0 +1,458 @@ + + + + + + +MannTriangulator.PointBag (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class MannTriangulator.PointBag

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.MannTriangulator.PointBag
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Enclosing class:
MannTriangulator
+
+
+
+
protected class MannTriangulator.PointBag
extends java.lang.Object
implements java.io.Serializable
+ + +

+A bag/pool of point objects +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  org.newdawn.slick.geom.MannTriangulator.Pointfirst + +
+          The first point in the bag - head of the list
+protected  MannTriangulator.PointBagnext + +
+          The next bag in the list of bags
+  + + + + + + + + + + + +
+Constructor Summary
+protected MannTriangulator.PointBag() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(org.newdawn.slick.geom.MannTriangulator.Point p) + +
+          Add a point to the bag
+ voidclear() + +
+          Clear all the points from this bag
+ voidcomputeAngles() + +
+          Compute the angles for the points in this bag
+ booleancontains(Vector2f point) + +
+          Check if the point provided was contained
+ intcountPoints() + +
+          Get the number of points in the bag
+ booleandoesIntersectSegment(Vector2f v1, + Vector2f v2) + +
+          Check if the points in this bag form a path intersecting + with the specified path
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+first

+
+protected org.newdawn.slick.geom.MannTriangulator.Point first
+
+
The first point in the bag - head of the list +

+

+
+
+
+ +

+next

+
+protected MannTriangulator.PointBag next
+
+
The next bag in the list of bags +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MannTriangulator.PointBag

+
+protected MannTriangulator.PointBag()
+
+
+ + + + + + + + +
+Method Detail
+ +

+clear

+
+public void clear()
+
+
Clear all the points from this bag +

+

+
+
+
+
+
+
+
+ +

+add

+
+public void add(org.newdawn.slick.geom.MannTriangulator.Point p)
+
+
Add a point to the bag +

+

+
+
+
+
Parameters:
p - The point to add
+
+
+
+ +

+computeAngles

+
+public void computeAngles()
+
+
Compute the angles for the points in this bag +

+

+
+
+
+
+
+
+
+ +

+doesIntersectSegment

+
+public boolean doesIntersectSegment(Vector2f v1,
+                                    Vector2f v2)
+
+
Check if the points in this bag form a path intersecting + with the specified path +

+

+
+
+
+
Parameters:
v1 - The start point of the segment
v2 - The end point of the segment +
Returns:
True if points in this contour intersect with the segment
+
+
+
+ +

+countPoints

+
+public int countPoints()
+
+
Get the number of points in the bag +

+

+
+
+
+ +
Returns:
The number of points in the bag
+
+
+
+ +

+contains

+
+public boolean contains(Vector2f point)
+
+
Check if the point provided was contained +

+

+
+
+
+
Parameters:
point - The point provided +
Returns:
True if it's in the bag
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.html new file mode 100644 index 000000000..0304ace25 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/MannTriangulator.html @@ -0,0 +1,477 @@ + + + + + + +MannTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class MannTriangulator

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.MannTriangulator
+
+
+
All Implemented Interfaces:
java.io.Serializable, Triangulator
+
+
+
+
public class MannTriangulator
extends java.lang.Object
implements Triangulator
+ + +

+A 2D Triangulator. Graciously made available by the man(n) himself. +

+ +

+

+
Author:
+
Matthias Mann
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+protected  classMannTriangulator.PointBag + +
+          A bag/pool of point objects
+ + + + + + + + + + + + + + +
+Field Summary
+protected  MannTriangulator.PointBagcontour + +
+          The outer countour of the shape
+protected  MannTriangulator.PointBagholes + +
+          The holes defined in the polygon
+  + + + + + + + + + + +
+Constructor Summary
MannTriangulator() + +
+          Creates a new instance of Triangulator0
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPolyPoint(float x, + float y) + +
+          Add a point that forms part of the outer polygon
+ intgetTriangleCount() + +
+          Get a count of the number of triangles produced
+ float[]getTrianglePoint(int tri, + int i) + +
+          Get a point on a specified generated triangle
+ voidreset() + +
+          Reset the internal state of the triangulator
+ voidstartHole() + +
+          Begin adding a hole to the polygon
+ booleantriangulate() + +
+          Run the triangulation
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+contour

+
+protected MannTriangulator.PointBag contour
+
+
The outer countour of the shape +

+

+
+
+
+ +

+holes

+
+protected MannTriangulator.PointBag holes
+
+
The holes defined in the polygon +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MannTriangulator

+
+public MannTriangulator()
+
+
Creates a new instance of Triangulator0 +

+

+ + + + + + + + +
+Method Detail
+ +

+addPolyPoint

+
+public void addPolyPoint(float x,
+                         float y)
+
+
Description copied from interface: Triangulator
+
Add a point that forms part of the outer polygon +

+

+
Specified by:
addPolyPoint in interface Triangulator
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordiante of the point
See Also:
Triangulator.addPolyPoint(float, float)
+
+
+
+ +

+reset

+
+public void reset()
+
+
Reset the internal state of the triangulator +

+

+
+
+
+
+
+
+
+ +

+startHole

+
+public void startHole()
+
+
Begin adding a hole to the polygon +

+

+
Specified by:
startHole in interface Triangulator
+
+
+
+
+
+
+ +

+triangulate

+
+public boolean triangulate()
+
+
Description copied from interface: Triangulator
+
Run the triangulation +

+

+
Specified by:
triangulate in interface Triangulator
+
+
+ +
Returns:
True if successful
+
+
+
+ +

+getTriangleCount

+
+public int getTriangleCount()
+
+
Description copied from interface: Triangulator
+
Get a count of the number of triangles produced +

+

+
Specified by:
getTriangleCount in interface Triangulator
+
+
+ +
Returns:
The number of triangles produced
See Also:
Triangulator.getTriangleCount()
+
+
+
+ +

+getTrianglePoint

+
+public float[] getTrianglePoint(int tri,
+                                int i)
+
+
Description copied from interface: Triangulator
+
Get a point on a specified generated triangle +

+

+
Specified by:
getTrianglePoint in interface Triangulator
+
+
+
Parameters:
tri - The index of the triangle to interegate
i - The index of the point within the triangle to retrieve + (0 - 2) +
Returns:
The x,y coordinate pair for the point
See Also:
Triangulator.getTrianglePoint(int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/MorphShape.html b/lib/javadoc/org/newdawn/slick/geom/MorphShape.html new file mode 100644 index 000000000..e402545db --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/MorphShape.html @@ -0,0 +1,413 @@ + + + + + + +MorphShape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class MorphShape

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.MorphShape
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class MorphShape
extends Shape
+ + +

+A shape that morphs between a set of other shapes +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + +
+Constructor Summary
MorphShape(Shape base) + +
+          Create a new mighty morphin shape
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddShape(Shape shape) + +
+          Add a subsequent shape that we should morph too in order
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ voidsetExternalFrame(Shape current) + +
+          Set the current frame
+ voidsetMorphTime(float time) + +
+          Set the "time" index for this morph.
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ voidupdateMorphTime(float delta) + +
+          Update the morph time and hence the curent frame
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, closed, contains, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MorphShape

+
+public MorphShape(Shape base)
+
+
Create a new mighty morphin shape +

+

+
Parameters:
base - The base shape we're starting the morph from
+
+ + + + + + + + +
+Method Detail
+ +

+addShape

+
+public void addShape(Shape shape)
+
+
Add a subsequent shape that we should morph too in order +

+

+
Parameters:
shape - The new shape that forms part of the morphing shape
+
+
+
+ +

+setMorphTime

+
+public void setMorphTime(float time)
+
+
Set the "time" index for this morph. This is given in terms of shapes, so + 0.5f would give you the position half way between the first and second shapes. +

+

+
Parameters:
time - The time index to represent on this shape
+
+
+
+ +

+updateMorphTime

+
+public void updateMorphTime(float delta)
+
+
Update the morph time and hence the curent frame +

+

+
Parameters:
delta - The amount to change the morph time by
+
+
+
+ +

+setExternalFrame

+
+public void setExternalFrame(Shape current)
+
+
Set the current frame +

+

+
Parameters:
current - The current frame
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
createPoints()
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
transform(Transform)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/NeatTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/NeatTriangulator.html new file mode 100644 index 000000000..7b159afce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/NeatTriangulator.html @@ -0,0 +1,429 @@ + + + + + + +NeatTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class NeatTriangulator

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.NeatTriangulator
+
+
+
All Implemented Interfaces:
java.io.Serializable, Triangulator
+
+
+
+
public class NeatTriangulator
extends java.lang.Object
implements Triangulator
+ + +

+A second triangulator that seems slightly more robust +

+ +

+

+
Author:
+
Online examples
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NeatTriangulator() + +
+          Create a new triangulator
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPolyPoint(float x, + float y) + +
+          Add a point to the polygon
+ voidbasicTriangulation() + +
+          Perform simple triangulation
+ voidclear() + +
+          Clear the triangulator status
+ intgetTriangleCount() + +
+          Get a count of the number of triangles produced
+ float[]getTrianglePoint(int tri, + int i) + +
+          Get a point on a specified generated triangle
+ voidstartHole() + +
+          Start a hole in the polygon
+ booleantriangulate() + +
+          Upate the triangles
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NeatTriangulator

+
+public NeatTriangulator()
+
+
Create a new triangulator +

+

+ + + + + + + + +
+Method Detail
+ +

+clear

+
+public void clear()
+
+
Clear the triangulator status +

+

+
+
+
+
+
+
+
+ +

+basicTriangulation

+
+public void basicTriangulation()
+                        throws org.newdawn.slick.geom.NeatTriangulator.InternalException
+
+
Perform simple triangulation +

+

+
+
+
+ +
Throws: +
InternalException - Indicates a polygon that can't be triangulated +
org.newdawn.slick.geom.NeatTriangulator.InternalException
+
+
+
+ +

+triangulate

+
+public boolean triangulate()
+
+
Upate the triangles +

+

+
Specified by:
triangulate in interface Triangulator
+
+
+ +
Returns:
True if successful
+
+
+
+ +

+addPolyPoint

+
+public void addPolyPoint(float x,
+                         float y)
+
+
Add a point to the polygon +

+

+
Specified by:
addPolyPoint in interface Triangulator
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordiante of the point
+
+
+
+ +

+getTriangleCount

+
+public int getTriangleCount()
+
+
Description copied from interface: Triangulator
+
Get a count of the number of triangles produced +

+

+
Specified by:
getTriangleCount in interface Triangulator
+
+
+ +
Returns:
The number of triangles produced
See Also:
Triangulator.getTriangleCount()
+
+
+
+ +

+getTrianglePoint

+
+public float[] getTrianglePoint(int tri,
+                                int i)
+
+
Description copied from interface: Triangulator
+
Get a point on a specified generated triangle +

+

+
Specified by:
getTrianglePoint in interface Triangulator
+
+
+
Parameters:
tri - The index of the triangle to interegate
i - The index of the point within the triangle to retrieve + (0 - 2) +
Returns:
The x,y coordinate pair for the point
See Also:
Triangulator.getTrianglePoint(int, int)
+
+
+
+ +

+startHole

+
+public void startHole()
+
+
Description copied from interface: Triangulator
+
Start a hole in the polygon +

+

+
Specified by:
startHole in interface Triangulator
+
+
+
See Also:
Triangulator.startHole()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/OverTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/OverTriangulator.html new file mode 100644 index 000000000..6edcb8a8a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/OverTriangulator.html @@ -0,0 +1,382 @@ + + + + + + +OverTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class OverTriangulator

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.OverTriangulator
+
+
+
All Implemented Interfaces:
java.io.Serializable, Triangulator
+
+
+
+
public class OverTriangulator
extends java.lang.Object
implements Triangulator
+ + +

+A triangulator implementation that splits the triangules of another, subdividing + to give a higher tesselation - and hence smoother transitions. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OverTriangulator(Triangulator tris) + +
+          Create a new triangulator
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPolyPoint(float x, + float y) + +
+          Add a point that forms part of the outer polygon
+ intgetTriangleCount() + +
+          Get a count of the number of triangles produced
+ float[]getTrianglePoint(int tri, + int i) + +
+          Get a point on a specified generated triangle
+ voidstartHole() + +
+          Start a hole in the polygon
+ booleantriangulate() + +
+          Run the triangulation
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OverTriangulator

+
+public OverTriangulator(Triangulator tris)
+
+
Create a new triangulator +

+

+
Parameters:
tris - The original set of triangles to be sub-dividied
+
+ + + + + + + + +
+Method Detail
+ +

+addPolyPoint

+
+public void addPolyPoint(float x,
+                         float y)
+
+
Description copied from interface: Triangulator
+
Add a point that forms part of the outer polygon +

+

+
Specified by:
addPolyPoint in interface Triangulator
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordiante of the point
See Also:
Triangulator.addPolyPoint(float, float)
+
+
+
+ +

+getTriangleCount

+
+public int getTriangleCount()
+
+
Description copied from interface: Triangulator
+
Get a count of the number of triangles produced +

+

+
Specified by:
getTriangleCount in interface Triangulator
+
+
+ +
Returns:
The number of triangles produced
See Also:
Triangulator.getTriangleCount()
+
+
+
+ +

+getTrianglePoint

+
+public float[] getTrianglePoint(int tri,
+                                int i)
+
+
Description copied from interface: Triangulator
+
Get a point on a specified generated triangle +

+

+
Specified by:
getTrianglePoint in interface Triangulator
+
+
+
Parameters:
tri - The index of the triangle to interegate
i - The index of the point within the triangle to retrieve + (0 - 2) +
Returns:
The x,y coordinate pair for the point
See Also:
Triangulator.getTrianglePoint(int, int)
+
+
+
+ +

+startHole

+
+public void startHole()
+
+
Description copied from interface: Triangulator
+
Start a hole in the polygon +

+

+
Specified by:
startHole in interface Triangulator
+
+
+
See Also:
Triangulator.startHole()
+
+
+
+ +

+triangulate

+
+public boolean triangulate()
+
+
Description copied from interface: Triangulator
+
Run the triangulation +

+

+
Specified by:
triangulate in interface Triangulator
+
+
+ +
Returns:
True if successful
See Also:
Triangulator.triangulate()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Path.html b/lib/javadoc/org/newdawn/slick/geom/Path.html new file mode 100644 index 000000000..cdd4ed7bd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Path.html @@ -0,0 +1,489 @@ + + + + + + +Path (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Path

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Path
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Path
extends Shape
+ + +

+A shape built from lines and curves. Hole support is present but + restricted. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + +
+Constructor Summary
Path(float sx, + float sy) + +
+          Create a new path
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclose() + +
+          Close the path to form a polygon
+ booleanclosed() + +
+          True if this is a closed shape
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ voidcurveTo(float x, + float y, + float cx1, + float cy1, + float cx2, + float cy2) + +
+          Add a curve to the specified location (using the default segments 10)
+ voidcurveTo(float x, + float y, + float cx1, + float cy1, + float cx2, + float cy2, + int segments) + +
+          Add a curve to the specified location (specifing the number of segments)
+ voidlineTo(float x, + float y) + +
+          Add a line to the contour or hole which ends at the specified + location.
+ voidstartHole(float sx, + float sy) + +
+          Start building a hole in the previously defined contour
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, contains, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Path

+
+public Path(float sx,
+            float sy)
+
+
Create a new path +

+

+
Parameters:
sx - The start x coordinate of the path
sy - The start y coordiante of the path
+
+ + + + + + + + +
+Method Detail
+ +

+startHole

+
+public void startHole(float sx,
+                      float sy)
+
+
Start building a hole in the previously defined contour +

+

+
Parameters:
sx - The start point of the hole
sy - The start point of the hole
+
+
+
+ +

+lineTo

+
+public void lineTo(float x,
+                   float y)
+
+
Add a line to the contour or hole which ends at the specified + location. +

+

+
Parameters:
x - The x coordinate to draw the line to
y - The y coordiante to draw the line to
+
+
+
+ +

+close

+
+public void close()
+
+
Close the path to form a polygon +

+

+
+
+
+
+ +

+curveTo

+
+public void curveTo(float x,
+                    float y,
+                    float cx1,
+                    float cy1,
+                    float cx2,
+                    float cy2)
+
+
Add a curve to the specified location (using the default segments 10) +

+

+
Parameters:
x - The destination x coordinate
y - The destination y coordiante
cx1 - The x coordiante of the first control point
cy1 - The y coordiante of the first control point
cx2 - The x coordinate of the second control point
cy2 - The y coordinate of the second control point
+
+
+
+ +

+curveTo

+
+public void curveTo(float x,
+                    float y,
+                    float cx1,
+                    float cy1,
+                    float cx2,
+                    float cy2,
+                    int segments)
+
+
Add a curve to the specified location (specifing the number of segments) +

+

+
Parameters:
x - The destination x coordinate
y - The destination y coordiante
cx1 - The x coordiante of the first control point
cy1 - The y coordiante of the first control point
cx2 - The x coordinate of the second control point
cy2 - The y coordinate of the second control point
segments - The number of segments to use for the new curve
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
Shape.createPoints()
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
Shape.transform(org.newdawn.slick.geom.Transform)
+
+
+
+ +

+closed

+
+public boolean closed()
+
+
True if this is a closed shape +

+

+
Overrides:
closed in class Shape
+
+
+ +
Returns:
True if this is a closed shape
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Point.html b/lib/javadoc/org/newdawn/slick/geom/Point.html new file mode 100644 index 000000000..79d29162c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Point.html @@ -0,0 +1,380 @@ + + + + + + +Point (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Point

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Point
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Point
extends Shape
+ + +

+A single point shape +

+ +

+

+
Author:
+
Kova
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + +
+Constructor Summary
Point(float x, + float y) + +
+          Create a new point
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcalculateRadius() + +
+          Calculate the radius of a circle that can completely enclose this shape.
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+protected  voidfindCenter() + +
+          Get the center of this polygon.
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateTriangles, checkPoints, closed, contains, contains, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Point

+
+public Point(float x,
+             float y)
+
+
Create a new point +

+

+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+ + + + + + + + +
+Method Detail
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Description copied from class: Shape
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
See Also:
Shape.transform(org.newdawn.slick.geom.Transform)
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
Shape.createPoints()
+
+
+
+ +

+findCenter

+
+protected void findCenter()
+
+
Description copied from class: Shape
+
Get the center of this polygon. +

+

+
Overrides:
findCenter in class Shape
+
+
+
See Also:
Shape.findCenter()
+
+
+
+ +

+calculateRadius

+
+protected void calculateRadius()
+
+
Description copied from class: Shape
+
Calculate the radius of a circle that can completely enclose this shape. +

+

+
Overrides:
calculateRadius in class Shape
+
+
+
See Also:
Shape.calculateRadius()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Polygon.html b/lib/javadoc/org/newdawn/slick/geom/Polygon.html new file mode 100644 index 000000000..af6959125 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Polygon.html @@ -0,0 +1,508 @@ + + + + + + +Polygon (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Polygon

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Polygon
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Polygon
extends Shape
+ + +

+A polygon implementation meeting the Shape contract. +

+ +

+

+
Author:
+
Mark
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + +
+Constructor Summary
Polygon() + +
+          Create an empty polygon
Polygon(float[] points) + +
+          Construct a new polygon with 3 or more points.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPoint(float x, + float y) + +
+          Add a point to the polygon
+ booleanclosed() + +
+          True if this is a closed shape
+ Polygoncopy() + +
+          Provide a copy of this polygon
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ voidsetAllowDuplicatePoints(boolean allowDups) + +
+          Indicate if duplicate points are allow
+ voidsetClosed(boolean closed) + +
+          Indicate if the polygon should be closed
+ voidsetX(float x) + +
+          Set the x position of the left side this shape.
+ voidsetY(float y) + +
+          Set the y position of the top of this shape.
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, contains, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Polygon

+
+public Polygon(float[] points)
+
+
Construct a new polygon with 3 or more points. + This constructor will take the first set of points and copy them after + the last set of points to create a closed shape. +

+

+
Parameters:
points - An array of points in x, y order.
+
+
+ +

+Polygon

+
+public Polygon()
+
+
Create an empty polygon +

+

+ + + + + + + + +
+Method Detail
+ +

+setAllowDuplicatePoints

+
+public void setAllowDuplicatePoints(boolean allowDups)
+
+
Indicate if duplicate points are allow +

+

+
Parameters:
allowDups - True if duplicate points are allowed
+
+
+
+ +

+addPoint

+
+public void addPoint(float x,
+                     float y)
+
+
Add a point to the polygon +

+

+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
+
+
+
+ +

+setX

+
+public void setX(float x)
+
+
Description copied from class: Shape
+
Set the x position of the left side this shape. +

+

+
Overrides:
setX in class Shape
+
+
+
Parameters:
x - The new x position of the left side this shape.
See Also:
Shape.setX(float)
+
+
+
+ +

+setY

+
+public void setY(float y)
+
+
Description copied from class: Shape
+
Set the y position of the top of this shape. +

+

+
Overrides:
setY in class Shape
+
+
+
Parameters:
y - The new y position of the top of this shape.
See Also:
Shape.setY(float)
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
See Also:
Shape.createPoints()
+
+
+
+ +

+closed

+
+public boolean closed()
+
+
Description copied from class: Shape
+
True if this is a closed shape +

+

+
Overrides:
closed in class Shape
+
+
+ +
Returns:
True if this is a closed shape
See Also:
Shape.closed()
+
+
+
+ +

+setClosed

+
+public void setClosed(boolean closed)
+
+
Indicate if the polygon should be closed +

+

+
Parameters:
closed - True if the polygon should be closed
+
+
+
+ +

+copy

+
+public Polygon copy()
+
+
Provide a copy of this polygon +

+

+ +
Returns:
A copy of this polygon
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Rectangle.html b/lib/javadoc/org/newdawn/slick/geom/Rectangle.html new file mode 100644 index 000000000..b68726761 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Rectangle.html @@ -0,0 +1,701 @@ + + + + + + +Rectangle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Rectangle

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Rectangle
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Direct Known Subclasses:
RoundedRectangle
+
+
+
+
public class Rectangle
extends Shape
+ + +

+An axis oriented used for shape bounds +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  floatheight + +
+          The height of the box
+protected  floatwidth + +
+          The width of the box
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + +
+Constructor Summary
Rectangle(float x, + float y, + float width, + float height) + +
+          Create a new bounding box
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancontains(float xp, + float yp) + +
+          Check if this rectangle contains a point
+static booleancontains(float xp, + float yp, + float xr, + float yr, + float widthr, + float heightr) + +
+          Check if a rectangle contains a point (static to use it everywhere)
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ floatgetHeight() + +
+          Get the height of the box
+ floatgetWidth() + +
+          Get the width of the box
+ voidgrow(float h, + float v) + +
+          Grow the rectangle at all edges by the given amounts.
+ booleanintersects(Shape shape) + +
+          Check if this box touches another
+ voidscaleGrow(float h, + float v) + +
+          Grow the rectangle based on scaling it's size
+ voidsetBounds(float x, + float y, + float width, + float height) + +
+          Set the bounds of this rectangle
+ voidsetBounds(Rectangle other) + +
+          Set the bounds of this rectangle based on the given rectangle
+ voidsetHeight(float height) + +
+          Set the heightof this box
+ voidsetSize(float width, + float height) + +
+          Set the size (widtha and height) of this rectangle
+ voidsetWidth(float width) + +
+          Set the width of this box
+ java.lang.StringtoString() + +
+           
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, closed, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+width

+
+protected float width
+
+
The width of the box +

+

+
+
+
+ +

+height

+
+protected float height
+
+
The height of the box +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Rectangle

+
+public Rectangle(float x,
+                 float y,
+                 float width,
+                 float height)
+
+
Create a new bounding box +

+

+
Parameters:
x - The x position of the box
y - The y position of the box
width - The width of the box
height - The hieght of the box
+
+ + + + + + + + +
+Method Detail
+ +

+contains

+
+public boolean contains(float xp,
+                        float yp)
+
+
Check if this rectangle contains a point +

+

+
Overrides:
contains in class Shape
+
+
+
Parameters:
xp - The x coordinate of the point to check
yp - The y coordinate of the point to check +
Returns:
True if the point is within the rectangle
+
+
+
+ +

+setBounds

+
+public void setBounds(Rectangle other)
+
+
Set the bounds of this rectangle based on the given rectangle +

+

+
Parameters:
other - The other rectangle whose bounds should be applied
+
+
+
+ +

+setBounds

+
+public void setBounds(float x,
+                      float y,
+                      float width,
+                      float height)
+
+
Set the bounds of this rectangle +

+

+
Parameters:
x - The x coordinate of this rectangle
y - The y coordinate of this rectangle
width - The width to set in this rectangle
height - The height to set in this rectangle
+
+
+
+ +

+setSize

+
+public void setSize(float width,
+                    float height)
+
+
Set the size (widtha and height) of this rectangle +

+

+
Parameters:
width - The width to set in this rectangle
height - The height to set in this rectangle
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of the box +

+

+
Overrides:
getWidth in class Shape
+
+
+ +
Returns:
The width of the box
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height of the box +

+

+
Overrides:
getHeight in class Shape
+
+
+ +
Returns:
The height of the box
+
+
+
+ +

+grow

+
+public void grow(float h,
+                 float v)
+
+
Grow the rectangle at all edges by the given amounts. This will result in the + rectangle getting larger around it's centre. +

+

+
Parameters:
h - The amount to adjust horizontally
v - The amount to ajust vertically
+
+
+
+ +

+scaleGrow

+
+public void scaleGrow(float h,
+                      float v)
+
+
Grow the rectangle based on scaling it's size +

+

+
Parameters:
h - The scale to apply to the horizontal
v - The scale to appy to the vertical
+
+
+
+ +

+setWidth

+
+public void setWidth(float width)
+
+
Set the width of this box +

+

+
Parameters:
width - The new width of this box
+
+
+
+ +

+setHeight

+
+public void setHeight(float height)
+
+
Set the heightof this box +

+

+
Parameters:
height - The height of this box
+
+
+
+ +

+intersects

+
+public boolean intersects(Shape shape)
+
+
Check if this box touches another +

+

+
Overrides:
intersects in class Shape
+
+
+
Parameters:
shape - The other shape to check against +
Returns:
True if the rectangles touch
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Specified by:
createPoints in class Shape
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+contains

+
+public static boolean contains(float xp,
+                               float yp,
+                               float xr,
+                               float yr,
+                               float widthr,
+                               float heightr)
+
+
Check if a rectangle contains a point (static to use it everywhere) +

+

+
Parameters:
xp - The x coordinate of the point to check
yp - The y coordinate of the point to check
xr - The x coordinate of the rectangle
yr - The y coordinate of the rectangle
widthr - The width of the rectangle
heightr - The height of the rectangle +
Returns:
True if the point is within the rectangle
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Specified by:
transform in class Shape
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/RoundedRectangle.html b/lib/javadoc/org/newdawn/slick/geom/RoundedRectangle.html new file mode 100644 index 000000000..6d6bdbd89 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/RoundedRectangle.html @@ -0,0 +1,662 @@ + + + + + + +RoundedRectangle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class RoundedRectangle

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+      extended by org.newdawn.slick.geom.Rectangle
+          extended by org.newdawn.slick.geom.RoundedRectangle
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class RoundedRectangle
extends Rectangle
+ + +

+Class to create rounded rectangles with. +

+ +

+

+
Author:
+
Mark Bernard
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intALL + +
+          Indicates the all cornders should be rounded
+static intBOTTOM_LEFT + +
+          Indicates the bottom left corner should be rounded
+static intBOTTOM_RIGHT + +
+          Indicates the bottom right corner should be rounded
+static intTOP_LEFT + +
+          Indicates the top left corner should be rounded
+static intTOP_RIGHT + +
+          Indicates the top right corner should be rounded
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Rectangle
height, width
+ + + + + + + +
Fields inherited from class org.newdawn.slick.geom.Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y
+  + + + + + + + + + + + + + + + + +
+Constructor Summary
RoundedRectangle(float x, + float y, + float width, + float height, + float cornerRadius) + +
+          Construct a rectangle with rounded corners.
RoundedRectangle(float x, + float y, + float width, + float height, + float cornerRadius, + int segmentCount) + +
+          Construct a rectangle with rounded corners.
RoundedRectangle(float x, + float y, + float width, + float height, + float cornerRadius, + int segmentCount, + int cornerFlags) + +
+          Construct a rectangle with rounded corners.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+ floatgetCornerRadius() + +
+          Get the radius for each corner.
+ floatgetHeight() + +
+          Get the height of this rectangle.
+ floatgetWidth() + +
+          Get the width of this rectangle.
+ voidsetCornerRadius(float cornerRadius) + +
+          Set the radius for each corner.
+ voidsetHeight(float height) + +
+          Set the height of this rectangle.
+ voidsetWidth(float width) + +
+          Set the width of this rectangle.
+ Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Rectangle
contains, contains, grow, intersects, scaleGrow, setBounds, setBounds, setSize, toString
+ + + + + + + +
Methods inherited from class org.newdawn.slick.geom.Shape
calculateRadius, calculateTriangles, checkPoints, closed, contains, findCenter, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, union
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TOP_LEFT

+
+public static final int TOP_LEFT
+
+
Indicates the top left corner should be rounded +

+

+
See Also:
Constant Field Values
+
+
+ +

+TOP_RIGHT

+
+public static final int TOP_RIGHT
+
+
Indicates the top right corner should be rounded +

+

+
See Also:
Constant Field Values
+
+
+ +

+BOTTOM_RIGHT

+
+public static final int BOTTOM_RIGHT
+
+
Indicates the bottom right corner should be rounded +

+

+
See Also:
Constant Field Values
+
+
+ +

+BOTTOM_LEFT

+
+public static final int BOTTOM_LEFT
+
+
Indicates the bottom left corner should be rounded +

+

+
See Also:
Constant Field Values
+
+
+ +

+ALL

+
+public static final int ALL
+
+
Indicates the all cornders should be rounded +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+RoundedRectangle

+
+public RoundedRectangle(float x,
+                        float y,
+                        float width,
+                        float height,
+                        float cornerRadius)
+
+
Construct a rectangle with rounded corners. +

+

+
Parameters:
x - The x position of the rectangle.
y - The y position of the rectangle.
width - The width of the rectangle.
height - The hieght of the rectangle.
cornerRadius - The radius to use for the arc in each corner.
+
+
+ +

+RoundedRectangle

+
+public RoundedRectangle(float x,
+                        float y,
+                        float width,
+                        float height,
+                        float cornerRadius,
+                        int segmentCount)
+
+
Construct a rectangle with rounded corners. +

+

+
Parameters:
x - The x position of the rectangle.
y - The y position of the rectangle.
width - The width of the rectangle.
height - The hieght of the rectangle.
cornerRadius - The radius to use for the arc in each corner.
segmentCount - The number of segments to use to draw each corner arc.
+
+
+ +

+RoundedRectangle

+
+public RoundedRectangle(float x,
+                        float y,
+                        float width,
+                        float height,
+                        float cornerRadius,
+                        int segmentCount,
+                        int cornerFlags)
+
+
Construct a rectangle with rounded corners. +

+

+
Parameters:
x - The x position of the rectangle.
y - The y position of the rectangle.
width - The width of the rectangle.
height - The hieght of the rectangle.
cornerRadius - The radius to use for the arc in each corner.
segmentCount - The number of segments to use to draw each corner arc.
cornerFlags - Indicates which corners should be rounded
+
+ + + + + + + + +
+Method Detail
+ +

+getCornerRadius

+
+public float getCornerRadius()
+
+
Get the radius for each corner. +

+

+ +
Returns:
The radius for each corner.
+
+
+
+ +

+setCornerRadius

+
+public void setCornerRadius(float cornerRadius)
+
+
Set the radius for each corner. +

+

+
Parameters:
cornerRadius - The radius for each corner to set.
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height of this rectangle. +

+

+
Overrides:
getHeight in class Rectangle
+
+
+ +
Returns:
The height of this rectangle.
+
+
+
+ +

+setHeight

+
+public void setHeight(float height)
+
+
Set the height of this rectangle. +

+

+
Overrides:
setHeight in class Rectangle
+
+
+
Parameters:
height - The height to set.
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of this rectangle. +

+

+
Overrides:
getWidth in class Rectangle
+
+
+ +
Returns:
The width of this rectangle.
+
+
+
+ +

+setWidth

+
+public void setWidth(float width)
+
+
Set the width of this rectangle. +

+

+
Overrides:
setWidth in class Rectangle
+
+
+
Parameters:
width - The width to set.
+
+
+
+ +

+createPoints

+
+protected void createPoints()
+
+
Description copied from class: Shape
+
Subclasses implement this to create the points of the shape. +

+

+
Overrides:
createPoints in class Rectangle
+
+
+
+
+
+
+ +

+transform

+
+public Shape transform(Transform transform)
+
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
Overrides:
transform in class Rectangle
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Shape.html b/lib/javadoc/org/newdawn/slick/geom/Shape.html new file mode 100644 index 000000000..c39c85376 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Shape.html @@ -0,0 +1,1562 @@ + + + + + + +Shape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Shape

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Shape
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Direct Known Subclasses:
Curve, Ellipse, Line, MorphShape, Path, Point, Polygon, Rectangle
+
+
+
+
public abstract class Shape
extends java.lang.Object
implements java.io.Serializable
+ + +

+The description of any 2D shape that can be transformed. The points provided approximate the intent + of the shape. +

+ +

+

+
Author:
+
Mark
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  floatboundingCircleRadius + +
+          Radius of a circle that can completely enclose this shape.
+protected  float[]center + +
+          Center point of the polygon.
+protected  floatmaxX + +
+          The right most point of this shape
+protected  floatmaxY + +
+          The bottom most point of this shape
+protected  floatminX + +
+          The left most point of this shape.
+protected  floatminY + +
+          The top most point of this shape.
+protected  float[]points + +
+          The points representing this polygon.
+protected  booleanpointsDirty + +
+          Flag to tell whether points need to be generated
+protected  booleantrianglesDirty + +
+          True if the triangles need updating
+protected  Triangulatortris + +
+          The triangles that define the shape
+protected  floatx + +
+          The left most point of this shape.
+protected  floaty + +
+          The top most point of this shape.
+  + + + + + + + + + + +
+Constructor Summary
Shape() + +
+          Shape constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcalculateRadius() + +
+          Calculate the radius of a circle that can completely enclose this shape.
+protected  voidcalculateTriangles() + +
+          Calculate the triangles that can fill this shape
+protected  voidcheckPoints() + +
+          Check the dirty flag and create points as necessary.
+ booleanclosed() + +
+          True if this is a closed shape
+ booleancontains(float x, + float y) + +
+          Check if this polygon contains the given point
+ booleancontains(Shape other) + +
+          Check if the shape passed is entirely contained within + this shape.
+protected abstract  voidcreatePoints() + +
+          Subclasses implement this to create the points of the shape.
+protected  voidfindCenter() + +
+          Get the center of this polygon.
+ floatgetBoundingCircleRadius() + +
+          Get the radius of a circle that can completely enclose this shape.
+ float[]getCenter() + +
+          Get the point closet to the center of all the points in this Shape
+ floatgetCenterX() + +
+          Get the x center of this shape.
+ floatgetCenterY() + +
+          Get the y center of this shape.
+ floatgetHeight() + +
+          Get the height of the shape
+ Vector2fgetLocation() + +
+          Get the top-left location of this shape.
+ floatgetMaxX() + +
+          Get the right most point of this shape.
+ floatgetMaxY() + +
+          Get the bottom most point of this shape.
+ floatgetMinX() + +
+          Get the left most point of this shape.
+ floatgetMinY() + +
+          Get the top most point of this shape.
+ float[]getNormal(int index) + +
+          Get the combine normal of a given point
+ float[]getPoint(int index) + +
+          Get a single point in this polygon
+ intgetPointCount() + +
+          Get the number of points in this polygon
+ float[]getPoints() + +
+          Get the points that outline this shape.
+ TriangulatorgetTriangles() + +
+          The triangles that define the filled version of this shape
+ floatgetWidth() + +
+          Get the width of the shape
+ floatgetX() + +
+          Get the x location of the left side of this shape.
+ floatgetY() + +
+          Get the y position of the top of this shape.
+ booleanhasVertex(float x, + float y) + +
+          Check if a particular location is a vertex of this polygon
+ booleanincludes(float x, + float y) + +
+          Check if the given point is part of the path that + forms this shape
+ voidincreaseTriangulation() + +
+          Increase triangulation
+ intindexOf(float x, + float y) + +
+          Get the index of a given point
+ booleanintersects(Shape shape) + +
+          Check if this shape intersects with the shape provided.
+ voidpreCache() + +
+          Cause all internal state to be generated and cached
+ Shapeprune() + +
+          Prune any required points in this shape
+ voidsetCenterX(float centerX) + +
+          Set the x center of this shape.
+ voidsetCenterY(float centerY) + +
+          Set the y center of this shape.
+ voidsetLocation(float x, + float y) + +
+          Set the top-left location of this shape
+ voidsetLocation(Vector2f loc) + +
+          Set the top-left location of this shape
+ voidsetX(float x) + +
+          Set the x position of the left side this shape.
+ voidsetY(float y) + +
+          Set the y position of the top of this shape.
+ Shape[]subtract(Shape other) + +
+          Subtract the given shape from this one.
+abstract  Shapetransform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ Shape[]union(Shape other) + +
+          Join this shape with another.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+points

+
+protected float[] points
+
+
The points representing this polygon. +

+

+
+
+
+ +

+center

+
+protected float[] center
+
+
Center point of the polygon. +

+

+
+
+
+ +

+x

+
+protected float x
+
+
The left most point of this shape. +

+

+
+
+
+ +

+y

+
+protected float y
+
+
The top most point of this shape. +

+

+
+
+
+ +

+maxX

+
+protected float maxX
+
+
The right most point of this shape +

+

+
+
+
+ +

+maxY

+
+protected float maxY
+
+
The bottom most point of this shape +

+

+
+
+
+ +

+minX

+
+protected float minX
+
+
The left most point of this shape. +

+

+
+
+
+ +

+minY

+
+protected float minY
+
+
The top most point of this shape. +

+

+
+
+
+ +

+boundingCircleRadius

+
+protected float boundingCircleRadius
+
+
Radius of a circle that can completely enclose this shape. +

+

+
+
+
+ +

+pointsDirty

+
+protected boolean pointsDirty
+
+
Flag to tell whether points need to be generated +

+

+
+
+
+ +

+tris

+
+protected transient Triangulator tris
+
+
The triangles that define the shape +

+

+
+
+
+ +

+trianglesDirty

+
+protected boolean trianglesDirty
+
+
True if the triangles need updating +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Shape

+
+public Shape()
+
+
Shape constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+setLocation

+
+public void setLocation(float x,
+                        float y)
+
+
Set the top-left location of this shape +

+

+
+
+
+
Parameters:
x - The x coordinate of the new location of the shape
y - The y coordinate of the new location of the shape
+
+
+
+ +

+transform

+
+public abstract Shape transform(Transform transform)
+
+
Apply a transformation and return a new shape. This will not alter the current shape but will + return the transformed shape. +

+

+
+
+
+
Parameters:
transform - The transform to be applied +
Returns:
The transformed shape.
+
+
+
+ +

+createPoints

+
+protected abstract void createPoints()
+
+
Subclasses implement this to create the points of the shape. +

+

+
+
+
+
+
+
+
+ +

+getX

+
+public float getX()
+
+
Get the x location of the left side of this shape. +

+

+
+
+
+ +
Returns:
The x location of the left side of this shape.
+
+
+
+ +

+setX

+
+public void setX(float x)
+
+
Set the x position of the left side this shape. +

+

+
+
+
+
Parameters:
x - The new x position of the left side this shape.
+
+
+
+ +

+setY

+
+public void setY(float y)
+
+
Set the y position of the top of this shape. +

+

+
+
+
+
Parameters:
y - The new y position of the top of this shape.
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the y position of the top of this shape. +

+

+
+
+
+ +
Returns:
The y position of the top of this shape.
+
+
+
+ +

+getLocation

+
+public Vector2f getLocation()
+
+
Get the top-left location of this shape. +

+

+
+
+
+ +
Returns:
The coordinate of the top-left of this shape
+
+
+
+ +

+setLocation

+
+public void setLocation(Vector2f loc)
+
+
Set the top-left location of this shape +

+

+
+
+
+
Parameters:
loc - The new coordinate of the top-left of this shape
+
+
+
+ +

+getCenterX

+
+public float getCenterX()
+
+
Get the x center of this shape. +

+

+
+
+
+ +
Returns:
The x center of this shape.
+
+
+
+ +

+setCenterX

+
+public void setCenterX(float centerX)
+
+
Set the x center of this shape. +

+

+
+
+
+
Parameters:
centerX - The center point to set.
+
+
+
+ +

+getCenterY

+
+public float getCenterY()
+
+
Get the y center of this shape. +

+

+
+
+
+ +
Returns:
The y center of this shape.
+
+
+
+ +

+setCenterY

+
+public void setCenterY(float centerY)
+
+
Set the y center of this shape. +

+

+
+
+
+
Parameters:
centerY - The center point to set.
+
+
+
+ +

+getMaxX

+
+public float getMaxX()
+
+
Get the right most point of this shape. +

+

+
+
+
+ +
Returns:
The right most point of this shape.
+
+
+
+ +

+getMaxY

+
+public float getMaxY()
+
+
Get the bottom most point of this shape. +

+

+
+
+
+ +
Returns:
The bottom most point of this shape.
+
+
+
+ +

+getMinX

+
+public float getMinX()
+
+
Get the left most point of this shape. +

+

+
+
+
+ +
Returns:
The left most point of this shape.
+
+
+
+ +

+getMinY

+
+public float getMinY()
+
+
Get the top most point of this shape. +

+

+
+
+
+ +
Returns:
The top most point of this shape.
+
+
+
+ +

+getBoundingCircleRadius

+
+public float getBoundingCircleRadius()
+
+
Get the radius of a circle that can completely enclose this shape. +

+

+
+
+
+ +
Returns:
The radius of the circle.
+
+
+
+ +

+getCenter

+
+public float[] getCenter()
+
+
Get the point closet to the center of all the points in this Shape +

+

+
+
+
+ +
Returns:
The x,y coordinates of the center.
+
+
+
+ +

+getPoints

+
+public float[] getPoints()
+
+
Get the points that outline this shape. Use CW winding rule +

+

+
+
+
+ +
Returns:
an array of x,y points
+
+
+
+ +

+getPointCount

+
+public int getPointCount()
+
+
Get the number of points in this polygon +

+

+
+
+
+ +
Returns:
The number of points in this polygon
+
+
+
+ +

+getPoint

+
+public float[] getPoint(int index)
+
+
Get a single point in this polygon +

+

+
+
+
+
Parameters:
index - The index of the point to retrieve +
Returns:
The point's coordinates
+
+
+
+ +

+getNormal

+
+public float[] getNormal(int index)
+
+
Get the combine normal of a given point +

+

+
+
+
+
Parameters:
index - The index of the point whose normal should be retrieved +
Returns:
The combined normal of a given point
+
+
+
+ +

+contains

+
+public boolean contains(Shape other)
+
+
Check if the shape passed is entirely contained within + this shape. +

+

+
+
+
+
Parameters:
other - The other shape to test against this one +
Returns:
True if the other shape supplied is entirely contained + within this one.
+
+
+
+ +

+includes

+
+public boolean includes(float x,
+                        float y)
+
+
Check if the given point is part of the path that + forms this shape +

+

+
+
+
+
Parameters:
x - The x position of the point to check
y - The y position of the point to check +
Returns:
True if the point is includes in the path of the polygon
+
+
+
+ +

+indexOf

+
+public int indexOf(float x,
+                   float y)
+
+
Get the index of a given point +

+

+
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point +
Returns:
The index of the point or -1 if the point is not part of this shape path
+
+
+
+ +

+contains

+
+public boolean contains(float x,
+                        float y)
+
+
Check if this polygon contains the given point +

+

+
+
+
+
Parameters:
x - The x position of the point to check
y - The y position of the point to check +
Returns:
True if the point is contained in the polygon
+
+
+
+ +

+intersects

+
+public boolean intersects(Shape shape)
+
+
Check if this shape intersects with the shape provided. +

+

+
+
+
+
Parameters:
shape - The shape to check if it intersects with this one. +
Returns:
True if the shapes do intersect, false otherwise.
+
+
+
+ +

+hasVertex

+
+public boolean hasVertex(float x,
+                         float y)
+
+
Check if a particular location is a vertex of this polygon +

+

+
+
+
+
Parameters:
x - The x coordinate to check
y - The y coordinate to check +
Returns:
True if the cordinates supplied are a vertex of this polygon
+
+
+
+ +

+findCenter

+
+protected void findCenter()
+
+
Get the center of this polygon. +

+

+
+
+
+
+
+
+
+ +

+calculateRadius

+
+protected void calculateRadius()
+
+
Calculate the radius of a circle that can completely enclose this shape. +

+

+
+
+
+
+
+
+
+ +

+calculateTriangles

+
+protected void calculateTriangles()
+
+
Calculate the triangles that can fill this shape +

+

+
+
+
+
+
+
+
+ +

+increaseTriangulation

+
+public void increaseTriangulation()
+
+
Increase triangulation +

+

+
+
+
+
+
+
+
+ +

+getTriangles

+
+public Triangulator getTriangles()
+
+
The triangles that define the filled version of this shape +

+

+
+
+
+ +
Returns:
The triangles that define the
+
+
+
+ +

+checkPoints

+
+protected final void checkPoints()
+
+
Check the dirty flag and create points as necessary. +

+

+
+
+
+
+
+
+
+ +

+preCache

+
+public void preCache()
+
+
Cause all internal state to be generated and cached +

+

+
+
+
+
+
+
+
+ +

+closed

+
+public boolean closed()
+
+
True if this is a closed shape +

+

+
+
+
+ +
Returns:
True if this is a closed shape
+
+
+
+ +

+prune

+
+public Shape prune()
+
+
Prune any required points in this shape +

+

+
+
+
+ +
Returns:
The new shape with points pruned
+
+
+
+ +

+subtract

+
+public Shape[] subtract(Shape other)
+
+
Subtract the given shape from this one. Note that this method only deals + with edges, it will not create holes in polygons. +

+

+
+
+
+
Parameters:
other - The other shape to subtract from this one +
Returns:
The newly created set of shapes resulting from the operation
+
+
+
+ +

+union

+
+public Shape[] union(Shape other)
+
+
Join this shape with another. +

+

+
+
+
+
Parameters:
other - The other shape to join with this one +
Returns:
The newly created set of shapes resulting from the operation
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of the shape +

+

+
+
+
+ +
Returns:
The width of the shape
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height of the shape +

+

+
+
+
+ +
Returns:
The height of the shape
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/ShapeRenderer.html b/lib/javadoc/org/newdawn/slick/geom/ShapeRenderer.html new file mode 100644 index 000000000..0bfa854e3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/ShapeRenderer.html @@ -0,0 +1,515 @@ + + + + + + +ShapeRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class ShapeRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.ShapeRenderer
+
+
+
+
public final class ShapeRenderer
extends java.lang.Object
+ + +

+

+
Author:
+
Mark Bernard + + Use this class to render shpaes directly to OpenGL. Allows you to bypass the Graphics class.
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ShapeRenderer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voiddraw(Shape shape) + +
+          Draw the outline of the given shape.
+static voiddraw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+static voidfill(Shape shape) + +
+          Draw the the given shape filled in.
+static voidfill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+static voidtexture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidtexture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+static voidtexture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture.
+static voidtexture(Shape shape, + Image image, + TexCoordGenerator gen) + +
+          Draw the the given shape filled in with a texture.
+static voidtextureFit(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidtextureFit(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+static booleanvalidFill(Shape shape) + +
+          Check there are enough points to fill
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ShapeRenderer

+
+public ShapeRenderer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public static final void draw(Shape shape)
+
+
Draw the outline of the given shape. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to draw.
+
+
+
+ +

+draw

+
+public static final void draw(Shape shape,
+                              ShapeFill fill)
+
+
Draw the outline of the given shape. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to draw.
fill - The fill to apply
+
+
+
+ +

+validFill

+
+public static boolean validFill(Shape shape)
+
+
Check there are enough points to fill +

+

+
Parameters:
shape - THe shape we're drawing +
Returns:
True if the fill is valid
+
+
+
+ +

+fill

+
+public static final void fill(Shape shape)
+
+
Draw the the given shape filled in. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to fill.
+
+
+
+ +

+texture

+
+public static final void texture(Shape shape,
+                                 Image image)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
+
+
+
+ +

+textureFit

+
+public static final void textureFit(Shape shape,
+                                    Image image)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. This method is required to + fit the texture once across the shape. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
+
+
+
+ +

+texture

+
+public static final void texture(Shape shape,
+                                 Image image,
+                                 float scaleX,
+                                 float scaleY)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
+
+
+
+ +

+textureFit

+
+public static final void textureFit(Shape shape,
+                                    Image image,
+                                    float scaleX,
+                                    float scaleY)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. This method is required to + fit the texture scaleX times across the shape and scaleY times down the shape. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
+
+
+
+ +

+fill

+
+public static final void fill(Shape shape,
+                              ShapeFill fill)
+
+
Draw the the given shape filled in. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to fill.
fill - The fill to apply
+
+
+
+ +

+texture

+
+public static final void texture(Shape shape,
+                                 Image image,
+                                 float scaleX,
+                                 float scaleY,
+                                 ShapeFill fill)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
scaleX - The scale to apply on the x axis for texturing
scaleY - The scale to apply on the y axis for texturing
fill - The fill to apply
+
+
+
+ +

+texture

+
+public static final void texture(Shape shape,
+                                 Image image,
+                                 TexCoordGenerator gen)
+
+
Draw the the given shape filled in with a texture. Only the vertices are set. + The colour has to be set independently of this method. +

+

+
Parameters:
shape - The shape to texture.
image - The image to tile across the shape
gen - The texture coordinate generator to create coordiantes for the shape
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/TexCoordGenerator.html b/lib/javadoc/org/newdawn/slick/geom/TexCoordGenerator.html new file mode 100644 index 000000000..dd1b142b8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/TexCoordGenerator.html @@ -0,0 +1,224 @@ + + + + + + +TexCoordGenerator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Interface TexCoordGenerator

+
+
All Known Implementing Classes:
LinearGradientFill, RadialGradientFill
+
+
+
+
public interface TexCoordGenerator
+ + +

+A class capable of generating texture coordiantes based on + rendering positions of verticies. This allows custom texturing + of geometric shapes +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ Vector2fgetCoordFor(float x, + float y) + +
+          Get the texture coordinate for a given render position
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCoordFor

+
+Vector2f getCoordFor(float x,
+                     float y)
+
+
Get the texture coordinate for a given render position +

+

+
Parameters:
x - The x coordinate of the vertex being rendered
y - The y coordinate of the vertex being rendered +
Returns:
The texture coordinate to apply
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Transform.html b/lib/javadoc/org/newdawn/slick/geom/Transform.html new file mode 100644 index 000000000..a925af159 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Transform.html @@ -0,0 +1,549 @@ + + + + + + +Transform (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Transform

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Transform
+
+
+
+
public class Transform
extends java.lang.Object
+ + +

+A 2 dimensional transformation that can be applied to Shape implemenations. +

+ +

+

+
Author:
+
Mark
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Transform() + +
+          Create and identity transform
Transform(float[] matrixPosition) + +
+          Create a transform for the given positions
Transform(float point00, + float point01, + float point02, + float point10, + float point11, + float point12) + +
+          Create a transform for the given positions
Transform(Transform other) + +
+          Copy a transform
Transform(Transform t1, + Transform t2) + +
+          Concatanate to transform into one
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Transformconcatenate(Transform tx) + +
+          Update this Transform by concatenating the given Transform to this one.
+static TransformcreateRotateTransform(float angle) + +
+          Create a new rotation Transform
+static TransformcreateRotateTransform(float angle, + float x, + float y) + +
+          Create a new rotation Transform around the specified point
+static TransformcreateScaleTransform(float xScale, + float yScale) + +
+          Create an new scaling Transform
+static TransformcreateTranslateTransform(float xOffset, + float yOffset) + +
+          Create a new translation Transform
+ float[]getMatrixPosition() + +
+          Get an array representing this Transform.
+ java.lang.StringtoString() + +
+          Convert this Transform to a String.
+ voidtransform(float[] source, + int sourceOffset, + float[] destination, + int destOffset, + int numberOfPoints) + +
+          Transform the point pairs in the source array and store them in the destination array.
+ Vector2ftransform(Vector2f pt) + +
+          Transform the vector2f based on the matrix defined in this transform
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Transform

+
+public Transform()
+
+
Create and identity transform +

+

+
+ +

+Transform

+
+public Transform(Transform other)
+
+
Copy a transform +

+

+
Parameters:
other - The other transform to copy
+
+
+ +

+Transform

+
+public Transform(Transform t1,
+                 Transform t2)
+
+
Concatanate to transform into one +

+

+
Parameters:
t1 - The first transform to join
t2 - The second transform to join
+
+
+ +

+Transform

+
+public Transform(float[] matrixPosition)
+
+
Create a transform for the given positions +

+

+
Parameters:
matrixPosition - An array of float[6] to set up a transform +
Throws: +
java.lang.RuntimeException - if the array is not of length 6
+
+
+ +

+Transform

+
+public Transform(float point00,
+                 float point01,
+                 float point02,
+                 float point10,
+                 float point11,
+                 float point12)
+
+
Create a transform for the given positions +

+

+
Parameters:
point00 - float for the first position
point01 - float for the second position
point02 - float for the third position
point10 - float for the fourth position
point11 - float for the fifth position
point12 - float for the sixth position
+
+ + + + + + + + +
+Method Detail
+ +

+transform

+
+public void transform(float[] source,
+                      int sourceOffset,
+                      float[] destination,
+                      int destOffset,
+                      int numberOfPoints)
+
+
Transform the point pairs in the source array and store them in the destination array. + All operations will be done before storing the results in the destination. This way the source + and destination array can be the same without worry of overwriting information before it is transformed. +

+

+
Parameters:
source - Array of floats containing the points to be transformed
sourceOffset - Where in the array to start processing
destination - Array of floats to store the results.
destOffset - Where in the array to start storing
numberOfPoints - Number of points to be transformed +
Throws: +
java.lang.ArrayIndexOutOfBoundsException - if sourceOffset + numberOfPoints * 2 > source.length or the same operation on the destination array
+
+
+
+ +

+concatenate

+
+public Transform concatenate(Transform tx)
+
+
Update this Transform by concatenating the given Transform to this one. +

+

+
Parameters:
tx - The Transfrom to concatenate to this one. +
Returns:
The resulting Transform
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
Convert this Transform to a String. +

+

+
Overrides:
toString in class java.lang.Object
+
+
+ +
Returns:
This Transform in human readable format.
+
+
+
+ +

+getMatrixPosition

+
+public float[] getMatrixPosition()
+
+
Get an array representing this Transform. +

+

+ +
Returns:
an array representing this Transform.
+
+
+
+ +

+createRotateTransform

+
+public static Transform createRotateTransform(float angle)
+
+
Create a new rotation Transform +

+

+
Parameters:
angle - The angle in radians to set the transform. +
Returns:
The resulting Transform
+
+
+
+ +

+createRotateTransform

+
+public static Transform createRotateTransform(float angle,
+                                              float x,
+                                              float y)
+
+
Create a new rotation Transform around the specified point +

+

+
Parameters:
angle - The angle in radians to set the transform.
x - The x coordinate around which to rotate.
y - The y coordinate around which to rotate. +
Returns:
The resulting Transform
+
+
+
+ +

+createTranslateTransform

+
+public static Transform createTranslateTransform(float xOffset,
+                                                 float yOffset)
+
+
Create a new translation Transform +

+

+
Parameters:
xOffset - The amount to move in the x direction
yOffset - The amount to move in the y direction +
Returns:
The resulting Transform
+
+
+
+ +

+createScaleTransform

+
+public static Transform createScaleTransform(float xScale,
+                                             float yScale)
+
+
Create an new scaling Transform +

+

+
Parameters:
xScale - The amount to scale in the x coordinate
yScale - The amount to scale in the x coordinate +
Returns:
The resulting Transform
+
+
+
+ +

+transform

+
+public Vector2f transform(Vector2f pt)
+
+
Transform the vector2f based on the matrix defined in this transform +

+

+
Parameters:
pt - The point to be transformed +
Returns:
The resulting point transformed by this matrix
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Triangulator.html b/lib/javadoc/org/newdawn/slick/geom/Triangulator.html new file mode 100644 index 000000000..3ed42aeed --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Triangulator.html @@ -0,0 +1,329 @@ + + + + + + +Triangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Interface Triangulator

+
+
All Superinterfaces:
java.io.Serializable
+
+
+
All Known Implementing Classes:
BasicTriangulator, MannTriangulator, NeatTriangulator, OverTriangulator
+
+
+
+
public interface Triangulator
extends java.io.Serializable
+ + +

+A collection of triangles +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddPolyPoint(float x, + float y) + +
+          Add a point that forms part of the outer polygon
+ intgetTriangleCount() + +
+          Get a count of the number of triangles produced
+ float[]getTrianglePoint(int tri, + int i) + +
+          Get a point on a specified generated triangle
+ voidstartHole() + +
+          Start a hole in the polygon
+ booleantriangulate() + +
+          Run the triangulation
+  +

+ + + + + + + + +
+Method Detail
+ +

+getTriangleCount

+
+int getTriangleCount()
+
+
Get a count of the number of triangles produced +

+

+
+
+
+ +
Returns:
The number of triangles produced
+
+
+
+ +

+getTrianglePoint

+
+float[] getTrianglePoint(int tri,
+                         int i)
+
+
Get a point on a specified generated triangle +

+

+
+
+
+
Parameters:
tri - The index of the triangle to interegate
i - The index of the point within the triangle to retrieve + (0 - 2) +
Returns:
The x,y coordinate pair for the point
+
+
+
+ +

+addPolyPoint

+
+void addPolyPoint(float x,
+                  float y)
+
+
Add a point that forms part of the outer polygon +

+

+
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordiante of the point
+
+
+
+ +

+startHole

+
+void startHole()
+
+
Start a hole in the polygon +

+

+
+
+
+
+
+
+
+ +

+triangulate

+
+boolean triangulate()
+
+
Run the triangulation +

+

+
+
+
+ +
Returns:
True if successful
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/Vector2f.html b/lib/javadoc/org/newdawn/slick/geom/Vector2f.html new file mode 100644 index 000000000..cc542daac --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/Vector2f.html @@ -0,0 +1,1047 @@ + + + + + + +Vector2f (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.geom +
+Class Vector2f

+
+java.lang.Object
+  extended by org.newdawn.slick.geom.Vector2f
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Vector2f
extends java.lang.Object
implements java.io.Serializable
+ + +

+A two dimensional vector +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+ floatx + +
+          The x component of this vector
+ floaty + +
+          The y component of this vector
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Vector2f() + +
+          Create an empty vector
Vector2f(double theta) + +
+          Create a new vector based on an angle
Vector2f(float[] coords) + +
+          Create a vector based on the contents of a coordinate array
Vector2f(float x, + float y) + +
+          Create a new vector
Vector2f(Vector2f other) + +
+          Create a new vector based on another
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Vector2fadd(double theta) + +
+          Adjust this vector by a given angle
+ Vector2fadd(Vector2f v) + +
+          Add a vector to this vector
+ Vector2fcopy() + +
+          Return a copy of this vector
+ floatdistance(Vector2f other) + +
+          Get the distance from this point to another
+ floatdistanceSquared(Vector2f other) + +
+          Get the distance from this point to another, squared.
+ floatdot(Vector2f other) + +
+          Dot this vector against another
+ booleanequals(java.lang.Object other) + +
+           
+ Vector2fgetNormal() + +
+          The normal of the vector
+ Vector2fgetPerpendicular() + +
+          A vector perpendicular to this vector.
+ doublegetTheta() + +
+          Get the angle this vector is at
+ floatgetX() + +
+          Get the x component
+ floatgetY() + +
+          Get the y component
+ inthashCode() + +
+           
+ floatlength() + +
+          Get the length of this vector
+ floatlengthSquared() + +
+          The length of the vector squared
+ Vector2fnegate() + +
+          Negate this vector
+ Vector2fnegateLocal() + +
+          Negate this vector without creating a new copy
+ Vector2fnormalise() + +
+          Normalise the vector
+ voidprojectOntoUnit(Vector2f b, + Vector2f result) + +
+          Project this vector onto another
+ Vector2fscale(float a) + +
+          Scale this vector by a value
+ Vector2fset(float[] pt) + +
+          Set the values in this vector
+ Vector2fset(float x, + float y) + +
+          Set the values in this vector
+ voidset(Vector2f other) + +
+          Set the value of this vector
+ voidsetTheta(double theta) + +
+          Calculate the components of the vectors based on a angle
+ Vector2fsub(double theta) + +
+          Adjust this vector by a given angle
+ Vector2fsub(Vector2f v) + +
+          Subtract a vector from this vector
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+x

+
+public float x
+
+
The x component of this vector +

+

+
+
+
+ +

+y

+
+public float y
+
+
The y component of this vector +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Vector2f

+
+public Vector2f()
+
+
Create an empty vector +

+

+
+ +

+Vector2f

+
+public Vector2f(float[] coords)
+
+
Create a vector based on the contents of a coordinate array +

+

+
Parameters:
coords - The coordinates array, index 0 = x, index 1 = y
+
+
+ +

+Vector2f

+
+public Vector2f(double theta)
+
+
Create a new vector based on an angle +

+

+
Parameters:
theta - The angle of the vector in degrees
+
+
+ +

+Vector2f

+
+public Vector2f(Vector2f other)
+
+
Create a new vector based on another +

+

+
Parameters:
other - The other vector to copy into this one
+
+
+ +

+Vector2f

+
+public Vector2f(float x,
+                float y)
+
+
Create a new vector +

+

+
Parameters:
x - The x component to assign
y - The y component to assign
+
+ + + + + + + + +
+Method Detail
+ +

+setTheta

+
+public void setTheta(double theta)
+
+
Calculate the components of the vectors based on a angle +

+

+
+
+
+
Parameters:
theta - The angle to calculate the components from (in degrees)
+
+
+
+ +

+add

+
+public Vector2f add(double theta)
+
+
Adjust this vector by a given angle +

+

+
+
+
+
Parameters:
theta - The angle to adjust the angle by (in degrees) +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+sub

+
+public Vector2f sub(double theta)
+
+
Adjust this vector by a given angle +

+

+
+
+
+
Parameters:
theta - The angle to adjust the angle by (in degrees) +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+getTheta

+
+public double getTheta()
+
+
Get the angle this vector is at +

+

+
+
+
+ +
Returns:
The angle this vector is at (in degrees)
+
+
+
+ +

+getX

+
+public float getX()
+
+
Get the x component +

+

+
+
+
+ +
Returns:
The x component
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the y component +

+

+
+
+
+ +
Returns:
The y component
+
+
+
+ +

+set

+
+public void set(Vector2f other)
+
+
Set the value of this vector +

+

+
+
+
+
Parameters:
other - The values to set into the vector
+
+
+
+ +

+dot

+
+public float dot(Vector2f other)
+
+
Dot this vector against another +

+

+
+
+
+
Parameters:
other - The other vector dot agianst +
Returns:
The dot product of the two vectors
+
+
+
+ +

+set

+
+public Vector2f set(float x,
+                    float y)
+
+
Set the values in this vector +

+

+
+
+
+
Parameters:
x - The x component to set
y - The y component to set +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+getPerpendicular

+
+public Vector2f getPerpendicular()
+
+
A vector perpendicular to this vector. +

+

+
+
+
+ +
Returns:
a vector perpendicular to this vector
+
+
+
+ +

+set

+
+public Vector2f set(float[] pt)
+
+
Set the values in this vector +

+

+
+
+
+
Parameters:
pt - The pair of values to set into the vector +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+negate

+
+public Vector2f negate()
+
+
Negate this vector +

+

+
+
+
+ +
Returns:
A copy of this vector negated
+
+
+
+ +

+negateLocal

+
+public Vector2f negateLocal()
+
+
Negate this vector without creating a new copy +

+

+
+
+
+ +
Returns:
This vector - useful for chaning operations
+
+
+
+ +

+add

+
+public Vector2f add(Vector2f v)
+
+
Add a vector to this vector +

+

+
+
+
+
Parameters:
v - The vector to add +
Returns:
This vector - useful for chaning operations
+
+
+
+ +

+sub

+
+public Vector2f sub(Vector2f v)
+
+
Subtract a vector from this vector +

+

+
+
+
+
Parameters:
v - The vector subtract +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+scale

+
+public Vector2f scale(float a)
+
+
Scale this vector by a value +

+

+
+
+
+
Parameters:
a - The value to scale this vector by +
Returns:
This vector - useful for chaining operations
+
+
+
+ +

+normalise

+
+public Vector2f normalise()
+
+
Normalise the vector +

+

+
+
+
+ +
Returns:
This vector - useful for chaning operations
+
+
+
+ +

+getNormal

+
+public Vector2f getNormal()
+
+
The normal of the vector +

+

+
+
+
+ +
Returns:
A unit vector with the same direction as the vector
+
+
+
+ +

+lengthSquared

+
+public float lengthSquared()
+
+
The length of the vector squared +

+

+
+
+
+ +
Returns:
The length of the vector squared
+
+
+
+ +

+length

+
+public float length()
+
+
Get the length of this vector +

+

+
+
+
+ +
Returns:
The length of this vector
+
+
+
+ +

+projectOntoUnit

+
+public void projectOntoUnit(Vector2f b,
+                            Vector2f result)
+
+
Project this vector onto another +

+

+
+
+
+
Parameters:
b - The vector to project onto
result - The projected vector
+
+
+
+ +

+copy

+
+public Vector2f copy()
+
+
Return a copy of this vector +

+

+
+
+
+ +
Returns:
The new instance that copies this vector
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+distance

+
+public float distance(Vector2f other)
+
+
Get the distance from this point to another +

+

+
+
+
+
Parameters:
other - The other point we're measuring to +
Returns:
The distance to the other point
+
+
+
+ +

+distanceSquared

+
+public float distanceSquared(Vector2f other)
+
+
Get the distance from this point to another, squared. This + can sometimes be used in place of distance and avoids the + additional sqrt. +

+

+
+
+
+
Parameters:
other - The other point we're measuring to +
Returns:
The distance to the other point squared
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+
+ +

+equals

+
+public boolean equals(java.lang.Object other)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(java.lang.Object)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/BasicTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/BasicTriangulator.html new file mode 100644 index 000000000..23948f962 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/BasicTriangulator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.BasicTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.BasicTriangulator

+
+No usage of org.newdawn.slick.geom.BasicTriangulator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Circle.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Circle.html new file mode 100644 index 000000000..a308c8d92 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Circle.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Circle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Circle

+
+No usage of org.newdawn.slick.geom.Circle +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Curve.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Curve.html new file mode 100644 index 000000000..b5f1413c7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Curve.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Curve (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Curve

+
+No usage of org.newdawn.slick.geom.Curve +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Ellipse.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Ellipse.html new file mode 100644 index 000000000..84da8935a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Ellipse.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Ellipse (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Ellipse

+
+ + + + + + + + + +
+Packages that use Ellipse
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of Ellipse in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Subclasses of Ellipse in org.newdawn.slick.geom
+ classCircle + +
+          A simple Circle geometry
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.HitResult.html b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.HitResult.html new file mode 100644 index 000000000..7a25ed8f6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.HitResult.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.GeomUtil.HitResult (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.GeomUtil.HitResult

+
+ + + + + + + + + +
+Packages that use GeomUtil.HitResult
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of GeomUtil.HitResult in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom that return GeomUtil.HitResult
+ GeomUtil.HitResultGeomUtil.intersect(Shape shape, + Line line) + +
+          Intersect a line with a shape
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.html b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.html new file mode 100644 index 000000000..edd1558a6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtil.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.GeomUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.GeomUtil

+
+No usage of org.newdawn.slick.geom.GeomUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtilListener.html b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtilListener.html new file mode 100644 index 000000000..75de64cef --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/GeomUtilListener.html @@ -0,0 +1,233 @@ + + + + + + +Uses of Interface org.newdawn.slick.geom.GeomUtilListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.geom.GeomUtilListener

+
+ + + + + + + + + + + + + +
+Packages that use GeomUtilListener
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of GeomUtilListener in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.geom declared as GeomUtilListener
+ GeomUtilListenerGeomUtil.listener + +
+          The listener to notify of operations
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type GeomUtilListener
+ voidGeomUtil.setListener(GeomUtilListener listener) + +
+          Set the listener to be notified of geometry based operations
+  +

+ + + + + +
+Uses of GeomUtilListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement GeomUtilListener
+ classGeomUtilTest + +
+          A test to try shape cutting
+ classGeomUtilTileTest + +
+          A test to try shape building from multiple tiles
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Line.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Line.html new file mode 100644 index 000000000..e1cebca5d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Line.html @@ -0,0 +1,253 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Line (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Line

+
+ + + + + + + + + +
+Packages that use Line
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of Line in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.geom declared as Line
+ LineGeomUtil.HitResult.line + +
+          The line on the target shape that intersected
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom that return Line
+ LineGeomUtil.getLine(Shape shape, + float sx, + float sy, + int e) + +
+          Get a line between two points in a shape
+ LineGeomUtil.getLine(Shape shape, + int s, + int e) + +
+          Get a line between two points in a shape
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Line
+ Vector2fLine.intersect(Line other) + +
+          Intersect this line with another
+ Vector2fLine.intersect(Line other, + boolean limit) + +
+          Intersect this line with another
+ booleanLine.intersect(Line other, + boolean limit, + Vector2f result) + +
+          Intersect this line with another
+ GeomUtil.HitResultGeomUtil.intersect(Shape shape, + Line line) + +
+          Intersect a line with a shape
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.PointBag.html b/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.PointBag.html new file mode 100644 index 000000000..f52c8693d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.PointBag.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.MannTriangulator.PointBag (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.MannTriangulator.PointBag

+
+ + + + + + + + + +
+Packages that use MannTriangulator.PointBag
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of MannTriangulator.PointBag in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.geom declared as MannTriangulator.PointBag
+protected  MannTriangulator.PointBagMannTriangulator.contour + +
+          The outer countour of the shape
+protected  MannTriangulator.PointBagMannTriangulator.holes + +
+          The holes defined in the polygon
+protected  MannTriangulator.PointBagMannTriangulator.PointBag.next + +
+          The next bag in the list of bags
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.html new file mode 100644 index 000000000..4ce81744c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/MannTriangulator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.MannTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.MannTriangulator

+
+No usage of org.newdawn.slick.geom.MannTriangulator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/MorphShape.html b/lib/javadoc/org/newdawn/slick/geom/class-use/MorphShape.html new file mode 100644 index 000000000..e5dfa95d7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/MorphShape.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.MorphShape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.MorphShape

+
+No usage of org.newdawn.slick.geom.MorphShape +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/NeatTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/NeatTriangulator.html new file mode 100644 index 000000000..c4d2585a2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/NeatTriangulator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.NeatTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.NeatTriangulator

+
+No usage of org.newdawn.slick.geom.NeatTriangulator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/OverTriangulator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/OverTriangulator.html new file mode 100644 index 000000000..05a65fa70 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/OverTriangulator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.OverTriangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.OverTriangulator

+
+No usage of org.newdawn.slick.geom.OverTriangulator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Path.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Path.html new file mode 100644 index 000000000..ea9e715db --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Path.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Path (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Path

+
+No usage of org.newdawn.slick.geom.Path +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Point.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Point.html new file mode 100644 index 000000000..b8828d737 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Point.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Point (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Point

+
+No usage of org.newdawn.slick.geom.Point +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Polygon.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Polygon.html new file mode 100644 index 000000000..5fcae8933 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Polygon.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Polygon (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Polygon

+
+ + + + + + + + + +
+Packages that use Polygon
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of Polygon in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom that return Polygon
+ PolygonPolygon.copy() + +
+          Provide a copy of this polygon
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Rectangle.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Rectangle.html new file mode 100644 index 000000000..f77857b20 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Rectangle.html @@ -0,0 +1,257 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Rectangle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Rectangle

+
+ + + + + + + + + + + + + +
+Packages that use Rectangle
org.newdawn.slick  
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of Rectangle in org.newdawn.slick
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Rectangle
+ RectangleGraphics.getClip() + +
+          Return the currently applied clipping rectangle
+ RectangleGraphics.getWorldClip() + +
+          Get the last set world clip or null of the world clip isn't set
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Rectangle
+ voidGraphics.setClip(Rectangle rect) + +
+          Set the clipping to apply to the drawing.
+ voidGraphics.setWorldClip(Rectangle clip) + +
+          Set the world clip to be applied
+  +

+ + + + + +
+Uses of Rectangle in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Subclasses of Rectangle in org.newdawn.slick.geom
+ classRoundedRectangle + +
+          Class to create rounded rectangles with.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Rectangle
+ voidRectangle.setBounds(Rectangle other) + +
+          Set the bounds of this rectangle based on the given rectangle
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/RoundedRectangle.html b/lib/javadoc/org/newdawn/slick/geom/class-use/RoundedRectangle.html new file mode 100644 index 000000000..64667b468 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/RoundedRectangle.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.RoundedRectangle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.RoundedRectangle

+
+No usage of org.newdawn.slick.geom.RoundedRectangle +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Shape.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Shape.html new file mode 100644 index 000000000..0de797e47 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Shape.html @@ -0,0 +1,941 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Shape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Shape

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Shape
org.newdawn.slick  
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Shape
+ ColorShapeFill.colorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ voidGraphics.draw(Shape shape) + +
+          Draw the outline of the given shape.
+ voidGraphics.draw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+ voidGraphics.fill(Shape shape) + +
+          Draw the the given shape filled in.
+ voidGraphics.fill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+ Vector2fShapeFill.getOffsetAt(Shape shape, + float x, + float y) + +
+          Get the offset for a vertex at a given location based on it's shape
+ voidGraphics.texture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + boolean fit) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+ voidGraphics.texture(Shape shape, + Image image, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick.fills
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.fills with parameters of type Shape
+ ColorGradientFill.colorAt(Shape shape, + float x, + float y) + +
+          Get the colour that should be applied at the specified location
+ Vector2fGradientFill.getOffsetAt(Shape shape, + float x, + float y) + +
+           
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of Shape in org.newdawn.slick.geom
+ classCircle + +
+          A simple Circle geometry
+ classCurve + +
+          A beizer curve implementation.
+ classEllipse + +
+          An ellipse meeting the Shape contract.
+ classLine + +
+          Implemenation of a bunch of maths functions to do with lines.
+ classMorphShape + +
+          A shape that morphs between a set of other shapes
+ classPath + +
+          A shape built from lines and curves.
+ classPoint + +
+          A single point shape
+ classPolygon + +
+          A polygon implementation meeting the Shape contract.
+ classRectangle + +
+          An axis oriented used for shape bounds
+ classRoundedRectangle + +
+          Class to create rounded rectangles with.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom that return Shape
+ ShapeShape.prune() + +
+          Prune any required points in this shape
+ Shape[]Shape.subtract(Shape other) + +
+          Subtract the given shape from this one.
+ Shape[]GeomUtil.subtract(Shape target, + Shape missing) + +
+          Subtract one shape from another - note this is experimental and doesn't + currently handle islands
+abstract  ShapeShape.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapeRoundedRectangle.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapeRectangle.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapePolygon.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapePoint.transform(Transform transform) + +
+           
+ ShapePath.transform(Transform transform) + +
+           
+ ShapeMorphShape.transform(Transform transform) + +
+           
+ ShapeLine.transform(Transform transform) + +
+           
+ ShapeEllipse.transform(Transform transform) + +
+           
+ ShapeCurve.transform(Transform transform) + +
+           
+ Shape[]Shape.union(Shape other) + +
+          Join this shape with another.
+ Shape[]GeomUtil.union(Shape target, + Shape other) + +
+          Join to shapes together.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Shape
+ voidMorphShape.addShape(Shape shape) + +
+          Add a subsequent shape that we should morph too in order
+ booleanShape.contains(Shape other) + +
+          Check if the shape passed is entirely contained within + this shape.
+static voidShapeRenderer.draw(Shape shape) + +
+          Draw the outline of the given shape.
+static voidShapeRenderer.draw(Shape shape, + ShapeFill fill) + +
+          Draw the outline of the given shape.
+static voidShapeRenderer.fill(Shape shape) + +
+          Draw the the given shape filled in.
+static voidShapeRenderer.fill(Shape shape, + ShapeFill fill) + +
+          Draw the the given shape filled in.
+ LineGeomUtil.getLine(Shape shape, + float sx, + float sy, + int e) + +
+          Get a line between two points in a shape
+ LineGeomUtil.getLine(Shape shape, + int s, + int e) + +
+          Get a line between two points in a shape
+ GeomUtil.HitResultGeomUtil.intersect(Shape shape, + Line line) + +
+          Intersect a line with a shape
+ booleanShape.intersects(Shape shape) + +
+          Check if this shape intersects with the shape provided.
+ booleanRectangle.intersects(Shape shape) + +
+          Check if this box touches another
+ booleanLine.intersects(Shape shape) + +
+           
+ booleanCircle.intersects(Shape shape) + +
+          Check if this circle touches another
+static intGeomUtil.rationalPoint(Shape shape, + int p) + +
+          Rationalise a point in terms of a given shape
+ voidMorphShape.setExternalFrame(Shape current) + +
+          Set the current frame
+ Shape[]Shape.subtract(Shape other) + +
+          Subtract the given shape from this one.
+ Shape[]GeomUtil.subtract(Shape target, + Shape missing) + +
+          Subtract one shape from another - note this is experimental and doesn't + currently handle islands
+static voidShapeRenderer.texture(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + float scaleX, + float scaleY, + ShapeFill fill) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.texture(Shape shape, + Image image, + TexCoordGenerator gen) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.textureFit(Shape shape, + Image image) + +
+          Draw the the given shape filled in with a texture.
+static voidShapeRenderer.textureFit(Shape shape, + Image image, + float scaleX, + float scaleY) + +
+          Draw the the given shape filled in with a texture.
+ Shape[]Shape.union(Shape other) + +
+          Join this shape with another.
+ Shape[]GeomUtil.union(Shape target, + Shape other) + +
+          Join to shapes together.
+static booleanShapeRenderer.validFill(Shape shape) + +
+          Check there are enough points to fill
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.geom with parameters of type Shape
MorphShape(Shape base) + +
+          Create a new mighty morphin shape
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick.gui
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.gui with parameters of type Shape
MouseOverArea(GUIContext container, + Image image, + Shape shape) + +
+          Create a new mouse over area
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg that return Shape
+ ShapeFigure.getShape() + +
+          Get the shape of this figure
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.svg with parameters of type Shape
Figure(int type, + Shape shape, + NonGeometricData data, + Transform transform) + +
+          Create a new figure
LinearGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for gradients
RadialGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for a radial gradient
+  +

+ + + + + +
+Uses of Shape in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type Shape
+ booleanGeomUtilTileTest.collides(Shape shape1, + Shape shape2) + +
+          Check if two shapes collide
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/ShapeRenderer.html b/lib/javadoc/org/newdawn/slick/geom/class-use/ShapeRenderer.html new file mode 100644 index 000000000..886802e58 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/ShapeRenderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.ShapeRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.ShapeRenderer

+
+No usage of org.newdawn.slick.geom.ShapeRenderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/TexCoordGenerator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/TexCoordGenerator.html new file mode 100644 index 000000000..78cc5796c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/TexCoordGenerator.html @@ -0,0 +1,219 @@ + + + + + + +Uses of Interface org.newdawn.slick.geom.TexCoordGenerator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.geom.TexCoordGenerator

+
+ + + + + + + + + + + + + +
+Packages that use TexCoordGenerator
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.svgDemo/Test SVG area. 
+  +

+ + + + + +
+Uses of TexCoordGenerator in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type TexCoordGenerator
+static voidShapeRenderer.texture(Shape shape, + Image image, + TexCoordGenerator gen) + +
+          Draw the the given shape filled in with a texture.
+  +

+ + + + + +
+Uses of TexCoordGenerator in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.svg that implement TexCoordGenerator
+ classLinearGradientFill + +
+          A filler for shapes that applys SVG linear gradients
+ classRadialGradientFill + +
+          A filler to apply a SVG radial gradient across a shape
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Transform.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Transform.html new file mode 100644 index 000000000..4dba4ace8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Transform.html @@ -0,0 +1,560 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Transform (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Transform

+
+ + + + + + + + + + + + + + + + + +
+Packages that use Transform
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of Transform in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom that return Transform
+ TransformTransform.concatenate(Transform tx) + +
+          Update this Transform by concatenating the given Transform to this one.
+static TransformTransform.createRotateTransform(float angle) + +
+          Create a new rotation Transform
+static TransformTransform.createRotateTransform(float angle, + float x, + float y) + +
+          Create a new rotation Transform around the specified point
+static TransformTransform.createScaleTransform(float xScale, + float yScale) + +
+          Create an new scaling Transform
+static TransformTransform.createTranslateTransform(float xOffset, + float yOffset) + +
+          Create a new translation Transform
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Transform
+ TransformTransform.concatenate(Transform tx) + +
+          Update this Transform by concatenating the given Transform to this one.
+abstract  ShapeShape.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapeRoundedRectangle.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapeRectangle.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapePolygon.transform(Transform transform) + +
+          Apply a transformation and return a new shape.
+ ShapePoint.transform(Transform transform) + +
+           
+ ShapePath.transform(Transform transform) + +
+           
+ ShapeMorphShape.transform(Transform transform) + +
+           
+ ShapeLine.transform(Transform transform) + +
+           
+ ShapeEllipse.transform(Transform transform) + +
+           
+ ShapeCurve.transform(Transform transform) + +
+           
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.geom with parameters of type Transform
Transform(Transform other) + +
+          Copy a transform
Transform(Transform t1, + Transform t2) + +
+          Concatanate to transform into one
+  +

+ + + + + +
+Uses of Transform in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that return Transform
+ TransformGradient.getTransform() + +
+          Get the transform to apply during this gradient application
+ TransformFigure.getTransform() + +
+          Get the transform that was applied to the shape given in the SVG + to get it to it's currently state
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Transform
+ voidLoader.loadChildren(org.w3c.dom.Element element, + Transform t) + +
+          Load the children of a given element
+ voidInkscapeLoader.loadChildren(org.w3c.dom.Element element, + Transform t) + +
+           
+ voidGradient.setTransform(Transform trans) + +
+          Set the transform given for this definition
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.svg with parameters of type Transform
Figure(int type, + Shape shape, + NonGeometricData data, + Transform transform) + +
+          Create a new figure
LinearGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for gradients
RadialGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for a radial gradient
+  +

+ + + + + +
+Uses of Transform in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg.inkscape with parameters of type Transform
+ voidUseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+ voidRectProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPolygonProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPathProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidLineProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidGroupProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          O
+ voidEllipseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidElementProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ voidDefsProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Triangulator.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Triangulator.html new file mode 100644 index 000000000..328bc8ed8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Triangulator.html @@ -0,0 +1,251 @@ + + + + + + +Uses of Interface org.newdawn.slick.geom.Triangulator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.geom.Triangulator

+
+ + + + + + + + + +
+Packages that use Triangulator
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
+  +

+ + + + + +
+Uses of Triangulator in org.newdawn.slick.geom
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.geom that implement Triangulator
+ classBasicTriangulator + +
+          Triangulates a polygon into triangles - duh.
+ classMannTriangulator + +
+          A 2D Triangulator.
+ classNeatTriangulator + +
+          A second triangulator that seems slightly more robust
+ classOverTriangulator + +
+          A triangulator implementation that splits the triangules of another, subdividing + to give a higher tesselation - and hence smoother transitions.
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.geom declared as Triangulator
+protected  TriangulatorShape.tris + +
+          The triangles that define the shape
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.geom that return Triangulator
+ TriangulatorShape.getTriangles() + +
+          The triangles that define the filled version of this shape
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.geom with parameters of type Triangulator
OverTriangulator(Triangulator tris) + +
+          Create a new triangulator
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/class-use/Vector2f.html b/lib/javadoc/org/newdawn/slick/geom/class-use/Vector2f.html new file mode 100644 index 000000000..6af308047 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/class-use/Vector2f.html @@ -0,0 +1,709 @@ + + + + + + +Uses of Class org.newdawn.slick.geom.Vector2f (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.geom.Vector2f

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use Vector2f
org.newdawn.slick  
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.svgDemo/Test SVG area. 
+  +

+ + + + + +
+Uses of Vector2f in org.newdawn.slick
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick that return Vector2f
+ Vector2fShapeFill.getOffsetAt(Shape shape, + float x, + float y) + +
+          Get the offset for a vertex at a given location based on it's shape
+  +

+ + + + + +
+Uses of Vector2f in org.newdawn.slick.fills
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.fills that return Vector2f
+ Vector2fGradientFill.getEnd() + +
+          Get the position of the end control point
+ Vector2fGradientFill.getOffsetAt(Shape shape, + float x, + float y) + +
+           
+ Vector2fGradientFill.getStart() + +
+          Get the position of the start control point
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.fills with parameters of type Vector2f
+ voidGradientFill.setEnd(Vector2f end) + +
+          Set the end control point's position
+ voidGradientFill.setStart(Vector2f start) + +
+          Set the start control point's position
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.fills with parameters of type Vector2f
GradientFill(Vector2f start, + Color startCol, + Vector2f end, + Color endCol, + boolean local) + +
+          Create a gradient fill
+  +

+ + + + + +
+Uses of Vector2f in org.newdawn.slick.geom
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.geom declared as Vector2f
+ Vector2fGeomUtil.HitResult.pt + +
+          The position of the intersection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom that return Vector2f
+ Vector2fVector2f.add(double theta) + +
+          Adjust this vector by a given angle
+ Vector2fVector2f.add(Vector2f v) + +
+          Add a vector to this vector
+ Vector2fVector2f.copy() + +
+          Return a copy of this vector
+ Vector2fTexCoordGenerator.getCoordFor(float x, + float y) + +
+          Get the texture coordinate for a given render position
+ Vector2fLine.getEnd() + +
+          Get the end point of the line
+ Vector2fShape.getLocation() + +
+          Get the top-left location of this shape.
+ Vector2fVector2f.getNormal() + +
+          The normal of the vector
+ Vector2fVector2f.getPerpendicular() + +
+          A vector perpendicular to this vector.
+ Vector2fLine.getStart() + +
+          Get the start point of the line
+ Vector2fLine.intersect(Line other) + +
+          Intersect this line with another
+ Vector2fLine.intersect(Line other, + boolean limit) + +
+          Intersect this line with another
+ Vector2fVector2f.negate() + +
+          Negate this vector
+ Vector2fVector2f.negateLocal() + +
+          Negate this vector without creating a new copy
+ Vector2fVector2f.normalise() + +
+          Normalise the vector
+ Vector2fCurve.pointAt(float t) + +
+          Get the point at a particular location on the curve
+ Vector2fVector2f.scale(float a) + +
+          Scale this vector by a value
+ Vector2fVector2f.set(float[] pt) + +
+          Set the values in this vector
+ Vector2fVector2f.set(float x, + float y) + +
+          Set the values in this vector
+ Vector2fVector2f.sub(double theta) + +
+          Adjust this vector by a given angle
+ Vector2fVector2f.sub(Vector2f v) + +
+          Subtract a vector from this vector
+ Vector2fTransform.transform(Vector2f pt) + +
+          Transform the vector2f based on the matrix defined in this transform
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.geom with parameters of type Vector2f
+ Vector2fVector2f.add(Vector2f v) + +
+          Add a vector to this vector
+ booleanMannTriangulator.PointBag.contains(Vector2f point) + +
+          Check if the point provided was contained
+ floatVector2f.distance(Vector2f other) + +
+          Get the distance from this point to another
+ floatLine.distance(Vector2f point) + +
+          Get the shortest distance from a point to this line
+ floatVector2f.distanceSquared(Vector2f other) + +
+          Get the distance from this point to another, squared.
+ floatLine.distanceSquared(Vector2f point) + +
+          Get the shortest distance squared from a point to this line
+ booleanMannTriangulator.PointBag.doesIntersectSegment(Vector2f v1, + Vector2f v2) + +
+          Check if the points in this bag form a path intersecting + with the specified path
+ floatVector2f.dot(Vector2f other) + +
+          Dot this vector against another
+ voidLine.getClosestPoint(Vector2f point, + Vector2f result) + +
+          Get the closest point on the line to a given point
+ booleanLine.intersect(Line other, + boolean limit, + Vector2f result) + +
+          Intersect this line with another
+ booleanLine.on(Vector2f point) + +
+          Check if the given point is on the line
+ voidVector2f.projectOntoUnit(Vector2f b, + Vector2f result) + +
+          Project this vector onto another
+ voidVector2f.set(Vector2f other) + +
+          Set the value of this vector
+ voidLine.set(Vector2f start, + Vector2f end) + +
+          Configure the line
+ voidShape.setLocation(Vector2f loc) + +
+          Set the top-left location of this shape
+ Vector2fVector2f.sub(Vector2f v) + +
+          Subtract a vector from this vector
+ Vector2fTransform.transform(Vector2f pt) + +
+          Transform the vector2f based on the matrix defined in this transform
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.geom with parameters of type Vector2f
Curve(Vector2f p1, + Vector2f c1, + Vector2f c2, + Vector2f p2) + +
+          Create a new curve with the default segments (20)
Curve(Vector2f p1, + Vector2f c1, + Vector2f c2, + Vector2f p2, + int segments) + +
+          Create a new curve
Line(Vector2f start, + Vector2f end) + +
+          Create a new line based on two points
Vector2f(Vector2f other) + +
+          Create a new vector based on another
+  +

+ + + + + +
+Uses of Vector2f in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that return Vector2f
+ Vector2fRadialGradientFill.getCoordFor(float x, + float y) + +
+           
+ Vector2fLinearGradientFill.getCoordFor(float x, + float y) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/package-frame.html b/lib/javadoc/org/newdawn/slick/geom/package-frame.html new file mode 100644 index 000000000..1b0f6fcc6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/package-frame.html @@ -0,0 +1,83 @@ + + + + + + +org.newdawn.slick.geom (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.geom + + + + +
+Interfaces  + +
+GeomUtilListener +
+TexCoordGenerator +
+Triangulator
+ + + + + + +
+Classes  + +
+BasicTriangulator +
+Circle +
+Curve +
+Ellipse +
+GeomUtil +
+Line +
+MannTriangulator +
+MorphShape +
+NeatTriangulator +
+OverTriangulator +
+Path +
+Point +
+Polygon +
+Rectangle +
+RoundedRectangle +
+Shape +
+ShapeRenderer +
+Transform +
+Vector2f
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/geom/package-summary.html b/lib/javadoc/org/newdawn/slick/geom/package-summary.html new file mode 100644 index 000000000..4dbb18cc8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/package-summary.html @@ -0,0 +1,268 @@ + + + + + + +org.newdawn.slick.geom (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.geom +

+Simple geometric wrappers that can be used for rendering and collision. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
GeomUtilListenerDebug listener for notifications assocaited with geometry utilities
TexCoordGeneratorA class capable of generating texture coordiantes based on + rendering positions of verticies.
TriangulatorA collection of triangles
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BasicTriangulatorTriangulates a polygon into triangles - duh.
CircleA simple Circle geometry
CurveA beizer curve implementation.
EllipseAn ellipse meeting the Shape contract.
GeomUtilA set of utilities to play with geometry
LineImplemenation of a bunch of maths functions to do with lines.
MannTriangulatorA 2D Triangulator.
MorphShapeA shape that morphs between a set of other shapes
NeatTriangulatorA second triangulator that seems slightly more robust
OverTriangulatorA triangulator implementation that splits the triangules of another, subdividing + to give a higher tesselation - and hence smoother transitions.
PathA shape built from lines and curves.
PointA single point shape
PolygonA polygon implementation meeting the Shape contract.
RectangleAn axis oriented used for shape bounds
RoundedRectangleClass to create rounded rectangles with.
ShapeThe description of any 2D shape that can be transformed.
ShapeRenderer 
TransformA 2 dimensional transformation that can be applied to Shape implemenations.
Vector2fA two dimensional vector
+  + +

+

+Package org.newdawn.slick.geom Description +

+ +

+Simple geometric wrappers that can be used for rendering and collision. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/package-tree.html b/lib/javadoc/org/newdawn/slick/geom/package-tree.html new file mode 100644 index 000000000..02a7cbce3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/package-tree.html @@ -0,0 +1,173 @@ + + + + + + +org.newdawn.slick.geom Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.geom +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/geom/package-use.html b/lib/javadoc/org/newdawn/slick/geom/package-use.html new file mode 100644 index 000000000..aa92d58ad --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/geom/package-use.html @@ -0,0 +1,395 @@ + + + + + + +Uses of Package org.newdawn.slick.geom (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.geom

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.geom
org.newdawn.slick  
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick
Rectangle + +
+          An axis oriented used for shape bounds
Shape + +
+          The description of any 2D shape that can be transformed.
Vector2f + +
+          A two dimensional vector
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.fills
Shape + +
+          The description of any 2D shape that can be transformed.
Vector2f + +
+          A two dimensional vector
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.geom
Ellipse + +
+          An ellipse meeting the Shape contract.
GeomUtil.HitResult + +
+          A lightweigtht description of a intersection between a shape and + line.
GeomUtilListener + +
+          Debug listener for notifications assocaited with geometry utilities
Line + +
+          Implemenation of a bunch of maths functions to do with lines.
MannTriangulator.PointBag + +
+          A bag/pool of point objects
Polygon + +
+          A polygon implementation meeting the Shape contract.
Rectangle + +
+          An axis oriented used for shape bounds
Shape + +
+          The description of any 2D shape that can be transformed.
TexCoordGenerator + +
+          A class capable of generating texture coordiantes based on + rendering positions of verticies.
Transform + +
+          A 2 dimensional transformation that can be applied to Shape implemenations.
Triangulator + +
+          A collection of triangles
Vector2f + +
+          A two dimensional vector
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.gui
Shape + +
+          The description of any 2D shape that can be transformed.
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.svg
Shape + +
+          The description of any 2D shape that can be transformed.
TexCoordGenerator + +
+          A class capable of generating texture coordiantes based on + rendering positions of verticies.
Transform + +
+          A 2 dimensional transformation that can be applied to Shape implemenations.
Vector2f + +
+          A two dimensional vector
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.svg.inkscape
Transform + +
+          A 2 dimensional transformation that can be applied to Shape implemenations.
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.geom used by org.newdawn.slick.tests
GeomUtilListener + +
+          Debug listener for notifications assocaited with geometry utilities
Shape + +
+          The description of any 2D shape that can be transformed.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/AbstractComponent.html b/lib/javadoc/org/newdawn/slick/gui/AbstractComponent.html new file mode 100644 index 000000000..eaff7a2a9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/AbstractComponent.html @@ -0,0 +1,636 @@ + + + + + + +AbstractComponent (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Class AbstractComponent

+
+java.lang.Object
+  extended by org.newdawn.slick.util.InputAdapter
+      extended by org.newdawn.slick.gui.AbstractComponent
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+
Direct Known Subclasses:
BasicComponent, MouseOverArea, TextField
+
+
+
+
public abstract class AbstractComponent
extends InputAdapter
+ + +

+The utility class to handle all the input related gubbins for basic GUI + components +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  GUIContextcontainer + +
+          The game container
+protected  Inputinput + +
+          The input we're responding to
+protected  java.util.Setlisteners + +
+          Listeners for the component to notify
+  + + + + + + + + + + +
+Constructor Summary
AbstractComponent(GUIContext container) + +
+          Create a new component
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(ComponentListener listener) + +
+          Add a component listener to be informed when the component sees fit.
+protected  voidconsumeEvent() + +
+          Consume the event currently being processed
+abstract  intgetHeight() + +
+          Get the height of the component
+abstract  intgetWidth() + +
+          Get the width of the component
+abstract  intgetX() + +
+          Returns the position in the X coordinate
+abstract  intgetY() + +
+          Returns the position in the Y coordinate
+ booleanhasFocus() + +
+          Check if this component currently has focus
+ voidmouseReleased(int button, + int x, + int y) + +
+          Gives the focus to this component with a click of the mouse.
+protected  voidnotifyListeners() + +
+          Notify all the listeners.
+ voidremoveListener(ComponentListener listener) + +
+          Remove a component listener.
+abstract  voidrender(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+ voidsetFocus(boolean focus) + +
+          Indicate whether this component should be focused or not
+abstract  voidsetLocation(int x, + int y) + +
+          Moves the component.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.util.InputAdapter
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setAcceptingInput, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+container

+
+protected GUIContext container
+
+
The game container +

+

+
+
+
+ +

+listeners

+
+protected java.util.Set listeners
+
+
Listeners for the component to notify +

+

+
+
+
+ +

+input

+
+protected Input input
+
+
The input we're responding to +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractComponent

+
+public AbstractComponent(GUIContext container)
+
+
Create a new component +

+

+
Parameters:
container - The container displaying this component
+
+ + + + + + + + +
+Method Detail
+ +

+addListener

+
+public void addListener(ComponentListener listener)
+
+
Add a component listener to be informed when the component sees fit. + + It will ignore listeners already added. +

+

+
Parameters:
listener - listener
+
+
+
+ +

+removeListener

+
+public void removeListener(ComponentListener listener)
+
+
Remove a component listener. + + It will ignore if the listener wasn't added. +

+

+
Parameters:
listener - listener
+
+
+
+ +

+notifyListeners

+
+protected void notifyListeners()
+
+
Notify all the listeners. +

+

+
+
+
+
+ +

+render

+
+public abstract void render(GUIContext container,
+                            Graphics g)
+                     throws SlickException
+
+
Render this component to the screen +

+

+
Parameters:
container - The container displaying this component
g - The graphics context used to render to the display +
Throws: +
SlickException - If there has been an error rendering the component
+
+
+
+ +

+setLocation

+
+public abstract void setLocation(int x,
+                                 int y)
+
+
Moves the component. +

+

+
Parameters:
x - X coordinate
y - Y coordinate
+
+
+
+ +

+getX

+
+public abstract int getX()
+
+
Returns the position in the X coordinate +

+

+ +
Returns:
x
+
+
+
+ +

+getY

+
+public abstract int getY()
+
+
Returns the position in the Y coordinate +

+

+ +
Returns:
y
+
+
+
+ +

+getWidth

+
+public abstract int getWidth()
+
+
Get the width of the component +

+

+ +
Returns:
The width of the component
+
+
+
+ +

+getHeight

+
+public abstract int getHeight()
+
+
Get the height of the component +

+

+ +
Returns:
The height of the component
+
+
+
+ +

+setFocus

+
+public void setFocus(boolean focus)
+
+
Indicate whether this component should be focused or not +

+

+
Parameters:
focus - if the component should be focused
+
+
+
+ +

+hasFocus

+
+public boolean hasFocus()
+
+
Check if this component currently has focus +

+

+ +
Returns:
if this field currently has focus
+
+
+
+ +

+consumeEvent

+
+protected void consumeEvent()
+
+
Consume the event currently being processed +

+

+
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Gives the focus to this component with a click of the mouse. +

+

+
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class InputAdapter
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
mouseReleased(int, int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/BasicComponent.html b/lib/javadoc/org/newdawn/slick/gui/BasicComponent.html new file mode 100644 index 000000000..61cb5fb4c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/BasicComponent.html @@ -0,0 +1,561 @@ + + + + + + +BasicComponent (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Class BasicComponent

+
+java.lang.Object
+  extended by org.newdawn.slick.util.InputAdapter
+      extended by org.newdawn.slick.gui.AbstractComponent
+          extended by org.newdawn.slick.gui.BasicComponent
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+Deprecated. +

+

+
public abstract class BasicComponent
extends AbstractComponent
+ + +

+Renamed to provide backwards compatibility +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  intheight + +
+          Deprecated. The height of the component
+protected  intwidth + +
+          Deprecated. The width of the component
+protected  intx + +
+          Deprecated. The x position of the component
+protected  inty + +
+          Deprecated. The y position of the component
+ + + + + + + +
Fields inherited from class org.newdawn.slick.gui.AbstractComponent
container, input, listeners
+  + + + + + + + + + + +
+Constructor Summary
BasicComponent(GUIContext container) + +
+          Deprecated. Create a new component
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetHeight() + +
+          Deprecated. Get the height of the component
+ intgetWidth() + +
+          Deprecated. Get the width of the component
+ intgetX() + +
+          Deprecated. Returns the position in the X coordinate
+ intgetY() + +
+          Deprecated. Returns the position in the Y coordinate
+ voidrender(GUIContext container, + Graphics g) + +
+          Deprecated. Render this component to the screen
+abstract  voidrenderImpl(GUIContext container, + Graphics g) + +
+          Deprecated. Allow the sub-component to render
+ voidsetLocation(int x, + int y) + +
+          Deprecated. Moves the component.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.gui.AbstractComponent
addListener, consumeEvent, hasFocus, mouseReleased, notifyListeners, removeListener, setFocus
+ + + + + + + +
Methods inherited from class org.newdawn.slick.util.InputAdapter
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setAcceptingInput, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+x

+
+protected int x
+
+
Deprecated. 
The x position of the component +

+

+
+
+
+ +

+y

+
+protected int y
+
+
Deprecated. 
The y position of the component +

+

+
+
+
+ +

+width

+
+protected int width
+
+
Deprecated. 
The width of the component +

+

+
+
+
+ +

+height

+
+protected int height
+
+
Deprecated. 
The height of the component +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+BasicComponent

+
+public BasicComponent(GUIContext container)
+
+
Deprecated. 
Create a new component +

+

+
Parameters:
container - The container displaying this component
+
+ + + + + + + + +
+Method Detail
+ +

+getHeight

+
+public int getHeight()
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Get the height of the component +

+

+
Specified by:
getHeight in class AbstractComponent
+
+
+ +
Returns:
The height of the component
See Also:
AbstractComponent.getHeight()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Get the width of the component +

+

+
Specified by:
getWidth in class AbstractComponent
+
+
+ +
Returns:
The width of the component
See Also:
AbstractComponent.getWidth()
+
+
+
+ +

+getX

+
+public int getX()
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Returns the position in the X coordinate +

+

+
Specified by:
getX in class AbstractComponent
+
+
+ +
Returns:
x
See Also:
AbstractComponent.getX()
+
+
+
+ +

+getY

+
+public int getY()
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Returns the position in the Y coordinate +

+

+
Specified by:
getY in class AbstractComponent
+
+
+ +
Returns:
y
See Also:
AbstractComponent.getY()
+
+
+
+ +

+renderImpl

+
+public abstract void renderImpl(GUIContext container,
+                                Graphics g)
+
+
Deprecated. 
Allow the sub-component to render +

+

+
Parameters:
container - The container holding the GUI
g - The graphics context into which we should render
+
+
+
+ +

+render

+
+public void render(GUIContext container,
+                   Graphics g)
+            throws SlickException
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Render this component to the screen +

+

+
Specified by:
render in class AbstractComponent
+
+
+
Parameters:
container - The container displaying this component
g - The graphics context used to render to the display +
Throws: +
SlickException - If there has been an error rendering the component
See Also:
AbstractComponent.render(org.newdawn.slick.gui.GUIContext, org.newdawn.slick.Graphics)
+
+
+
+ +

+setLocation

+
+public void setLocation(int x,
+                        int y)
+
+
Deprecated. 
Description copied from class: AbstractComponent
+
Moves the component. +

+

+
Specified by:
setLocation in class AbstractComponent
+
+
+
Parameters:
x - X coordinate
y - Y coordinate
See Also:
AbstractComponent.setLocation(int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/ComponentListener.html b/lib/javadoc/org/newdawn/slick/gui/ComponentListener.html new file mode 100644 index 000000000..3d392a420 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/ComponentListener.html @@ -0,0 +1,221 @@ + + + + + + +ComponentListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Interface ComponentListener

+
+
All Known Implementing Classes:
GUITest, SavedStateTest
+
+
+
+
public interface ComponentListener
+ + +

+A descritpion of a class responding to events occuring on a GUI component +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidcomponentActivated(AbstractComponent source) + +
+          Notification that a component has been activated (button clicked, + text field entered, etc)
+  +

+ + + + + + + + +
+Method Detail
+ +

+componentActivated

+
+void componentActivated(AbstractComponent source)
+
+
Notification that a component has been activated (button clicked, + text field entered, etc) +

+

+
Parameters:
source - The source of the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/GUIContext.html b/lib/javadoc/org/newdawn/slick/gui/GUIContext.html new file mode 100644 index 000000000..43595f87d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/GUIContext.html @@ -0,0 +1,464 @@ + + + + + + +GUIContext (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Interface GUIContext

+
+
All Known Implementing Classes:
AppGameContainer, AppletGameContainer.Container, GameContainer
+
+
+
+
public interface GUIContext
+ + +

+The context in which GUI components are created and rendered +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ FontgetDefaultFont() + +
+          Get the default system font
+ intgetHeight() + +
+          Get the height of the game canvas
+ InputgetInput() + +
+          Get the input system
+ intgetScreenHeight() + +
+          Get the height of the standard screen resolution
+ intgetScreenWidth() + +
+          Get the width of the standard screen resolution
+ longgetTime() + +
+          Get the accurate system time
+ intgetWidth() + +
+          Get the width of the game canvas
+ voidsetDefaultMouseCursor() + +
+          Set the default mouse cursor - i.e.
+ voidsetMouseCursor(org.lwjgl.input.Cursor cursor, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidsetMouseCursor(java.lang.String ref, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInput

+
+Input getInput()
+
+
Get the input system +

+

+ +
Returns:
The input system available to this game container
+
+
+
+ +

+getTime

+
+long getTime()
+
+
Get the accurate system time +

+

+ +
Returns:
The system time in milliseconds
+
+
+
+ +

+getScreenWidth

+
+int getScreenWidth()
+
+
Get the width of the standard screen resolution +

+

+ +
Returns:
The screen width
+
+
+
+ +

+getScreenHeight

+
+int getScreenHeight()
+
+
Get the height of the standard screen resolution +

+

+ +
Returns:
The screen height
+
+
+
+ +

+getWidth

+
+int getWidth()
+
+
Get the width of the game canvas +

+

+ +
Returns:
The width of the game canvas
+
+
+
+ +

+getHeight

+
+int getHeight()
+
+
Get the height of the game canvas +

+

+ +
Returns:
The height of the game canvas
+
+
+
+ +

+getDefaultFont

+
+Font getDefaultFont()
+
+
Get the default system font +

+

+ +
Returns:
The default system font
+
+
+
+ +

+setMouseCursor

+
+void setMouseCursor(java.lang.String ref,
+                    int hotSpotX,
+                    int hotSpotY)
+                    throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Parameters:
ref - The location of the image to be loaded for the cursor
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setMouseCursor

+
+void setMouseCursor(ImageData data,
+                    int hotSpotX,
+                    int hotSpotY)
+                    throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Parameters:
data - The image data from which the cursor can be construted
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setMouseCursor

+
+void setMouseCursor(org.lwjgl.input.Cursor cursor,
+                    int hotSpotX,
+                    int hotSpotY)
+                    throws SlickException
+
+
Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS. +

+

+
Parameters:
cursor - The cursor to use
hotSpotX - The x coordinate of the hotspot within the cursor image
hotSpotY - The y coordinate of the hotspot within the cursor image +
Throws: +
SlickException - Indicates a failure to load the cursor image or create the hardware cursor
+
+
+
+ +

+setDefaultMouseCursor

+
+void setDefaultMouseCursor()
+
+
Set the default mouse cursor - i.e. the original cursor before any native + cursor was set +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/MouseOverArea.html b/lib/javadoc/org/newdawn/slick/gui/MouseOverArea.html new file mode 100644 index 000000000..2b09c000d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/MouseOverArea.html @@ -0,0 +1,929 @@ + + + + + + +MouseOverArea (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Class MouseOverArea

+
+java.lang.Object
+  extended by org.newdawn.slick.util.InputAdapter
+      extended by org.newdawn.slick.gui.AbstractComponent
+          extended by org.newdawn.slick.gui.MouseOverArea
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class MouseOverArea
extends AbstractComponent
+ + +

+A mouse over area that can be used for menus or buttons +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.gui.AbstractComponent
container, input, listeners
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
MouseOverArea(GUIContext container, + Image image, + int x, + int y) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + Shape shape) + +
+          Create a new mouse over area
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetHeight() + +
+          Get the height of the component
+ intgetWidth() + +
+          Get the width of the component
+ intgetX() + +
+          Returns the position in the X coordinate
+ intgetY() + +
+          Returns the position in the Y coordinate
+ booleanisMouseOver() + +
+          Check if the mouse is over this area
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int mx, + int my) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int mx, + int my) + +
+          Gives the focus to this component with a click of the mouse.
+ voidrender(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+ voidsetLocation(float x, + float y) + +
+          Moves the component.
+ voidsetLocation(int x, + int y) + +
+          Set the location of this area
+ voidsetMouseDownColor(Color color) + +
+          Set the color to be used when the mouse is down the area
+ voidsetMouseDownImage(Image image) + +
+          Set the image to be used when the mouse is down the area
+ voidsetMouseDownSound(Sound sound) + +
+          Set the mouse down sound effect
+ voidsetMouseOverColor(Color color) + +
+          Set the color to be used when the mouse is over the area
+ voidsetMouseOverImage(Image image) + +
+          Set the image to be used when the mouse is over the area
+ voidsetMouseOverSound(Sound sound) + +
+          Set the mouse over sound effect
+ voidsetNormalColor(Color color) + +
+          Set the normal color used on the image in the default state
+ voidsetNormalImage(Image image) + +
+          Set the normal image used on the image in the default state
+ voidsetX(float x) + +
+          Set the x coordinate of this area
+ voidsetY(float y) + +
+          Set the y coordinate of this area
+ + + + + + + +
Methods inherited from class org.newdawn.slick.gui.AbstractComponent
addListener, consumeEvent, hasFocus, notifyListeners, removeListener, setFocus
+ + + + + + + +
Methods inherited from class org.newdawn.slick.util.InputAdapter
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseWheelMoved, setAcceptingInput, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MouseOverArea

+
+public MouseOverArea(GUIContext container,
+                     Image image,
+                     int x,
+                     int y,
+                     ComponentListener listener)
+
+
Create a new mouse over area +

+

+
Parameters:
container - The container displaying the mouse over area
image - The normalImage to display
x - The position of the area
y - the position of the area
listener - A listener to add to the area
+
+
+ +

+MouseOverArea

+
+public MouseOverArea(GUIContext container,
+                     Image image,
+                     int x,
+                     int y)
+
+
Create a new mouse over area +

+

+
Parameters:
container - The container displaying the mouse over area
image - The normalImage to display
x - The position of the area
y - the position of the area
+
+
+ +

+MouseOverArea

+
+public MouseOverArea(GUIContext container,
+                     Image image,
+                     int x,
+                     int y,
+                     int width,
+                     int height,
+                     ComponentListener listener)
+
+
Create a new mouse over area +

+

+
Parameters:
container - The container displaying the mouse over area
image - The normalImage to display
x - The position of the area
y - the position of the area
width - The width of the area
height - The height of the area
listener - A listener to add to the area
+
+
+ +

+MouseOverArea

+
+public MouseOverArea(GUIContext container,
+                     Image image,
+                     int x,
+                     int y,
+                     int width,
+                     int height)
+
+
Create a new mouse over area +

+

+
Parameters:
container - The container displaying the mouse over area
image - The normalImage to display
x - The position of the area
y - the position of the area
width - The width of the area
height - The height of the area
+
+
+ +

+MouseOverArea

+
+public MouseOverArea(GUIContext container,
+                     Image image,
+                     Shape shape)
+
+
Create a new mouse over area +

+

+
Parameters:
container - The container displaying the mouse over area
image - The normalImage to display
shape - The shape defining the area of the mouse sensitive zone
+
+ + + + + + + + +
+Method Detail
+ +

+setLocation

+
+public void setLocation(float x,
+                        float y)
+
+
Moves the component. +

+

+
Parameters:
x - X coordinate
y - Y coordinate
+
+
+
+ +

+setX

+
+public void setX(float x)
+
+
Set the x coordinate of this area +

+

+
Parameters:
x - The new x coordinate of this area
+
+
+
+ +

+setY

+
+public void setY(float y)
+
+
Set the y coordinate of this area +

+

+
Parameters:
y - The new y coordinate of this area
+
+
+
+ +

+getX

+
+public int getX()
+
+
Returns the position in the X coordinate +

+

+
Specified by:
getX in class AbstractComponent
+
+
+ +
Returns:
x
+
+
+
+ +

+getY

+
+public int getY()
+
+
Returns the position in the Y coordinate +

+

+
Specified by:
getY in class AbstractComponent
+
+
+ +
Returns:
y
+
+
+
+ +

+setNormalColor

+
+public void setNormalColor(Color color)
+
+
Set the normal color used on the image in the default state +

+

+
Parameters:
color - The color to be used
+
+
+
+ +

+setMouseOverColor

+
+public void setMouseOverColor(Color color)
+
+
Set the color to be used when the mouse is over the area +

+

+
Parameters:
color - The color to be used when the mouse is over the area
+
+
+
+ +

+setMouseDownColor

+
+public void setMouseDownColor(Color color)
+
+
Set the color to be used when the mouse is down the area +

+

+
Parameters:
color - The color to be used when the mouse is down the area
+
+
+
+ +

+setNormalImage

+
+public void setNormalImage(Image image)
+
+
Set the normal image used on the image in the default state +

+

+
Parameters:
image - The image to be used
+
+
+
+ +

+setMouseOverImage

+
+public void setMouseOverImage(Image image)
+
+
Set the image to be used when the mouse is over the area +

+

+
Parameters:
image - The image to be used when the mouse is over the area
+
+
+
+ +

+setMouseDownImage

+
+public void setMouseDownImage(Image image)
+
+
Set the image to be used when the mouse is down the area +

+

+
Parameters:
image - The image to be used when the mouse is down the area
+
+
+
+ +

+render

+
+public void render(GUIContext container,
+                   Graphics g)
+
+
Description copied from class: AbstractComponent
+
Render this component to the screen +

+

+
Specified by:
render in class AbstractComponent
+
+
+
Parameters:
container - The container displaying this component
g - The graphics context used to render to the display
See Also:
AbstractComponent.render(org.newdawn.slick.gui.GUIContext, + org.newdawn.slick.Graphics)
+
+
+
+ +

+setMouseOverSound

+
+public void setMouseOverSound(Sound sound)
+
+
Set the mouse over sound effect +

+

+
Parameters:
sound - The mouse over sound effect
+
+
+
+ +

+setMouseDownSound

+
+public void setMouseDownSound(Sound sound)
+
+
Set the mouse down sound effect +

+

+
Parameters:
sound - The mouse down sound effect
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
Overrides:
mouseMoved in class InputAdapter
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
InputAdapter.mouseMoved(int, int, int, int)
+
+
+
+ +

+mouseDragged

+
+public void mouseDragged(int oldx,
+                         int oldy,
+                         int newx,
+                         int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was dragged +

+

+
Specified by:
mouseDragged in interface MouseListener
Overrides:
mouseDragged in class InputAdapter
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
InputAdapter.mouseDragged(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int mx,
+                         int my)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class InputAdapter
+
+
+
Parameters:
button - The index of the button (starting at 0)
mx - The x position of the mouse when the button was pressed
my - The y position of the mouse when the button was pressed
See Also:
InputAdapter.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int mx,
+                          int my)
+
+
Description copied from class: AbstractComponent
+
Gives the focus to this component with a click of the mouse. +

+

+
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class AbstractComponent
+
+
+
Parameters:
button - The index of the button (starting at 0)
mx - The x position of the mouse when the button was released
my - The y position of the mouse when the button was released
See Also:
InputAdapter.mouseReleased(int, int, int)
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from class: AbstractComponent
+
Get the height of the component +

+

+
Specified by:
getHeight in class AbstractComponent
+
+
+ +
Returns:
The height of the component
See Also:
AbstractComponent.getHeight()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from class: AbstractComponent
+
Get the width of the component +

+

+
Specified by:
getWidth in class AbstractComponent
+
+
+ +
Returns:
The width of the component
See Also:
AbstractComponent.getWidth()
+
+
+
+ +

+isMouseOver

+
+public boolean isMouseOver()
+
+
Check if the mouse is over this area +

+

+ +
Returns:
True if the mouse is over this area
+
+
+
+ +

+setLocation

+
+public void setLocation(int x,
+                        int y)
+
+
Set the location of this area +

+

+
Specified by:
setLocation in class AbstractComponent
+
+
+
Parameters:
x - The x coordinate of this area
y - The y coordiante of this area
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/TextField.html b/lib/javadoc/org/newdawn/slick/gui/TextField.html new file mode 100644 index 000000000..72a04804d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/TextField.html @@ -0,0 +1,857 @@ + + + + + + +TextField (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.gui +
+Class TextField

+
+java.lang.Object
+  extended by org.newdawn.slick.util.InputAdapter
+      extended by org.newdawn.slick.gui.AbstractComponent
+          extended by org.newdawn.slick.gui.TextField
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class TextField
extends AbstractComponent
+ + +

+A single text field supporting text entry +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  intx + +
+          The location in the X coordinate
+protected  inty + +
+          The location in the Y coordinate
+ + + + + + + +
Fields inherited from class org.newdawn.slick.gui.AbstractComponent
container, input, listeners
+  + + + + + + + + + + + + + +
+Constructor Summary
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height) + +
+          Create a new text field
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new text field
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddeactivate() + +
+          Deactivate the key input handling for this field
+protected  voiddoPaste(java.lang.String text) + +
+          Do the paste into the field, overrideable for custom behaviour
+protected  voiddoUndo(int oldCursorPos, + java.lang.String oldText) + +
+          Do the undo of the paste, overrideable for custom behaviour
+ intgetHeight() + +
+          Get the height of the component
+ java.lang.StringgetText() + +
+          Get the value in the text field
+ intgetWidth() + +
+          Get the width of the component
+ intgetX() + +
+          Returns the position in the X coordinate
+ intgetY() + +
+          Returns the position in the Y coordinate
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+protected  voidrecordOldPosition() + +
+          Record the old position and content
+ voidrender(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+ voidsetBackgroundColor(Color color) + +
+          Set the background color.
+ voidsetBorderColor(Color color) + +
+          Set the border color.
+ voidsetConsumeEvents(boolean consume) + +
+          Indicate if the input events should be consumed by this field
+ voidsetCursorPos(int pos) + +
+          Set the position of the cursor
+ voidsetCursorVisible(boolean visibleCursor) + +
+          Indicate whether the mouse cursor should be visible or not
+ voidsetFocus(boolean focus) + +
+          Indicate whether this component should be focused or not
+ voidsetLocation(int x, + int y) + +
+          Moves the component.
+ voidsetMaxLength(int length) + +
+          Set the length of the allowed input
+ voidsetText(java.lang.String value) + +
+          Set the value to be displayed in the text field
+ voidsetTextColor(Color color) + +
+          Set the text color.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.gui.AbstractComponent
addListener, consumeEvent, hasFocus, mouseReleased, notifyListeners, removeListener
+ + + + + + + +
Methods inherited from class org.newdawn.slick.util.InputAdapter
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setAcceptingInput, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+x

+
+protected int x
+
+
The location in the X coordinate +

+

+
+
+
+ +

+y

+
+protected int y
+
+
The location in the Y coordinate +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TextField

+
+public TextField(GUIContext container,
+                 Font font,
+                 int x,
+                 int y,
+                 int width,
+                 int height,
+                 ComponentListener listener)
+
+
Create a new text field +

+

+
Parameters:
container - The container rendering this field
font - The font to use in the text field
x - The x coordinate of the top left corner of the text field
y - The y coordinate of the top left corner of the text field
width - The width of the text field
height - The height of the text field
listener - The listener to add to the text field
+
+
+ +

+TextField

+
+public TextField(GUIContext container,
+                 Font font,
+                 int x,
+                 int y,
+                 int width,
+                 int height)
+
+
Create a new text field +

+

+
Parameters:
container - The container rendering this field
font - The font to use in the text field
x - The x coordinate of the top left corner of the text field
y - The y coordinate of the top left corner of the text field
width - The width of the text field
height - The height of the text field
+
+ + + + + + + + +
+Method Detail
+ +

+setConsumeEvents

+
+public void setConsumeEvents(boolean consume)
+
+
Indicate if the input events should be consumed by this field +

+

+
Parameters:
consume - True if events should be consumed by this field
+
+
+
+ +

+deactivate

+
+public void deactivate()
+
+
Deactivate the key input handling for this field +

+

+
+
+
+
+ +

+setLocation

+
+public void setLocation(int x,
+                        int y)
+
+
Moves the component. +

+

+
Specified by:
setLocation in class AbstractComponent
+
+
+
Parameters:
x - X coordinate
y - Y coordinate
+
+
+
+ +

+getX

+
+public int getX()
+
+
Returns the position in the X coordinate +

+

+
Specified by:
getX in class AbstractComponent
+
+
+ +
Returns:
x
+
+
+
+ +

+getY

+
+public int getY()
+
+
Returns the position in the Y coordinate +

+

+
Specified by:
getY in class AbstractComponent
+
+
+ +
Returns:
y
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Get the width of the component +

+

+
Specified by:
getWidth in class AbstractComponent
+
+
+ +
Returns:
The width of the component
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the height of the component +

+

+
Specified by:
getHeight in class AbstractComponent
+
+
+ +
Returns:
The height of the component
+
+
+
+ +

+setBackgroundColor

+
+public void setBackgroundColor(Color color)
+
+
Set the background color. Set to null to disable the background +

+

+
Parameters:
color - The color to use for the background
+
+
+
+ +

+setBorderColor

+
+public void setBorderColor(Color color)
+
+
Set the border color. Set to null to disable the border +

+

+
Parameters:
color - The color to use for the border
+
+
+
+ +

+setTextColor

+
+public void setTextColor(Color color)
+
+
Set the text color. +

+

+
Parameters:
color - The color to use for the text
+
+
+
+ +

+render

+
+public void render(GUIContext container,
+                   Graphics g)
+
+
Description copied from class: AbstractComponent
+
Render this component to the screen +

+

+
Specified by:
render in class AbstractComponent
+
+
+
Parameters:
container - The container displaying this component
g - The graphics context used to render to the display
See Also:
AbstractComponent.render(org.newdawn.slick.gui.GUIContext, + org.newdawn.slick.Graphics)
+
+
+
+ +

+getText

+
+public java.lang.String getText()
+
+
Get the value in the text field +

+

+ +
Returns:
The value in the text field
+
+
+
+ +

+setText

+
+public void setText(java.lang.String value)
+
+
Set the value to be displayed in the text field +

+

+
Parameters:
value - The value to be displayed in the text field
+
+
+
+ +

+setCursorPos

+
+public void setCursorPos(int pos)
+
+
Set the position of the cursor +

+

+
Parameters:
pos - The new position of the cursor
+
+
+
+ +

+setCursorVisible

+
+public void setCursorVisible(boolean visibleCursor)
+
+
Indicate whether the mouse cursor should be visible or not +

+

+
Parameters:
visibleCursor - True if the mouse cursor should be visible
+
+
+
+ +

+setMaxLength

+
+public void setMaxLength(int length)
+
+
Set the length of the allowed input +

+

+
Parameters:
length - The length of the allowed input
+
+
+
+ +

+doPaste

+
+protected void doPaste(java.lang.String text)
+
+
Do the paste into the field, overrideable for custom behaviour +

+

+
Parameters:
text - The text to be pasted in
+
+
+
+ +

+recordOldPosition

+
+protected void recordOldPosition()
+
+
Record the old position and content +

+

+
+
+
+
+ +

+doUndo

+
+protected void doUndo(int oldCursorPos,
+                      java.lang.String oldText)
+
+
Do the undo of the paste, overrideable for custom behaviour +

+

+
Parameters:
oldCursorPos - before the paste
oldText - The text before the last paste
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class InputAdapter
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
InputAdapter.keyPressed(int, char)
+
+
+
+ +

+setFocus

+
+public void setFocus(boolean focus)
+
+
Description copied from class: AbstractComponent
+
Indicate whether this component should be focused or not +

+

+
Overrides:
setFocus in class AbstractComponent
+
+
+
Parameters:
focus - if the component should be focused
See Also:
AbstractComponent.setFocus(boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/AbstractComponent.html b/lib/javadoc/org/newdawn/slick/gui/class-use/AbstractComponent.html new file mode 100644 index 000000000..87a5518ad --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/AbstractComponent.html @@ -0,0 +1,250 @@ + + + + + + +Uses of Class org.newdawn.slick.gui.AbstractComponent (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.gui.AbstractComponent

+
+ + + + + + + + + + + + + +
+Packages that use AbstractComponent
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of AbstractComponent in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractComponent in org.newdawn.slick.gui
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type AbstractComponent
+ voidComponentListener.componentActivated(AbstractComponent source) + +
+          Notification that a component has been activated (button clicked, + text field entered, etc)
+  +

+ + + + + +
+Uses of AbstractComponent in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests with parameters of type AbstractComponent
+ voidSavedStateTest.componentActivated(AbstractComponent source) + +
+           
+ voidGUITest.componentActivated(AbstractComponent source) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/BasicComponent.html b/lib/javadoc/org/newdawn/slick/gui/class-use/BasicComponent.html new file mode 100644 index 000000000..5203acdf1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/BasicComponent.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.gui.BasicComponent (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.gui.BasicComponent

+
+No usage of org.newdawn.slick.gui.BasicComponent +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/ComponentListener.html b/lib/javadoc/org/newdawn/slick/gui/class-use/ComponentListener.html new file mode 100644 index 000000000..fa7b4e630 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/ComponentListener.html @@ -0,0 +1,267 @@ + + + + + + +Uses of Interface org.newdawn.slick.gui.ComponentListener (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.gui.ComponentListener

+
+ + + + + + + + + + + + + +
+Packages that use ComponentListener
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of ComponentListener in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type ComponentListener
+ voidAbstractComponent.addListener(ComponentListener listener) + +
+          Add a component listener to be informed when the component sees fit.
+ voidAbstractComponent.removeListener(ComponentListener listener) + +
+          Remove a component listener.
+  +

+ + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.gui with parameters of type ComponentListener
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new mouse over area
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new text field
+  +

+ + + + + +
+Uses of ComponentListener in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests that implement ComponentListener
+ classGUITest + +
+          A test for the GUI components available in Slick.
+ classSavedStateTest + +
+          A test of the the local storage utilities
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/GUIContext.html b/lib/javadoc/org/newdawn/slick/gui/class-use/GUIContext.html new file mode 100644 index 000000000..62dd3fed1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/GUIContext.html @@ -0,0 +1,373 @@ + + + + + + +Uses of Interface org.newdawn.slick.gui.GUIContext (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.gui.GUIContext

+
+ + + + + + + + + + + + + +
+Packages that use GUIContext
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
+  +

+ + + + + +
+Uses of GUIContext in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick that implement GUIContext
+ classAppGameContainer + +
+          A game container that will display the game as an stand alone + application.
+ classAppletGameContainer.Container + +
+          A game container to provide the applet context
+ classGameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
+  +

+ + + + + +
+Uses of GUIContext in org.newdawn.slick.gui
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.gui declared as GUIContext
+protected  GUIContextAbstractComponent.container + +
+          The game container
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type GUIContext
+ voidTextField.render(GUIContext container, + Graphics g) + +
+           
+ voidMouseOverArea.render(GUIContext container, + Graphics g) + +
+           
+ voidBasicComponent.render(GUIContext container, + Graphics g) + +
+          Deprecated.  
+abstract  voidAbstractComponent.render(GUIContext container, + Graphics g) + +
+          Render this component to the screen
+abstract  voidBasicComponent.renderImpl(GUIContext container, + Graphics g) + +
+          Deprecated. Allow the sub-component to render
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.newdawn.slick.gui with parameters of type GUIContext
AbstractComponent(GUIContext container) + +
+          Create a new component
BasicComponent(GUIContext container) + +
+          Deprecated. Create a new component
MouseOverArea(GUIContext container, + Image image, + int x, + int y) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new mouse over area
MouseOverArea(GUIContext container, + Image image, + Shape shape) + +
+          Create a new mouse over area
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height) + +
+          Create a new text field
TextField(GUIContext container, + Font font, + int x, + int y, + int width, + int height, + ComponentListener listener) + +
+          Create a new text field
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/MouseOverArea.html b/lib/javadoc/org/newdawn/slick/gui/class-use/MouseOverArea.html new file mode 100644 index 000000000..766fa06e9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/MouseOverArea.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.gui.MouseOverArea (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.gui.MouseOverArea

+
+No usage of org.newdawn.slick.gui.MouseOverArea +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/class-use/TextField.html b/lib/javadoc/org/newdawn/slick/gui/class-use/TextField.html new file mode 100644 index 000000000..377e30748 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/class-use/TextField.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.gui.TextField (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.gui.TextField

+
+No usage of org.newdawn.slick.gui.TextField +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/package-frame.html b/lib/javadoc/org/newdawn/slick/gui/package-frame.html new file mode 100644 index 000000000..565b0ed68 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/package-frame.html @@ -0,0 +1,51 @@ + + + + + + +org.newdawn.slick.gui (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.gui + + + + +
+Interfaces  + +
+ComponentListener +
+GUIContext
+ + + + + + +
+Classes  + +
+AbstractComponent +
+BasicComponent +
+MouseOverArea +
+TextField
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/gui/package-summary.html b/lib/javadoc/org/newdawn/slick/gui/package-summary.html new file mode 100644 index 000000000..d37e5128c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/package-summary.html @@ -0,0 +1,203 @@ + + + + + + +org.newdawn.slick.gui (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.gui +

+Some extremely simple GUI elements which should be used where a game does not require a full GUI +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Interface Summary
ComponentListenerA descritpion of a class responding to events occuring on a GUI component
GUIContextThe context in which GUI components are created and rendered
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractComponentThe utility class to handle all the input related gubbins for basic GUI + components
BasicComponentDeprecated.  
MouseOverAreaA mouse over area that can be used for menus or buttons
TextFieldA single text field supporting text entry
+  + +

+

+Package org.newdawn.slick.gui Description +

+ +

+Some extremely simple GUI elements which should be used where a game does not require a full GUI +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/package-tree.html b/lib/javadoc/org/newdawn/slick/gui/package-tree.html new file mode 100644 index 000000000..f531cfc2c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/package-tree.html @@ -0,0 +1,163 @@ + + + + + + +org.newdawn.slick.gui Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.gui +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/gui/package-use.html b/lib/javadoc/org/newdawn/slick/gui/package-use.html new file mode 100644 index 000000000..dfb769fe9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/gui/package-use.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Package org.newdawn.slick.gui (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.gui

+
+ + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.gui
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.gui used by org.newdawn.slick
GUIContext + +
+          The context in which GUI components are created and rendered
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.gui used by org.newdawn.slick.gui
AbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
ComponentListener + +
+          A descritpion of a class responding to events occuring on a GUI component
GUIContext + +
+          The context in which GUI components are created and rendered
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.gui used by org.newdawn.slick.tests
AbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
ComponentListener + +
+          A descritpion of a class responding to events occuring on a GUI component
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/ImageIOWriter.html b/lib/javadoc/org/newdawn/slick/imageout/ImageIOWriter.html new file mode 100644 index 000000000..db1eb9e06 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/ImageIOWriter.html @@ -0,0 +1,279 @@ + + + + + + +ImageIOWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.imageout +
+Class ImageIOWriter

+
+java.lang.Object
+  extended by org.newdawn.slick.imageout.ImageIOWriter
+
+
+
All Implemented Interfaces:
ImageWriter
+
+
+
+
public class ImageIOWriter
extends java.lang.Object
implements ImageWriter
+ + +

+A utility to write a Slick image out using ImageIO +

+ +

+

+
Author:
+
Jon
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ImageIOWriter() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidsaveImage(Image image, + java.lang.String format, + java.io.OutputStream output, + boolean hasAlpha) + +
+          Save an Image to an given location
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageIOWriter

+
+public ImageIOWriter()
+
+
+ + + + + + + + +
+Method Detail
+ +

+saveImage

+
+public void saveImage(Image image,
+                      java.lang.String format,
+                      java.io.OutputStream output,
+                      boolean hasAlpha)
+               throws java.io.IOException
+
+
Description copied from interface: ImageWriter
+
Save an Image to an given location +

+

+
Specified by:
saveImage in interface ImageWriter
+
+
+
Parameters:
image - The image to be written
format - The format that this writer is expected to be produced in
output - The output stream to which the image data should be written
hasAlpha - True if we should write alpha information to the file +
Throws: +
java.io.IOException - Indicates a failure to write out the image to the specified location
See Also:
ImageWriter.saveImage(org.newdawn.slick.Image, + java.lang.String, java.io.OutputStream, boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/ImageOut.html b/lib/javadoc/org/newdawn/slick/imageout/ImageOut.html new file mode 100644 index 000000000..ecf476248 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/ImageOut.html @@ -0,0 +1,515 @@ + + + + + + +ImageOut (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.imageout +
+Class ImageOut

+
+java.lang.Object
+  extended by org.newdawn.slick.imageout.ImageOut
+
+
+
+
public class ImageOut
extends java.lang.Object
+ + +

+A static hook to access all the Image output utilities. The list of format strings + provided is not the limit of capability. These are provided for utility, use @see getSupportedFormats() + for a full list of supported formats. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringJPG + +
+          The format string for JPG
+static java.lang.StringPNG + +
+          The format string for PNG
+static java.lang.StringTGA + +
+          The format string for TGA
+  + + + + + + + + + + +
+Constructor Summary
ImageOut() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.String[]getSupportedFormats() + +
+          Get a list of supported formats
+static voidwrite(Image image, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidwrite(Image image, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+static voidwrite(Image image, + java.lang.String format, + java.io.OutputStream out) + +
+          Write an image out to a specified output stream
+static voidwrite(Image image, + java.lang.String format, + java.io.OutputStream out, + boolean writeAlpha) + +
+          Write an image out to a specified output stream
+static voidwrite(Image image, + java.lang.String format, + java.lang.String dest) + +
+          Write an image out to a file on the local file system.
+static voidwrite(Image image, + java.lang.String format, + java.lang.String dest, + boolean writeAlpha) + +
+          Write an image out to a file on the local file system.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TGA

+
+public static java.lang.String TGA
+
+
The format string for TGA +

+

+
+
+
+ +

+PNG

+
+public static java.lang.String PNG
+
+
The format string for PNG +

+

+
+
+
+ +

+JPG

+
+public static java.lang.String JPG
+
+
The format string for JPG +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ImageOut

+
+public ImageOut()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getSupportedFormats

+
+public static java.lang.String[] getSupportedFormats()
+
+
Get a list of supported formats +

+

+ +
Returns:
The list of supported format strings
See Also:
ImageWriterFactory.getSupportedFormats()
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String format,
+                         java.io.OutputStream out)
+                  throws SlickException
+
+
Write an image out to a specified output stream +

+

+
Parameters:
image - The image to write out to
format - The format to write the image out in
out - The output stream to which the image should be written +
Throws: +
SlickException - Indicates a failure to write the image in the specified format
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String format,
+                         java.io.OutputStream out,
+                         boolean writeAlpha)
+                  throws SlickException
+
+
Write an image out to a specified output stream +

+

+
Parameters:
image - The image to write out to
format - The format to write the image out in
out - The output stream to which the image should be written
writeAlpha - True if we should write the alpha channel out (some formats don't support this, like JPG) +
Throws: +
SlickException - Indicates a failure to write the image in the specified format
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String dest)
+                  throws SlickException
+
+
Write an image out to a file on the local file system. The format of the output + is determined based on the file name extension +

+

+
Parameters:
image - The image to be written out
dest - The destination path to write to +
Throws: +
SlickException - Indicates a failure to write the image in the determined format
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String dest,
+                         boolean writeAlpha)
+                  throws SlickException
+
+
Write an image out to a file on the local file system. The format of the output + is determined based on the file name extension +

+

+
Parameters:
image - The image to be written out
dest - The destination path to write to
writeAlpha - True if we should write the alpha channel out (some formats don't support this, like JPG) +
Throws: +
SlickException - Indicates a failure to write the image in the determined format
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String format,
+                         java.lang.String dest)
+                  throws SlickException
+
+
Write an image out to a file on the local file system. +

+

+
Parameters:
image - The image to be written out
format - The format to write the image out in
dest - The destination path to write to +
Throws: +
SlickException - Indicates a failure to write the image in the determined format
+
+
+
+ +

+write

+
+public static void write(Image image,
+                         java.lang.String format,
+                         java.lang.String dest,
+                         boolean writeAlpha)
+                  throws SlickException
+
+
Write an image out to a file on the local file system. +

+

+
Parameters:
image - The image to be written out
format - The format to write the image out in
dest - The destination path to write to
writeAlpha - True if we should write the alpha channel out (some formats don't support this, like JPG) +
Throws: +
SlickException - Indicates a failure to write the image in the determined format
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/ImageWriter.html b/lib/javadoc/org/newdawn/slick/imageout/ImageWriter.html new file mode 100644 index 000000000..5257f1db9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/ImageWriter.html @@ -0,0 +1,229 @@ + + + + + + +ImageWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.imageout +
+Interface ImageWriter

+
+
All Known Implementing Classes:
ImageIOWriter, TGAWriter
+
+
+
+
public interface ImageWriter
+ + +

+The description of any class that can produce data to an output stream reprsenting + some image in memory. +

+ +

+

+
Author:
+
Jon
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidsaveImage(Image image, + java.lang.String format, + java.io.OutputStream out, + boolean writeAlpha) + +
+          Save an Image to an given location
+  +

+ + + + + + + + +
+Method Detail
+ +

+saveImage

+
+void saveImage(Image image,
+               java.lang.String format,
+               java.io.OutputStream out,
+               boolean writeAlpha)
+               throws java.io.IOException
+
+
Save an Image to an given location +

+

+
Parameters:
image - The image to be written
format - The format that this writer is expected to be produced in
out - The output stream to which the image data should be written
writeAlpha - True if we should write alpha information to the file +
Throws: +
java.io.IOException - Indicates a failure to write out the image to the specified location
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/ImageWriterFactory.html b/lib/javadoc/org/newdawn/slick/imageout/ImageWriterFactory.html new file mode 100644 index 000000000..d2c02e572 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/ImageWriterFactory.html @@ -0,0 +1,312 @@ + + + + + + +ImageWriterFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.imageout +
+Class ImageWriterFactory

+
+java.lang.Object
+  extended by org.newdawn.slick.imageout.ImageWriterFactory
+
+
+
+
public class ImageWriterFactory
extends java.lang.Object
+ + +

+A factory to produce image writers based on format names +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ImageWriterFactory() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.String[]getSupportedFormats() + +
+          Get the list of support format strings for this factory
+static ImageWritergetWriterForFormat(java.lang.String format) + +
+          Get a Slick image writer for the given format
+static voidregisterWriter(java.lang.String format, + ImageWriter writer) + +
+          Register an image writer with the factory.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageWriterFactory

+
+public ImageWriterFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+registerWriter

+
+public static void registerWriter(java.lang.String format,
+                                  ImageWriter writer)
+
+
Register an image writer with the factory. This will allow users + to use it to write out the explicit format +

+

+
Parameters:
format - The format (usually extension) of the files that will be written out
writer - The writer to use for the given format
+
+
+
+ +

+getSupportedFormats

+
+public static java.lang.String[] getSupportedFormats()
+
+
Get the list of support format strings for this factory +

+

+ +
Returns:
The list of support format strings for this factory
+
+
+
+ +

+getWriterForFormat

+
+public static ImageWriter getWriterForFormat(java.lang.String format)
+                                      throws SlickException
+
+
Get a Slick image writer for the given format +

+

+
Parameters:
format - The format of the image to write +
Returns:
The image write to use to produce these images +
Throws: +
SlickException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/TGAWriter.html b/lib/javadoc/org/newdawn/slick/imageout/TGAWriter.html new file mode 100644 index 000000000..fd603e396 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/TGAWriter.html @@ -0,0 +1,278 @@ + + + + + + +TGAWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.imageout +
+Class TGAWriter

+
+java.lang.Object
+  extended by org.newdawn.slick.imageout.TGAWriter
+
+
+
All Implemented Interfaces:
ImageWriter
+
+
+
+
public class TGAWriter
extends java.lang.Object
implements ImageWriter
+ + +

+A utility to save TGA's given a Slick image. +

+ +

+

+
Author:
+
Jon
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TGAWriter() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidsaveImage(Image image, + java.lang.String format, + java.io.OutputStream output, + boolean writeAlpha) + +
+          Save an Image to an given location
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TGAWriter

+
+public TGAWriter()
+
+
+ + + + + + + + +
+Method Detail
+ +

+saveImage

+
+public void saveImage(Image image,
+                      java.lang.String format,
+                      java.io.OutputStream output,
+                      boolean writeAlpha)
+               throws java.io.IOException
+
+
Description copied from interface: ImageWriter
+
Save an Image to an given location +

+

+
Specified by:
saveImage in interface ImageWriter
+
+
+
Parameters:
image - The image to be written
format - The format that this writer is expected to be produced in
output - The output stream to which the image data should be written
writeAlpha - True if we should write alpha information to the file +
Throws: +
java.io.IOException - Indicates a failure to write out the image to the specified location
See Also:
ImageWriter.saveImage(org.newdawn.slick.Image, java.lang.String, java.io.OutputStream, boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageIOWriter.html b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageIOWriter.html new file mode 100644 index 000000000..7fad342ce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageIOWriter.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.imageout.ImageIOWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.imageout.ImageIOWriter

+
+No usage of org.newdawn.slick.imageout.ImageIOWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageOut.html b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageOut.html new file mode 100644 index 000000000..1f239d3cd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageOut.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.imageout.ImageOut (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.imageout.ImageOut

+
+No usage of org.newdawn.slick.imageout.ImageOut +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriter.html b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriter.html new file mode 100644 index 000000000..d111d1d3a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriter.html @@ -0,0 +1,221 @@ + + + + + + +Uses of Interface org.newdawn.slick.imageout.ImageWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.imageout.ImageWriter

+
+ + + + + + + + + +
+Packages that use ImageWriter
org.newdawn.slick.imageoutSupports saving of slick images to various file types. 
+  +

+ + + + + +
+Uses of ImageWriter in org.newdawn.slick.imageout
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.imageout that implement ImageWriter
+ classImageIOWriter + +
+          A utility to write a Slick image out using ImageIO
+ classTGAWriter + +
+          A utility to save TGA's given a Slick image.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.imageout that return ImageWriter
+static ImageWriterImageWriterFactory.getWriterForFormat(java.lang.String format) + +
+          Get a Slick image writer for the given format
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.imageout with parameters of type ImageWriter
+static voidImageWriterFactory.registerWriter(java.lang.String format, + ImageWriter writer) + +
+          Register an image writer with the factory.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriterFactory.html b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriterFactory.html new file mode 100644 index 000000000..948912a78 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/class-use/ImageWriterFactory.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.imageout.ImageWriterFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.imageout.ImageWriterFactory

+
+No usage of org.newdawn.slick.imageout.ImageWriterFactory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/class-use/TGAWriter.html b/lib/javadoc/org/newdawn/slick/imageout/class-use/TGAWriter.html new file mode 100644 index 000000000..d96802b12 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/class-use/TGAWriter.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.imageout.TGAWriter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.imageout.TGAWriter

+
+No usage of org.newdawn.slick.imageout.TGAWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/package-frame.html b/lib/javadoc/org/newdawn/slick/imageout/package-frame.html new file mode 100644 index 000000000..b4a2cb08c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/package-frame.html @@ -0,0 +1,49 @@ + + + + + + +org.newdawn.slick.imageout (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.imageout + + + + +
+Interfaces  + +
+ImageWriter
+ + + + + + +
+Classes  + +
+ImageIOWriter +
+ImageOut +
+ImageWriterFactory +
+TGAWriter
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/package-summary.html b/lib/javadoc/org/newdawn/slick/imageout/package-summary.html new file mode 100644 index 000000000..925474051 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/package-summary.html @@ -0,0 +1,199 @@ + + + + + + +org.newdawn.slick.imageout (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.imageout +

+Supports saving of slick images to various file types. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
ImageWriterThe description of any class that can produce data to an output stream reprsenting + some image in memory.
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ImageIOWriterA utility to write a Slick image out using ImageIO
ImageOutA static hook to access all the Image output utilities.
ImageWriterFactoryA factory to produce image writers based on format names
TGAWriterA utility to save TGA's given a Slick image.
+  + +

+

+Package org.newdawn.slick.imageout Description +

+ +

+Supports saving of slick images to various file types. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/package-tree.html b/lib/javadoc/org/newdawn/slick/imageout/package-tree.html new file mode 100644 index 000000000..2a7031c14 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +org.newdawn.slick.imageout Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.imageout +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/imageout/package-use.html b/lib/javadoc/org/newdawn/slick/imageout/package-use.html new file mode 100644 index 000000000..253ad2298 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/imageout/package-use.html @@ -0,0 +1,171 @@ + + + + + + +Uses of Package org.newdawn.slick.imageout (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.imageout

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.imageout
org.newdawn.slick.imageoutSupports saving of slick images to various file types. 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.imageout used by org.newdawn.slick.imageout
ImageWriter + +
+          The description of any class that can produce data to an output stream reprsenting + some image in memory.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/DeferredResource.html b/lib/javadoc/org/newdawn/slick/loading/DeferredResource.html new file mode 100644 index 000000000..29f8e9a24 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/DeferredResource.html @@ -0,0 +1,245 @@ + + + + + + +DeferredResource (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.loading +
+Interface DeferredResource

+
+
All Known Implementing Classes:
DeferredSound, DeferredTexture
+
+
+
+
public interface DeferredResource
+ + +

+A description of any class providing a resource handle that be loaded + at a later date (i.e. deferrred) +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetDescription() + +
+          Get a description of the resource to be loaded
+ voidload() + +
+          Load the actual resource
+  +

+ + + + + + + + +
+Method Detail
+ +

+load

+
+void load()
+          throws java.io.IOException
+
+
Load the actual resource +

+

+ +
Throws: +
java.io.IOException - Indicates a failure to load the resource
+
+
+
+ +

+getDescription

+
+java.lang.String getDescription()
+
+
Get a description of the resource to be loaded +

+

+ +
Returns:
The description of the resource to be loaded
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/LoadingList.html b/lib/javadoc/org/newdawn/slick/loading/LoadingList.html new file mode 100644 index 000000000..06a0c5003 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/LoadingList.html @@ -0,0 +1,384 @@ + + + + + + +LoadingList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.loading +
+Class LoadingList

+
+java.lang.Object
+  extended by org.newdawn.slick.loading.LoadingList
+
+
+
+
public class LoadingList
extends java.lang.Object
+ + +

+A central list where all deferred loading resoures end up when deferred loading is in use. Each + texture and sound loaded will be put in this list and can be loaded in one by one +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(DeferredResource resource) + +
+          Add a resource to be loaded at some later date
+static LoadingListget() + +
+          Get the single global loading list
+ DeferredResourcegetNext() + +
+          Get the next resource that requries loading
+ intgetRemainingResources() + +
+          Get the number of remaining resources
+ intgetTotalResources() + +
+          Get the total number of resources that were in the list originally
+static booleanisDeferredLoading() + +
+          Check if we're using deferred loading
+ voidremove(DeferredResource resource) + +
+          Remove a resource from the list that has been loaded for + other reasons.
+static voidsetDeferredLoading(boolean loading) + +
+          Indicate if we're going to use deferred loading.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+get

+
+public static LoadingList get()
+
+
Get the single global loading list +

+

+ +
Returns:
The single global loading list
+
+
+
+ +

+setDeferredLoading

+
+public static void setDeferredLoading(boolean loading)
+
+
Indicate if we're going to use deferred loading. (Also clears the current list) +

+

+
Parameters:
loading - True if we should use deferred loading
+
+
+
+ +

+isDeferredLoading

+
+public static boolean isDeferredLoading()
+
+
Check if we're using deferred loading +

+

+ +
Returns:
True if we're using deferred loading
+
+
+
+ +

+add

+
+public void add(DeferredResource resource)
+
+
Add a resource to be loaded at some later date +

+

+
Parameters:
resource - The resource to be added
+
+
+
+ +

+remove

+
+public void remove(DeferredResource resource)
+
+
Remove a resource from the list that has been loaded for + other reasons. +

+

+
Parameters:
resource - The resource to remove
+
+
+
+ +

+getTotalResources

+
+public int getTotalResources()
+
+
Get the total number of resources that were in the list originally +

+

+ +
Returns:
The total number of resources that were in the list originally
+
+
+
+ +

+getRemainingResources

+
+public int getRemainingResources()
+
+
Get the number of remaining resources +

+

+ +
Returns:
The number of resources that still need to be loaded
+
+
+
+ +

+getNext

+
+public DeferredResource getNext()
+
+
Get the next resource that requries loading +

+

+ +
Returns:
The next resource to load or null if there are no more remaining
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/class-use/DeferredResource.html b/lib/javadoc/org/newdawn/slick/loading/class-use/DeferredResource.html new file mode 100644 index 000000000..09d89b52f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/class-use/DeferredResource.html @@ -0,0 +1,266 @@ + + + + + + +Uses of Interface org.newdawn.slick.loading.DeferredResource (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.loading.DeferredResource

+
+ + + + + + + + + + + + + + + + + +
+Packages that use DeferredResource
org.newdawn.slick.loadingAdds support for deferring loading of resources to a set time to allow loading/progress bar +style effects. 
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of DeferredResource in org.newdawn.slick.loading
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.loading that return DeferredResource
+ DeferredResourceLoadingList.getNext() + +
+          Get the next resource that requries loading
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.loading with parameters of type DeferredResource
+ voidLoadingList.add(DeferredResource resource) + +
+          Add a resource to be loaded at some later date
+ voidLoadingList.remove(DeferredResource resource) + +
+          Remove a resource from the list that has been loaded for + other reasons.
+  +

+ + + + + +
+Uses of DeferredResource in org.newdawn.slick.openal
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.openal that implement DeferredResource
+ classDeferredSound + +
+          A sound implementation that can load the actual sound file at a later + point.
+  +

+ + + + + +
+Uses of DeferredResource in org.newdawn.slick.opengl
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.opengl that implement DeferredResource
+ classDeferredTexture + +
+          A texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/class-use/LoadingList.html b/lib/javadoc/org/newdawn/slick/loading/class-use/LoadingList.html new file mode 100644 index 000000000..4d9464b14 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/class-use/LoadingList.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class org.newdawn.slick.loading.LoadingList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.loading.LoadingList

+
+ + + + + + + + + +
+Packages that use LoadingList
org.newdawn.slick.loadingAdds support for deferring loading of resources to a set time to allow loading/progress bar +style effects. 
+  +

+ + + + + +
+Uses of LoadingList in org.newdawn.slick.loading
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.loading that return LoadingList
+static LoadingListLoadingList.get() + +
+          Get the single global loading list
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/package-frame.html b/lib/javadoc/org/newdawn/slick/loading/package-frame.html new file mode 100644 index 000000000..6e4250f1d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/package-frame.html @@ -0,0 +1,43 @@ + + + + + + +org.newdawn.slick.loading (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.loading + + + + +
+Interfaces  + +
+DeferredResource
+ + + + + + +
+Classes  + +
+LoadingList
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/loading/package-summary.html b/lib/javadoc/org/newdawn/slick/loading/package-summary.html new file mode 100644 index 000000000..7bacdc223 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/package-summary.html @@ -0,0 +1,189 @@ + + + + + + +org.newdawn.slick.loading (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.loading +

+Adds support for deferring loading of resources to a set time to allow loading/progress bar +style effects. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
DeferredResourceA description of any class providing a resource handle that be loaded + at a later date (i.e.
+  + +

+ + + + + + + + + +
+Class Summary
LoadingListA central list where all deferred loading resoures end up when deferred loading is in use.
+  + +

+

+Package org.newdawn.slick.loading Description +

+ +

+Adds support for deferring loading of resources to a set time to allow loading/progress bar +style effects. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/package-tree.html b/lib/javadoc/org/newdawn/slick/loading/package-tree.html new file mode 100644 index 000000000..1a869ca6a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/package-tree.html @@ -0,0 +1,158 @@ + + + + + + +org.newdawn.slick.loading Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.loading +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object +
+

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/loading/package-use.html b/lib/javadoc/org/newdawn/slick/loading/package-use.html new file mode 100644 index 000000000..0b57b41fb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/loading/package-use.html @@ -0,0 +1,218 @@ + + + + + + +Uses of Package org.newdawn.slick.loading (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.loading

+
+ + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.loading
org.newdawn.slick.loadingAdds support for deferring loading of resources to a set time to allow loading/progress bar +style effects. 
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.loading used by org.newdawn.slick.loading
DeferredResource + +
+          A description of any class providing a resource handle that be loaded + at a later date (i.e.
LoadingList + +
+          A central list where all deferred loading resoures end up when deferred loading is in use.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.loading used by org.newdawn.slick.openal
DeferredResource + +
+          A description of any class providing a resource handle that be loaded + at a later date (i.e.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.loading used by org.newdawn.slick.opengl
DeferredResource + +
+          A description of any class providing a resource handle that be loaded + at a later date (i.e.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/FileMuffin.html b/lib/javadoc/org/newdawn/slick/muffin/FileMuffin.html new file mode 100644 index 000000000..d5b9d8cde --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/FileMuffin.html @@ -0,0 +1,305 @@ + + + + + + +FileMuffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.muffin +
+Class FileMuffin

+
+java.lang.Object
+  extended by org.newdawn.slick.muffin.FileMuffin
+
+
+
All Implemented Interfaces:
Muffin
+
+
+
+
public class FileMuffin
extends java.lang.Object
implements Muffin
+ + +

+An implementation of the muffin load/save mechanism based around using the + local file system. +

+ +

+

+
Author:
+
kappaOne
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FileMuffin() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.HashMaploadFile(java.lang.String fileName) + +
+          Load a file of data from the store
+ voidsaveFile(java.util.HashMap scoreMap, + java.lang.String fileName) + +
+          Save a file of data
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FileMuffin

+
+public FileMuffin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+saveFile

+
+public void saveFile(java.util.HashMap scoreMap,
+                     java.lang.String fileName)
+              throws java.io.IOException
+
+
Description copied from interface: Muffin
+
Save a file of data +

+

+
Specified by:
saveFile in interface Muffin
+
+
+
Parameters:
scoreMap - The data to store
fileName - The name of the file to store it against +
Throws: +
java.io.IOException - Indicates a failure to save the state
See Also:
Muffin.saveFile(java.util.HashMap, + java.lang.String)
+
+
+
+ +

+loadFile

+
+public java.util.HashMap loadFile(java.lang.String fileName)
+                           throws java.io.IOException
+
+
Description copied from interface: Muffin
+
Load a file of data from the store +

+

+
Specified by:
loadFile in interface Muffin
+
+
+
Parameters:
fileName - The name of the file to retrieve +
Returns:
The data retrieved +
Throws: +
java.io.IOException - Indicates a failure to load the state
See Also:
Muffin.loadFile(java.lang.String)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/Muffin.html b/lib/javadoc/org/newdawn/slick/muffin/Muffin.html new file mode 100644 index 000000000..509bd64d6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/Muffin.html @@ -0,0 +1,249 @@ + + + + + + +Muffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.muffin +
+Interface Muffin

+
+
All Known Implementing Classes:
FileMuffin, WebstartMuffin
+
+
+
+
public interface Muffin
+ + +

+A description of any class with the ability to store state locally +

+ +

+

+
Author:
+
kappaOne
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.HashMaploadFile(java.lang.String fileName) + +
+          Load a file of data from the store
+ voidsaveFile(java.util.HashMap data, + java.lang.String fileName) + +
+          Save a file of data
+  +

+ + + + + + + + +
+Method Detail
+ +

+saveFile

+
+void saveFile(java.util.HashMap data,
+              java.lang.String fileName)
+              throws java.io.IOException
+
+
Save a file of data +

+

+
Parameters:
data - The data to store
fileName - The name of the file to store it against +
Throws: +
java.io.IOException - Indicates a failure to save the state
+
+
+
+ +

+loadFile

+
+java.util.HashMap loadFile(java.lang.String fileName)
+                           throws java.io.IOException
+
+
Load a file of data from the store +

+

+
Parameters:
fileName - The name of the file to retrieve +
Returns:
The data retrieved +
Throws: +
java.io.IOException - Indicates a failure to load the state
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/WebstartMuffin.html b/lib/javadoc/org/newdawn/slick/muffin/WebstartMuffin.html new file mode 100644 index 000000000..8ce4cde05 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/WebstartMuffin.html @@ -0,0 +1,304 @@ + + + + + + +WebstartMuffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.muffin +
+Class WebstartMuffin

+
+java.lang.Object
+  extended by org.newdawn.slick.muffin.WebstartMuffin
+
+
+
All Implemented Interfaces:
Muffin
+
+
+
+
public class WebstartMuffin
extends java.lang.Object
implements Muffin
+ + +

+A muffin load/save implementation based on using Webstart Muffins (a bit like cookies only + for webstart) +

+ +

+

+
Author:
+
kappaOne
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
WebstartMuffin() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.HashMaploadFile(java.lang.String fileName) + +
+          Load a file of data from the store
+ voidsaveFile(java.util.HashMap scoreMap, + java.lang.String fileName) + +
+          Save a file of data
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WebstartMuffin

+
+public WebstartMuffin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+saveFile

+
+public void saveFile(java.util.HashMap scoreMap,
+                     java.lang.String fileName)
+              throws java.io.IOException
+
+
Description copied from interface: Muffin
+
Save a file of data +

+

+
Specified by:
saveFile in interface Muffin
+
+
+
Parameters:
scoreMap - The data to store
fileName - The name of the file to store it against +
Throws: +
java.io.IOException - Indicates a failure to save the state
See Also:
Muffin.saveFile(java.util.HashMap, java.lang.String)
+
+
+
+ +

+loadFile

+
+public java.util.HashMap loadFile(java.lang.String fileName)
+                           throws java.io.IOException
+
+
Description copied from interface: Muffin
+
Load a file of data from the store +

+

+
Specified by:
loadFile in interface Muffin
+
+
+
Parameters:
fileName - The name of the file to retrieve +
Returns:
The data retrieved +
Throws: +
java.io.IOException - Indicates a failure to load the state
See Also:
Muffin.loadFile(java.lang.String)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/class-use/FileMuffin.html b/lib/javadoc/org/newdawn/slick/muffin/class-use/FileMuffin.html new file mode 100644 index 000000000..02c27fd55 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/class-use/FileMuffin.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.muffin.FileMuffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.muffin.FileMuffin

+
+No usage of org.newdawn.slick.muffin.FileMuffin +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/class-use/Muffin.html b/lib/javadoc/org/newdawn/slick/muffin/class-use/Muffin.html new file mode 100644 index 000000000..84697ea09 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/class-use/Muffin.html @@ -0,0 +1,190 @@ + + + + + + +Uses of Interface org.newdawn.slick.muffin.Muffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.muffin.Muffin

+
+ + + + + + + + + +
+Packages that use Muffin
org.newdawn.slick.muffinMuffins for storing local data 
+  +

+ + + + + +
+Uses of Muffin in org.newdawn.slick.muffin
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.muffin that implement Muffin
+ classFileMuffin + +
+          An implementation of the muffin load/save mechanism based around using the + local file system.
+ classWebstartMuffin + +
+          A muffin load/save implementation based on using Webstart Muffins (a bit like cookies only + for webstart)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/class-use/WebstartMuffin.html b/lib/javadoc/org/newdawn/slick/muffin/class-use/WebstartMuffin.html new file mode 100644 index 000000000..bf4d71d18 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/class-use/WebstartMuffin.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.muffin.WebstartMuffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.muffin.WebstartMuffin

+
+No usage of org.newdawn.slick.muffin.WebstartMuffin +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/package-frame.html b/lib/javadoc/org/newdawn/slick/muffin/package-frame.html new file mode 100644 index 000000000..7b8e11f99 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/package-frame.html @@ -0,0 +1,45 @@ + + + + + + +org.newdawn.slick.muffin (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.muffin + + + + +
+Interfaces  + +
+Muffin
+ + + + + + +
+Classes  + +
+FileMuffin +
+WebstartMuffin
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/package-summary.html b/lib/javadoc/org/newdawn/slick/muffin/package-summary.html new file mode 100644 index 000000000..0a5266823 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/package-summary.html @@ -0,0 +1,192 @@ + + + + + + +org.newdawn.slick.muffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.muffin +

+Muffins for storing local data +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
MuffinA description of any class with the ability to store state locally
+  + +

+ + + + + + + + + + + + + +
+Class Summary
FileMuffinAn implementation of the muffin load/save mechanism based around using the + local file system.
WebstartMuffinA muffin load/save implementation based on using Webstart Muffins (a bit like cookies only + for webstart)
+  + +

+

+Package org.newdawn.slick.muffin Description +

+ +

+Muffins for storing local data +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/package-tree.html b/lib/javadoc/org/newdawn/slick/muffin/package-tree.html new file mode 100644 index 000000000..f723aaf78 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +org.newdawn.slick.muffin Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.muffin +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object +
+

+Interface Hierarchy +

+
    +
  • org.newdawn.slick.muffin.Muffin
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/muffin/package-use.html b/lib/javadoc/org/newdawn/slick/muffin/package-use.html new file mode 100644 index 000000000..2bc30467b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/muffin/package-use.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Package org.newdawn.slick.muffin (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.muffin

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.muffin
org.newdawn.slick.muffinMuffins for storing local data 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.muffin used by org.newdawn.slick.muffin
Muffin + +
+          A description of any class with the ability to store state locally
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/AiffData.html b/lib/javadoc/org/newdawn/slick/openal/AiffData.html new file mode 100644 index 000000000..6d8cde4b7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/AiffData.html @@ -0,0 +1,443 @@ + + + + + + +AiffData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class AiffData

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AiffData
+
+
+
+
public class AiffData
extends java.lang.Object
+ + +

+Utitlity class for loading wavefiles. +

+ +

+

+
Version:
+
$Revision: 2286 $
+
Author:
+
Brian Matzon
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+ java.nio.ByteBufferdata + +
+          actual AIFF data
+ intformat + +
+          format type of data
+ intsamplerate + +
+          sample rate of data
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AiffDatacreate(javax.sound.sampled.AudioInputStream ais) + +
+          Creates a AiffData container from the specified stream
+static AiffDatacreate(byte[] buffer) + +
+          Creates a AiffData container from the specified bytes
+static AiffDatacreate(java.nio.ByteBuffer buffer) + +
+          Creates a AiffData container from the specified ByetBuffer.
+static AiffDatacreate(java.io.InputStream is) + +
+          Creates a AiffData container from the specified inputstream
+static AiffDatacreate(java.lang.String path) + +
+          Creates a AiffData container from the specified in the classpath
+static AiffDatacreate(java.net.URL path) + +
+          Creates a AiffData container from the specified url
+ voiddispose() + +
+          Disposes the Aiffdata
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+data

+
+public final java.nio.ByteBuffer data
+
+
actual AIFF data +

+

+
+
+
+ +

+format

+
+public final int format
+
+
format type of data +

+

+
+
+
+ +

+samplerate

+
+public final int samplerate
+
+
sample rate of data +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+dispose

+
+public void dispose()
+
+
Disposes the Aiffdata +

+

+
+
+
+
+ +

+create

+
+public static AiffData create(java.net.URL path)
+
+
Creates a AiffData container from the specified url +

+

+
Parameters:
path - URL to file +
Returns:
AiffData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static AiffData create(java.lang.String path)
+
+
Creates a AiffData container from the specified in the classpath +

+

+
Parameters:
path - path to file (relative, and in classpath) +
Returns:
AiffData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static AiffData create(java.io.InputStream is)
+
+
Creates a AiffData container from the specified inputstream +

+

+
Parameters:
is - InputStream to read from +
Returns:
AiffData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static AiffData create(byte[] buffer)
+
+
Creates a AiffData container from the specified bytes +

+

+
Parameters:
buffer - array of bytes containing the complete Aiff file +
Returns:
AiffData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static AiffData create(java.nio.ByteBuffer buffer)
+
+
Creates a AiffData container from the specified ByetBuffer. + If the buffer is backed by an array, it will be used directly, + else the contents of the buffer will be copied using get(byte[]). +

+

+
Parameters:
buffer - ByteBuffer containing sound file +
Returns:
AiffData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static AiffData create(javax.sound.sampled.AudioInputStream ais)
+
+
Creates a AiffData container from the specified stream +

+

+
Parameters:
ais - AudioInputStream to read from +
Returns:
AiffData containing data, or null if a failure occured
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/Audio.html b/lib/javadoc/org/newdawn/slick/openal/Audio.html new file mode 100644 index 000000000..e32e0bb7c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/Audio.html @@ -0,0 +1,392 @@ + + + + + + +Audio (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Interface Audio

+
+
All Known Implementing Classes:
AudioImpl, DeferredSound, MODSound, NullAudio, StreamSound
+
+
+
+
public interface Audio
+ + +

+The description of of audio data loaded by the AudioLoader +

+ +

+

+
Author:
+
kevin, Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetBufferID() + +
+          Get the ID of the OpenAL buffer holding this data (if any).
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ booleanisPlaying() + +
+          Check if the sound is playing as sound fx
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop, + float x, + float y, + float z) + +
+          Play this sound as a sound effect
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidstop() + +
+          Stop the sound effect
+  +

+ + + + + + + + +
+Method Detail
+ +

+stop

+
+void stop()
+
+
Stop the sound effect +

+

+
+
+
+
+ +

+getBufferID

+
+int getBufferID()
+
+
Get the ID of the OpenAL buffer holding this data (if any). This method + is not valid with streaming resources. +

+

+ +
Returns:
The ID of the OpenAL buffer holding this data
+
+
+
+ +

+isPlaying

+
+boolean isPlaying()
+
+
Check if the sound is playing as sound fx +

+

+ +
Returns:
True if the sound is playing
+
+
+
+ +

+playAsSoundEffect

+
+int playAsSoundEffect(float pitch,
+                      float gain,
+                      boolean loop)
+
+
Play this sound as a sound effect +

+

+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
+
+
+
+ +

+playAsSoundEffect

+
+int playAsSoundEffect(float pitch,
+                      float gain,
+                      boolean loop,
+                      float x,
+                      float y,
+                      float z)
+
+
Play this sound as a sound effect +

+

+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop
x - The x position of the sound
y - The y position of the sound
z - The z position of the sound +
Returns:
The ID of the source playing the sound
+
+
+
+ +

+playAsMusic

+
+int playAsMusic(float pitch,
+                float gain,
+                boolean loop)
+
+
Play this sound as music +

+

+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
+
+
+
+ +

+setPosition

+
+boolean setPosition(float position)
+
+
Seeks to a position in the music. +

+

+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
+
+
+
+ +

+getPosition

+
+float getPosition()
+
+
Return the current playing position in the sound +

+

+ +
Returns:
The current position in seconds.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/AudioImpl.html b/lib/javadoc/org/newdawn/slick/openal/AudioImpl.html new file mode 100644 index 000000000..bb810208f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/AudioImpl.html @@ -0,0 +1,522 @@ + + + + + + +AudioImpl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class AudioImpl

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AudioImpl
+
+
+
All Implemented Interfaces:
Audio
+
+
+
Direct Known Subclasses:
DeferredSound, MODSound, StreamSound
+
+
+
+
public class AudioImpl
extends java.lang.Object
implements Audio
+ + +

+A sound that can be played through OpenAL +

+ +

+

+
Author:
+
Kevin Glass, Nathan Sweet
+
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected AudioImpl() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetBufferID() + +
+          Get the ID of the OpenAL buffer holding this data (if any).
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ booleanisPlaying() + +
+          Check if the sound is playing as sound fx
+static voidpauseMusic() + +
+          Pause the music currently being played
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop, + float x, + float y, + float z) + +
+          Play this sound as a sound effect
+static voidrestartMusic() + +
+          Restart the music currently being paused
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidstop() + +
+          Stop the sound effect
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AudioImpl

+
+protected AudioImpl()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getBufferID

+
+public int getBufferID()
+
+
Get the ID of the OpenAL buffer holding this data (if any). This method + is not valid with streaming resources. +

+

+
Specified by:
getBufferID in interface Audio
+
+
+ +
Returns:
The ID of the OpenAL buffer holding this data
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Audio
+
Stop the sound effect +

+

+
Specified by:
stop in interface Audio
+
+
+
See Also:
Audio.stop()
+
+
+
+ +

+isPlaying

+
+public boolean isPlaying()
+
+
Description copied from interface: Audio
+
Check if the sound is playing as sound fx +

+

+
Specified by:
isPlaying in interface Audio
+
+
+ +
Returns:
True if the sound is playing
See Also:
Audio.isPlaying()
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsSoundEffect(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop,
+                             float x,
+                             float y,
+                             float z)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop
x - The x position of the sound
y - The y position of the sound
z - The z position of the sound +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsSoundEffect(float, float, boolean, float, float, float)
+
+
+
+ +

+playAsMusic

+
+public int playAsMusic(float pitch,
+                       float gain,
+                       boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as music +

+

+
Specified by:
playAsMusic in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsMusic(float, float, boolean)
+
+
+
+ +

+pauseMusic

+
+public static void pauseMusic()
+
+
Pause the music currently being played +

+

+
+
+
+
+
+
+
+ +

+restartMusic

+
+public static void restartMusic()
+
+
Restart the music currently being paused +

+

+
+
+
+
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Description copied from interface: Audio
+
Seeks to a position in the music. +

+

+
Specified by:
setPosition in interface Audio
+
+
+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
See Also:
Audio.setPosition(float)
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
Description copied from interface: Audio
+
Return the current playing position in the sound +

+

+
Specified by:
getPosition in interface Audio
+
+
+ +
Returns:
The current position in seconds.
See Also:
Audio.getPosition()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/AudioLoader.html b/lib/javadoc/org/newdawn/slick/openal/AudioLoader.html new file mode 100644 index 000000000..94524460b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/AudioLoader.html @@ -0,0 +1,321 @@ + + + + + + +AudioLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class AudioLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AudioLoader
+
+
+
+
public class AudioLoader
extends java.lang.Object
+ + +

+A utility to provide a simple and rational interface to the + slick internals +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AudioLoader() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AudiogetAudio(java.lang.String format, + java.io.InputStream in) + +
+          Get audio data in a playable state by loading the complete audio into + memory.
+static AudiogetStreamingAudio(java.lang.String format, + java.net.URL url) + +
+          Get audio data in a playable state by setting up a stream that can be piped into + OpenAL - i.e.
+static voidupdate() + +
+          Allow the streaming system to update itself
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AudioLoader

+
+public AudioLoader()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getAudio

+
+public static Audio getAudio(java.lang.String format,
+                             java.io.InputStream in)
+                      throws java.io.IOException
+
+
Get audio data in a playable state by loading the complete audio into + memory. +

+

+
Parameters:
format - The format of the audio to be loaded (something like "XM" or "OGG")
in - The input stream from which to load the audio data +
Returns:
An object representing the audio data +
Throws: +
java.io.IOException - Indicates a failure to access the audio data
+
+
+
+ +

+getStreamingAudio

+
+public static Audio getStreamingAudio(java.lang.String format,
+                                      java.net.URL url)
+                               throws java.io.IOException
+
+
Get audio data in a playable state by setting up a stream that can be piped into + OpenAL - i.e. streaming audio +

+

+
Parameters:
format - The format of the audio to be loaded (something like "XM" or "OGG")
url - The location of the data that should be streamed +
Returns:
An object representing the audio data +
Throws: +
java.io.IOException - Indicates a failure to access the audio data
+
+
+
+ +

+update

+
+public static void update()
+
+
Allow the streaming system to update itself +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/DeferredSound.html b/lib/javadoc/org/newdawn/slick/openal/DeferredSound.html new file mode 100644 index 000000000..9a0b7daa7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/DeferredSound.html @@ -0,0 +1,561 @@ + + + + + + +DeferredSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class DeferredSound

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AudioImpl
+      extended by org.newdawn.slick.openal.DeferredSound
+
+
+
All Implemented Interfaces:
DeferredResource, Audio
+
+
+
+
public class DeferredSound
extends AudioImpl
implements DeferredResource
+ + +

+A sound implementation that can load the actual sound file at a later + point. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intAIF + +
+          Indicate a AIF to be loaded
+static intMOD + +
+          Indicate a MOD/XM to be loaded
+static intOGG + +
+          Indicate a OGG to be loaded
+static intWAV + +
+          Indicate a WAV to be loaded
+  + + + + + + + + + + +
+Constructor Summary
DeferredSound(java.lang.String ref, + java.io.InputStream in, + int type) + +
+          Create a new sound on request to load
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetDescription() + +
+          Get a description of the resource to be loaded
+ booleanisPlaying() + +
+          Check if the sound is playing as sound fx
+ voidload() + +
+          Load the actual resource
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop, + float x, + float y, + float z) + +
+          Play this sound as a sound effect
+ voidstop() + +
+          Stop the sound effect
+ + + + + + + +
Methods inherited from class org.newdawn.slick.openal.AudioImpl
getBufferID, getPosition, pauseMusic, restartMusic, setPosition
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+OGG

+
+public static final int OGG
+
+
Indicate a OGG to be loaded +

+

+
See Also:
Constant Field Values
+
+
+ +

+WAV

+
+public static final int WAV
+
+
Indicate a WAV to be loaded +

+

+
See Also:
Constant Field Values
+
+
+ +

+MOD

+
+public static final int MOD
+
+
Indicate a MOD/XM to be loaded +

+

+
See Also:
Constant Field Values
+
+
+ +

+AIF

+
+public static final int AIF
+
+
Indicate a AIF to be loaded +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+DeferredSound

+
+public DeferredSound(java.lang.String ref,
+                     java.io.InputStream in,
+                     int type)
+
+
Create a new sound on request to load +

+

+
Parameters:
ref - The location of the sound to load
type - The type of sound to load
in - The input stream to load from
+
+ + + + + + + + +
+Method Detail
+ +

+load

+
+public void load()
+          throws java.io.IOException
+
+
Description copied from interface: DeferredResource
+
Load the actual resource +

+

+
Specified by:
load in interface DeferredResource
+
+
+ +
Throws: +
java.io.IOException - Indicates a failure to load the resource
See Also:
DeferredResource.load()
+
+
+
+ +

+isPlaying

+
+public boolean isPlaying()
+
+
Description copied from interface: Audio
+
Check if the sound is playing as sound fx +

+

+
Specified by:
isPlaying in interface Audio
Overrides:
isPlaying in class AudioImpl
+
+
+ +
Returns:
True if the sound is playing
See Also:
AudioImpl.isPlaying()
+
+
+
+ +

+playAsMusic

+
+public int playAsMusic(float pitch,
+                       float gain,
+                       boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as music +

+

+
Specified by:
playAsMusic in interface Audio
Overrides:
playAsMusic in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsMusic(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
Overrides:
playAsSoundEffect in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsSoundEffect(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop,
+                             float x,
+                             float y,
+                             float z)
+
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
Overrides:
playAsSoundEffect in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop
x - The x position of the sound
y - The y position of the sound
z - The z position of the sound +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsSoundEffect(float, float, boolean, float, float, float)
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Audio
+
Stop the sound effect +

+

+
Specified by:
stop in interface Audio
Overrides:
stop in class AudioImpl
+
+
+
See Also:
AudioImpl.stop()
+
+
+
+ +

+getDescription

+
+public java.lang.String getDescription()
+
+
Description copied from interface: DeferredResource
+
Get a description of the resource to be loaded +

+

+
Specified by:
getDescription in interface DeferredResource
+
+
+ +
Returns:
The description of the resource to be loaded
See Also:
DeferredResource.getDescription()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/MODSound.html b/lib/javadoc/org/newdawn/slick/openal/MODSound.html new file mode 100644 index 000000000..6d31b05a8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/MODSound.html @@ -0,0 +1,421 @@ + + + + + + +MODSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class MODSound

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AudioImpl
+      extended by org.newdawn.slick.openal.MODSound
+
+
+
All Implemented Interfaces:
Audio
+
+
+
+
public class MODSound
extends AudioImpl
+ + +

+A sound as a MOD file - can only be played as music +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MODSound(SoundStore store, + java.io.InputStream in) + +
+          Create a mod sound to be played back
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ voidpoll() + +
+          Poll the streaming on the MOD
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidstop() + +
+          Stop the sound effect
+ + + + + + + +
Methods inherited from class org.newdawn.slick.openal.AudioImpl
getBufferID, isPlaying, pauseMusic, playAsSoundEffect, restartMusic
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MODSound

+
+public MODSound(SoundStore store,
+                java.io.InputStream in)
+         throws java.io.IOException
+
+
Create a mod sound to be played back +

+

+
Parameters:
store - The store this sound belongs to
in - The input stream to read the data from +
Throws: +
java.io.IOException - Indicates a failure to load a sound
+
+ + + + + + + + +
+Method Detail
+ +

+playAsMusic

+
+public int playAsMusic(float pitch,
+                       float gain,
+                       boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as music +

+

+
Specified by:
playAsMusic in interface Audio
Overrides:
playAsMusic in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsMusic(float, float, boolean)
+
+
+
+ +

+poll

+
+public void poll()
+
+
Poll the streaming on the MOD +

+

+
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
Overrides:
playAsSoundEffect in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsSoundEffect(float, float, boolean)
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Audio
+
Stop the sound effect +

+

+
Specified by:
stop in interface Audio
Overrides:
stop in class AudioImpl
+
+
+
See Also:
AudioImpl.stop()
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
Description copied from interface: Audio
+
Return the current playing position in the sound +

+

+
Specified by:
getPosition in interface Audio
Overrides:
getPosition in class AudioImpl
+
+
+ +
Returns:
The current position in seconds.
See Also:
AudioImpl.getPosition()
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Description copied from interface: Audio
+
Seeks to a position in the music. +

+

+
Specified by:
setPosition in interface Audio
Overrides:
setPosition in class AudioImpl
+
+
+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
See Also:
AudioImpl.setPosition(float)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/NullAudio.html b/lib/javadoc/org/newdawn/slick/openal/NullAudio.html new file mode 100644 index 000000000..d752cf0ee --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/NullAudio.html @@ -0,0 +1,471 @@ + + + + + + +NullAudio (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class NullAudio

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.NullAudio
+
+
+
All Implemented Interfaces:
Audio
+
+
+
+
public class NullAudio
extends java.lang.Object
implements Audio
+ + +

+A null implementation used to provide an object reference when sound + has failed. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NullAudio() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetBufferID() + +
+          Get the ID of the OpenAL buffer holding this data (if any).
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ booleanisPlaying() + +
+          Check if the sound is playing as sound fx
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop, + float x, + float y, + float z) + +
+          Play this sound as a sound effect
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidstop() + +
+          Stop the sound effect
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NullAudio

+
+public NullAudio()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getBufferID

+
+public int getBufferID()
+
+
Description copied from interface: Audio
+
Get the ID of the OpenAL buffer holding this data (if any). This method + is not valid with streaming resources. +

+

+
Specified by:
getBufferID in interface Audio
+
+
+ +
Returns:
The ID of the OpenAL buffer holding this data
See Also:
Audio.getBufferID()
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
Description copied from interface: Audio
+
Return the current playing position in the sound +

+

+
Specified by:
getPosition in interface Audio
+
+
+ +
Returns:
The current position in seconds.
See Also:
Audio.getPosition()
+
+
+
+ +

+isPlaying

+
+public boolean isPlaying()
+
+
Description copied from interface: Audio
+
Check if the sound is playing as sound fx +

+

+
Specified by:
isPlaying in interface Audio
+
+
+ +
Returns:
True if the sound is playing
See Also:
Audio.isPlaying()
+
+
+
+ +

+playAsMusic

+
+public int playAsMusic(float pitch,
+                       float gain,
+                       boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as music +

+

+
Specified by:
playAsMusic in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsMusic(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsSoundEffect(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop,
+                             float x,
+                             float y,
+                             float z)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop
x - The x position of the sound
y - The y position of the sound
z - The z position of the sound +
Returns:
The ID of the source playing the sound
See Also:
Audio.playAsSoundEffect(float, float, boolean, float, float, float)
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Description copied from interface: Audio
+
Seeks to a position in the music. +

+

+
Specified by:
setPosition in interface Audio
+
+
+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
See Also:
Audio.setPosition(float)
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Audio
+
Stop the sound effect +

+

+
Specified by:
stop in interface Audio
+
+
+
See Also:
Audio.stop()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/OggData.html b/lib/javadoc/org/newdawn/slick/openal/OggData.html new file mode 100644 index 000000000..d7d816d10 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/OggData.html @@ -0,0 +1,310 @@ + + + + + + +OggData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class OggData

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.OggData
+
+
+
+
public class OggData
extends java.lang.Object
+ + +

+Data describing the sounds in a OGG file +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+ intchannels + +
+          The number of channels in the sound file
+ java.nio.ByteBufferdata + +
+          The data that has been read from the OGG file
+ intrate + +
+          The sampling rate
+  + + + + + + + + + + +
+Constructor Summary
OggData() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+data

+
+public java.nio.ByteBuffer data
+
+
The data that has been read from the OGG file +

+

+
+
+
+ +

+rate

+
+public int rate
+
+
The sampling rate +

+

+
+
+
+ +

+channels

+
+public int channels
+
+
The number of channels in the sound file +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+OggData

+
+public OggData()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/OggDecoder.html b/lib/javadoc/org/newdawn/slick/openal/OggDecoder.html new file mode 100644 index 000000000..599503def --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/OggDecoder.html @@ -0,0 +1,268 @@ + + + + + + +OggDecoder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class OggDecoder

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.OggDecoder
+
+
+
+
public class OggDecoder
extends java.lang.Object
+ + +

+Decode an OGG file to PCM data +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OggDecoder() + +
+          Create a new OGG decoder
+  + + + + + + + + + + + +
+Method Summary
+ OggDatagetData(java.io.InputStream input) + +
+          Get the data out of an OGG file
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OggDecoder

+
+public OggDecoder()
+
+
Create a new OGG decoder +

+

+ + + + + + + + +
+Method Detail
+ +

+getData

+
+public OggData getData(java.io.InputStream input)
+                throws java.io.IOException
+
+
Get the data out of an OGG file +

+

+
Parameters:
input - The input stream from which to read the OGG file +
Returns:
The data describing the OGG thats been read +
Throws: +
java.io.IOException - Indicaites a failure to read the OGG file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/OggInputStream.html b/lib/javadoc/org/newdawn/slick/openal/OggInputStream.html new file mode 100644 index 000000000..5df633d49 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/OggInputStream.html @@ -0,0 +1,500 @@ + + + + + + +OggInputStream (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class OggInputStream

+
+java.lang.Object
+  extended by java.io.InputStream
+      extended by org.newdawn.slick.openal.OggInputStream
+
+
+
All Implemented Interfaces:
java.io.Closeable
+
+
+
+
public class OggInputStream
extends java.io.InputStream
+ + +

+An input stream that can extract ogg data. This class is a bit of an experiment with continuations + so uses thread where possibly not required. It's just a test to see if continuations make sense in + some cases. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OggInputStream(java.io.InputStream input) + +
+          Create a new stream to decode OGG data
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanatEnd() + +
+          Check if the stream is at the end, i.e.
+ intavailable() + +
+           
+ voidclose() + +
+          Close the stream
+ intgetChannels() + +
+          Get the number of channels used by the audio
+ intgetLength() + +
+          Get the number of bytes on the stream
+ intgetRate() + +
+          The play back rate described in the underling audio file
+ intread() + +
+          Read a single byte from the stream
+ intread(byte[] b) + +
+          Read up to data.length bytes from the stream
+ intread(byte[] b, + int off, + int len) + +
+          Read up to len bytes from the stream
+ + + + + + + +
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OggInputStream

+
+public OggInputStream(java.io.InputStream input)
+               throws java.io.IOException
+
+
Create a new stream to decode OGG data +

+

+
Parameters:
input - The input stream from which to read the OGG file +
Throws: +
java.io.IOException - Indicates a failure to read from the supplied stream
+
+ + + + + + + + +
+Method Detail
+ +

+getLength

+
+public int getLength()
+
+
Get the number of bytes on the stream +

+

+
+
+
+ +
Returns:
The number of the bytes on the stream
+
+
+
+ +

+getChannels

+
+public int getChannels()
+
+
Get the number of channels used by the audio +

+

+
+
+
+ +
Returns:
The number of channels used by the audio
See Also:
AudioInputStream.getChannels()
+
+
+
+ +

+getRate

+
+public int getRate()
+
+
The play back rate described in the underling audio file +

+

+
+
+
+ +
Returns:
The playback rate
See Also:
AudioInputStream.getRate()
+
+
+
+ +

+available

+
+public int available()
+
+
+
Overrides:
available in class java.io.InputStream
+
+
+
See Also:
InputStream.available()
+
+
+
+ +

+read

+
+public int read()
+         throws java.io.IOException
+
+
Read a single byte from the stream +

+

+
Specified by:
read in class java.io.InputStream
+
+
+ +
Returns:
The single byte read +
Throws: +
java.io.IOException - Indicates a failure to read the underlying media
See Also:
InputStream.read()
+
+
+
+ +

+atEnd

+
+public boolean atEnd()
+
+
Check if the stream is at the end, i.e. end of file or URL +

+

+
+
+
+ +
Returns:
True if the stream has no more data available
See Also:
AudioInputStream.atEnd()
+
+
+
+ +

+read

+
+public int read(byte[] b,
+                int off,
+                int len)
+         throws java.io.IOException
+
+
Read up to len bytes from the stream +

+

+
Overrides:
read in class java.io.InputStream
+
+
+
Parameters:
b - The array to read into
off - The offset into the array at which to start writing
len - The maximum number of bytes to read +
Returns:
The number of bytes read or -1 to indicate no more bytes are available +
Throws: +
java.io.IOException - Indicates a failure to read the underlying media
See Also:
InputStream.read(byte[], int, int)
+
+
+
+ +

+read

+
+public int read(byte[] b)
+         throws java.io.IOException
+
+
Read up to data.length bytes from the stream +

+

+
Overrides:
read in class java.io.InputStream
+
+
+
Parameters:
b - The array to read into +
Returns:
The number of bytes read or -1 to indicate no more bytes are available +
Throws: +
java.io.IOException - Indicates a failure to read the underlying media
See Also:
InputStream.read(byte[])
+
+
+
+ +

+close

+
+public void close()
+           throws java.io.IOException
+
+
Close the stream +

+

+
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
+
+
+ +
Throws: +
java.io.IOException - Indicates a failure to access the resource
See Also:
InputStream.close()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/OpenALStreamPlayer.html b/lib/javadoc/org/newdawn/slick/openal/OpenALStreamPlayer.html new file mode 100644 index 000000000..8b9cad1db --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/OpenALStreamPlayer.html @@ -0,0 +1,487 @@ + + + + + + +OpenALStreamPlayer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class OpenALStreamPlayer

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.OpenALStreamPlayer
+
+
+
+
public class OpenALStreamPlayer
extends java.lang.Object
+ + +

+A generic tool to work on a supplied stream, pulling out PCM data and buffered it to OpenAL + as required. +

+ +

+

+
Author:
+
Kevin Glass, Nathan Sweet , Rockstar play and setPosition cleanup
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intBUFFER_COUNT + +
+          The number of buffers to maintain
+  + + + + + + + + + + + + + +
+Constructor Summary
OpenALStreamPlayer(int source, + java.lang.String ref) + +
+          Create a new player to work on an audio stream
OpenALStreamPlayer(int source, + java.net.URL url) + +
+          Create a new player to work on an audio stream
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleandone() + +
+          Check if the playback is complete.
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ java.lang.StringgetSource() + +
+          Get the source of this stream
+ voidplay(boolean loop) + +
+          Start this stream playing
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidsetup(float pitch) + +
+          Setup the playback properties
+ booleanstream(int bufferId) + +
+          Stream some data from the audio stream to the buffer indicates by the ID
+ voidupdate() + +
+          Poll the bufferNames - check if we need to fill the bufferNames with another + section.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+BUFFER_COUNT

+
+public static final int BUFFER_COUNT
+
+
The number of buffers to maintain +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+OpenALStreamPlayer

+
+public OpenALStreamPlayer(int source,
+                          java.lang.String ref)
+
+
Create a new player to work on an audio stream +

+

+
Parameters:
source - The source on which we'll play the audio
ref - A reference to the audio file to stream
+
+
+ +

+OpenALStreamPlayer

+
+public OpenALStreamPlayer(int source,
+                          java.net.URL url)
+
+
Create a new player to work on an audio stream +

+

+
Parameters:
source - The source on which we'll play the audio
url - A reference to the audio file to stream
+
+ + + + + + + + +
+Method Detail
+ +

+getSource

+
+public java.lang.String getSource()
+
+
Get the source of this stream +

+

+ +
Returns:
The name of the source of string
+
+
+
+ +

+play

+
+public void play(boolean loop)
+          throws java.io.IOException
+
+
Start this stream playing +

+

+
Parameters:
loop - True if the stream should loop +
Throws: +
java.io.IOException - Indicates a failure to read from the stream
+
+
+
+ +

+setup

+
+public void setup(float pitch)
+
+
Setup the playback properties +

+

+
Parameters:
pitch - The pitch to play back at
+
+
+
+ +

+done

+
+public boolean done()
+
+
Check if the playback is complete. Note this will never + return true if we're looping +

+

+ +
Returns:
True if we're looping
+
+
+
+ +

+update

+
+public void update()
+
+
Poll the bufferNames - check if we need to fill the bufferNames with another + section. + + Most of the time this should be reasonably quick +

+

+
+
+
+
+ +

+stream

+
+public boolean stream(int bufferId)
+
+
Stream some data from the audio stream to the buffer indicates by the ID +

+

+
Parameters:
bufferId - The ID of the buffer to fill +
Returns:
True if another section was available
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Seeks to a position in the music. +

+

+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
Return the current playing position in the sound +

+

+ +
Returns:
The current position in seconds.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/SoundStore.html b/lib/javadoc/org/newdawn/slick/openal/SoundStore.html new file mode 100644 index 000000000..ee0be8f5f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/SoundStore.html @@ -0,0 +1,1154 @@ + + + + + + +SoundStore (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class SoundStore

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.SoundStore
+
+
+
+
public class SoundStore
extends java.lang.Object
+ + +

+Responsible for holding and playing the sounds used in the game. +

+ +

+

+
Author:
+
Kevin Glass, Rockstar setVolume cleanup
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclear() + +
+          Clear out the sound store contents
+ voiddisable() + +
+          Disable use of the Sound Store
+static SoundStoreget() + +
+          Get the single instance of this class
+ AudiogetAIF(java.io.InputStream in) + +
+          Get the Sound based on a specified AIF file
+ AudiogetAIF(java.lang.String ref) + +
+          Get the Sound based on a specified AIF file
+ AudiogetAIF(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified AIF file
+ floatgetCurrentMusicVolume() + +
+          Get the volume scalar of the music that is currently playing.
+ AudiogetMOD(java.io.InputStream in) + +
+          Get a MOD sound (mod/xm etc)
+ AudiogetMOD(java.lang.String ref) + +
+          Get a MOD sound (mod/xm etc)
+ AudiogetMOD(java.lang.String ref, + java.io.InputStream in) + +
+          Get a MOD sound (mod/xm etc)
+ floatgetMusicVolume() + +
+          Get the volume for music
+ AudiogetOgg(java.io.InputStream in) + +
+          Get the Sound based on a specified OGG file
+ AudiogetOgg(java.lang.String ref) + +
+          Get the Sound based on a specified OGG file
+ AudiogetOgg(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified OGG file
+ AudiogetOggStream(java.lang.String ref) + +
+          Get the Sound based on a specified OGG file
+ AudiogetOggStream(java.net.URL ref) + +
+          Get the Sound based on a specified OGG file
+ floatgetSoundVolume() + +
+          Get the volume for sounds
+ intgetSource(int index) + +
+          Get the ID of a given source
+ intgetSourceCount() + +
+          Retrieve the number of OpenAL sound sources that have been + determined at initialisation.
+ AudiogetWAV(java.io.InputStream in) + +
+          Get the Sound based on a specified WAV file
+ AudiogetWAV(java.lang.String ref) + +
+          Get the Sound based on a specified WAV file
+ AudiogetWAV(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified WAV file
+ voidinit() + +
+          Initialise the sound effects stored.
+ booleanisDeferredLoading() + +
+          Check if we're using deferred loading
+ booleanisMusicOn() + +
+          Check if music should currently be playing
+ booleanisMusicPlaying() + +
+          Check if the music is currently playing
+ booleanmusicOn() + +
+          Check if music is currently enabled
+ voidpauseLoop() + +
+          Pause the music loop that is currently playing
+ voidpoll(int delta) + +
+          Poll the streaming system
+ voidrestartLoop() + +
+          Restart the music loop that is currently paused
+ voidsetCurrentMusicVolume(float volume) + +
+          Set the music volume of the current playing music.
+ voidsetDeferredLoading(boolean deferred) + +
+          True if we should only record the request to load in the intention + of loading the sound later
+ voidsetMaxSources(int max) + +
+          Set the maximum number of concurrent sound effects that will be + attempted
+ voidsetMusicOn(boolean music) + +
+          Inidicate whether music should be playing
+ voidsetMusicPitch(float pitch) + +
+          Set the pitch at which the current music is being played
+ voidsetMusicVolume(float volume) + +
+          Set the music volume
+ voidsetSoundsOn(boolean sounds) + +
+          Indicate whether sound effects should be played
+ voidsetSoundVolume(float volume) + +
+          Set the sound volume
+ booleansoundsOn() + +
+          Check if sound effects are currently enabled
+ booleansoundWorks() + +
+          Check if sound works at all
+ voidstopSoundEffect(int id) + +
+          Stop a playing sound identified by the ID returned from playing.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+clear

+
+public void clear()
+
+
Clear out the sound store contents +

+

+
+
+
+
+ +

+disable

+
+public void disable()
+
+
Disable use of the Sound Store +

+

+
+
+
+
+ +

+setDeferredLoading

+
+public void setDeferredLoading(boolean deferred)
+
+
True if we should only record the request to load in the intention + of loading the sound later +

+

+
Parameters:
deferred - True if the we should load a token
+
+
+
+ +

+isDeferredLoading

+
+public boolean isDeferredLoading()
+
+
Check if we're using deferred loading +

+

+ +
Returns:
True if we're loading deferred sounds
+
+
+
+ +

+setMusicOn

+
+public void setMusicOn(boolean music)
+
+
Inidicate whether music should be playing +

+

+
Parameters:
music - True if music should be played
+
+
+
+ +

+isMusicOn

+
+public boolean isMusicOn()
+
+
Check if music should currently be playing +

+

+ +
Returns:
True if music is currently playing
+
+
+
+ +

+setMusicVolume

+
+public void setMusicVolume(float volume)
+
+
Set the music volume +

+

+
Parameters:
volume - The volume for music
+
+
+
+ +

+getCurrentMusicVolume

+
+public float getCurrentMusicVolume()
+
+
Get the volume scalar of the music that is currently playing. +

+

+ +
Returns:
The volume of the music currently playing
+
+
+
+ +

+setCurrentMusicVolume

+
+public void setCurrentMusicVolume(float volume)
+
+
Set the music volume of the current playing music. Does NOT affect the global volume +

+

+
Parameters:
volume - The volume for the current playing music
+
+
+
+ +

+setSoundVolume

+
+public void setSoundVolume(float volume)
+
+
Set the sound volume +

+

+
Parameters:
volume - The volume for sound fx
+
+
+
+ +

+soundWorks

+
+public boolean soundWorks()
+
+
Check if sound works at all +

+

+ +
Returns:
True if sound works at all
+
+
+
+ +

+musicOn

+
+public boolean musicOn()
+
+
Check if music is currently enabled +

+

+ +
Returns:
True if music is currently enabled
+
+
+
+ +

+getSoundVolume

+
+public float getSoundVolume()
+
+
Get the volume for sounds +

+

+ +
Returns:
The volume for sounds
+
+
+
+ +

+getMusicVolume

+
+public float getMusicVolume()
+
+
Get the volume for music +

+

+ +
Returns:
The volume for music
+
+
+
+ +

+getSource

+
+public int getSource(int index)
+
+
Get the ID of a given source +

+

+
Parameters:
index - The ID of a given source +
Returns:
The ID of the given source
+
+
+
+ +

+setSoundsOn

+
+public void setSoundsOn(boolean sounds)
+
+
Indicate whether sound effects should be played +

+

+
Parameters:
sounds - True if sound effects should be played
+
+
+
+ +

+soundsOn

+
+public boolean soundsOn()
+
+
Check if sound effects are currently enabled +

+

+ +
Returns:
True if sound effects are currently enabled
+
+
+
+ +

+setMaxSources

+
+public void setMaxSources(int max)
+
+
Set the maximum number of concurrent sound effects that will be + attempted +

+

+
Parameters:
max - The maximum number of sound effects/music to mix
+
+
+
+ +

+init

+
+public void init()
+
+
Initialise the sound effects stored. This must be called + before anything else will work +

+

+
+
+
+
+ +

+setMusicPitch

+
+public void setMusicPitch(float pitch)
+
+
Set the pitch at which the current music is being played +

+

+
Parameters:
pitch - The pitch at which the current music is being played
+
+
+
+ +

+pauseLoop

+
+public void pauseLoop()
+
+
Pause the music loop that is currently playing +

+

+
+
+
+
+ +

+restartLoop

+
+public void restartLoop()
+
+
Restart the music loop that is currently paused +

+

+
+
+
+
+ +

+getMOD

+
+public Audio getMOD(java.lang.String ref)
+             throws java.io.IOException
+
+
Get a MOD sound (mod/xm etc) +

+

+
Parameters:
ref - The refernece to the mod to load +
Returns:
The sound for play back +
Throws: +
java.io.IOException - Indicates a failure to read the data
+
+
+
+ +

+getMOD

+
+public Audio getMOD(java.io.InputStream in)
+             throws java.io.IOException
+
+
Get a MOD sound (mod/xm etc) +

+

+
Parameters:
in - The stream to the MOD to load +
Returns:
The sound for play back +
Throws: +
java.io.IOException - Indicates a failure to read the data
+
+
+
+ +

+getMOD

+
+public Audio getMOD(java.lang.String ref,
+                    java.io.InputStream in)
+             throws java.io.IOException
+
+
Get a MOD sound (mod/xm etc) +

+

+
Parameters:
ref - The stream to the MOD to load
in - The stream to the MOD to load +
Returns:
The sound for play back +
Throws: +
java.io.IOException - Indicates a failure to read the data
+
+
+
+ +

+getAIF

+
+public Audio getAIF(java.lang.String ref)
+             throws java.io.IOException
+
+
Get the Sound based on a specified AIF file +

+

+
Parameters:
ref - The reference to the AIF file in the classpath +
Returns:
The Sound read from the AIF file +
Throws: +
java.io.IOException - Indicates a failure to load the AIF
+
+
+
+ +

+getAIF

+
+public Audio getAIF(java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified AIF file +

+

+
Parameters:
in - The stream to the MOD to load +
Returns:
The Sound read from the AIF file +
Throws: +
java.io.IOException - Indicates a failure to load the AIF
+
+
+
+ +

+getAIF

+
+public Audio getAIF(java.lang.String ref,
+                    java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified AIF file +

+

+
Parameters:
ref - The reference to the AIF file in the classpath
in - The stream to the AIF to load +
Returns:
The Sound read from the AIF file +
Throws: +
java.io.IOException - Indicates a failure to load the AIF
+
+
+
+ +

+getWAV

+
+public Audio getWAV(java.lang.String ref)
+             throws java.io.IOException
+
+
Get the Sound based on a specified WAV file +

+

+
Parameters:
ref - The reference to the WAV file in the classpath +
Returns:
The Sound read from the WAV file +
Throws: +
java.io.IOException - Indicates a failure to load the WAV
+
+
+
+ +

+getWAV

+
+public Audio getWAV(java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified WAV file +

+

+
Parameters:
in - The stream to the WAV to load +
Returns:
The Sound read from the WAV file +
Throws: +
java.io.IOException - Indicates a failure to load the WAV
+
+
+
+ +

+getWAV

+
+public Audio getWAV(java.lang.String ref,
+                    java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified WAV file +

+

+
Parameters:
ref - The reference to the WAV file in the classpath
in - The stream to the WAV to load +
Returns:
The Sound read from the WAV file +
Throws: +
java.io.IOException - Indicates a failure to load the WAV
+
+
+
+ +

+getOggStream

+
+public Audio getOggStream(java.lang.String ref)
+                   throws java.io.IOException
+
+
Get the Sound based on a specified OGG file +

+

+
Parameters:
ref - The reference to the OGG file in the classpath +
Returns:
The Sound read from the OGG file +
Throws: +
java.io.IOException - Indicates a failure to load the OGG
+
+
+
+ +

+getOggStream

+
+public Audio getOggStream(java.net.URL ref)
+                   throws java.io.IOException
+
+
Get the Sound based on a specified OGG file +

+

+
Parameters:
ref - The reference to the OGG file in the classpath +
Returns:
The Sound read from the OGG file +
Throws: +
java.io.IOException - Indicates a failure to load the OGG
+
+
+
+ +

+getOgg

+
+public Audio getOgg(java.lang.String ref)
+             throws java.io.IOException
+
+
Get the Sound based on a specified OGG file +

+

+
Parameters:
ref - The reference to the OGG file in the classpath +
Returns:
The Sound read from the OGG file +
Throws: +
java.io.IOException - Indicates a failure to load the OGG
+
+
+
+ +

+getOgg

+
+public Audio getOgg(java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified OGG file +

+

+
Parameters:
in - The stream to the OGG to load +
Returns:
The Sound read from the OGG file +
Throws: +
java.io.IOException - Indicates a failure to load the OGG
+
+
+
+ +

+getOgg

+
+public Audio getOgg(java.lang.String ref,
+                    java.io.InputStream in)
+             throws java.io.IOException
+
+
Get the Sound based on a specified OGG file +

+

+
Parameters:
ref - The reference to the OGG file in the classpath
in - The stream to the OGG to load +
Returns:
The Sound read from the OGG file +
Throws: +
java.io.IOException - Indicates a failure to load the OGG
+
+
+
+ +

+poll

+
+public void poll(int delta)
+
+
Poll the streaming system +

+

+
Parameters:
delta - The amount of time passed since last poll (in milliseconds)
+
+
+
+ +

+isMusicPlaying

+
+public boolean isMusicPlaying()
+
+
Check if the music is currently playing +

+

+ +
Returns:
True if the music is playing
+
+
+
+ +

+get

+
+public static SoundStore get()
+
+
Get the single instance of this class +

+

+ +
Returns:
The single instnace of this class
+
+
+
+ +

+stopSoundEffect

+
+public void stopSoundEffect(int id)
+
+
Stop a playing sound identified by the ID returned from playing. This utility method + should only be used when needing to stop sound effects that may have been played + more than once and need to be explicitly stopped. +

+

+
Parameters:
id - The ID of the underlying OpenAL source as returned from playAsSoundEffect
+
+
+
+ +

+getSourceCount

+
+public int getSourceCount()
+
+
Retrieve the number of OpenAL sound sources that have been + determined at initialisation. +

+

+ +
Returns:
The number of sources available
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/StreamSound.html b/lib/javadoc/org/newdawn/slick/openal/StreamSound.html new file mode 100644 index 000000000..ac8be244c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/StreamSound.html @@ -0,0 +1,458 @@ + + + + + + +StreamSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class StreamSound

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.AudioImpl
+      extended by org.newdawn.slick.openal.StreamSound
+
+
+
All Implemented Interfaces:
Audio
+
+
+
+
public class StreamSound
extends AudioImpl
+ + +

+A sound implementation wrapped round a player which reads (and potentially) rereads + a stream. This supplies streaming audio +

+ +

+

+
Author:
+
kevin, Nathan Sweet , Rockstar playAsMusic cleanup
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamSound(OpenALStreamPlayer player) + +
+          Create a new sound wrapped round a stream
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetPosition() + +
+          Return the current playing position in the sound
+ booleanisPlaying() + +
+          Check if the sound is playing as sound fx
+ intplayAsMusic(float pitch, + float gain, + boolean loop) + +
+          Play this sound as music
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop) + +
+          Play this sound as a sound effect
+ intplayAsSoundEffect(float pitch, + float gain, + boolean loop, + float x, + float y, + float z) + +
+          Play this sound as a sound effect
+ booleansetPosition(float position) + +
+          Seeks to a position in the music.
+ voidstop() + +
+          Stop the sound effect
+ + + + + + + +
Methods inherited from class org.newdawn.slick.openal.AudioImpl
getBufferID, pauseMusic, restartMusic
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamSound

+
+public StreamSound(OpenALStreamPlayer player)
+
+
Create a new sound wrapped round a stream +

+

+
Parameters:
player - The stream player we'll use to access the stream
+
+ + + + + + + + +
+Method Detail
+ +

+isPlaying

+
+public boolean isPlaying()
+
+
Description copied from interface: Audio
+
Check if the sound is playing as sound fx +

+

+
Specified by:
isPlaying in interface Audio
Overrides:
isPlaying in class AudioImpl
+
+
+ +
Returns:
True if the sound is playing
See Also:
AudioImpl.isPlaying()
+
+
+
+ +

+playAsMusic

+
+public int playAsMusic(float pitch,
+                       float gain,
+                       boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as music +

+

+
Specified by:
playAsMusic in interface Audio
Overrides:
playAsMusic in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsMusic(float, float, boolean)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop,
+                             float x,
+                             float y,
+                             float z)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
Overrides:
playAsSoundEffect in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop
x - The x position of the sound
y - The y position of the sound
z - The z position of the sound +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsSoundEffect(float, float, boolean, float, float, float)
+
+
+
+ +

+playAsSoundEffect

+
+public int playAsSoundEffect(float pitch,
+                             float gain,
+                             boolean loop)
+
+
Description copied from interface: Audio
+
Play this sound as a sound effect +

+

+
Specified by:
playAsSoundEffect in interface Audio
Overrides:
playAsSoundEffect in class AudioImpl
+
+
+
Parameters:
pitch - The pitch of the play back
gain - The gain of the play back
loop - True if we should loop +
Returns:
The ID of the source playing the sound
See Also:
AudioImpl.playAsSoundEffect(float, float, boolean)
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Audio
+
Stop the sound effect +

+

+
Specified by:
stop in interface Audio
Overrides:
stop in class AudioImpl
+
+
+
See Also:
AudioImpl.stop()
+
+
+
+ +

+setPosition

+
+public boolean setPosition(float position)
+
+
Description copied from interface: Audio
+
Seeks to a position in the music. +

+

+
Specified by:
setPosition in interface Audio
Overrides:
setPosition in class AudioImpl
+
+
+
Parameters:
position - Position in seconds. +
Returns:
True if the setting of the position was successful
See Also:
AudioImpl.setPosition(float)
+
+
+
+ +

+getPosition

+
+public float getPosition()
+
+
Description copied from interface: Audio
+
Return the current playing position in the sound +

+

+
Specified by:
getPosition in interface Audio
Overrides:
getPosition in class AudioImpl
+
+
+ +
Returns:
The current position in seconds.
See Also:
AudioImpl.getPosition()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/WaveData.html b/lib/javadoc/org/newdawn/slick/openal/WaveData.html new file mode 100644 index 000000000..b6f44845d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/WaveData.html @@ -0,0 +1,444 @@ + + + + + + +WaveData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.openal +
+Class WaveData

+
+java.lang.Object
+  extended by org.newdawn.slick.openal.WaveData
+
+
+
+
public class WaveData
extends java.lang.Object
+ + +

+Utitlity class for loading wavefiles. +

+ +

+

+
Version:
+
$Revision: 2286 $ + $Id: WaveData.java 2286 2006-03-23 19:32:21Z matzon $
+
Author:
+
Brian Matzon
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+ java.nio.ByteBufferdata + +
+          actual wave data
+ intformat + +
+          format type of data
+ intsamplerate + +
+          sample rate of data
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static WaveDatacreate(javax.sound.sampled.AudioInputStream ais) + +
+          Creates a WaveData container from the specified stream
+static WaveDatacreate(byte[] buffer) + +
+          Creates a WaveData container from the specified bytes
+static WaveDatacreate(java.nio.ByteBuffer buffer) + +
+          Creates a WaveData container from the specified ByetBuffer.
+static WaveDatacreate(java.io.InputStream is) + +
+          Creates a WaveData container from the specified inputstream
+static WaveDatacreate(java.lang.String path) + +
+          Creates a WaveData container from the specified in the classpath
+static WaveDatacreate(java.net.URL path) + +
+          Creates a WaveData container from the specified url
+ voiddispose() + +
+          Disposes the wavedata
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+data

+
+public final java.nio.ByteBuffer data
+
+
actual wave data +

+

+
+
+
+ +

+format

+
+public final int format
+
+
format type of data +

+

+
+
+
+ +

+samplerate

+
+public final int samplerate
+
+
sample rate of data +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+dispose

+
+public void dispose()
+
+
Disposes the wavedata +

+

+
+
+
+
+ +

+create

+
+public static WaveData create(java.net.URL path)
+
+
Creates a WaveData container from the specified url +

+

+
Parameters:
path - URL to file +
Returns:
WaveData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static WaveData create(java.lang.String path)
+
+
Creates a WaveData container from the specified in the classpath +

+

+
Parameters:
path - path to file (relative, and in classpath) +
Returns:
WaveData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static WaveData create(java.io.InputStream is)
+
+
Creates a WaveData container from the specified inputstream +

+

+
Parameters:
is - InputStream to read from +
Returns:
WaveData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static WaveData create(byte[] buffer)
+
+
Creates a WaveData container from the specified bytes +

+

+
Parameters:
buffer - array of bytes containing the complete wave file +
Returns:
WaveData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static WaveData create(java.nio.ByteBuffer buffer)
+
+
Creates a WaveData container from the specified ByetBuffer. + If the buffer is backed by an array, it will be used directly, + else the contents of the buffer will be copied using get(byte[]). +

+

+
Parameters:
buffer - ByteBuffer containing sound file +
Returns:
WaveData containing data, or null if a failure occured
+
+
+
+ +

+create

+
+public static WaveData create(javax.sound.sampled.AudioInputStream ais)
+
+
Creates a WaveData container from the specified stream +

+

+
Parameters:
ais - AudioInputStream to read from +
Returns:
WaveData containing data, or null if a failure occured
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/AiffData.html b/lib/javadoc/org/newdawn/slick/openal/class-use/AiffData.html new file mode 100644 index 000000000..f953a3a31 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/AiffData.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.AiffData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.AiffData

+
+ + + + + + + + + +
+Packages that use AiffData
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of AiffData in org.newdawn.slick.openal
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.openal that return AiffData
+static AiffDataAiffData.create(javax.sound.sampled.AudioInputStream ais) + +
+          Creates a AiffData container from the specified stream
+static AiffDataAiffData.create(byte[] buffer) + +
+          Creates a AiffData container from the specified bytes
+static AiffDataAiffData.create(java.nio.ByteBuffer buffer) + +
+          Creates a AiffData container from the specified ByetBuffer.
+static AiffDataAiffData.create(java.io.InputStream is) + +
+          Creates a AiffData container from the specified inputstream
+static AiffDataAiffData.create(java.lang.String path) + +
+          Creates a AiffData container from the specified in the classpath
+static AiffDataAiffData.create(java.net.URL path) + +
+          Creates a AiffData container from the specified url
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/Audio.html b/lib/javadoc/org/newdawn/slick/openal/class-use/Audio.html new file mode 100644 index 000000000..fca22365e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/Audio.html @@ -0,0 +1,359 @@ + + + + + + +Uses of Interface org.newdawn.slick.openal.Audio (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.openal.Audio

+
+ + + + + + + + + +
+Packages that use Audio
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of Audio in org.newdawn.slick.openal
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.openal that implement Audio
+ classAudioImpl + +
+          A sound that can be played through OpenAL
+ classDeferredSound + +
+          A sound implementation that can load the actual sound file at a later + point.
+ classMODSound + +
+          A sound as a MOD file - can only be played as music
+ classNullAudio + +
+          A null implementation used to provide an object reference when sound + has failed.
+ classStreamSound + +
+          A sound implementation wrapped round a player which reads (and potentially) rereads + a stream.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.openal that return Audio
+ AudioSoundStore.getAIF(java.io.InputStream in) + +
+          Get the Sound based on a specified AIF file
+ AudioSoundStore.getAIF(java.lang.String ref) + +
+          Get the Sound based on a specified AIF file
+ AudioSoundStore.getAIF(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified AIF file
+static AudioAudioLoader.getAudio(java.lang.String format, + java.io.InputStream in) + +
+          Get audio data in a playable state by loading the complete audio into + memory.
+ AudioSoundStore.getMOD(java.io.InputStream in) + +
+          Get a MOD sound (mod/xm etc)
+ AudioSoundStore.getMOD(java.lang.String ref) + +
+          Get a MOD sound (mod/xm etc)
+ AudioSoundStore.getMOD(java.lang.String ref, + java.io.InputStream in) + +
+          Get a MOD sound (mod/xm etc)
+ AudioSoundStore.getOgg(java.io.InputStream in) + +
+          Get the Sound based on a specified OGG file
+ AudioSoundStore.getOgg(java.lang.String ref) + +
+          Get the Sound based on a specified OGG file
+ AudioSoundStore.getOgg(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified OGG file
+ AudioSoundStore.getOggStream(java.lang.String ref) + +
+          Get the Sound based on a specified OGG file
+ AudioSoundStore.getOggStream(java.net.URL ref) + +
+          Get the Sound based on a specified OGG file
+static AudioAudioLoader.getStreamingAudio(java.lang.String format, + java.net.URL url) + +
+          Get audio data in a playable state by setting up a stream that can be piped into + OpenAL - i.e.
+ AudioSoundStore.getWAV(java.io.InputStream in) + +
+          Get the Sound based on a specified WAV file
+ AudioSoundStore.getWAV(java.lang.String ref) + +
+          Get the Sound based on a specified WAV file
+ AudioSoundStore.getWAV(java.lang.String ref, + java.io.InputStream in) + +
+          Get the Sound based on a specified WAV file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/AudioImpl.html b/lib/javadoc/org/newdawn/slick/openal/class-use/AudioImpl.html new file mode 100644 index 000000000..bf54f5f93 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/AudioImpl.html @@ -0,0 +1,198 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.AudioImpl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.AudioImpl

+
+ + + + + + + + + +
+Packages that use AudioImpl
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of AudioImpl in org.newdawn.slick.openal
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AudioImpl in org.newdawn.slick.openal
+ classDeferredSound + +
+          A sound implementation that can load the actual sound file at a later + point.
+ classMODSound + +
+          A sound as a MOD file - can only be played as music
+ classStreamSound + +
+          A sound implementation wrapped round a player which reads (and potentially) rereads + a stream.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/AudioLoader.html b/lib/javadoc/org/newdawn/slick/openal/class-use/AudioLoader.html new file mode 100644 index 000000000..33b596005 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/AudioLoader.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.AudioLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.AudioLoader

+
+No usage of org.newdawn.slick.openal.AudioLoader +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/DeferredSound.html b/lib/javadoc/org/newdawn/slick/openal/class-use/DeferredSound.html new file mode 100644 index 000000000..49d85e2da --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/DeferredSound.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.DeferredSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.DeferredSound

+
+No usage of org.newdawn.slick.openal.DeferredSound +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/MODSound.html b/lib/javadoc/org/newdawn/slick/openal/class-use/MODSound.html new file mode 100644 index 000000000..496d89bb5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/MODSound.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.MODSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.MODSound

+
+No usage of org.newdawn.slick.openal.MODSound +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/NullAudio.html b/lib/javadoc/org/newdawn/slick/openal/class-use/NullAudio.html new file mode 100644 index 000000000..a9131d69a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/NullAudio.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.NullAudio (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.NullAudio

+
+No usage of org.newdawn.slick.openal.NullAudio +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/OggData.html b/lib/javadoc/org/newdawn/slick/openal/class-use/OggData.html new file mode 100644 index 000000000..5db22dcc1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/OggData.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.OggData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.OggData

+
+ + + + + + + + + +
+Packages that use OggData
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of OggData in org.newdawn.slick.openal
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.openal that return OggData
+ OggDataOggDecoder.getData(java.io.InputStream input) + +
+          Get the data out of an OGG file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/OggDecoder.html b/lib/javadoc/org/newdawn/slick/openal/class-use/OggDecoder.html new file mode 100644 index 000000000..f7659d53a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/OggDecoder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.OggDecoder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.OggDecoder

+
+No usage of org.newdawn.slick.openal.OggDecoder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/OggInputStream.html b/lib/javadoc/org/newdawn/slick/openal/class-use/OggInputStream.html new file mode 100644 index 000000000..83454c327 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/OggInputStream.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.OggInputStream (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.OggInputStream

+
+No usage of org.newdawn.slick.openal.OggInputStream +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/OpenALStreamPlayer.html b/lib/javadoc/org/newdawn/slick/openal/class-use/OpenALStreamPlayer.html new file mode 100644 index 000000000..847f03605 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/OpenALStreamPlayer.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.OpenALStreamPlayer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.OpenALStreamPlayer

+
+ + + + + + + + + +
+Packages that use OpenALStreamPlayer
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of OpenALStreamPlayer in org.newdawn.slick.openal
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.openal with parameters of type OpenALStreamPlayer
StreamSound(OpenALStreamPlayer player) + +
+          Create a new sound wrapped round a stream
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/SoundStore.html b/lib/javadoc/org/newdawn/slick/openal/class-use/SoundStore.html new file mode 100644 index 000000000..cb3e23370 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/SoundStore.html @@ -0,0 +1,195 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.SoundStore (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.SoundStore

+
+ + + + + + + + + +
+Packages that use SoundStore
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of SoundStore in org.newdawn.slick.openal
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.openal that return SoundStore
+static SoundStoreSoundStore.get() + +
+          Get the single instance of this class
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.openal with parameters of type SoundStore
MODSound(SoundStore store, + java.io.InputStream in) + +
+          Create a mod sound to be played back
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/StreamSound.html b/lib/javadoc/org/newdawn/slick/openal/class-use/StreamSound.html new file mode 100644 index 000000000..1509f2f2f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/StreamSound.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.StreamSound (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.StreamSound

+
+No usage of org.newdawn.slick.openal.StreamSound +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/class-use/WaveData.html b/lib/javadoc/org/newdawn/slick/openal/class-use/WaveData.html new file mode 100644 index 000000000..181b0f3c8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/class-use/WaveData.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Class org.newdawn.slick.openal.WaveData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.openal.WaveData

+
+ + + + + + + + + +
+Packages that use WaveData
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + +
+Uses of WaveData in org.newdawn.slick.openal
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.openal that return WaveData
+static WaveDataWaveData.create(javax.sound.sampled.AudioInputStream ais) + +
+          Creates a WaveData container from the specified stream
+static WaveDataWaveData.create(byte[] buffer) + +
+          Creates a WaveData container from the specified bytes
+static WaveDataWaveData.create(java.nio.ByteBuffer buffer) + +
+          Creates a WaveData container from the specified ByetBuffer.
+static WaveDataWaveData.create(java.io.InputStream is) + +
+          Creates a WaveData container from the specified inputstream
+static WaveDataWaveData.create(java.lang.String path) + +
+          Creates a WaveData container from the specified in the classpath
+static WaveDataWaveData.create(java.net.URL path) + +
+          Creates a WaveData container from the specified url
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/package-frame.html b/lib/javadoc/org/newdawn/slick/openal/package-frame.html new file mode 100644 index 000000000..cfca7875d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/package-frame.html @@ -0,0 +1,67 @@ + + + + + + +org.newdawn.slick.openal (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.openal + + + + +
+Interfaces  + +
+Audio
+ + + + + + +
+Classes  + +
+AiffData +
+AudioImpl +
+AudioLoader +
+DeferredSound +
+MODSound +
+NullAudio +
+OggData +
+OggDecoder +
+OggInputStream +
+OpenALStreamPlayer +
+SoundStore +
+StreamSound +
+WaveData
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/openal/package-summary.html b/lib/javadoc/org/newdawn/slick/openal/package-summary.html new file mode 100644 index 000000000..8c84f3c3d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/package-summary.html @@ -0,0 +1,240 @@ + + + + + + +org.newdawn.slick.openal (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.openal +

+This package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
AudioThe description of of audio data loaded by the AudioLoader
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AiffDataUtitlity class for loading wavefiles.
AudioImplA sound that can be played through OpenAL
AudioLoaderA utility to provide a simple and rational interface to the + slick internals
DeferredSoundA sound implementation that can load the actual sound file at a later + point.
MODSoundA sound as a MOD file - can only be played as music
NullAudioA null implementation used to provide an object reference when sound + has failed.
OggDataData describing the sounds in a OGG file
OggDecoderDecode an OGG file to PCM data
OggInputStreamAn input stream that can extract ogg data.
OpenALStreamPlayerA generic tool to work on a supplied stream, pulling out PCM data and buffered it to OpenAL + as required.
SoundStoreResponsible for holding and playing the sounds used in the game.
StreamSoundA sound implementation wrapped round a player which reads (and potentially) rereads + a stream.
WaveDataUtitlity class for loading wavefiles.
+  + +

+

+Package org.newdawn.slick.openal Description +

+ +

+This package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. As +a user you shouldn't need to access anything here directly. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/package-tree.html b/lib/javadoc/org/newdawn/slick/openal/package-tree.html new file mode 100644 index 000000000..d093ca3d7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/package-tree.html @@ -0,0 +1,166 @@ + + + + + + +org.newdawn.slick.openal Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.openal +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • org.newdawn.slick.openal.Audio
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/openal/package-use.html b/lib/javadoc/org/newdawn/slick/openal/package-use.html new file mode 100644 index 000000000..a674946d2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/openal/package-use.html @@ -0,0 +1,207 @@ + + + + + + +Uses of Package org.newdawn.slick.openal (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.openal

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.openal
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.openal used by org.newdawn.slick.openal
AiffData + +
+          Utitlity class for loading wavefiles.
Audio + +
+          The description of of audio data loaded by the AudioLoader
AudioImpl + +
+          A sound that can be played through OpenAL
OggData + +
+          Data describing the sounds in a OGG file
OpenALStreamPlayer + +
+          A generic tool to work on a supplied stream, pulling out PCM data and buffered it to OpenAL + as required.
SoundStore + +
+          Responsible for holding and playing the sounds used in the game.
WaveData + +
+          Utitlity class for loading wavefiles.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/CompositeIOException.html b/lib/javadoc/org/newdawn/slick/opengl/CompositeIOException.html new file mode 100644 index 000000000..3d9998b45 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/CompositeIOException.html @@ -0,0 +1,301 @@ + + + + + + +CompositeIOException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class CompositeIOException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.io.IOException
+              extended by org.newdawn.slick.opengl.CompositeIOException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class CompositeIOException
extends java.io.IOException
+ + +

+A collection of IOException that failed image data loading +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CompositeIOException() + +
+          Create a new composite IO Exception
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddException(java.lang.Exception e) + +
+          Add an exception that caused this exceptino
+ java.lang.StringgetMessage() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompositeIOException

+
+public CompositeIOException()
+
+
Create a new composite IO Exception +

+

+ + + + + + + + +
+Method Detail
+ +

+addException

+
+public void addException(java.lang.Exception e)
+
+
Add an exception that caused this exceptino +

+

+
Parameters:
e - The exception
+
+
+
+ +

+getMessage

+
+public java.lang.String getMessage()
+
+
+
Overrides:
getMessage in class java.lang.Throwable
+
+
+
See Also:
Throwable.getMessage()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/CompositeImageData.html b/lib/javadoc/org/newdawn/slick/opengl/CompositeImageData.html new file mode 100644 index 000000000..904fb81af --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/CompositeImageData.html @@ -0,0 +1,549 @@ + + + + + + +CompositeImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class CompositeImageData

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.CompositeImageData
+
+
+
All Implemented Interfaces:
ImageData, LoadableImageData
+
+
+
+
public class CompositeImageData
extends java.lang.Object
implements LoadableImageData
+ + +

+A composite data source that checks multiple loaders in order of + preference +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CompositeImageData() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(LoadableImageData data) + +
+          Add a potentional source of image data
+ voidconfigureEdging(boolean edging) + +
+          Configure the edging that can be used to make texture edges + loop more cleanly
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ java.nio.ByteBufferloadImage(java.io.InputStream fis) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream is, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + int[] transparent) + +
+          Load a image from the specified stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompositeImageData

+
+public CompositeImageData()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(LoadableImageData data)
+
+
Add a potentional source of image data +

+

+
+
+
+
Parameters:
data - The data source to try
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream)
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, int[])
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream is,
+                                     boolean flipped,
+                                     boolean forceAlpha,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
is - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
forceAlpha - Force the output to have an alpha channel
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, boolean, int[])
+
+
+
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
See Also:
ImageData.getHeight()
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
See Also:
ImageData.getWidth()
+
+
+
+ +

+configureEdging

+
+public void configureEdging(boolean edging)
+
+
Description copied from interface: LoadableImageData
+
Configure the edging that can be used to make texture edges + loop more cleanly +

+

+
Specified by:
configureEdging in interface LoadableImageData
+
+
+
Parameters:
edging - True if we should edge
See Also:
LoadableImageData.configureEdging(boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/CursorLoader.html b/lib/javadoc/org/newdawn/slick/opengl/CursorLoader.html new file mode 100644 index 000000000..38c5a0400 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/CursorLoader.html @@ -0,0 +1,367 @@ + + + + + + +CursorLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class CursorLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.CursorLoader
+
+
+
+
public class CursorLoader
extends java.lang.Object
+ + +

+A utility to load cursors (thanks go to Kappa for the animated cursor + loader) +

+ +

+

+
Author:
+
Kevin Glass, Kappa-One
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static CursorLoaderget() + +
+          Retrieve the single instance of this loader - convinient huh?
+ org.lwjgl.input.CursorgetAnimatedCursor(java.lang.String ref, + int x, + int y, + int width, + int height, + int[] cursorDelays) + +
+          Get a cursor based on a image reference on the classpath.
+ org.lwjgl.input.CursorgetCursor(java.nio.ByteBuffer buf, + int x, + int y, + int width, + int height) + +
+          Get a cursor based on a set of image data
+ org.lwjgl.input.CursorgetCursor(ImageData imageData, + int x, + int y) + +
+          Get a cursor based on a set of image data
+ org.lwjgl.input.CursorgetCursor(java.lang.String ref, + int x, + int y) + +
+          Get a cursor based on a image reference on the classpath
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+get

+
+public static CursorLoader get()
+
+
Retrieve the single instance of this loader - convinient huh? +

+

+ +
Returns:
The single instance of the cursor loader
+
+
+
+ +

+getCursor

+
+public org.lwjgl.input.Cursor getCursor(java.lang.String ref,
+                                        int x,
+                                        int y)
+                                 throws java.io.IOException,
+                                        org.lwjgl.LWJGLException
+
+
Get a cursor based on a image reference on the classpath +

+

+
Parameters:
ref - The reference to the image to be loaded
x - The x-coordinate of the cursor hotspot (left -> right)
y - The y-coordinate of the cursor hotspot (bottom -> top) +
Returns:
The create cursor +
Throws: +
java.io.IOException - Indicates a failure to load the image +
org.lwjgl.LWJGLException - Indicates a failure to create the hardware cursor
+
+
+
+ +

+getCursor

+
+public org.lwjgl.input.Cursor getCursor(java.nio.ByteBuffer buf,
+                                        int x,
+                                        int y,
+                                        int width,
+                                        int height)
+                                 throws java.io.IOException,
+                                        org.lwjgl.LWJGLException
+
+
Get a cursor based on a set of image data +

+

+
Parameters:
buf - The image data (stored in RGBA) to load the cursor from
x - The x-coordinate of the cursor hotspot (left -> right)
y - The y-coordinate of the cursor hotspot (bottom -> top)
width - The width of the image data provided
height - The height of the image data provided +
Returns:
The create cursor +
Throws: +
java.io.IOException - Indicates a failure to load the image +
org.lwjgl.LWJGLException - Indicates a failure to create the hardware cursor
+
+
+
+ +

+getCursor

+
+public org.lwjgl.input.Cursor getCursor(ImageData imageData,
+                                        int x,
+                                        int y)
+                                 throws java.io.IOException,
+                                        org.lwjgl.LWJGLException
+
+
Get a cursor based on a set of image data +

+

+
Parameters:
imageData - The data from which the cursor can read it's contents
x - The x-coordinate of the cursor hotspot (left -> right)
y - The y-coordinate of the cursor hotspot (bottom -> top) +
Returns:
The create cursor +
Throws: +
java.io.IOException - Indicates a failure to load the image +
org.lwjgl.LWJGLException - Indicates a failure to create the hardware cursor
+
+
+
+ +

+getAnimatedCursor

+
+public org.lwjgl.input.Cursor getAnimatedCursor(java.lang.String ref,
+                                                int x,
+                                                int y,
+                                                int width,
+                                                int height,
+                                                int[] cursorDelays)
+                                         throws java.io.IOException,
+                                                org.lwjgl.LWJGLException
+
+
Get a cursor based on a image reference on the classpath. The image + is assumed to be a set/strip of cursor animation frames running from top to + bottom. +

+

+
Parameters:
ref - The reference to the image to be loaded
x - The x-coordinate of the cursor hotspot (left -> right)
y - The y-coordinate of the cursor hotspot (bottom -> top)
width - The x width of the cursor
height - The y height of the cursor
cursorDelays - image delays between changing frames in animation +
Returns:
The created cursor +
Throws: +
java.io.IOException - Indicates a failure to load the image +
org.lwjgl.LWJGLException - Indicates a failure to create the hardware cursor
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/DeferredTexture.html b/lib/javadoc/org/newdawn/slick/opengl/DeferredTexture.html new file mode 100644 index 000000000..caa0d7443 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/DeferredTexture.html @@ -0,0 +1,824 @@ + + + + + + +DeferredTexture (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class DeferredTexture

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.TextureImpl
+      extended by org.newdawn.slick.opengl.DeferredTexture
+
+
+
All Implemented Interfaces:
DeferredResource, Texture
+
+
+
+
public class DeferredTexture
extends TextureImpl
implements DeferredResource
+ + +

+A texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.opengl.TextureImpl
GL
+  + + + + + + + + + + +
+Constructor Summary
DeferredTexture(java.io.InputStream in, + java.lang.String resourceName, + boolean flipped, + int filter, + int[] trans) + +
+          Create a new deferred texture
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbind() + +
+          Bind the GL context to a texture
+ java.lang.StringgetDescription() + +
+          Get a description of the resource to be loaded
+ floatgetHeight() + +
+          Get the height of the physical texture
+ intgetImageHeight() + +
+          Get the height of the original image
+ intgetImageWidth() + +
+          Get the width of the original image
+ byte[]getTextureData() + +
+          Get the pixel data from the card for this texture
+ intgetTextureHeight() + +
+          Get the height of the actual texture
+ intgetTextureID() + +
+          Get the OpenGL texture ID for this texture
+ java.lang.StringgetTextureRef() + +
+          Get the reference from which this texture was loaded
+ intgetTextureWidth() + +
+          Get the width of the actual texture
+ floatgetWidth() + +
+          Get the width of the physical texture
+ booleanhasAlpha() + +
+          Check if the texture has alpha
+ voidload() + +
+          Load the actual resource
+ voidrelease() + +
+          Destroy the texture reference
+ voidsetAlpha(boolean alpha) + +
+          If this texture has alpha
+ voidsetHeight(int height) + +
+          Set the height of the image
+ voidsetTextureFilter(int textureFilter) + +
+          Apply a given texture filter to the texture
+ voidsetTextureHeight(int texHeight) + +
+          Set the height of this texture
+ voidsetTextureID(int textureID) + +
+          Set the OpenGL texture ID for this texture
+ voidsetTextureWidth(int texWidth) + +
+          Set the width of this texture
+ voidsetWidth(int width) + +
+          Set the width of the image
+ + + + + + + +
Methods inherited from class org.newdawn.slick.opengl.TextureImpl
bindNone, createIntBuffer, getLastBind, reload, setCacheName, setTextureData, unbind
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DeferredTexture

+
+public DeferredTexture(java.io.InputStream in,
+                       java.lang.String resourceName,
+                       boolean flipped,
+                       int filter,
+                       int[] trans)
+
+
Create a new deferred texture +

+

+
Parameters:
in - The input stream from which to read the texture
resourceName - The name to give the resource
flipped - True if the image should be flipped
filter - The filter to apply
trans - The colour to defined as transparent
+
+ + + + + + + + +
+Method Detail
+ +

+load

+
+public void load()
+          throws java.io.IOException
+
+
Description copied from interface: DeferredResource
+
Load the actual resource +

+

+
Specified by:
load in interface DeferredResource
+
+
+ +
Throws: +
java.io.IOException - Indicates a failure to load the resource
See Also:
DeferredResource.load()
+
+
+
+ +

+bind

+
+public void bind()
+
+
Description copied from interface: Texture
+
Bind the GL context to a texture +

+

+
Specified by:
bind in interface Texture
Overrides:
bind in class TextureImpl
+
+
+
See Also:
TextureImpl.bind()
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Description copied from interface: Texture
+
Get the height of the physical texture +

+

+
Specified by:
getHeight in interface Texture
Overrides:
getHeight in class TextureImpl
+
+
+ +
Returns:
The height of physical texture
See Also:
TextureImpl.getHeight()
+
+
+
+ +

+getImageHeight

+
+public int getImageHeight()
+
+
Description copied from interface: Texture
+
Get the height of the original image +

+

+
Specified by:
getImageHeight in interface Texture
Overrides:
getImageHeight in class TextureImpl
+
+
+ +
Returns:
The height of the original image
See Also:
TextureImpl.getImageHeight()
+
+
+
+ +

+getImageWidth

+
+public int getImageWidth()
+
+
Description copied from interface: Texture
+
Get the width of the original image +

+

+
Specified by:
getImageWidth in interface Texture
Overrides:
getImageWidth in class TextureImpl
+
+
+ +
Returns:
The width of the original image
See Also:
TextureImpl.getImageWidth()
+
+
+
+ +

+getTextureHeight

+
+public int getTextureHeight()
+
+
Description copied from interface: Texture
+
Get the height of the actual texture +

+

+
Specified by:
getTextureHeight in interface Texture
Overrides:
getTextureHeight in class TextureImpl
+
+
+ +
Returns:
The height of the actual texture
See Also:
TextureImpl.getTextureHeight()
+
+
+
+ +

+getTextureID

+
+public int getTextureID()
+
+
Description copied from interface: Texture
+
Get the OpenGL texture ID for this texture +

+

+
Specified by:
getTextureID in interface Texture
Overrides:
getTextureID in class TextureImpl
+
+
+ +
Returns:
The OpenGL texture ID
See Also:
TextureImpl.getTextureID()
+
+
+
+ +

+getTextureRef

+
+public java.lang.String getTextureRef()
+
+
Description copied from interface: Texture
+
Get the reference from which this texture was loaded +

+

+
Specified by:
getTextureRef in interface Texture
Overrides:
getTextureRef in class TextureImpl
+
+
+ +
Returns:
The reference from which this texture was loaded
See Also:
TextureImpl.getTextureRef()
+
+
+
+ +

+getTextureWidth

+
+public int getTextureWidth()
+
+
Description copied from interface: Texture
+
Get the width of the actual texture +

+

+
Specified by:
getTextureWidth in interface Texture
Overrides:
getTextureWidth in class TextureImpl
+
+
+ +
Returns:
The width of the actual texture
See Also:
TextureImpl.getTextureWidth()
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Description copied from interface: Texture
+
Get the width of the physical texture +

+

+
Specified by:
getWidth in interface Texture
Overrides:
getWidth in class TextureImpl
+
+
+ +
Returns:
The width of physical texture
See Also:
TextureImpl.getWidth()
+
+
+
+ +

+release

+
+public void release()
+
+
Description copied from interface: Texture
+
Destroy the texture reference +

+

+
Specified by:
release in interface Texture
Overrides:
release in class TextureImpl
+
+
+
See Also:
TextureImpl.release()
+
+
+
+ +

+setAlpha

+
+public void setAlpha(boolean alpha)
+
+
Description copied from class: TextureImpl
+
If this texture has alpha +

+

+
Overrides:
setAlpha in class TextureImpl
+
+
+
Parameters:
alpha - True, If this texture has alpha
See Also:
TextureImpl.setAlpha(boolean)
+
+
+
+ +

+setHeight

+
+public void setHeight(int height)
+
+
Description copied from class: TextureImpl
+
Set the height of the image +

+

+
Overrides:
setHeight in class TextureImpl
+
+
+
Parameters:
height - The height of the image
See Also:
TextureImpl.setHeight(int)
+
+
+
+ +

+setTextureHeight

+
+public void setTextureHeight(int texHeight)
+
+
Description copied from class: TextureImpl
+
Set the height of this texture +

+

+
Overrides:
setTextureHeight in class TextureImpl
+
+
+
Parameters:
texHeight - The height of the texture
See Also:
TextureImpl.setTextureHeight(int)
+
+
+
+ +

+setTextureID

+
+public void setTextureID(int textureID)
+
+
Description copied from class: TextureImpl
+
Set the OpenGL texture ID for this texture +

+

+
Overrides:
setTextureID in class TextureImpl
+
+
+
Parameters:
textureID - The OpenGL texture ID
See Also:
TextureImpl.setTextureID(int)
+
+
+
+ +

+setTextureWidth

+
+public void setTextureWidth(int texWidth)
+
+
Description copied from class: TextureImpl
+
Set the width of this texture +

+

+
Overrides:
setTextureWidth in class TextureImpl
+
+
+
Parameters:
texWidth - The width of the texture
See Also:
TextureImpl.setTextureWidth(int)
+
+
+
+ +

+setWidth

+
+public void setWidth(int width)
+
+
Description copied from class: TextureImpl
+
Set the width of the image +

+

+
Overrides:
setWidth in class TextureImpl
+
+
+
Parameters:
width - The width of the image
See Also:
TextureImpl.setWidth(int)
+
+
+
+ +

+getTextureData

+
+public byte[] getTextureData()
+
+
Description copied from interface: Texture
+
Get the pixel data from the card for this texture +

+

+
Specified by:
getTextureData in interface Texture
Overrides:
getTextureData in class TextureImpl
+
+
+ +
Returns:
The texture data from the card for this texture
See Also:
TextureImpl.getTextureData()
+
+
+
+ +

+getDescription

+
+public java.lang.String getDescription()
+
+
Description copied from interface: DeferredResource
+
Get a description of the resource to be loaded +

+

+
Specified by:
getDescription in interface DeferredResource
+
+
+ +
Returns:
The description of the resource to be loaded
See Also:
DeferredResource.getDescription()
+
+
+
+ +

+hasAlpha

+
+public boolean hasAlpha()
+
+
Description copied from interface: Texture
+
Check if the texture has alpha +

+

+
Specified by:
hasAlpha in interface Texture
Overrides:
hasAlpha in class TextureImpl
+
+
+ +
Returns:
True if the texture has alpha
See Also:
Texture.hasAlpha()
+
+
+
+ +

+setTextureFilter

+
+public void setTextureFilter(int textureFilter)
+
+
Description copied from interface: Texture
+
Apply a given texture filter to the texture +

+

+
Specified by:
setTextureFilter in interface Texture
Overrides:
setTextureFilter in class TextureImpl
+
+
+
Parameters:
textureFilter - The texture filter to apply (GL_LINEAR, GL_NEAREST, etc..)
See Also:
Texture.setTextureFilter(int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/EmptyImageData.html b/lib/javadoc/org/newdawn/slick/opengl/EmptyImageData.html new file mode 100644 index 000000000..3e27f7ef3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/EmptyImageData.html @@ -0,0 +1,406 @@ + + + + + + +EmptyImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class EmptyImageData

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.EmptyImageData
+
+
+
All Implemented Interfaces:
ImageData
+
+
+
+
public class EmptyImageData
extends java.lang.Object
implements ImageData
+ + +

+An image data implementation which represents an empty texture +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EmptyImageData(int width, + int height) + +
+          Create an empty image data source
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+EmptyImageData

+
+public EmptyImageData(int width,
+                      int height)
+
+
Create an empty image data source +

+

+
Parameters:
width - The width of the source
height - The height of the source
+
+ + + + + + + + +
+Method Detail
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
See Also:
ImageData.getHeight()
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
See Also:
ImageData.getWidth()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/GLUtils.html b/lib/javadoc/org/newdawn/slick/opengl/GLUtils.html new file mode 100644 index 000000000..fe943d56f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/GLUtils.html @@ -0,0 +1,262 @@ + + + + + + +GLUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class GLUtils

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.GLUtils
+
+
+
+
public final class GLUtils
extends java.lang.Object
+ + +

+A collection of utilities to allow aid interaction with the GL provider +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
GLUtils() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidcheckGLContext() + +
+          Check that we're in the right place to be doing GL operations
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GLUtils

+
+public GLUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+checkGLContext

+
+public static void checkGLContext()
+
+
Check that we're in the right place to be doing GL operations +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/ImageData.html b/lib/javadoc/org/newdawn/slick/opengl/ImageData.html new file mode 100644 index 000000000..87d34885e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/ImageData.html @@ -0,0 +1,334 @@ + + + + + + +ImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Interface ImageData

+
+
All Known Subinterfaces:
LoadableImageData
+
+
+
All Known Implementing Classes:
CompositeImageData, EmptyImageData, ImageBuffer, ImageIOImageData, PNGImageData, TGAImageData
+
+
+
+
public interface ImageData
+ + +

+A description of any class providing ImageData in a form suitable for OpenGL texture + creation. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+  +

+ + + + + + + + +
+Method Detail
+ +

+getDepth

+
+int getDepth()
+
+
Get the last bit depth read from a TGA +

+

+ +
Returns:
The last bit depth read
+
+
+
+ +

+getWidth

+
+int getWidth()
+
+
Get the last width read from a TGA +

+

+ +
Returns:
Get the last width in pixels fread from a TGA
+
+
+
+ +

+getHeight

+
+int getHeight()
+
+
Get the last height read from a TGA +

+

+ +
Returns:
Get the last height in pixels fread from a TGA
+
+
+
+ +

+getTexWidth

+
+int getTexWidth()
+
+
Get the last required texture width for a loaded image +

+

+ +
Returns:
Get the ast required texture width for a loaded image
+
+
+
+ +

+getTexHeight

+
+int getTexHeight()
+
+
Get the ast required texture height for a loaded image +

+

+ +
Returns:
Get the ast required texture height for a loaded image
+
+
+
+ +

+getImageBufferData

+
+java.nio.ByteBuffer getImageBufferData()
+
+
Get the store image +

+

+ +
Returns:
The stored image
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/ImageDataFactory.html b/lib/javadoc/org/newdawn/slick/opengl/ImageDataFactory.html new file mode 100644 index 000000000..d48bf5f05 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/ImageDataFactory.html @@ -0,0 +1,263 @@ + + + + + + +ImageDataFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class ImageDataFactory

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.ImageDataFactory
+
+
+
+
public class ImageDataFactory
extends java.lang.Object
+ + +

+A static utility to create the appropriate image data for a particular reference. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ImageDataFactory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static LoadableImageDatagetImageDataFor(java.lang.String ref) + +
+          Create an image data that is appropriate for the reference supplied
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageDataFactory

+
+public ImageDataFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getImageDataFor

+
+public static LoadableImageData getImageDataFor(java.lang.String ref)
+
+
Create an image data that is appropriate for the reference supplied +

+

+
Parameters:
ref - The reference to the image to retrieve +
Returns:
The image data that can be used to retrieve the data for that resource
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/ImageIOImageData.html b/lib/javadoc/org/newdawn/slick/opengl/ImageIOImageData.html new file mode 100644 index 000000000..05aadea3c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/ImageIOImageData.html @@ -0,0 +1,554 @@ + + + + + + +ImageIOImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class ImageIOImageData

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.ImageIOImageData
+
+
+
All Implemented Interfaces:
ImageData, LoadableImageData
+
+
+
+
public class ImageIOImageData
extends java.lang.Object
implements LoadableImageData
+ + +

+An image data provider that uses ImageIO to retrieve image data in a format + suitable for creating OpenGL textures. This implementation is used when + formats not natively supported by the library are required. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ImageIOImageData() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidconfigureEdging(boolean edging) + +
+          Configure the edging that can be used to make texture edges + loop more cleanly
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ java.nio.ByteBufferimageToByteBuffer(java.awt.image.BufferedImage image, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+           
+ java.nio.ByteBufferloadImage(java.io.InputStream fis) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + int[] transparent) + +
+          Load a image from the specified stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageIOImageData

+
+public ImageIOImageData()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
See Also:
ImageData.getHeight()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
See Also:
ImageData.getWidth()
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream)
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, int[])
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     boolean forceAlpha,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
forceAlpha - Force the output to have an alpha channel
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, boolean, int[])
+
+
+
+ +

+imageToByteBuffer

+
+public java.nio.ByteBuffer imageToByteBuffer(java.awt.image.BufferedImage image,
+                                             boolean flipped,
+                                             boolean forceAlpha,
+                                             int[] transparent)
+
+
+
+
+
+
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+configureEdging

+
+public void configureEdging(boolean edging)
+
+
Description copied from interface: LoadableImageData
+
Configure the edging that can be used to make texture edges + loop more cleanly +

+

+
Specified by:
configureEdging in interface LoadableImageData
+
+
+
Parameters:
edging - True if we should edge
See Also:
LoadableImageData.configureEdging(boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/InternalTextureLoader.html b/lib/javadoc/org/newdawn/slick/opengl/InternalTextureLoader.html new file mode 100644 index 000000000..9d37bdc05 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/InternalTextureLoader.html @@ -0,0 +1,788 @@ + + + + + + +InternalTextureLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class InternalTextureLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.InternalTextureLoader
+
+
+
+
public class InternalTextureLoader
extends java.lang.Object
+ + +

+A texture loaded based on many old versions that will load image data from a file + and produce OpenGL textures. +

+ +

+

+
Author:
+
kevin
+
See Also:
ImageData
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclear() + +
+          Clear out the cached textures
+ voidclear(java.lang.String name) + +
+          Remove a particular named image from the cache
+static java.nio.IntBuffercreateIntBuffer(int size) + +
+          Creates an integer buffer to hold specified ints + - strictly a utility method
+ TexturecreateTexture(int width, + int height) + +
+          Create an empty texture
+ TexturecreateTexture(int width, + int height, + int filter) + +
+          Create an empty texture
+static intcreateTextureID() + +
+          Create a new texture ID
+static InternalTextureLoaderget() + +
+          Get the single instance of this texture loader
+static intget2Fold(int fold) + +
+          Get the closest greater power of 2 to the fold number
+ TexturegetTexture(java.io.File source, + boolean flipped, + int filter) + +
+          Get a texture from a specific file
+ TexturegetTexture(java.io.File source, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a specific file
+ TexturegetTexture(ImageData dataSource, + int filter) + +
+          Get a texture from a image file
+ TexturegetTexture(java.io.InputStream in, + java.lang.String resourceName, + boolean flipped, + int filter) + +
+          Get a texture from a image file
+ TextureImplgetTexture(java.io.InputStream in, + java.lang.String resourceName, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a image file
+ TexturegetTexture(java.lang.String resourceName, + boolean flipped, + int filter) + +
+          Get a texture from a resource location
+ TexturegetTexture(java.lang.String resourceName, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a resource location
+ booleanisDeferredLoading() + +
+          Check if we're using deferred loading
+ voidreload() + +
+          Reload all the textures loaded in this loader
+ intreload(TextureImpl texture, + int srcPixelFormat, + int componentCount, + int minFilter, + int magFilter, + java.nio.ByteBuffer textureBuffer) + +
+          Reload a given texture blob
+ voidset16BitMode() + +
+          Tell the loader to produce 16 bit textures
+ voidsetDeferredLoading(boolean deferred) + +
+          True if we should only record the request to load in the intention + of loading the texture later
+ voidsetHoldTextureData(boolean holdTextureData) + +
+          Indicate where texture data should be held for reinitialising at a future + point.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public static InternalTextureLoader get()
+
+
Get the single instance of this texture loader +

+

+ +
Returns:
The single instance of the texture loader
+
+
+
+ +

+setHoldTextureData

+
+public void setHoldTextureData(boolean holdTextureData)
+
+
Indicate where texture data should be held for reinitialising at a future + point. +

+

+
Parameters:
holdTextureData - True if we should hold texture data
+
+
+
+ +

+setDeferredLoading

+
+public void setDeferredLoading(boolean deferred)
+
+
True if we should only record the request to load in the intention + of loading the texture later +

+

+
Parameters:
deferred - True if the we should load a token
+
+
+
+ +

+isDeferredLoading

+
+public boolean isDeferredLoading()
+
+
Check if we're using deferred loading +

+

+ +
Returns:
True if we're loading deferred textures
+
+
+
+ +

+clear

+
+public void clear(java.lang.String name)
+
+
Remove a particular named image from the cache +

+

+
Parameters:
name - The name of the image to be cleared
+
+
+
+ +

+clear

+
+public void clear()
+
+
Clear out the cached textures +

+

+
+
+
+
+ +

+set16BitMode

+
+public void set16BitMode()
+
+
Tell the loader to produce 16 bit textures +

+

+
+
+
+
+ +

+createTextureID

+
+public static int createTextureID()
+
+
Create a new texture ID +

+

+ +
Returns:
A new texture ID
+
+
+
+ +

+getTexture

+
+public Texture getTexture(java.io.File source,
+                          boolean flipped,
+                          int filter)
+                   throws java.io.IOException
+
+
Get a texture from a specific file +

+

+
Parameters:
source - The file to load the texture from
flipped - True if we should flip the texture on the y axis while loading
filter - The filter to use +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+getTexture

+
+public Texture getTexture(java.io.File source,
+                          boolean flipped,
+                          int filter,
+                          int[] transparent)
+                   throws java.io.IOException
+
+
Get a texture from a specific file +

+

+
Parameters:
source - The file to load the texture from
flipped - True if we should flip the texture on the y axis while loading
filter - The filter to use
transparent - The colour to interpret as transparent or null if none +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+getTexture

+
+public Texture getTexture(java.lang.String resourceName,
+                          boolean flipped,
+                          int filter)
+                   throws java.io.IOException
+
+
Get a texture from a resource location +

+

+
Parameters:
resourceName - The location to load the texture from
flipped - True if we should flip the texture on the y axis while loading
filter - The filter to use when scaling the texture +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+getTexture

+
+public Texture getTexture(java.lang.String resourceName,
+                          boolean flipped,
+                          int filter,
+                          int[] transparent)
+                   throws java.io.IOException
+
+
Get a texture from a resource location +

+

+
Parameters:
resourceName - The location to load the texture from
flipped - True if we should flip the texture on the y axis while loading
filter - The filter to use when scaling the texture
transparent - The colour to interpret as transparent or null if none +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+getTexture

+
+public Texture getTexture(java.io.InputStream in,
+                          java.lang.String resourceName,
+                          boolean flipped,
+                          int filter)
+                   throws java.io.IOException
+
+
Get a texture from a image file +

+

+
Parameters:
in - The stream from which we can load the image
resourceName - The name to give this image in the internal cache
flipped - True if we should flip the image on the y-axis while loading
filter - The filter to use when scaling the texture +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+getTexture

+
+public TextureImpl getTexture(java.io.InputStream in,
+                              java.lang.String resourceName,
+                              boolean flipped,
+                              int filter,
+                              int[] transparent)
+                       throws java.io.IOException
+
+
Get a texture from a image file +

+

+
Parameters:
in - The stream from which we can load the image
resourceName - The name to give this image in the internal cache
flipped - True if we should flip the image on the y-axis while loading
filter - The filter to use when scaling the texture
transparent - The colour to interpret as transparent or null if none +
Returns:
The texture loaded +
Throws: +
java.io.IOException - Indicates a failure to load the image
+
+
+
+ +

+createTexture

+
+public Texture createTexture(int width,
+                             int height)
+                      throws java.io.IOException
+
+
Create an empty texture +

+

+
Parameters:
width - The width of the new texture
height - The height of the new texture +
Returns:
The created empty texture +
Throws: +
java.io.IOException - Indicates a failure to create the texture on the graphics hardware
+
+
+
+ +

+createTexture

+
+public Texture createTexture(int width,
+                             int height,
+                             int filter)
+                      throws java.io.IOException
+
+
Create an empty texture +

+

+
Parameters:
width - The width of the new texture
height - The height of the new texture +
Returns:
The created empty texture +
Throws: +
java.io.IOException - Indicates a failure to create the texture on the graphics hardware
+
+
+
+ +

+getTexture

+
+public Texture getTexture(ImageData dataSource,
+                          int filter)
+                   throws java.io.IOException
+
+
Get a texture from a image file +

+

+
Parameters:
dataSource - The image data to generate the texture from
filter - The filter to use when scaling the texture +
Returns:
The texture created +
Throws: +
java.io.IOException - Indicates the texture is too big for the hardware
+
+
+
+ +

+get2Fold

+
+public static int get2Fold(int fold)
+
+
Get the closest greater power of 2 to the fold number +

+

+
Parameters:
fold - The target number +
Returns:
The power of 2
+
+
+
+ +

+createIntBuffer

+
+public static java.nio.IntBuffer createIntBuffer(int size)
+
+
Creates an integer buffer to hold specified ints + - strictly a utility method +

+

+
Parameters:
size - how many int to contain +
Returns:
created IntBuffer
+
+
+
+ +

+reload

+
+public void reload()
+
+
Reload all the textures loaded in this loader +

+

+
+
+
+
+ +

+reload

+
+public int reload(TextureImpl texture,
+                  int srcPixelFormat,
+                  int componentCount,
+                  int minFilter,
+                  int magFilter,
+                  java.nio.ByteBuffer textureBuffer)
+
+
Reload a given texture blob +

+

+
Parameters:
texture - The texture being reloaded
srcPixelFormat - The source pixel format
componentCount - The component count
minFilter - The minification filter
magFilter - The magnification filter
textureBuffer - The pixel data +
Returns:
The ID of the newly created texture
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/LoadableImageData.html b/lib/javadoc/org/newdawn/slick/opengl/LoadableImageData.html new file mode 100644 index 000000000..765888507 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/LoadableImageData.html @@ -0,0 +1,330 @@ + + + + + + +LoadableImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Interface LoadableImageData

+
+
All Superinterfaces:
ImageData
+
+
+
All Known Implementing Classes:
CompositeImageData, ImageIOImageData, PNGImageData, TGAImageData
+
+
+
+
public interface LoadableImageData
extends ImageData
+ + +

+An image data source that can load images from a stream +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidconfigureEdging(boolean edging) + +
+          Configure the edging that can be used to make texture edges + loop more cleanly
+ java.nio.ByteBufferloadImage(java.io.InputStream fis) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + int[] transparent) + +
+          Load a image from the specified stream
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.opengl.ImageData
getDepth, getHeight, getImageBufferData, getTexHeight, getTexWidth, getWidth
+  +

+ + + + + + + + +
+Method Detail
+ +

+configureEdging

+
+void configureEdging(boolean edging)
+
+
Configure the edging that can be used to make texture edges + loop more cleanly +

+

+
+
+
+
Parameters:
edging - True if we should edge
+
+
+
+ +

+loadImage

+
+java.nio.ByteBuffer loadImage(java.io.InputStream fis)
+                              throws java.io.IOException
+
+
Load a image from the specified stream +

+

+
+
+
+
Parameters:
fis - The stream from which we'll load the TGA +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
+
+
+
+ +

+loadImage

+
+java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                              boolean flipped,
+                              int[] transparent)
+                              throws java.io.IOException
+
+
Load a image from the specified stream +

+

+
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
+
+
+
+ +

+loadImage

+
+java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                              boolean flipped,
+                              boolean forceAlpha,
+                              int[] transparent)
+                              throws java.io.IOException
+
+
Load a image from the specified stream +

+

+
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
forceAlpha - Force the output to have an alpha channel
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.Format.html b/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.Format.html new file mode 100644 index 000000000..3689b14f1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.Format.html @@ -0,0 +1,241 @@ + + + + + + +PNGDecoder.Format (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class PNGDecoder.Format

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.PNGDecoder.Format
+
+
+
Enclosing class:
PNGDecoder
+
+
+
+
public static class PNGDecoder.Format
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ intgetNumComponents() + +
+           
+ booleanisHasAlpha() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getNumComponents

+
+public int getNumComponents()
+
+
+
+
+
+
+ +

+isHasAlpha

+
+public boolean isHasAlpha()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.html b/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.html new file mode 100644 index 000000000..722e1c872 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/PNGDecoder.html @@ -0,0 +1,533 @@ + + + + + + +PNGDecoder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class PNGDecoder

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.PNGDecoder
+
+
+
+
public class PNGDecoder
extends java.lang.Object
+ + +

+A PNGDecoder. The slick PNG decoder is based on this class :) +

+ +

+

+
Author:
+
Matthias Mann
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classPNGDecoder.Format + +
+           
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static PNGDecoder.FormatABGR + +
+           
+static PNGDecoder.FormatALPHA + +
+           
+static PNGDecoder.FormatBGRA + +
+           
+static PNGDecoder.FormatLUMINANCE + +
+           
+static PNGDecoder.FormatLUMINANCE_ALPHA + +
+           
+static PNGDecoder.FormatRGB + +
+           
+static PNGDecoder.FormatRGBA + +
+           
+  + + + + + + + + + + +
+Constructor Summary
PNGDecoder(java.io.InputStream input) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ PNGDecoder.FormatdecideTextureFormat(PNGDecoder.Format fmt) + +
+          Computes the implemented format conversion for the desired format.
+ voiddecode(java.nio.ByteBuffer buffer, + int stride, + PNGDecoder.Format fmt) + +
+           
+ intgetHeight() + +
+           
+ intgetWidth() + +
+           
+ booleanhasAlpha() + +
+           
+ booleanisRGB() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ALPHA

+
+public static PNGDecoder.Format ALPHA
+
+
+
+
+
+ +

+LUMINANCE

+
+public static PNGDecoder.Format LUMINANCE
+
+
+
+
+
+ +

+LUMINANCE_ALPHA

+
+public static PNGDecoder.Format LUMINANCE_ALPHA
+
+
+
+
+
+ +

+RGB

+
+public static PNGDecoder.Format RGB
+
+
+
+
+
+ +

+RGBA

+
+public static PNGDecoder.Format RGBA
+
+
+
+
+
+ +

+BGRA

+
+public static PNGDecoder.Format BGRA
+
+
+
+
+
+ +

+ABGR

+
+public static PNGDecoder.Format ABGR
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+PNGDecoder

+
+public PNGDecoder(java.io.InputStream input)
+           throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+ + + + + + + + +
+Method Detail
+ +

+getHeight

+
+public int getHeight()
+
+
+
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
+
+
+
+
+ +

+hasAlpha

+
+public boolean hasAlpha()
+
+
+
+
+
+
+ +

+isRGB

+
+public boolean isRGB()
+
+
+
+
+
+
+ +

+decideTextureFormat

+
+public PNGDecoder.Format decideTextureFormat(PNGDecoder.Format fmt)
+
+
Computes the implemented format conversion for the desired format. +

+

+
Parameters:
fmt - the desired format +
Returns:
format which best matches the desired format +
Throws: +
java.lang.UnsupportedOperationException - if this PNG file can't be decoded
+
+
+
+ +

+decode

+
+public void decode(java.nio.ByteBuffer buffer,
+                   int stride,
+                   PNGDecoder.Format fmt)
+            throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/PNGImageData.html b/lib/javadoc/org/newdawn/slick/opengl/PNGImageData.html new file mode 100644 index 000000000..39f634313 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/PNGImageData.html @@ -0,0 +1,524 @@ + + + + + + +PNGImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class PNGImageData

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.PNGImageData
+
+
+
All Implemented Interfaces:
ImageData, LoadableImageData
+
+
+
+
public class PNGImageData
extends java.lang.Object
implements LoadableImageData
+ + +

+The PNG imge data source that is pure java reading PNGs +

+ +

+

+
Author:
+
Matthias Mann (original code)
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PNGImageData() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidconfigureEdging(boolean edging) + +
+          Configure the edging that can be used to make texture edges + loop more cleanly
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ java.nio.ByteBufferloadImage(java.io.InputStream fis) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + int[] transparent) + +
+          Load a image from the specified stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PNGImageData

+
+public PNGImageData()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream)
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, int[])
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     boolean forceAlpha,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
forceAlpha - Force the output to have an alpha channel
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, boolean, int[])
+
+
+
+ +

+configureEdging

+
+public void configureEdging(boolean edging)
+
+
Description copied from interface: LoadableImageData
+
Configure the edging that can be used to make texture edges + loop more cleanly +

+

+
Specified by:
configureEdging in interface LoadableImageData
+
+
+
Parameters:
edging - True if we should edge
See Also:
LoadableImageData.configureEdging(boolean)
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/SlickCallable.html b/lib/javadoc/org/newdawn/slick/opengl/SlickCallable.html new file mode 100644 index 000000000..cbd5a7544 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/SlickCallable.html @@ -0,0 +1,369 @@ + + + + + + +SlickCallable (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class SlickCallable

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.SlickCallable
+
+
+
+
public abstract class SlickCallable
extends java.lang.Object
+ + +

+A utility to allow performing GL operations without contaminating the + Slick OpenGL state. Note this will not protect you from OpenGL programming errors + like a glBegin() without a glEnd(), or glPush() without glPop() etc. + + Expected usage: + + + SlickCallable callable = new SlickCallable() { + public performGLOperations() throws SlickException { + GL.glTranslate(0,0,1); + glBegin(GL.GL_POLYGONS); + glVertex(..); + ... + glEnd(); + } + } + callable.call(); + + + Alternatively you can use the static methods directly + + + SlickCallable.enterSafeBlock(); + + GL.glTranslate(0,0,1); + glBegin(GL.GL_POLYGONS); + glVertex(..); + ... + glEnd(); + + SlickCallable.leaveSafeBlock(); + +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SlickCallable() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcall() + +
+          Cause this callable to perform it's GL operations (@see performGLOperations()).
+static voidenterSafeBlock() + +
+          Enter a safe block ensuring that all the OpenGL state that slick + uses is safe before touching the GL state directly.
+static voidleaveSafeBlock() + +
+          Leave a safe block ensuring that all of Slick's OpenGL state is + restored since the last enter.
+protected abstract  voidperformGLOperations() + +
+          Perform the GL operations that this callable is intended to.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SlickCallable

+
+public SlickCallable()
+
+
+ + + + + + + + +
+Method Detail
+ +

+enterSafeBlock

+
+public static void enterSafeBlock()
+
+
Enter a safe block ensuring that all the OpenGL state that slick + uses is safe before touching the GL state directly. +

+

+
+
+
+
+ +

+leaveSafeBlock

+
+public static void leaveSafeBlock()
+
+
Leave a safe block ensuring that all of Slick's OpenGL state is + restored since the last enter. +

+

+
+
+
+
+ +

+call

+
+public final void call()
+                throws SlickException
+
+
Cause this callable to perform it's GL operations (@see performGLOperations()). This + method will block until the GL operations have been performed. +

+

+ +
Throws: +
SlickException - Indicates a failure while performing the GL operations or + maintaing SlickState
+
+
+
+ +

+performGLOperations

+
+protected abstract void performGLOperations()
+                                     throws SlickException
+
+
Perform the GL operations that this callable is intended to. This operations should + not effect the slick OpenGL state. +

+

+ +
Throws: +
SlickException - Indicates a failure of some sort. This is user exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/TGAImageData.html b/lib/javadoc/org/newdawn/slick/opengl/TGAImageData.html new file mode 100644 index 000000000..1a4b7c139 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/TGAImageData.html @@ -0,0 +1,531 @@ + + + + + + +TGAImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class TGAImageData

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.TGAImageData
+
+
+
All Implemented Interfaces:
ImageData, LoadableImageData
+
+
+
+
public class TGAImageData
extends java.lang.Object
implements LoadableImageData
+ + +

+A utility to load TGAs. Note: NOT THREAD SAFE + + Fresh cut of code but largely influeneced by the TGA loading class + provided as part of the Java Monkey Engine (JME). Why not check out + what they're doing over at http://www.jmonkeyengine.com. kudos to + Mark Powell. +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TGAImageData() + +
+          Create a new TGA Loader
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidconfigureEdging(boolean edging) + +
+          Configure the edging that can be used to make texture edges + loop more cleanly
+ intgetDepth() + +
+          Get the last bit depth read from a TGA
+ intgetHeight() + +
+          Get the last height read from a TGA
+ java.nio.ByteBuffergetImageBufferData() + +
+          Get the store image
+ intgetTexHeight() + +
+          Get the ast required texture height for a loaded image
+ intgetTexWidth() + +
+          Get the last required texture width for a loaded image
+ intgetWidth() + +
+          Get the last width read from a TGA
+ java.nio.ByteBufferloadImage(java.io.InputStream fis) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + boolean forceAlpha, + int[] transparent) + +
+          Load a image from the specified stream
+ java.nio.ByteBufferloadImage(java.io.InputStream fis, + boolean flipped, + int[] transparent) + +
+          Load a image from the specified stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TGAImageData

+
+public TGAImageData()
+
+
Create a new TGA Loader +

+

+ + + + + + + + +
+Method Detail
+ +

+getDepth

+
+public int getDepth()
+
+
Description copied from interface: ImageData
+
Get the last bit depth read from a TGA +

+

+
Specified by:
getDepth in interface ImageData
+
+
+ +
Returns:
The last bit depth read
See Also:
ImageData.getDepth()
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Description copied from interface: ImageData
+
Get the last width read from a TGA +

+

+
Specified by:
getWidth in interface ImageData
+
+
+ +
Returns:
Get the last width in pixels fread from a TGA
See Also:
ImageData.getWidth()
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Description copied from interface: ImageData
+
Get the last height read from a TGA +

+

+
Specified by:
getHeight in interface ImageData
+
+
+ +
Returns:
Get the last height in pixels fread from a TGA
See Also:
ImageData.getHeight()
+
+
+
+ +

+getTexWidth

+
+public int getTexWidth()
+
+
Description copied from interface: ImageData
+
Get the last required texture width for a loaded image +

+

+
Specified by:
getTexWidth in interface ImageData
+
+
+ +
Returns:
Get the ast required texture width for a loaded image
See Also:
ImageData.getTexWidth()
+
+
+
+ +

+getTexHeight

+
+public int getTexHeight()
+
+
Description copied from interface: ImageData
+
Get the ast required texture height for a loaded image +

+

+
Specified by:
getTexHeight in interface ImageData
+
+
+ +
Returns:
Get the ast required texture height for a loaded image
See Also:
ImageData.getTexHeight()
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream)
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, int[])
+
+
+
+ +

+loadImage

+
+public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
+                                     boolean flipped,
+                                     boolean forceAlpha,
+                                     int[] transparent)
+                              throws java.io.IOException
+
+
Description copied from interface: LoadableImageData
+
Load a image from the specified stream +

+

+
Specified by:
loadImage in interface LoadableImageData
+
+
+
Parameters:
fis - The stream from which we'll load the TGA
flipped - True if we loading in flipped mode (used for cursors)
forceAlpha - Force the output to have an alpha channel
transparent - The colour to interpret as transparent or null if none +
Returns:
The byte buffer containing texture data +
Throws: +
java.io.IOException - Indicates a failure to read the TGA
See Also:
LoadableImageData.loadImage(java.io.InputStream, boolean, boolean, int[])
+
+
+
+ +

+getImageBufferData

+
+public java.nio.ByteBuffer getImageBufferData()
+
+
Description copied from interface: ImageData
+
Get the store image +

+

+
Specified by:
getImageBufferData in interface ImageData
+
+
+ +
Returns:
The stored image
See Also:
ImageData.getImageBufferData()
+
+
+
+ +

+configureEdging

+
+public void configureEdging(boolean edging)
+
+
Description copied from interface: LoadableImageData
+
Configure the edging that can be used to make texture edges + loop more cleanly +

+

+
Specified by:
configureEdging in interface LoadableImageData
+
+
+
Parameters:
edging - True if we should edge
See Also:
LoadableImageData.configureEdging(boolean)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/Texture.html b/lib/javadoc/org/newdawn/slick/opengl/Texture.html new file mode 100644 index 000000000..650743308 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/Texture.html @@ -0,0 +1,481 @@ + + + + + + +Texture (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Interface Texture

+
+
All Known Implementing Classes:
DeferredTexture, TextureImpl
+
+
+
+
public interface Texture
+ + +

+The description of a texture loaded by the TextureLoader utility +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbind() + +
+          Bind the GL context to a texture
+ floatgetHeight() + +
+          Get the height of the physical texture
+ intgetImageHeight() + +
+          Get the height of the original image
+ intgetImageWidth() + +
+          Get the width of the original image
+ byte[]getTextureData() + +
+          Get the pixel data from the card for this texture
+ intgetTextureHeight() + +
+          Get the height of the actual texture
+ intgetTextureID() + +
+          Get the OpenGL texture ID for this texture
+ java.lang.StringgetTextureRef() + +
+          Get the reference from which this texture was loaded
+ intgetTextureWidth() + +
+          Get the width of the actual texture
+ floatgetWidth() + +
+          Get the width of the physical texture
+ booleanhasAlpha() + +
+          Check if the texture has alpha
+ voidrelease() + +
+          Destroy the texture reference
+ voidsetTextureFilter(int textureFilter) + +
+          Apply a given texture filter to the texture
+  +

+ + + + + + + + +
+Method Detail
+ +

+hasAlpha

+
+boolean hasAlpha()
+
+
Check if the texture has alpha +

+

+ +
Returns:
True if the texture has alpha
+
+
+
+ +

+getTextureRef

+
+java.lang.String getTextureRef()
+
+
Get the reference from which this texture was loaded +

+

+ +
Returns:
The reference from which this texture was loaded
+
+
+
+ +

+bind

+
+void bind()
+
+
Bind the GL context to a texture +

+

+
+
+
+
+ +

+getImageHeight

+
+int getImageHeight()
+
+
Get the height of the original image +

+

+ +
Returns:
The height of the original image
+
+
+
+ +

+getImageWidth

+
+int getImageWidth()
+
+
Get the width of the original image +

+

+ +
Returns:
The width of the original image
+
+
+
+ +

+getHeight

+
+float getHeight()
+
+
Get the height of the physical texture +

+

+ +
Returns:
The height of physical texture
+
+
+
+ +

+getWidth

+
+float getWidth()
+
+
Get the width of the physical texture +

+

+ +
Returns:
The width of physical texture
+
+
+
+ +

+getTextureHeight

+
+int getTextureHeight()
+
+
Get the height of the actual texture +

+

+ +
Returns:
The height of the actual texture
+
+
+
+ +

+getTextureWidth

+
+int getTextureWidth()
+
+
Get the width of the actual texture +

+

+ +
Returns:
The width of the actual texture
+
+
+
+ +

+release

+
+void release()
+
+
Destroy the texture reference +

+

+
+
+
+
+ +

+getTextureID

+
+int getTextureID()
+
+
Get the OpenGL texture ID for this texture +

+

+ +
Returns:
The OpenGL texture ID
+
+
+
+ +

+getTextureData

+
+byte[] getTextureData()
+
+
Get the pixel data from the card for this texture +

+

+ +
Returns:
The texture data from the card for this texture
+
+
+
+ +

+setTextureFilter

+
+void setTextureFilter(int textureFilter)
+
+
Apply a given texture filter to the texture +

+

+
Parameters:
textureFilter - The texture filter to apply (GL_LINEAR, GL_NEAREST, etc..)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/TextureImpl.html b/lib/javadoc/org/newdawn/slick/opengl/TextureImpl.html new file mode 100644 index 000000000..c13070280 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/TextureImpl.html @@ -0,0 +1,983 @@ + + + + + + +TextureImpl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class TextureImpl

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.TextureImpl
+
+
+
All Implemented Interfaces:
Texture
+
+
+
Direct Known Subclasses:
DeferredTexture
+
+
+
+
public class TextureImpl
extends java.lang.Object
implements Texture
+ + +

+A texture to be bound within JOGL. This object is responsible for + keeping track of a given OpenGL texture and for calculating the + texturing mapping coordinates of the full image. + + Since textures need to be powers of 2 the actual texture may be + considerably bigged that the source image and hence the texture + mapping coordinates need to be adjusted to matchup drawing the + sprite against the texture. +

+ +

+

+
Author:
+
Kevin Glass, Brian Matzon
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + + + +
+Constructor Summary
+protected TextureImpl() + +
+          For subclasses to utilise
+ TextureImpl(java.lang.String ref, + int target, + int textureID) + +
+          Create a new texture
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbind() + +
+          Bind the GL context to a texture
+static voidbindNone() + +
+          Clear the binding of the texture
+protected  java.nio.IntBuffercreateIntBuffer(int size) + +
+          Creates an integer buffer to hold specified ints + - strictly a utility method
+ floatgetHeight() + +
+          Get the height of the physical texture
+ intgetImageHeight() + +
+          Get the height of the original image
+ intgetImageWidth() + +
+          Get the width of the original image
+static TexturegetLastBind() + +
+          Retrieve the last texture bound through the texture interface
+ byte[]getTextureData() + +
+          Get the pixel data from the card for this texture
+ intgetTextureHeight() + +
+          Get the height of the actual texture
+ intgetTextureID() + +
+          Get the OpenGL texture ID for this texture
+ java.lang.StringgetTextureRef() + +
+          Get the reference from which this texture was loaded
+ intgetTextureWidth() + +
+          Get the width of the actual texture
+ floatgetWidth() + +
+          Get the width of the physical texture
+ booleanhasAlpha() + +
+          Check if the texture has alpha
+ voidrelease() + +
+          Destroy the texture reference
+ voidreload() + +
+          Reload this texture
+ voidsetAlpha(boolean alpha) + +
+          If this texture has alpha
+ voidsetCacheName(java.lang.String cacheName) + +
+          Set the name this texture is stored against in the cache
+ voidsetHeight(int height) + +
+          Set the height of the image
+ voidsetTextureData(int srcPixelFormat, + int componentCount, + int minFilter, + int magFilter, + java.nio.ByteBuffer textureBuffer) + +
+          Set the texture data that this texture can be reloaded from
+ voidsetTextureFilter(int textureFilter) + +
+          Apply a given texture filter to the texture
+ voidsetTextureHeight(int texHeight) + +
+          Set the height of this texture
+ voidsetTextureID(int textureID) + +
+          Set the OpenGL texture ID for this texture
+ voidsetTextureWidth(int texWidth) + +
+          Set the width of this texture
+ voidsetWidth(int width) + +
+          Set the width of the image
+static voidunbind() + +
+          Clear slick caching of the last bound texture so that an + external texture binder can play with the context before returning + control to slick.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TextureImpl

+
+protected TextureImpl()
+
+
For subclasses to utilise +

+

+
+ +

+TextureImpl

+
+public TextureImpl(java.lang.String ref,
+                   int target,
+                   int textureID)
+
+
Create a new texture +

+

+
Parameters:
ref - The reference this texture was loaded from
target - The GL target
textureID - The GL texture ID
+
+ + + + + + + + +
+Method Detail
+ +

+getLastBind

+
+public static Texture getLastBind()
+
+
Retrieve the last texture bound through the texture interface +

+

+
+
+
+ +
Returns:
The last texture bound
+
+
+
+ +

+setCacheName

+
+public void setCacheName(java.lang.String cacheName)
+
+
Set the name this texture is stored against in the cache +

+

+
+
+
+
Parameters:
cacheName - The name the texture is stored against in the cache
+
+
+
+ +

+hasAlpha

+
+public boolean hasAlpha()
+
+
Description copied from interface: Texture
+
Check if the texture has alpha +

+

+
Specified by:
hasAlpha in interface Texture
+
+
+ +
Returns:
True if the texture has alpha
See Also:
Texture.hasAlpha()
+
+
+
+ +

+getTextureRef

+
+public java.lang.String getTextureRef()
+
+
Description copied from interface: Texture
+
Get the reference from which this texture was loaded +

+

+
Specified by:
getTextureRef in interface Texture
+
+
+ +
Returns:
The reference from which this texture was loaded
See Also:
Texture.getTextureRef()
+
+
+
+ +

+setAlpha

+
+public void setAlpha(boolean alpha)
+
+
If this texture has alpha +

+

+
+
+
+
Parameters:
alpha - True, If this texture has alpha
+
+
+
+ +

+bindNone

+
+public static void bindNone()
+
+
Clear the binding of the texture +

+

+
+
+
+
+
+
+
+ +

+unbind

+
+public static void unbind()
+
+
Clear slick caching of the last bound texture so that an + external texture binder can play with the context before returning + control to slick. +

+

+
+
+
+
+
+
+
+ +

+bind

+
+public void bind()
+
+
Description copied from interface: Texture
+
Bind the GL context to a texture +

+

+
Specified by:
bind in interface Texture
+
+
+
See Also:
Texture.bind()
+
+
+
+ +

+setHeight

+
+public void setHeight(int height)
+
+
Set the height of the image +

+

+
+
+
+
Parameters:
height - The height of the image
+
+
+
+ +

+setWidth

+
+public void setWidth(int width)
+
+
Set the width of the image +

+

+
+
+
+
Parameters:
width - The width of the image
+
+
+
+ +

+getImageHeight

+
+public int getImageHeight()
+
+
Description copied from interface: Texture
+
Get the height of the original image +

+

+
Specified by:
getImageHeight in interface Texture
+
+
+ +
Returns:
The height of the original image
See Also:
Texture.getImageHeight()
+
+
+
+ +

+getImageWidth

+
+public int getImageWidth()
+
+
Description copied from interface: Texture
+
Get the width of the original image +

+

+
Specified by:
getImageWidth in interface Texture
+
+
+ +
Returns:
The width of the original image
See Also:
Texture.getImageWidth()
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Description copied from interface: Texture
+
Get the height of the physical texture +

+

+
Specified by:
getHeight in interface Texture
+
+
+ +
Returns:
The height of physical texture
See Also:
Texture.getHeight()
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Description copied from interface: Texture
+
Get the width of the physical texture +

+

+
Specified by:
getWidth in interface Texture
+
+
+ +
Returns:
The width of physical texture
See Also:
Texture.getWidth()
+
+
+
+ +

+getTextureHeight

+
+public int getTextureHeight()
+
+
Description copied from interface: Texture
+
Get the height of the actual texture +

+

+
Specified by:
getTextureHeight in interface Texture
+
+
+ +
Returns:
The height of the actual texture
See Also:
Texture.getTextureHeight()
+
+
+
+ +

+getTextureWidth

+
+public int getTextureWidth()
+
+
Description copied from interface: Texture
+
Get the width of the actual texture +

+

+
Specified by:
getTextureWidth in interface Texture
+
+
+ +
Returns:
The width of the actual texture
See Also:
Texture.getTextureWidth()
+
+
+
+ +

+setTextureHeight

+
+public void setTextureHeight(int texHeight)
+
+
Set the height of this texture +

+

+
+
+
+
Parameters:
texHeight - The height of the texture
+
+
+
+ +

+setTextureWidth

+
+public void setTextureWidth(int texWidth)
+
+
Set the width of this texture +

+

+
+
+
+
Parameters:
texWidth - The width of the texture
+
+
+
+ +

+release

+
+public void release()
+
+
Description copied from interface: Texture
+
Destroy the texture reference +

+

+
Specified by:
release in interface Texture
+
+
+
See Also:
Texture.release()
+
+
+
+ +

+getTextureID

+
+public int getTextureID()
+
+
Description copied from interface: Texture
+
Get the OpenGL texture ID for this texture +

+

+
Specified by:
getTextureID in interface Texture
+
+
+ +
Returns:
The OpenGL texture ID
See Also:
Texture.getTextureID()
+
+
+
+ +

+setTextureID

+
+public void setTextureID(int textureID)
+
+
Set the OpenGL texture ID for this texture +

+

+
+
+
+
Parameters:
textureID - The OpenGL texture ID
+
+
+
+ +

+createIntBuffer

+
+protected java.nio.IntBuffer createIntBuffer(int size)
+
+
Creates an integer buffer to hold specified ints + - strictly a utility method +

+

+
+
+
+
Parameters:
size - how many int to contain +
Returns:
created IntBuffer
+
+
+
+ +

+getTextureData

+
+public byte[] getTextureData()
+
+
Description copied from interface: Texture
+
Get the pixel data from the card for this texture +

+

+
Specified by:
getTextureData in interface Texture
+
+
+ +
Returns:
The texture data from the card for this texture
See Also:
Texture.getTextureData()
+
+
+
+ +

+setTextureFilter

+
+public void setTextureFilter(int textureFilter)
+
+
Description copied from interface: Texture
+
Apply a given texture filter to the texture +

+

+
Specified by:
setTextureFilter in interface Texture
+
+
+
Parameters:
textureFilter - The texture filter to apply (GL_LINEAR, GL_NEAREST, etc..)
See Also:
Texture.setTextureFilter(int)
+
+
+
+ +

+setTextureData

+
+public void setTextureData(int srcPixelFormat,
+                           int componentCount,
+                           int minFilter,
+                           int magFilter,
+                           java.nio.ByteBuffer textureBuffer)
+
+
Set the texture data that this texture can be reloaded from +

+

+
+
+
+
Parameters:
srcPixelFormat - The pixel format
componentCount - The component count
minFilter - The OpenGL minification filter
magFilter - The OpenGL magnification filter
textureBuffer - The texture buffer containing the data for the texture
+
+
+
+ +

+reload

+
+public void reload()
+
+
Reload this texture +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/TextureLoader.html b/lib/javadoc/org/newdawn/slick/opengl/TextureLoader.html new file mode 100644 index 000000000..0d5b90369 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/TextureLoader.html @@ -0,0 +1,358 @@ + + + + + + +TextureLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl +
+Class TextureLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.TextureLoader
+
+
+
+
public class TextureLoader
extends java.lang.Object
+ + +

+A utility class to wrap the Slick internal texture loader and present a + rational interface. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TextureLoader() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TexturegetTexture(java.lang.String format, + java.io.InputStream in) + +
+          Load a texture with a given format from the supplied input stream
+static TexturegetTexture(java.lang.String format, + java.io.InputStream in, + boolean flipped) + +
+          Load a texture with a given format from the supplied input stream
+static TexturegetTexture(java.lang.String format, + java.io.InputStream in, + boolean flipped, + int filter) + +
+          Load a texture with a given format from the supplied input stream
+static TexturegetTexture(java.lang.String format, + java.io.InputStream in, + int filter) + +
+          Load a texture with a given format from the supplied input stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TextureLoader

+
+public TextureLoader()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String format,
+                                 java.io.InputStream in)
+                          throws java.io.IOException
+
+
Load a texture with a given format from the supplied input stream +

+

+
Parameters:
format - The format of the texture to be loaded (something like "PNG" or "TGA")
in - The input stream from which the image data will be read +
Returns:
The newly created texture +
Throws: +
java.io.IOException - Indicates a failure to read the image data
+
+
+
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String format,
+                                 java.io.InputStream in,
+                                 boolean flipped)
+                          throws java.io.IOException
+
+
Load a texture with a given format from the supplied input stream +

+

+
Parameters:
format - The format of the texture to be loaded (something like "PNG" or "TGA")
in - The input stream from which the image data will be read
flipped - True if the image should be flipped vertically on loading +
Returns:
The newly created texture +
Throws: +
java.io.IOException - Indicates a failure to read the image data
+
+
+
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String format,
+                                 java.io.InputStream in,
+                                 int filter)
+                          throws java.io.IOException
+
+
Load a texture with a given format from the supplied input stream +

+

+
Parameters:
format - The format of the texture to be loaded (something like "PNG" or "TGA")
in - The input stream from which the image data will be read
filter - The GL texture filter to use for scaling up and down +
Returns:
The newly created texture +
Throws: +
java.io.IOException - Indicates a failure to read the image data
+
+
+
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String format,
+                                 java.io.InputStream in,
+                                 boolean flipped,
+                                 int filter)
+                          throws java.io.IOException
+
+
Load a texture with a given format from the supplied input stream +

+

+
Parameters:
format - The format of the texture to be loaded (something like "PNG" or "TGA")
in - The input stream from which the image data will be read
flipped - True if the image should be flipped vertically on loading
filter - The GL texture filter to use for scaling up and down +
Returns:
The newly created texture +
Throws: +
java.io.IOException - Indicates a failure to read the image data
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeIOException.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeIOException.html new file mode 100644 index 000000000..6f0593dba --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeIOException.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.CompositeIOException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.CompositeIOException

+
+No usage of org.newdawn.slick.opengl.CompositeIOException +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeImageData.html new file mode 100644 index 000000000..8db9ea625 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/CompositeImageData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.CompositeImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.CompositeImageData

+
+No usage of org.newdawn.slick.opengl.CompositeImageData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/CursorLoader.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/CursorLoader.html new file mode 100644 index 000000000..bfd833090 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/CursorLoader.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.CursorLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.CursorLoader

+
+ + + + + + + + + +
+Packages that use CursorLoader
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of CursorLoader in org.newdawn.slick.opengl
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl that return CursorLoader
+static CursorLoaderCursorLoader.get() + +
+          Retrieve the single instance of this loader - convinient huh?
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/DeferredTexture.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/DeferredTexture.html new file mode 100644 index 000000000..b0597729b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/DeferredTexture.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.DeferredTexture (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.DeferredTexture

+
+No usage of org.newdawn.slick.opengl.DeferredTexture +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/EmptyImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/EmptyImageData.html new file mode 100644 index 000000000..d0b3f6bc3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/EmptyImageData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.EmptyImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.EmptyImageData

+
+No usage of org.newdawn.slick.opengl.EmptyImageData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/GLUtils.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/GLUtils.html new file mode 100644 index 000000000..4ff4e4f99 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/GLUtils.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.GLUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.GLUtils

+
+No usage of org.newdawn.slick.opengl.GLUtils +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageData.html new file mode 100644 index 000000000..e37b6f188 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageData.html @@ -0,0 +1,384 @@ + + + + + + +Uses of Interface org.newdawn.slick.opengl.ImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.opengl.ImageData

+
+ + + + + + + + + + + + + + + + + +
+Packages that use ImageData
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of ImageData in org.newdawn.slick
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick that implement ImageData
+ classImageBuffer + +
+          A utility for creating images from pixel operations + + Expected usage is: + + ImageBuffer buffer = new ImageBuffer(320,200); + buffer.setRGBA(100,100,50,50,20,255); + ..
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type ImageData
+abstract  voidGameContainer.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+ voidAppletGameContainer.Container.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+           
+ voidAppGameContainer.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+           
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type ImageData
Image(ImageData data) + +
+          Create an image from a image data source
Image(ImageData data, + int f) + +
+          Create an image from a image data source.
+  +

+ + + + + +
+Uses of ImageData in org.newdawn.slick.gui
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.gui with parameters of type ImageData
+ voidGUIContext.setMouseCursor(ImageData data, + int hotSpotX, + int hotSpotY) + +
+          Set the mouse cursor to be displayed - this is a hardware cursor and hence + shouldn't have any impact on FPS.
+  +

+ + + + + +
+Uses of ImageData in org.newdawn.slick.opengl
+  +

+ + + + + + + + + +
Subinterfaces of ImageData in org.newdawn.slick.opengl
+ interfaceLoadableImageData + +
+          An image data source that can load images from a stream
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.opengl that implement ImageData
+ classCompositeImageData + +
+          A composite data source that checks multiple loaders in order of + preference
+ classEmptyImageData + +
+          An image data implementation which represents an empty texture
+ classImageIOImageData + +
+          An image data provider that uses ImageIO to retrieve image data in a format + suitable for creating OpenGL textures.
+ classPNGImageData + +
+          The PNG imge data source that is pure java reading PNGs
+ classTGAImageData + +
+          A utility to load TGAs.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl with parameters of type ImageData
+ org.lwjgl.input.CursorCursorLoader.getCursor(ImageData imageData, + int x, + int y) + +
+          Get a cursor based on a set of image data
+ TextureInternalTextureLoader.getTexture(ImageData dataSource, + int filter) + +
+          Get a texture from a image file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageDataFactory.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageDataFactory.html new file mode 100644 index 000000000..993b30a75 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageDataFactory.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.ImageDataFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.ImageDataFactory

+
+No usage of org.newdawn.slick.opengl.ImageDataFactory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageIOImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageIOImageData.html new file mode 100644 index 000000000..2a08044be --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/ImageIOImageData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.ImageIOImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.ImageIOImageData

+
+No usage of org.newdawn.slick.opengl.ImageIOImageData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/InternalTextureLoader.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/InternalTextureLoader.html new file mode 100644 index 000000000..b98a27d0c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/InternalTextureLoader.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.InternalTextureLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.InternalTextureLoader

+
+ + + + + + + + + +
+Packages that use InternalTextureLoader
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of InternalTextureLoader in org.newdawn.slick.opengl
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl that return InternalTextureLoader
+static InternalTextureLoaderInternalTextureLoader.get() + +
+          Get the single instance of this texture loader
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/LoadableImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/LoadableImageData.html new file mode 100644 index 000000000..ce1ea7bc9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/LoadableImageData.html @@ -0,0 +1,276 @@ + + + + + + +Uses of Interface org.newdawn.slick.opengl.LoadableImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.opengl.LoadableImageData

+
+ + + + + + + + + + + + + +
+Packages that use LoadableImageData
org.newdawn.slick  
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of LoadableImageData in org.newdawn.slick
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick with parameters of type LoadableImageData
BigImage(LoadableImageData data, + java.nio.ByteBuffer imageBuffer, + int filter) + +
+          Create a new big image by loading it from the specified image data
BigImage(LoadableImageData data, + java.nio.ByteBuffer imageBuffer, + int filter, + int tileSize) + +
+          Create a new big image by loading it from the specified image data
+  +

+ + + + + +
+Uses of LoadableImageData in org.newdawn.slick.opengl
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.opengl that implement LoadableImageData
+ classCompositeImageData + +
+          A composite data source that checks multiple loaders in order of + preference
+ classImageIOImageData + +
+          An image data provider that uses ImageIO to retrieve image data in a format + suitable for creating OpenGL textures.
+ classPNGImageData + +
+          The PNG imge data source that is pure java reading PNGs
+ classTGAImageData + +
+          A utility to load TGAs.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl that return LoadableImageData
+static LoadableImageDataImageDataFactory.getImageDataFor(java.lang.String ref) + +
+          Create an image data that is appropriate for the reference supplied
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl with parameters of type LoadableImageData
+ voidCompositeImageData.add(LoadableImageData data) + +
+          Add a potentional source of image data
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.Format.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.Format.html new file mode 100644 index 000000000..5b1749250 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.Format.html @@ -0,0 +1,270 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.PNGDecoder.Format (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.PNGDecoder.Format

+
+ + + + + + + + + +
+Packages that use PNGDecoder.Format
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of PNGDecoder.Format in org.newdawn.slick.opengl
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.opengl declared as PNGDecoder.Format
+static PNGDecoder.FormatPNGDecoder.ABGR + +
+           
+static PNGDecoder.FormatPNGDecoder.ALPHA + +
+           
+static PNGDecoder.FormatPNGDecoder.BGRA + +
+           
+static PNGDecoder.FormatPNGDecoder.LUMINANCE + +
+           
+static PNGDecoder.FormatPNGDecoder.LUMINANCE_ALPHA + +
+           
+static PNGDecoder.FormatPNGDecoder.RGB + +
+           
+static PNGDecoder.FormatPNGDecoder.RGBA + +
+           
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl that return PNGDecoder.Format
+ PNGDecoder.FormatPNGDecoder.decideTextureFormat(PNGDecoder.Format fmt) + +
+          Computes the implemented format conversion for the desired format.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl with parameters of type PNGDecoder.Format
+ PNGDecoder.FormatPNGDecoder.decideTextureFormat(PNGDecoder.Format fmt) + +
+          Computes the implemented format conversion for the desired format.
+ voidPNGDecoder.decode(java.nio.ByteBuffer buffer, + int stride, + PNGDecoder.Format fmt) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.html new file mode 100644 index 000000000..55761a1b9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGDecoder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.PNGDecoder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.PNGDecoder

+
+No usage of org.newdawn.slick.opengl.PNGDecoder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGImageData.html new file mode 100644 index 000000000..32eaa39f8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/PNGImageData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.PNGImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.PNGImageData

+
+No usage of org.newdawn.slick.opengl.PNGImageData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/SlickCallable.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/SlickCallable.html new file mode 100644 index 000000000..ce3b4bd04 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/SlickCallable.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.SlickCallable (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.SlickCallable

+
+No usage of org.newdawn.slick.opengl.SlickCallable +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/TGAImageData.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/TGAImageData.html new file mode 100644 index 000000000..accdda49e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/TGAImageData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.TGAImageData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.TGAImageData

+
+No usage of org.newdawn.slick.opengl.TGAImageData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/Texture.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/Texture.html new file mode 100644 index 000000000..3f6246942 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/Texture.html @@ -0,0 +1,478 @@ + + + + + + +Uses of Interface org.newdawn.slick.opengl.Texture (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.opengl.Texture

+
+ + + + + + + + + + + + + + + + + +
+Packages that use Texture
org.newdawn.slick  
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of Texture in org.newdawn.slick
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick declared as Texture
+protected  TextureImage.texture + +
+          The OpenGL texture for this image
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick that return Texture
+ TextureImage.getTexture() + +
+          Get the OpenGL texture holding this image
+ TextureBigImage.getTexture() + +
+          Not supported in BigImage
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick with parameters of type Texture
+ voidSpriteSheet.setTexture(Texture texture) + +
+           
+ voidImage.setTexture(Texture texture) + +
+          Set the texture used by this image
+ voidBigImage.setTexture(Texture texture) + +
+          Not supported in BigImage
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick with parameters of type Texture
Image(Texture texture) + +
+          Creates an image using the specified texture
+  +

+ + + + + +
+Uses of Texture in org.newdawn.slick.opengl
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.opengl that implement Texture
+ classDeferredTexture + +
+          A texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it
+ classTextureImpl + +
+          A texture to be bound within JOGL.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.opengl that return Texture
+ TextureInternalTextureLoader.createTexture(int width, + int height) + +
+          Create an empty texture
+ TextureInternalTextureLoader.createTexture(int width, + int height, + int filter) + +
+          Create an empty texture
+static TextureTextureImpl.getLastBind() + +
+          Retrieve the last texture bound through the texture interface
+ TextureInternalTextureLoader.getTexture(java.io.File source, + boolean flipped, + int filter) + +
+          Get a texture from a specific file
+ TextureInternalTextureLoader.getTexture(java.io.File source, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a specific file
+ TextureInternalTextureLoader.getTexture(ImageData dataSource, + int filter) + +
+          Get a texture from a image file
+ TextureInternalTextureLoader.getTexture(java.io.InputStream in, + java.lang.String resourceName, + boolean flipped, + int filter) + +
+          Get a texture from a image file
+ TextureInternalTextureLoader.getTexture(java.lang.String resourceName, + boolean flipped, + int filter) + +
+          Get a texture from a resource location
+ TextureInternalTextureLoader.getTexture(java.lang.String resourceName, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a resource location
+static TextureTextureLoader.getTexture(java.lang.String format, + java.io.InputStream in) + +
+          Load a texture with a given format from the supplied input stream
+static TextureTextureLoader.getTexture(java.lang.String format, + java.io.InputStream in, + boolean flipped) + +
+          Load a texture with a given format from the supplied input stream
+static TextureTextureLoader.getTexture(java.lang.String format, + java.io.InputStream in, + boolean flipped, + int filter) + +
+          Load a texture with a given format from the supplied input stream
+static TextureTextureLoader.getTexture(java.lang.String format, + java.io.InputStream in, + int filter) + +
+          Load a texture with a given format from the supplied input stream
+  +

+ + + + + +
+Uses of Texture in org.newdawn.slick.util
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util that return Texture
+static TextureBufferedImageUtil.getTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceImage) + +
+          Load a texture
+static TextureBufferedImageUtil.getTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceImage, + int filter) + +
+          Load a texture
+static TextureBufferedImageUtil.getTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceimage, + int target, + int dstPixelFormat, + int minFilter, + int magFilter) + +
+          Load a texture into OpenGL from a BufferedImage
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureImpl.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureImpl.html new file mode 100644 index 000000000..f981c164b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureImpl.html @@ -0,0 +1,222 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.TextureImpl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.TextureImpl

+
+ + + + + + + + + +
+Packages that use TextureImpl
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
+  +

+ + + + + +
+Uses of TextureImpl in org.newdawn.slick.opengl
+  +

+ + + + + + + + + +
Subclasses of TextureImpl in org.newdawn.slick.opengl
+ classDeferredTexture + +
+          A texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl that return TextureImpl
+ TextureImplInternalTextureLoader.getTexture(java.io.InputStream in, + java.lang.String resourceName, + boolean flipped, + int filter, + int[] transparent) + +
+          Get a texture from a image file
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl with parameters of type TextureImpl
+ intInternalTextureLoader.reload(TextureImpl texture, + int srcPixelFormat, + int componentCount, + int minFilter, + int magFilter, + java.nio.ByteBuffer textureBuffer) + +
+          Reload a given texture blob
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureLoader.html b/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureLoader.html new file mode 100644 index 000000000..47ab5834f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/class-use/TextureLoader.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.TextureLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.TextureLoader

+
+No usage of org.newdawn.slick.opengl.TextureLoader +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/package-frame.html b/lib/javadoc/org/newdawn/slick/opengl/package-frame.html new file mode 100644 index 000000000..84d21b419 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/package-frame.html @@ -0,0 +1,86 @@ + + + + + + +org.newdawn.slick.opengl (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.opengl + + + + +
+Interfaces  + +
+ImageData +
+LoadableImageData +
+Texture
+ + + + + + +
+Classes  + +
+CompositeImageData +
+CursorLoader +
+DeferredTexture +
+EmptyImageData +
+GLUtils +
+ImageDataFactory +
+ImageIOImageData +
+InternalTextureLoader +
+PNGDecoder +
+PNGDecoder.Format +
+PNGImageData +
+SlickCallable +
+TextureImpl +
+TextureLoader +
+TGAImageData
+ + + + + + +
+Exceptions  + +
+CompositeIOException
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/package-summary.html b/lib/javadoc/org/newdawn/slick/opengl/package-summary.html new file mode 100644 index 000000000..a949455ea --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/package-summary.html @@ -0,0 +1,273 @@ + + + + + + +org.newdawn.slick.opengl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.opengl +

+This package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
ImageDataA description of any class providing ImageData in a form suitable for OpenGL texture + creation.
LoadableImageDataAn image data source that can load images from a stream
TextureThe description of a texture loaded by the TextureLoader utility
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
CompositeImageDataA composite data source that checks multiple loaders in order of + preference
CursorLoaderA utility to load cursors (thanks go to Kappa for the animated cursor + loader)
DeferredTextureA texture proxy that can be used to load a texture at a later date while still + allowing elements to reference it
EmptyImageDataAn image data implementation which represents an empty texture
GLUtilsA collection of utilities to allow aid interaction with the GL provider
ImageDataFactoryA static utility to create the appropriate image data for a particular reference.
ImageIOImageDataAn image data provider that uses ImageIO to retrieve image data in a format + suitable for creating OpenGL textures.
InternalTextureLoaderA texture loaded based on many old versions that will load image data from a file + and produce OpenGL textures.
PNGDecoderA PNGDecoder.
PNGDecoder.Format 
PNGImageDataThe PNG imge data source that is pure java reading PNGs
SlickCallableA utility to allow performing GL operations without contaminating the + Slick OpenGL state.
TextureImplA texture to be bound within JOGL.
TextureLoaderA utility class to wrap the Slick internal texture loader and present a + rational interface.
TGAImageDataA utility to load TGAs.
+  + +

+ + + + + + + + + +
+Exception Summary
CompositeIOExceptionA collection of IOException that failed image data loading
+  + +

+

+Package org.newdawn.slick.opengl Description +

+ +

+This package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. As +a user you shouldn't need to access anything here directly. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/package-tree.html b/lib/javadoc/org/newdawn/slick/opengl/package-tree.html new file mode 100644 index 000000000..f450e1b53 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/package-tree.html @@ -0,0 +1,176 @@ + + + + + + +org.newdawn.slick.opengl Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.opengl +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/package-use.html b/lib/javadoc/org/newdawn/slick/opengl/package-use.html new file mode 100644 index 000000000..62bc82066 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/package-use.html @@ -0,0 +1,280 @@ + + + + + + +Uses of Package org.newdawn.slick.opengl (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.opengl

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.opengl
org.newdawn.slick  
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.opengl used by org.newdawn.slick
ImageData + +
+          A description of any class providing ImageData in a form suitable for OpenGL texture + creation.
LoadableImageData + +
+          An image data source that can load images from a stream
Texture + +
+          The description of a texture loaded by the TextureLoader utility
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl used by org.newdawn.slick.gui
ImageData + +
+          A description of any class providing ImageData in a form suitable for OpenGL texture + creation.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.opengl used by org.newdawn.slick.opengl
CursorLoader + +
+          A utility to load cursors (thanks go to Kappa for the animated cursor + loader)
ImageData + +
+          A description of any class providing ImageData in a form suitable for OpenGL texture + creation.
InternalTextureLoader + +
+          A texture loaded based on many old versions that will load image data from a file + and produce OpenGL textures.
LoadableImageData + +
+          An image data source that can load images from a stream
PNGDecoder.Format + +
+           
Texture + +
+          The description of a texture loaded by the TextureLoader utility
TextureImpl + +
+          A texture to be bound within JOGL.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl used by org.newdawn.slick.util
Texture + +
+          The description of a texture loaded by the TextureLoader utility
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/FBOGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/FBOGraphics.html new file mode 100644 index 000000000..dead70783 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/FBOGraphics.html @@ -0,0 +1,419 @@ + + + + + + +FBOGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.pbuffer +
+Class FBOGraphics

+
+java.lang.Object
+  extended by org.newdawn.slick.Graphics
+      extended by org.newdawn.slick.opengl.pbuffer.FBOGraphics
+
+
+
+
public class FBOGraphics
extends Graphics
+ + +

+A graphics implementation that renders to an FBO +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.Graphics
currentGraphics, DEFAULT_FONT, GL, MODE_ADD, MODE_ALPHA_BLEND, MODE_ALPHA_MAP, MODE_COLOR_MULTIPLY, MODE_NORMAL, MODE_SCREEN, screenHeight, screenWidth
+  + + + + + + + + + + +
+Constructor Summary
FBOGraphics(Image image) + +
+          Create a new graphics context around an FBO
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Dispose this graphics context, this will release any underlying resourses.
+protected  voiddisable() + +
+          Disable rendering to this graphics context
+protected  voidenable() + +
+          Enable rendering to this graphics context
+protected  voidenterOrtho() + +
+          Enter the orthographic mode
+ voidflush() + +
+          Flush this graphics context to the underlying rendering context
+protected  voidinitGL() + +
+          Initialise the GL context
+ + + + + + + +
Methods inherited from class org.newdawn.slick.Graphics
clear, clearAlphaMap, clearClip, clearWorldClip, copyArea, draw, draw, drawAnimation, drawAnimation, drawArc, drawArc, drawGradientLine, drawGradientLine, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawOval, drawRect, drawRoundRect, drawRoundRect, drawString, fill, fill, fillArc, fillArc, fillOval, fillOval, fillRect, fillRect, fillRoundRect, fillRoundRect, getArea, getBackground, getClip, getColor, getFont, getLineWidth, getPixel, getWorldClip, isAntiAlias, popTransform, pushTransform, resetFont, resetLineWidth, resetTransform, rotate, scale, setAntiAlias, setBackground, setClip, setClip, setColor, setCurrent, setDrawMode, setFont, setLineWidth, setWorldClip, setWorldClip, texture, texture, texture, texture, texture, texture, translate
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FBOGraphics

+
+public FBOGraphics(Image image)
+            throws SlickException
+
+
Create a new graphics context around an FBO +

+

+
Parameters:
image - The image we're rendering to +
Throws: +
SlickException - Indicates a failure to use pbuffers
+
+ + + + + + + + +
+Method Detail
+ +

+disable

+
+protected void disable()
+
+
Description copied from class: Graphics
+
Disable rendering to this graphics context +

+

+
Overrides:
disable in class Graphics
+
+
+
See Also:
Graphics.disable()
+
+
+
+ +

+enable

+
+protected void enable()
+
+
Description copied from class: Graphics
+
Enable rendering to this graphics context +

+

+
Overrides:
enable in class Graphics
+
+
+
See Also:
Graphics.enable()
+
+
+
+ +

+initGL

+
+protected void initGL()
+
+
Initialise the GL context +

+

+
+
+
+
+ +

+enterOrtho

+
+protected void enterOrtho()
+
+
Enter the orthographic mode +

+

+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Description copied from class: Graphics
+
Dispose this graphics context, this will release any underlying resourses. However + this will also invalidate it's use +

+

+
Overrides:
destroy in class Graphics
+
+
+
See Also:
Graphics.destroy()
+
+
+
+ +

+flush

+
+public void flush()
+
+
Description copied from class: Graphics
+
Flush this graphics context to the underlying rendering context +

+

+
Overrides:
flush in class Graphics
+
+
+
See Also:
Graphics.flush()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/GraphicsFactory.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/GraphicsFactory.html new file mode 100644 index 000000000..1fde67bfa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/GraphicsFactory.html @@ -0,0 +1,357 @@ + + + + + + +GraphicsFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.pbuffer +
+Class GraphicsFactory

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.pbuffer.GraphicsFactory
+
+
+
+
public class GraphicsFactory
extends java.lang.Object
+ + +

+A factory to produce an appropriate render to texture graphics context based on current + hardware +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
GraphicsFactory() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static GraphicsgetGraphicsForImage(Image image) + +
+          Get a graphics context for a particular image
+static voidreleaseGraphicsForImage(Image image) + +
+          Release any graphics context that is assocaited with the given image
+static voidsetUseFBO(boolean useFBO) + +
+          Force FBO use on or off
+static booleanusingFBO() + +
+          Check if we're using FBO for dynamic textures
+static booleanusingPBuffer() + +
+          Check if we're using PBuffer for dynamic textures
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GraphicsFactory

+
+public GraphicsFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setUseFBO

+
+public static void setUseFBO(boolean useFBO)
+
+
Force FBO use on or off +

+

+
Parameters:
useFBO - True if we should try and use FBO for offscreen images
+
+
+
+ +

+usingFBO

+
+public static boolean usingFBO()
+
+
Check if we're using FBO for dynamic textures +

+

+ +
Returns:
True if we're using FBOs
+
+
+
+ +

+usingPBuffer

+
+public static boolean usingPBuffer()
+
+
Check if we're using PBuffer for dynamic textures +

+

+ +
Returns:
True if we're using PBuffer
+
+
+
+ +

+getGraphicsForImage

+
+public static Graphics getGraphicsForImage(Image image)
+                                    throws SlickException
+
+
Get a graphics context for a particular image +

+

+
Parameters:
image - The image for which to retrieve the graphics context +
Returns:
The graphics context +
Throws: +
SlickException - Indicates it wasn't possible to create a graphics context + given available hardware.
+
+
+
+ +

+releaseGraphicsForImage

+
+public static void releaseGraphicsForImage(Image image)
+                                    throws SlickException
+
+
Release any graphics context that is assocaited with the given image +

+

+
Parameters:
image - The image to release +
Throws: +
SlickException - Indicates a failure to release the context
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferGraphics.html new file mode 100644 index 000000000..647d6a14b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferGraphics.html @@ -0,0 +1,419 @@ + + + + + + +PBufferGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.pbuffer +
+Class PBufferGraphics

+
+java.lang.Object
+  extended by org.newdawn.slick.Graphics
+      extended by org.newdawn.slick.opengl.pbuffer.PBufferGraphics
+
+
+
+
public class PBufferGraphics
extends Graphics
+ + +

+A graphics implementation that renders to a PBuffer +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.Graphics
currentGraphics, DEFAULT_FONT, GL, MODE_ADD, MODE_ALPHA_BLEND, MODE_ALPHA_MAP, MODE_COLOR_MULTIPLY, MODE_NORMAL, MODE_SCREEN, screenHeight, screenWidth
+  + + + + + + + + + + +
+Constructor Summary
PBufferGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Dispose this graphics context, this will release any underlying resourses.
+protected  voiddisable() + +
+          Disable rendering to this graphics context
+protected  voidenable() + +
+          Enable rendering to this graphics context
+protected  voidenterOrtho() + +
+          Enter the orthographic mode
+ voidflush() + +
+          Flush this graphics context to the underlying rendering context
+protected  voidinitGL() + +
+          Initialise the GL context
+ + + + + + + +
Methods inherited from class org.newdawn.slick.Graphics
clear, clearAlphaMap, clearClip, clearWorldClip, copyArea, draw, draw, drawAnimation, drawAnimation, drawArc, drawArc, drawGradientLine, drawGradientLine, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawOval, drawRect, drawRoundRect, drawRoundRect, drawString, fill, fill, fillArc, fillArc, fillOval, fillOval, fillRect, fillRect, fillRoundRect, fillRoundRect, getArea, getBackground, getClip, getColor, getFont, getLineWidth, getPixel, getWorldClip, isAntiAlias, popTransform, pushTransform, resetFont, resetLineWidth, resetTransform, rotate, scale, setAntiAlias, setBackground, setClip, setClip, setColor, setCurrent, setDrawMode, setFont, setLineWidth, setWorldClip, setWorldClip, texture, texture, texture, texture, texture, texture, translate
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PBufferGraphics

+
+public PBufferGraphics(Image image)
+                throws SlickException
+
+
Create a new graphics context around a pbuffer +

+

+
Parameters:
image - The image we're rendering to +
Throws: +
SlickException - Indicates a failure to use pbuffers
+
+ + + + + + + + +
+Method Detail
+ +

+disable

+
+protected void disable()
+
+
Description copied from class: Graphics
+
Disable rendering to this graphics context +

+

+
Overrides:
disable in class Graphics
+
+
+
See Also:
Graphics.disable()
+
+
+
+ +

+enable

+
+protected void enable()
+
+
Description copied from class: Graphics
+
Enable rendering to this graphics context +

+

+
Overrides:
enable in class Graphics
+
+
+
See Also:
Graphics.enable()
+
+
+
+ +

+initGL

+
+protected void initGL()
+
+
Initialise the GL context +

+

+
+
+
+
+ +

+enterOrtho

+
+protected void enterOrtho()
+
+
Enter the orthographic mode +

+

+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Description copied from class: Graphics
+
Dispose this graphics context, this will release any underlying resourses. However + this will also invalidate it's use +

+

+
Overrides:
destroy in class Graphics
+
+
+
See Also:
Graphics.destroy()
+
+
+
+ +

+flush

+
+public void flush()
+
+
Description copied from class: Graphics
+
Flush this graphics context to the underlying rendering context +

+

+
Overrides:
flush in class Graphics
+
+
+
See Also:
Graphics.flush()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferUniqueGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferUniqueGraphics.html new file mode 100644 index 000000000..73c3df269 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/PBufferUniqueGraphics.html @@ -0,0 +1,420 @@ + + + + + + +PBufferUniqueGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.pbuffer +
+Class PBufferUniqueGraphics

+
+java.lang.Object
+  extended by org.newdawn.slick.Graphics
+      extended by org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics
+
+
+
+
public class PBufferUniqueGraphics
extends Graphics
+ + +

+A graphics implementation that renders to a PBuffer using a unique context, i.e. + without render to texture +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.Graphics
currentGraphics, DEFAULT_FONT, GL, MODE_ADD, MODE_ALPHA_BLEND, MODE_ALPHA_MAP, MODE_COLOR_MULTIPLY, MODE_NORMAL, MODE_SCREEN, screenHeight, screenWidth
+  + + + + + + + + + + +
+Constructor Summary
PBufferUniqueGraphics(Image image) + +
+          Create a new graphics context around a pbuffer
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Dispose this graphics context, this will release any underlying resourses.
+protected  voiddisable() + +
+          Disable rendering to this graphics context
+protected  voidenable() + +
+          Enable rendering to this graphics context
+protected  voidenterOrtho() + +
+          Enter the orthographic mode
+ voidflush() + +
+          Flush this graphics context to the underlying rendering context
+protected  voidinitGL() + +
+          Initialise the GL context
+ + + + + + + +
Methods inherited from class org.newdawn.slick.Graphics
clear, clearAlphaMap, clearClip, clearWorldClip, copyArea, draw, draw, drawAnimation, drawAnimation, drawArc, drawArc, drawGradientLine, drawGradientLine, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawOval, drawRect, drawRoundRect, drawRoundRect, drawString, fill, fill, fillArc, fillArc, fillOval, fillOval, fillRect, fillRect, fillRoundRect, fillRoundRect, getArea, getBackground, getClip, getColor, getFont, getLineWidth, getPixel, getWorldClip, isAntiAlias, popTransform, pushTransform, resetFont, resetLineWidth, resetTransform, rotate, scale, setAntiAlias, setBackground, setClip, setClip, setColor, setCurrent, setDrawMode, setFont, setLineWidth, setWorldClip, setWorldClip, texture, texture, texture, texture, texture, texture, translate
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PBufferUniqueGraphics

+
+public PBufferUniqueGraphics(Image image)
+                      throws SlickException
+
+
Create a new graphics context around a pbuffer +

+

+
Parameters:
image - The image we're rendering to +
Throws: +
SlickException - Indicates a failure to use pbuffers
+
+ + + + + + + + +
+Method Detail
+ +

+disable

+
+protected void disable()
+
+
Description copied from class: Graphics
+
Disable rendering to this graphics context +

+

+
Overrides:
disable in class Graphics
+
+
+
See Also:
Graphics.disable()
+
+
+
+ +

+enable

+
+protected void enable()
+
+
Description copied from class: Graphics
+
Enable rendering to this graphics context +

+

+
Overrides:
enable in class Graphics
+
+
+
See Also:
Graphics.enable()
+
+
+
+ +

+initGL

+
+protected void initGL()
+
+
Initialise the GL context +

+

+
+
+
+
+ +

+enterOrtho

+
+protected void enterOrtho()
+
+
Enter the orthographic mode +

+

+
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Description copied from class: Graphics
+
Dispose this graphics context, this will release any underlying resourses. However + this will also invalidate it's use +

+

+
Overrides:
destroy in class Graphics
+
+
+
See Also:
Graphics.destroy()
+
+
+
+ +

+flush

+
+public void flush()
+
+
Description copied from class: Graphics
+
Flush this graphics context to the underlying rendering context +

+

+
Overrides:
flush in class Graphics
+
+
+
See Also:
Graphics.flush()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/FBOGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/FBOGraphics.html new file mode 100644 index 000000000..bfd44749c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/FBOGraphics.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.pbuffer.FBOGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.pbuffer.FBOGraphics

+
+No usage of org.newdawn.slick.opengl.pbuffer.FBOGraphics +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/GraphicsFactory.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/GraphicsFactory.html new file mode 100644 index 000000000..59b920b54 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/GraphicsFactory.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.pbuffer.GraphicsFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.pbuffer.GraphicsFactory

+
+No usage of org.newdawn.slick.opengl.pbuffer.GraphicsFactory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferGraphics.html new file mode 100644 index 000000000..8e7410173 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferGraphics.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.pbuffer.PBufferGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.pbuffer.PBufferGraphics

+
+No usage of org.newdawn.slick.opengl.pbuffer.PBufferGraphics +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferUniqueGraphics.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferUniqueGraphics.html new file mode 100644 index 000000000..6ac8796f6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/class-use/PBufferUniqueGraphics.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics

+
+No usage of org.newdawn.slick.opengl.pbuffer.PBufferUniqueGraphics +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-frame.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-frame.html new file mode 100644 index 000000000..af9971631 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-frame.html @@ -0,0 +1,38 @@ + + + + + + +org.newdawn.slick.opengl.pbuffer (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.opengl.pbuffer + + + + +
+Classes  + +
+FBOGraphics +
+GraphicsFactory +
+PBufferGraphics +
+PBufferUniqueGraphics
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-summary.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-summary.html new file mode 100644 index 000000000..f7d3d22ae --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-summary.html @@ -0,0 +1,170 @@ + + + + + + +org.newdawn.slick.opengl.pbuffer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.opengl.pbuffer +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
FBOGraphicsA graphics implementation that renders to an FBO
GraphicsFactoryA factory to produce an appropriate render to texture graphics context based on current + hardware
PBufferGraphicsA graphics implementation that renders to a PBuffer
PBufferUniqueGraphicsA graphics implementation that renders to a PBuffer using a unique context, i.e.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-tree.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-tree.html new file mode 100644 index 000000000..7721366f6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +org.newdawn.slick.opengl.pbuffer Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.opengl.pbuffer +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-use.html b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-use.html new file mode 100644 index 000000000..796b14d18 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/pbuffer/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.newdawn.slick.opengl.pbuffer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.opengl.pbuffer

+
+No usage of org.newdawn.slick.opengl.pbuffer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/DefaultLineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/DefaultLineStripRenderer.html new file mode 100644 index 000000000..e6ef30e22 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/DefaultLineStripRenderer.html @@ -0,0 +1,454 @@ + + + + + + +DefaultLineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Class DefaultLineStripRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer
+
+
+
All Implemented Interfaces:
LineStripRenderer
+
+
+
+
public class DefaultLineStripRenderer
extends java.lang.Object
implements LineStripRenderer
+ + +

+The default version of the renderer relies of GL calls to do everything. + Unfortunately this is driver dependent and often implemented inconsistantly +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultLineStripRenderer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanapplyGLLineFixes() + +
+          Check if we should apply default line fixes
+ voidcolor(float r, + float g, + float b, + float a) + +
+          Apply a colour to the next vertex
+ voidend() + +
+          End the line strips
+ voidsetAntiAlias(boolean antialias) + +
+          Indicate whether antialiasing should be applied
+ voidsetLineCaps(boolean caps) + +
+          Indicate if we should render end caps
+ voidsetWidth(float width) + +
+          Set the width of the lines to be drawn
+ voidstart() + +
+          Start the line strips
+ voidvertex(float x, + float y) + +
+          Add a vertex
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultLineStripRenderer

+
+public DefaultLineStripRenderer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+end

+
+public void end()
+
+
Description copied from interface: LineStripRenderer
+
End the line strips +

+

+
Specified by:
end in interface LineStripRenderer
+
+
+
See Also:
LineStripRenderer.end()
+
+
+
+ +

+setAntiAlias

+
+public void setAntiAlias(boolean antialias)
+
+
Description copied from interface: LineStripRenderer
+
Indicate whether antialiasing should be applied +

+

+
Specified by:
setAntiAlias in interface LineStripRenderer
+
+
+
Parameters:
antialias - True if antialiasing should be applied
See Also:
LineStripRenderer.setAntiAlias(boolean)
+
+
+
+ +

+setWidth

+
+public void setWidth(float width)
+
+
Description copied from interface: LineStripRenderer
+
Set the width of the lines to be drawn +

+

+
Specified by:
setWidth in interface LineStripRenderer
+
+
+
Parameters:
width - The width of the lines to be drawn
See Also:
LineStripRenderer.setWidth(float)
+
+
+
+ +

+start

+
+public void start()
+
+
Description copied from interface: LineStripRenderer
+
Start the line strips +

+

+
Specified by:
start in interface LineStripRenderer
+
+
+
See Also:
LineStripRenderer.start()
+
+
+
+ +

+vertex

+
+public void vertex(float x,
+                   float y)
+
+
Description copied from interface: LineStripRenderer
+
Add a vertex +

+

+
Specified by:
vertex in interface LineStripRenderer
+
+
+
Parameters:
x - The x coordinate of the vertex
y - The y coordinate of the vertex
See Also:
LineStripRenderer.vertex(float, float)
+
+
+
+ +

+color

+
+public void color(float r,
+                  float g,
+                  float b,
+                  float a)
+
+
Description copied from interface: LineStripRenderer
+
Apply a colour to the next vertex +

+

+
Specified by:
color in interface LineStripRenderer
+
+
+
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
See Also:
LineStripRenderer.color(float, float, float, float)
+
+
+
+ +

+setLineCaps

+
+public void setLineCaps(boolean caps)
+
+
Description copied from interface: LineStripRenderer
+
Indicate if we should render end caps +

+

+
Specified by:
setLineCaps in interface LineStripRenderer
+
+
+
Parameters:
caps - True if we should render end caps
See Also:
LineStripRenderer.setLineCaps(boolean)
+
+
+
+ +

+applyGLLineFixes

+
+public boolean applyGLLineFixes()
+
+
Description copied from interface: LineStripRenderer
+
Check if we should apply default line fixes +

+

+
Specified by:
applyGLLineFixes in interface LineStripRenderer
+
+
+ +
Returns:
True if we should apply GL fixes
See Also:
LineStripRenderer.applyGLLineFixes()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/ImmediateModeOGLRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/ImmediateModeOGLRenderer.html new file mode 100644 index 000000000..91e5f8854 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/ImmediateModeOGLRenderer.html @@ -0,0 +1,1733 @@ + + + + + + +ImmediateModeOGLRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Class ImmediateModeOGLRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer
+
+
+
All Implemented Interfaces:
SGL
+
+
+
Direct Known Subclasses:
VAOGLRenderer
+
+
+
+
public class ImmediateModeOGLRenderer
extends java.lang.Object
implements SGL
+ + +

+The default OpenGL renderer, uses immediate mode for everything +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  floatalphaScale + +
+          The global colour scale
+ + + + + + + +
Fields inherited from interface org.newdawn.slick.opengl.renderer.SGL
GL_ALWAYS, GL_BGRA, GL_BLEND, GL_CLAMP, GL_CLIP_PLANE0, GL_CLIP_PLANE1, GL_CLIP_PLANE2, GL_CLIP_PLANE3, GL_COLOR_BUFFER_BIT, GL_COLOR_CLEAR_VALUE, GL_COLOR_SUM_EXT, GL_COMPILE, GL_COMPILE_AND_EXECUTE, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DST_ALPHA, GL_EQUAL, GL_LINE_SMOOTH, GL_LINE_STRIP, GL_LINE_WIDTH, GL_LINEAR, GL_LINES, GL_MAX_TEXTURE_SIZE, GL_MIRROR_CLAMP_TO_EDGE_EXT, GL_MODELVIEW_MATRIX, GL_MODULATE, GL_NEAREST, GL_NOTEQUAL, GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_POINT_SMOOTH, GL_POINTS, GL_POLYGON_SMOOTH, GL_QUADS, GL_RGB, GL_RGBA, GL_RGBA16, GL_RGBA8, GL_SCISSOR_TEST, GL_SRC_ALPHA, GL_SRC_COLOR, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_UNSIGNED_BYTE
+  + + + + + + + + + + +
+Constructor Summary
ImmediateModeOGLRenderer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancanSecondaryColor() + +
+           
+ booleancanTextureMirrorClamp() + +
+          Check if the mirror clamp extension is available
+ voidenterOrtho(int xsize, + int ysize) + +
+          Enter orthographic mode
+ voidflush() + +
+          Flush the current state of the renderer down to GL
+ float[]getCurrentColor() + +
+          Get the current colour being rendered
+ voidglBegin(int geomType) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBindTexture(int target, + int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBlendFunc(int src, + int dest) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglCallList(int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClear(int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClearColor(float red, + float green, + float blue, + float alpha) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClearDepth(float value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClipPlane(int plane, + java.nio.DoubleBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColor4f(float r, + float g, + float b, + float a) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColorMask(boolean red, + boolean green, + boolean blue, + boolean alpha) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglCopyTexImage2D(int target, + int level, + int internalFormat, + int x, + int y, + int width, + int height, + int border) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDeleteLists(int list, + int count) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDeleteTextures(java.nio.IntBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDepthFunc(int func) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDepthMask(boolean mask) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDisable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnd() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEndList() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ intglGenLists(int count) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGenTextures(java.nio.IntBuffer ids) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetError() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetFloat(int id, + java.nio.FloatBuffer ret) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetInteger(int id, + java.nio.IntBuffer ret) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetTexImage(int target, + int level, + int format, + int type, + java.nio.ByteBuffer pixels) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLineWidth(float width) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLoadIdentity() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLoadMatrix(java.nio.FloatBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglNewList(int id, + int option) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPointSize(float size) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPopMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPushMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglReadPixels(int x, + int y, + int width, + int height, + int format, + int type, + java.nio.ByteBuffer pixels) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglRotatef(float angle, + float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScalef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScissor(int x, + int y, + int width, + int height) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglSecondaryColor3ubEXT(byte b, + byte c, + byte d) + +
+           
+ voidglTexCoord2f(float u, + float v) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexEnvi(int target, + int mode, + int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexImage2D(int target, + int i, + int dstPixelFormat, + int width, + int height, + int j, + int srcPixelFormat, + int glUnsignedByte, + java.nio.ByteBuffer textureBuffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexParameteri(int target, + int param, + int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexSubImage2D(int glTexture2d, + int i, + int pageX, + int pageY, + int width, + int height, + int glBgra, + int glUnsignedByte, + java.nio.ByteBuffer scratchByteBuffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTranslatef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex2f(float x, + float y) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex3f(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidinitDisplay(int width, + int height) + +
+          Initialise the display
+ voidsetGlobalAlphaScale(float alphaScale) + +
+          Set the scaling we'll apply to any colour binds in this renderer
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+alphaScale

+
+protected float alphaScale
+
+
The global colour scale +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ImmediateModeOGLRenderer

+
+public ImmediateModeOGLRenderer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initDisplay

+
+public void initDisplay(int width,
+                        int height)
+
+
Description copied from interface: SGL
+
Initialise the display +

+

+
Specified by:
initDisplay in interface SGL
+
+
+
Parameters:
width - The width of the display
height - The height of the display
See Also:
SGL.initDisplay(int, int)
+
+
+
+ +

+enterOrtho

+
+public void enterOrtho(int xsize,
+                       int ysize)
+
+
Description copied from interface: SGL
+
Enter orthographic mode +

+

+
Specified by:
enterOrtho in interface SGL
+
+
+
Parameters:
xsize - The size of the ortho display
ysize - The size of the ortho display
See Also:
SGL.enterOrtho(int, int)
+
+
+
+ +

+glBegin

+
+public void glBegin(int geomType)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBegin in interface SGL
+
+
+
See Also:
SGL.glBegin(int)
+
+
+
+ +

+glBindTexture

+
+public void glBindTexture(int target,
+                          int id)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBindTexture in interface SGL
+
+
+
See Also:
SGL.glBindTexture(int, int)
+
+
+
+ +

+glBlendFunc

+
+public void glBlendFunc(int src,
+                        int dest)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBlendFunc in interface SGL
+
+
+
See Also:
SGL.glBlendFunc(int, int)
+
+
+
+ +

+glCallList

+
+public void glCallList(int id)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glCallList in interface SGL
+
+
+
See Also:
SGL.glCallList(int)
+
+
+
+ +

+glClear

+
+public void glClear(int value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClear in interface SGL
+
+
+
See Also:
SGL.glClear(int)
+
+
+
+ +

+glClearColor

+
+public void glClearColor(float red,
+                         float green,
+                         float blue,
+                         float alpha)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClearColor in interface SGL
+
+
+
See Also:
SGL.glClearColor(float, float, float, float)
+
+
+
+ +

+glClipPlane

+
+public void glClipPlane(int plane,
+                        java.nio.DoubleBuffer buffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClipPlane in interface SGL
+
+
+
See Also:
SGL.glClipPlane(int, java.nio.DoubleBuffer)
+
+
+
+ +

+glColor4f

+
+public void glColor4f(float r,
+                      float g,
+                      float b,
+                      float a)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glColor4f in interface SGL
+
+
+
See Also:
SGL.glColor4f(float, float, float, float)
+
+
+
+ +

+glColorMask

+
+public void glColorMask(boolean red,
+                        boolean green,
+                        boolean blue,
+                        boolean alpha)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glColorMask in interface SGL
+
+
+
See Also:
SGL.glColorMask(boolean, boolean, boolean, boolean)
+
+
+
+ +

+glCopyTexImage2D

+
+public void glCopyTexImage2D(int target,
+                             int level,
+                             int internalFormat,
+                             int x,
+                             int y,
+                             int width,
+                             int height,
+                             int border)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glCopyTexImage2D in interface SGL
+
+
+
See Also:
SGL.glCopyTexImage2D(int, int, int, int, int, int, int, int)
+
+
+
+ +

+glDeleteTextures

+
+public void glDeleteTextures(java.nio.IntBuffer buffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDeleteTextures in interface SGL
+
+
+
See Also:
SGL.glDeleteTextures(java.nio.IntBuffer)
+
+
+
+ +

+glDisable

+
+public void glDisable(int item)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDisable in interface SGL
+
+
+
See Also:
SGL.glDisable(int)
+
+
+
+ +

+glEnable

+
+public void glEnable(int item)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEnable in interface SGL
+
+
+
See Also:
SGL.glEnable(int)
+
+
+
+ +

+glEnd

+
+public void glEnd()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEnd in interface SGL
+
+
+
See Also:
SGL.glEnd()
+
+
+
+ +

+glEndList

+
+public void glEndList()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEndList in interface SGL
+
+
+
See Also:
SGL.glEndList()
+
+
+
+ +

+glGenLists

+
+public int glGenLists(int count)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGenLists in interface SGL
+
+
+ +
Returns:
The index of the lists
See Also:
SGL.glGenLists(int)
+
+
+
+ +

+glGetFloat

+
+public void glGetFloat(int id,
+                       java.nio.FloatBuffer ret)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGetFloat in interface SGL
+
+
+
See Also:
SGL.glGetFloat(int, java.nio.FloatBuffer)
+
+
+
+ +

+glGetInteger

+
+public void glGetInteger(int id,
+                         java.nio.IntBuffer ret)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGetInteger in interface SGL
+
+
+
See Also:
SGL.glGetInteger(int, java.nio.IntBuffer)
+
+
+
+ +

+glGetTexImage

+
+public void glGetTexImage(int target,
+                          int level,
+                          int format,
+                          int type,
+                          java.nio.ByteBuffer pixels)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGetTexImage in interface SGL
+
+
+
See Also:
SGL.glGetTexImage(int, int, int, int, java.nio.ByteBuffer)
+
+
+
+ +

+glLineWidth

+
+public void glLineWidth(float width)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glLineWidth in interface SGL
+
+
+
See Also:
SGL.glLineWidth(float)
+
+
+
+ +

+glLoadIdentity

+
+public void glLoadIdentity()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glLoadIdentity in interface SGL
+
+
+
See Also:
SGL.glLoadIdentity()
+
+
+
+ +

+glNewList

+
+public void glNewList(int id,
+                      int option)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glNewList in interface SGL
+
+
+
See Also:
SGL.glNewList(int, int)
+
+
+
+ +

+glPointSize

+
+public void glPointSize(float size)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPointSize in interface SGL
+
+
+
See Also:
SGL.glPointSize(float)
+
+
+
+ +

+glPopMatrix

+
+public void glPopMatrix()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPopMatrix in interface SGL
+
+
+
See Also:
SGL.glPopMatrix()
+
+
+
+ +

+glPushMatrix

+
+public void glPushMatrix()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPushMatrix in interface SGL
+
+
+
See Also:
SGL.glPushMatrix()
+
+
+
+ +

+glReadPixels

+
+public void glReadPixels(int x,
+                         int y,
+                         int width,
+                         int height,
+                         int format,
+                         int type,
+                         java.nio.ByteBuffer pixels)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glReadPixels in interface SGL
+
+
+
See Also:
SGL.glReadPixels(int, int, int, int, int, int, java.nio.ByteBuffer)
+
+
+
+ +

+glRotatef

+
+public void glRotatef(float angle,
+                      float x,
+                      float y,
+                      float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glRotatef in interface SGL
+
+
+
See Also:
SGL.glRotatef(float, float, float, float)
+
+
+
+ +

+glScalef

+
+public void glScalef(float x,
+                     float y,
+                     float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glScalef in interface SGL
+
+
+
See Also:
SGL.glScalef(float, float, float)
+
+
+
+ +

+glScissor

+
+public void glScissor(int x,
+                      int y,
+                      int width,
+                      int height)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glScissor in interface SGL
+
+
+
See Also:
SGL.glScissor(int, int, int, int)
+
+
+
+ +

+glTexCoord2f

+
+public void glTexCoord2f(float u,
+                         float v)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexCoord2f in interface SGL
+
+
+
See Also:
SGL.glTexCoord2f(float, float)
+
+
+
+ +

+glTexEnvi

+
+public void glTexEnvi(int target,
+                      int mode,
+                      int value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexEnvi in interface SGL
+
+
+
See Also:
SGL.glTexEnvi(int, int, int)
+
+
+
+ +

+glTranslatef

+
+public void glTranslatef(float x,
+                         float y,
+                         float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTranslatef in interface SGL
+
+
+
See Also:
SGL.glTranslatef(float, float, float)
+
+
+
+ +

+glVertex2f

+
+public void glVertex2f(float x,
+                       float y)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glVertex2f in interface SGL
+
+
+
See Also:
SGL.glVertex2f(float, float)
+
+
+
+ +

+glVertex3f

+
+public void glVertex3f(float x,
+                       float y,
+                       float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glVertex3f in interface SGL
+
+
+
See Also:
SGL.glVertex3f(float, float, float)
+
+
+
+ +

+flush

+
+public void flush()
+
+
Description copied from interface: SGL
+
Flush the current state of the renderer down to GL +

+

+
Specified by:
flush in interface SGL
+
+
+
See Also:
SGL.flush()
+
+
+
+ +

+glTexParameteri

+
+public void glTexParameteri(int target,
+                            int param,
+                            int value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexParameteri in interface SGL
+
+
+
See Also:
SGL.glTexParameteri(int, int, int)
+
+
+
+ +

+getCurrentColor

+
+public float[] getCurrentColor()
+
+
Description copied from interface: SGL
+
Get the current colour being rendered +

+

+
Specified by:
getCurrentColor in interface SGL
+
+
+ +
Returns:
The current colour being rendered
See Also:
SGL.getCurrentColor()
+
+
+
+ +

+glDeleteLists

+
+public void glDeleteLists(int list,
+                          int count)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDeleteLists in interface SGL
+
+
+
See Also:
SGL.glDeleteLists(int, int)
+
+
+
+ +

+glClearDepth

+
+public void glClearDepth(float value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClearDepth in interface SGL
+
+
+
See Also:
SGL.glClearDepth(float)
+
+
+
+ +

+glDepthFunc

+
+public void glDepthFunc(int func)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDepthFunc in interface SGL
+
+
+
See Also:
SGL.glDepthFunc(int)
+
+
+
+ +

+glDepthMask

+
+public void glDepthMask(boolean mask)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDepthMask in interface SGL
+
+
+
See Also:
SGL.glDepthMask(boolean)
+
+
+
+ +

+setGlobalAlphaScale

+
+public void setGlobalAlphaScale(float alphaScale)
+
+
Description copied from interface: SGL
+
Set the scaling we'll apply to any colour binds in this renderer +

+

+
Specified by:
setGlobalAlphaScale in interface SGL
+
+
+
Parameters:
alphaScale - The scale to apply to any colour binds
See Also:
SGL.setGlobalAlphaScale(float)
+
+
+
+ +

+glLoadMatrix

+
+public void glLoadMatrix(java.nio.FloatBuffer buffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glLoadMatrix in interface SGL
+
+
+
See Also:
SGL.glLoadMatrix(java.nio.FloatBuffer)
+
+
+
+ +

+glGenTextures

+
+public void glGenTextures(java.nio.IntBuffer ids)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGenTextures in interface SGL
+
+
+
+
+
+
+ +

+glGetError

+
+public void glGetError()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glGetError in interface SGL
+
+
+
+
+
+
+ +

+glTexImage2D

+
+public void glTexImage2D(int target,
+                         int i,
+                         int dstPixelFormat,
+                         int width,
+                         int height,
+                         int j,
+                         int srcPixelFormat,
+                         int glUnsignedByte,
+                         java.nio.ByteBuffer textureBuffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexImage2D in interface SGL
+
+
+
+
+
+
+ +

+glTexSubImage2D

+
+public void glTexSubImage2D(int glTexture2d,
+                            int i,
+                            int pageX,
+                            int pageY,
+                            int width,
+                            int height,
+                            int glBgra,
+                            int glUnsignedByte,
+                            java.nio.ByteBuffer scratchByteBuffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexSubImage2D in interface SGL
+
+
+
+
+
+
+ +

+canTextureMirrorClamp

+
+public boolean canTextureMirrorClamp()
+
+
Description copied from interface: SGL
+
Check if the mirror clamp extension is available +

+

+
Specified by:
canTextureMirrorClamp in interface SGL
+
+
+ +
Returns:
True if the mirro clamp extension is available
+
+
+
+ +

+canSecondaryColor

+
+public boolean canSecondaryColor()
+
+
+
Specified by:
canSecondaryColor in interface SGL
+
+
+
+
+
+
+ +

+glSecondaryColor3ubEXT

+
+public void glSecondaryColor3ubEXT(byte b,
+                                   byte c,
+                                   byte d)
+
+
+
Specified by:
glSecondaryColor3ubEXT in interface SGL
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/LineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/LineStripRenderer.html new file mode 100644 index 000000000..5687df2b3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/LineStripRenderer.html @@ -0,0 +1,376 @@ + + + + + + +LineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Interface LineStripRenderer

+
+
All Known Implementing Classes:
DefaultLineStripRenderer, QuadBasedLineStripRenderer
+
+
+
+
public interface LineStripRenderer
+ + +

+The description of a class able to render line strips through + OpenGL +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanapplyGLLineFixes() + +
+          Check if we should apply default line fixes
+ voidcolor(float r, + float g, + float b, + float a) + +
+          Apply a colour to the next vertex
+ voidend() + +
+          End the line strips
+ voidsetAntiAlias(boolean antialias) + +
+          Indicate whether antialiasing should be applied
+ voidsetLineCaps(boolean caps) + +
+          Indicate if we should render end caps
+ voidsetWidth(float width) + +
+          Set the width of the lines to be drawn
+ voidstart() + +
+          Start the line strips
+ voidvertex(float x, + float y) + +
+          Add a vertex
+  +

+ + + + + + + + +
+Method Detail
+ +

+applyGLLineFixes

+
+boolean applyGLLineFixes()
+
+
Check if we should apply default line fixes +

+

+ +
Returns:
True if we should apply GL fixes
+
+
+
+ +

+start

+
+void start()
+
+
Start the line strips +

+

+
+
+
+
+ +

+end

+
+void end()
+
+
End the line strips +

+

+
+
+
+
+ +

+vertex

+
+void vertex(float x,
+            float y)
+
+
Add a vertex +

+

+
Parameters:
x - The x coordinate of the vertex
y - The y coordinate of the vertex
+
+
+
+ +

+color

+
+void color(float r,
+           float g,
+           float b,
+           float a)
+
+
Apply a colour to the next vertex +

+

+
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
+
+
+
+ +

+setWidth

+
+void setWidth(float width)
+
+
Set the width of the lines to be drawn +

+

+
Parameters:
width - The width of the lines to be drawn
+
+
+
+ +

+setAntiAlias

+
+void setAntiAlias(boolean antialias)
+
+
Indicate whether antialiasing should be applied +

+

+
Parameters:
antialias - True if antialiasing should be applied
+
+
+
+ +

+setLineCaps

+
+void setLineCaps(boolean caps)
+
+
Indicate if we should render end caps +

+

+
Parameters:
caps - True if we should render end caps
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/QuadBasedLineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/QuadBasedLineStripRenderer.html new file mode 100644 index 000000000..df76d0382 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/QuadBasedLineStripRenderer.html @@ -0,0 +1,546 @@ + + + + + + +QuadBasedLineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Class QuadBasedLineStripRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer
+
+
+
All Implemented Interfaces:
LineStripRenderer
+
+
+
+
public class QuadBasedLineStripRenderer
extends java.lang.Object
implements LineStripRenderer
+ + +

+A line strip renderer that uses quads to generate lines +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intMAX_POINTS + +
+          Maximum number of points allowed in a single strip
+  + + + + + + + + + + +
+Constructor Summary
QuadBasedLineStripRenderer() + +
+          Create a new strip renderer
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanapplyGLLineFixes() + +
+          Check if we should apply default line fixes
+ voidcolor(float r, + float g, + float b, + float a) + +
+          Apply a colour to the next vertex
+ voidend() + +
+          End the line strips
+ voidrenderLines(float[] points, + int count) + +
+          Render the lines applying antialiasing if required
+ voidrenderLinesImpl(float[] points, + int count, + float w) + +
+          Render the lines given
+ voidsetAntiAlias(boolean antialias) + +
+          Indicate whether antialiasing should be applied
+ voidsetLineCaps(boolean caps) + +
+          Indicate if we should render end caps
+ voidsetWidth(float width) + +
+          Set the width of the lines to be drawn
+ voidstart() + +
+          Start the line strips
+ voidvertex(float x, + float y) + +
+          Add a vertex
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+MAX_POINTS

+
+public static int MAX_POINTS
+
+
Maximum number of points allowed in a single strip +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+QuadBasedLineStripRenderer

+
+public QuadBasedLineStripRenderer()
+
+
Create a new strip renderer +

+

+ + + + + + + + +
+Method Detail
+ +

+setLineCaps

+
+public void setLineCaps(boolean caps)
+
+
Indicate if we should render end caps +

+

+
Specified by:
setLineCaps in interface LineStripRenderer
+
+
+
Parameters:
caps - True if we should render end caps
+
+
+
+ +

+start

+
+public void start()
+
+
Description copied from interface: LineStripRenderer
+
Start the line strips +

+

+
Specified by:
start in interface LineStripRenderer
+
+
+
See Also:
LineStripRenderer.start()
+
+
+
+ +

+end

+
+public void end()
+
+
Description copied from interface: LineStripRenderer
+
End the line strips +

+

+
Specified by:
end in interface LineStripRenderer
+
+
+
See Also:
LineStripRenderer.end()
+
+
+
+ +

+vertex

+
+public void vertex(float x,
+                   float y)
+
+
Description copied from interface: LineStripRenderer
+
Add a vertex +

+

+
Specified by:
vertex in interface LineStripRenderer
+
+
+
Parameters:
x - The x coordinate of the vertex
y - The y coordinate of the vertex
See Also:
LineStripRenderer.vertex(float, float)
+
+
+
+ +

+setWidth

+
+public void setWidth(float width)
+
+
Description copied from interface: LineStripRenderer
+
Set the width of the lines to be drawn +

+

+
Specified by:
setWidth in interface LineStripRenderer
+
+
+
Parameters:
width - The width of the lines to be drawn
See Also:
LineStripRenderer.setWidth(float)
+
+
+
+ +

+setAntiAlias

+
+public void setAntiAlias(boolean antialias)
+
+
Description copied from interface: LineStripRenderer
+
Indicate whether antialiasing should be applied +

+

+
Specified by:
setAntiAlias in interface LineStripRenderer
+
+
+
Parameters:
antialias - True if antialiasing should be applied
See Also:
LineStripRenderer.setAntiAlias(boolean)
+
+
+
+ +

+renderLines

+
+public void renderLines(float[] points,
+                        int count)
+
+
Render the lines applying antialiasing if required +

+

+
+
+
+
Parameters:
points - The points to be rendered as lines
count - The number of points to render
+
+
+
+ +

+renderLinesImpl

+
+public void renderLinesImpl(float[] points,
+                            int count,
+                            float w)
+
+
Render the lines given +

+

+
+
+
+
Parameters:
points - The points building up the lines
count - The number of points to render
w - The width to render at
+
+
+
+ +

+color

+
+public void color(float r,
+                  float g,
+                  float b,
+                  float a)
+
+
Description copied from interface: LineStripRenderer
+
Apply a colour to the next vertex +

+

+
Specified by:
color in interface LineStripRenderer
+
+
+
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
See Also:
LineStripRenderer.color(float, float, float, float)
+
+
+
+ +

+applyGLLineFixes

+
+public boolean applyGLLineFixes()
+
+
Description copied from interface: LineStripRenderer
+
Check if we should apply default line fixes +

+

+
Specified by:
applyGLLineFixes in interface LineStripRenderer
+
+
+ +
Returns:
True if we should apply GL fixes
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/Renderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/Renderer.html new file mode 100644 index 000000000..4679524f8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/Renderer.html @@ -0,0 +1,468 @@ + + + + + + +Renderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Class Renderer

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.renderer.Renderer
+
+
+
+
public class Renderer
extends java.lang.Object
+ + +

+The static holder for the current GL implementation. Note that this + renderer can only be set before the game has been started. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intDEFAULT_LINE_STRIP_RENDERER + +
+          The indicator for direct GL line renderer (the default)
+static intIMMEDIATE_RENDERER + +
+          The indicator for immediate mode renderering (the default)
+static intQUAD_BASED_LINE_STRIP_RENDERER + +
+          The indicator for consistant quad based lines
+static intVERTEX_ARRAY_RENDERER + +
+          The indicator for vertex array based rendering
+  + + + + + + + + + + +
+Constructor Summary
Renderer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static SGLget() + +
+          Get the renderer to be used when accessing GL
+static LineStripRenderergetLineStripRenderer() + +
+          Get the line strip renderer to use
+static voidsetLineStripRenderer(int type) + +
+          Set the line strip renderer to one of the known types
+static voidsetLineStripRenderer(LineStripRenderer renderer) + +
+          Set the line strip renderer to be used globally
+static voidsetRenderer(int type) + +
+          Set the renderer to one of the known types
+static voidsetRenderer(SGL r) + +
+          Set the renderer to be used
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+IMMEDIATE_RENDERER

+
+public static final int IMMEDIATE_RENDERER
+
+
The indicator for immediate mode renderering (the default) +

+

+
See Also:
Constant Field Values
+
+
+ +

+VERTEX_ARRAY_RENDERER

+
+public static final int VERTEX_ARRAY_RENDERER
+
+
The indicator for vertex array based rendering +

+

+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_LINE_STRIP_RENDERER

+
+public static final int DEFAULT_LINE_STRIP_RENDERER
+
+
The indicator for direct GL line renderer (the default) +

+

+
See Also:
Constant Field Values
+
+
+ +

+QUAD_BASED_LINE_STRIP_RENDERER

+
+public static final int QUAD_BASED_LINE_STRIP_RENDERER
+
+
The indicator for consistant quad based lines +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Renderer

+
+public Renderer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setRenderer

+
+public static void setRenderer(int type)
+
+
Set the renderer to one of the known types +

+

+
Parameters:
type - The type of renderer to use
+
+
+
+ +

+setLineStripRenderer

+
+public static void setLineStripRenderer(int type)
+
+
Set the line strip renderer to one of the known types +

+

+
Parameters:
type - The type of renderer to use
+
+
+
+ +

+setLineStripRenderer

+
+public static void setLineStripRenderer(LineStripRenderer renderer)
+
+
Set the line strip renderer to be used globally +

+

+
Parameters:
renderer - The line strip renderer to be used
+
+
+
+ +

+setRenderer

+
+public static void setRenderer(SGL r)
+
+
Set the renderer to be used +

+

+
Parameters:
r - The renderer to be used
+
+
+
+ +

+get

+
+public static SGL get()
+
+
Get the renderer to be used when accessing GL +

+

+ +
Returns:
The renderer to be used when accessing GL
+
+
+
+ +

+getLineStripRenderer

+
+public static LineStripRenderer getLineStripRenderer()
+
+
Get the line strip renderer to use +

+

+ +
Returns:
The line strip renderer to use
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/SGL.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/SGL.html new file mode 100644 index 000000000..ee3b2a41c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/SGL.html @@ -0,0 +1,2510 @@ + + + + + + +SGL (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Interface SGL

+
+
All Known Implementing Classes:
ImmediateModeOGLRenderer, VAOGLRenderer
+
+
+
+
public interface SGL
+ + +

+The description of the OpenGL functions used Slick. Any other rendering method will + need to emulate these. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intGL_ALWAYS + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_BGRA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_BLEND + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_CLAMP + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_CLIP_PLANE0 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_CLIP_PLANE1 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_CLIP_PLANE2 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_CLIP_PLANE3 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_COLOR_BUFFER_BIT + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_COLOR_CLEAR_VALUE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_COLOR_SUM_EXT + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_COMPILE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_COMPILE_AND_EXECUTE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_DEPTH_BUFFER_BIT + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_DEPTH_TEST + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_DST_ALPHA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_EQUAL + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_LINE_SMOOTH + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_LINE_STRIP + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_LINE_WIDTH + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_LINEAR + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_LINES + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_MAX_TEXTURE_SIZE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_MIRROR_CLAMP_TO_EDGE_EXT + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_MODELVIEW_MATRIX + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_MODULATE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_NEAREST + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_NOTEQUAL + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_ONE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_ONE_MINUS_DST_ALPHA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_ONE_MINUS_SRC_ALPHA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_ONE_MINUS_SRC_COLOR + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_POINT_SMOOTH + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_POINTS + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_POLYGON_SMOOTH + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_QUADS + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_RGB + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_RGBA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_RGBA16 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_RGBA8 + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_SCISSOR_TEST + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_SRC_ALPHA + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_SRC_COLOR + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_2D + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_ENV + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_ENV_MODE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_MAG_FILTER + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_MIN_FILTER + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_WRAP_S + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TEXTURE_WRAP_T + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TRIANGLE_FAN + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_TRIANGLES + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+static intGL_UNSIGNED_BYTE + +
+          OpenGL Enum - @url http://www.opengl.org/documentation
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancanSecondaryColor() + +
+           
+ booleancanTextureMirrorClamp() + +
+          Check if the mirror clamp extension is available
+ voidenterOrtho(int xsize, + int ysize) + +
+          Enter orthographic mode
+ voidflush() + +
+          Flush the current state of the renderer down to GL
+ float[]getCurrentColor() + +
+          Get the current colour being rendered
+ voidglBegin(int geomType) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBindTexture(int target, + int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBlendFunc(int src, + int dest) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglCallList(int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClear(int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClearColor(float red, + float green, + float blue, + float alpha) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClearDepth(float value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClipPlane(int plane, + java.nio.DoubleBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColor4f(float r, + float g, + float b, + float a) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColorMask(boolean red, + boolean green, + boolean blue, + boolean alpha) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglCopyTexImage2D(int target, + int level, + int internalFormat, + int x, + int y, + int width, + int height, + int border) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDeleteLists(int list, + int count) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDeleteTextures(java.nio.IntBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDepthFunc(int func) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDepthMask(boolean mask) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDisable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnd() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEndList() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ intglGenLists(int count) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGenTextures(java.nio.IntBuffer ids) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetError() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetFloat(int id, + java.nio.FloatBuffer ret) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetInteger(int id, + java.nio.IntBuffer ret) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglGetTexImage(int target, + int level, + int format, + int type, + java.nio.ByteBuffer pixels) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLineWidth(float width) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLoadIdentity() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLoadMatrix(java.nio.FloatBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglNewList(int id, + int option) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPointSize(float size) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPopMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPushMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglReadPixels(int x, + int y, + int width, + int height, + int format, + int type, + java.nio.ByteBuffer pixels) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglRotatef(float angle, + float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScalef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScissor(int x, + int y, + int width, + int height) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglSecondaryColor3ubEXT(byte b, + byte c, + byte d) + +
+           
+ voidglTexCoord2f(float u, + float v) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexEnvi(int target, + int mode, + int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexImage2D(int target, + int i, + int dstPixelFormat, + int get2Fold, + int get2Fold2, + int j, + int srcPixelFormat, + int glUnsignedByte, + java.nio.ByteBuffer textureBuffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexParameteri(int target, + int param, + int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexSubImage2D(int glTexture2d, + int i, + int pageX, + int pageY, + int width, + int height, + int glBgra, + int glUnsignedByte, + java.nio.ByteBuffer scratchByteBuffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTranslatef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex2f(float x, + float y) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex3f(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidinitDisplay(int width, + int height) + +
+          Initialise the display
+ voidsetGlobalAlphaScale(float alphaScale) + +
+          Set the scaling we'll apply to any colour binds in this renderer
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL_TEXTURE_2D

+
+static final int GL_TEXTURE_2D
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_RGBA

+
+static final int GL_RGBA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_RGB

+
+static final int GL_RGB
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_UNSIGNED_BYTE

+
+static final int GL_UNSIGNED_BYTE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_LINEAR

+
+static final int GL_LINEAR
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_NEAREST

+
+static final int GL_NEAREST
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_MIN_FILTER

+
+static final int GL_TEXTURE_MIN_FILTER
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_MAG_FILTER

+
+static final int GL_TEXTURE_MAG_FILTER
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_POINT_SMOOTH

+
+static final int GL_POINT_SMOOTH
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_POLYGON_SMOOTH

+
+static final int GL_POLYGON_SMOOTH
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_LINE_SMOOTH

+
+static final int GL_LINE_SMOOTH
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_SCISSOR_TEST

+
+static final int GL_SCISSOR_TEST
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_MODULATE

+
+static final int GL_MODULATE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_ENV

+
+static final int GL_TEXTURE_ENV
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_ENV_MODE

+
+static final int GL_TEXTURE_ENV_MODE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_QUADS

+
+static final int GL_QUADS
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_POINTS

+
+static final int GL_POINTS
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_LINES

+
+static final int GL_LINES
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_LINE_STRIP

+
+static final int GL_LINE_STRIP
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TRIANGLES

+
+static final int GL_TRIANGLES
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TRIANGLE_FAN

+
+static final int GL_TRIANGLE_FAN
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_SRC_ALPHA

+
+static final int GL_SRC_ALPHA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_ONE

+
+static final int GL_ONE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_ONE_MINUS_DST_ALPHA

+
+static final int GL_ONE_MINUS_DST_ALPHA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_DST_ALPHA

+
+static final int GL_DST_ALPHA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_ONE_MINUS_SRC_ALPHA

+
+static final int GL_ONE_MINUS_SRC_ALPHA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_COMPILE

+
+static final int GL_COMPILE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_MAX_TEXTURE_SIZE

+
+static final int GL_MAX_TEXTURE_SIZE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_COLOR_BUFFER_BIT

+
+static final int GL_COLOR_BUFFER_BIT
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_DEPTH_BUFFER_BIT

+
+static final int GL_DEPTH_BUFFER_BIT
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_BLEND

+
+static final int GL_BLEND
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_COLOR_CLEAR_VALUE

+
+static final int GL_COLOR_CLEAR_VALUE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_LINE_WIDTH

+
+static final int GL_LINE_WIDTH
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_CLIP_PLANE0

+
+static final int GL_CLIP_PLANE0
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_CLIP_PLANE1

+
+static final int GL_CLIP_PLANE1
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_CLIP_PLANE2

+
+static final int GL_CLIP_PLANE2
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_CLIP_PLANE3

+
+static final int GL_CLIP_PLANE3
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_COMPILE_AND_EXECUTE

+
+static final int GL_COMPILE_AND_EXECUTE
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_RGBA8

+
+static final int GL_RGBA8
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_RGBA16

+
+static final int GL_RGBA16
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_BGRA

+
+static final int GL_BGRA
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_MIRROR_CLAMP_TO_EDGE_EXT

+
+static final int GL_MIRROR_CLAMP_TO_EDGE_EXT
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_WRAP_S

+
+static final int GL_TEXTURE_WRAP_S
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_TEXTURE_WRAP_T

+
+static final int GL_TEXTURE_WRAP_T
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_CLAMP

+
+static final int GL_CLAMP
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_COLOR_SUM_EXT

+
+static final int GL_COLOR_SUM_EXT
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_ALWAYS

+
+static final int GL_ALWAYS
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_DEPTH_TEST

+
+static final int GL_DEPTH_TEST
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_NOTEQUAL

+
+static final int GL_NOTEQUAL
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_EQUAL

+
+static final int GL_EQUAL
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_SRC_COLOR

+
+static final int GL_SRC_COLOR
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_ONE_MINUS_SRC_COLOR

+
+static final int GL_ONE_MINUS_SRC_COLOR
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+
+ +

+GL_MODELVIEW_MATRIX

+
+static final int GL_MODELVIEW_MATRIX
+
+
OpenGL Enum - @url http://www.opengl.org/documentation +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+flush

+
+void flush()
+
+
Flush the current state of the renderer down to GL +

+

+
+
+
+
+ +

+initDisplay

+
+void initDisplay(int width,
+                 int height)
+
+
Initialise the display +

+

+
Parameters:
width - The width of the display
height - The height of the display
+
+
+
+ +

+enterOrtho

+
+void enterOrtho(int xsize,
+                int ysize)
+
+
Enter orthographic mode +

+

+
Parameters:
xsize - The size of the ortho display
ysize - The size of the ortho display
+
+
+
+ +

+glClearColor

+
+void glClearColor(float red,
+                  float green,
+                  float blue,
+                  float alpha)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
red -
green -
blue -
alpha -
+
+
+
+ +

+glClipPlane

+
+void glClipPlane(int plane,
+                 java.nio.DoubleBuffer buffer)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
plane -
buffer -
+
+
+
+ +

+glScissor

+
+void glScissor(int x,
+               int y,
+               int width,
+               int height)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
width -
height -
+
+
+
+ +

+glLineWidth

+
+void glLineWidth(float width)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
width -
+
+
+
+ +

+glClear

+
+void glClear(int value)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
value -
+
+
+
+ +

+glColorMask

+
+void glColorMask(boolean red,
+                 boolean green,
+                 boolean blue,
+                 boolean alpha)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
red -
green -
blue -
alpha -
+
+
+
+ +

+glLoadIdentity

+
+void glLoadIdentity()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glGetInteger

+
+void glGetInteger(int id,
+                  java.nio.IntBuffer ret)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
id -
ret -
+
+
+
+ +

+glGetFloat

+
+void glGetFloat(int id,
+                java.nio.FloatBuffer ret)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
id -
ret -
+
+
+
+ +

+glEnable

+
+void glEnable(int item)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
item -
+
+
+
+ +

+glDisable

+
+void glDisable(int item)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
item -
+
+
+
+ +

+glBindTexture

+
+void glBindTexture(int target,
+                   int id)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
target -
id -
+
+
+
+ +

+glGetTexImage

+
+void glGetTexImage(int target,
+                   int level,
+                   int format,
+                   int type,
+                   java.nio.ByteBuffer pixels)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
target -
level -
format -
type -
pixels -
+
+
+
+ +

+glDeleteTextures

+
+void glDeleteTextures(java.nio.IntBuffer buffer)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
buffer -
+
+
+
+ +

+glColor4f

+
+void glColor4f(float r,
+               float g,
+               float b,
+               float a)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
r -
g -
b -
a -
+
+
+
+ +

+glTexCoord2f

+
+void glTexCoord2f(float u,
+                  float v)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
u -
v -
+
+
+
+ +

+glVertex3f

+
+void glVertex3f(float x,
+                float y,
+                float z)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
z -
+
+
+
+ +

+glVertex2f

+
+void glVertex2f(float x,
+                float y)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
+
+
+
+ +

+glRotatef

+
+void glRotatef(float angle,
+               float x,
+               float y,
+               float z)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
angle -
x -
y -
z -
+
+
+
+ +

+glTranslatef

+
+void glTranslatef(float x,
+                  float y,
+                  float z)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
z -
+
+
+
+ +

+glBegin

+
+void glBegin(int geomType)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
geomType -
+
+
+
+ +

+glEnd

+
+void glEnd()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glTexEnvi

+
+void glTexEnvi(int target,
+               int mode,
+               int value)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
target -
mode -
value -
+
+
+
+ +

+glPointSize

+
+void glPointSize(float size)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
size -
+
+
+
+ +

+glScalef

+
+void glScalef(float x,
+              float y,
+              float z)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
z -
+
+
+
+ +

+glPushMatrix

+
+void glPushMatrix()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glPopMatrix

+
+void glPopMatrix()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glBlendFunc

+
+void glBlendFunc(int src,
+                 int dest)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
src -
dest -
+
+
+
+ +

+glGenLists

+
+int glGenLists(int count)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
count - +
Returns:
The index of the lists
+
+
+
+ +

+glNewList

+
+void glNewList(int id,
+               int option)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
id -
option -
+
+
+
+ +

+glEndList

+
+void glEndList()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glCallList

+
+void glCallList(int id)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
id -
+
+
+
+ +

+glCopyTexImage2D

+
+void glCopyTexImage2D(int target,
+                      int level,
+                      int internalFormat,
+                      int x,
+                      int y,
+                      int width,
+                      int height,
+                      int border)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
target -
level -
internalFormat -
x -
y -
width -
height -
border -
+
+
+
+ +

+glReadPixels

+
+void glReadPixels(int x,
+                  int y,
+                  int width,
+                  int height,
+                  int format,
+                  int type,
+                  java.nio.ByteBuffer pixels)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
x -
y -
width -
height -
format -
type -
pixels -
+
+
+
+ +

+glTexParameteri

+
+void glTexParameteri(int target,
+                     int param,
+                     int value)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
target -
param -
value -
+
+
+
+ +

+getCurrentColor

+
+float[] getCurrentColor()
+
+
Get the current colour being rendered +

+

+ +
Returns:
The current colour being rendered
+
+
+
+ +

+glDeleteLists

+
+void glDeleteLists(int list,
+                   int count)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
list -
count -
+
+
+
+ +

+glDepthMask

+
+void glDepthMask(boolean mask)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
mask -
+
+
+
+ +

+glClearDepth

+
+void glClearDepth(float value)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
value -
+
+
+
+ +

+glDepthFunc

+
+void glDepthFunc(int func)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
func -
+
+
+
+ +

+setGlobalAlphaScale

+
+void setGlobalAlphaScale(float alphaScale)
+
+
Set the scaling we'll apply to any colour binds in this renderer +

+

+
Parameters:
alphaScale - The scale to apply to any colour binds
+
+
+
+ +

+glLoadMatrix

+
+void glLoadMatrix(java.nio.FloatBuffer buffer)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
buffer -
+
+
+
+ +

+glGenTextures

+
+void glGenTextures(java.nio.IntBuffer ids)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Parameters:
ids -
+
+
+
+ +

+glGetError

+
+void glGetError()
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glTexImage2D

+
+void glTexImage2D(int target,
+                  int i,
+                  int dstPixelFormat,
+                  int get2Fold,
+                  int get2Fold2,
+                  int j,
+                  int srcPixelFormat,
+                  int glUnsignedByte,
+                  java.nio.ByteBuffer textureBuffer)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+glTexSubImage2D

+
+void glTexSubImage2D(int glTexture2d,
+                     int i,
+                     int pageX,
+                     int pageY,
+                     int width,
+                     int height,
+                     int glBgra,
+                     int glUnsignedByte,
+                     java.nio.ByteBuffer scratchByteBuffer)
+
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
+
+
+
+ +

+canTextureMirrorClamp

+
+boolean canTextureMirrorClamp()
+
+
Check if the mirror clamp extension is available +

+

+ +
Returns:
True if the mirro clamp extension is available
+
+
+
+ +

+canSecondaryColor

+
+boolean canSecondaryColor()
+
+
+
+
+
+
+ +

+glSecondaryColor3ubEXT

+
+void glSecondaryColor3ubEXT(byte b,
+                            byte c,
+                            byte d)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/VAOGLRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/VAOGLRenderer.html new file mode 100644 index 000000000..bd1500a29 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/VAOGLRenderer.html @@ -0,0 +1,1111 @@ + + + + + + +VAOGLRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.opengl.renderer +
+Class VAOGLRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer
+      extended by org.newdawn.slick.opengl.renderer.VAOGLRenderer
+
+
+
All Implemented Interfaces:
SGL
+
+
+
+
public class VAOGLRenderer
extends ImmediateModeOGLRenderer
+ + +

+A renderer that caches all operations into an array, creates an opengl vertex array when + required and spits the data down to the card in batch mode +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intMAX_VERTS + +
+          The maximum number of vertices draw in one batch
+static intNONE + +
+          Indicates there is no current geometry buffer
+ + + + + + + +
Fields inherited from class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer
alphaScale
+ + + + + + + +
Fields inherited from interface org.newdawn.slick.opengl.renderer.SGL
GL_ALWAYS, GL_BGRA, GL_BLEND, GL_CLAMP, GL_CLIP_PLANE0, GL_CLIP_PLANE1, GL_CLIP_PLANE2, GL_CLIP_PLANE3, GL_COLOR_BUFFER_BIT, GL_COLOR_CLEAR_VALUE, GL_COLOR_SUM_EXT, GL_COMPILE, GL_COMPILE_AND_EXECUTE, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DST_ALPHA, GL_EQUAL, GL_LINE_SMOOTH, GL_LINE_STRIP, GL_LINE_WIDTH, GL_LINEAR, GL_LINES, GL_MAX_TEXTURE_SIZE, GL_MIRROR_CLAMP_TO_EDGE_EXT, GL_MODELVIEW_MATRIX, GL_MODULATE, GL_NEAREST, GL_NOTEQUAL, GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_POINT_SMOOTH, GL_POINTS, GL_POLYGON_SMOOTH, GL_QUADS, GL_RGB, GL_RGBA, GL_RGBA16, GL_RGBA8, GL_SCISSOR_TEST, GL_SRC_ALPHA, GL_SRC_COLOR, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_UNSIGNED_BYTE
+  + + + + + + + + + + +
+Constructor Summary
VAOGLRenderer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidflush() + +
+          Flush the current state of the renderer down to GL
+ float[]getCurrentColor() + +
+          Get the current colour being rendered
+ voidglBegin(int geomType) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBindTexture(int target, + int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglBlendFunc(int src, + int dest) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglCallList(int id) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClear(int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglClipPlane(int plane, + java.nio.DoubleBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColor4f(float r, + float g, + float b, + float a) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglColorMask(boolean red, + boolean green, + boolean blue, + boolean alpha) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglDisable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnable(int item) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEnd() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglEndList() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLineWidth(float width) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglLoadMatrix(java.nio.FloatBuffer buffer) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglNewList(int id, + int option) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPointSize(float size) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPopMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglPushMatrix() + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglRotatef(float angle, + float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScalef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglScissor(int x, + int y, + int width, + int height) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexCoord2f(float u, + float v) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTexEnvi(int target, + int mode, + int value) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglTranslatef(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex2f(float x, + float y) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidglVertex3f(float x, + float y, + float z) + +
+          OpenGL Method - @url http://www.opengl.org/documentation/
+ voidinitDisplay(int width, + int height) + +
+          Initialise the display
+ + + + + + + +
Methods inherited from class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer
canSecondaryColor, canTextureMirrorClamp, enterOrtho, glClearColor, glClearDepth, glCopyTexImage2D, glDeleteLists, glDeleteTextures, glDepthFunc, glDepthMask, glGenLists, glGenTextures, glGetError, glGetFloat, glGetInteger, glGetTexImage, glLoadIdentity, glReadPixels, glSecondaryColor3ubEXT, glTexImage2D, glTexParameteri, glTexSubImage2D, setGlobalAlphaScale
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NONE

+
+public static final int NONE
+
+
Indicates there is no current geometry buffer +

+

+
See Also:
Constant Field Values
+
+
+ +

+MAX_VERTS

+
+public static final int MAX_VERTS
+
+
The maximum number of vertices draw in one batch +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+VAOGLRenderer

+
+public VAOGLRenderer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+initDisplay

+
+public void initDisplay(int width,
+                        int height)
+
+
Description copied from interface: SGL
+
Initialise the display +

+

+
Specified by:
initDisplay in interface SGL
Overrides:
initDisplay in class ImmediateModeOGLRenderer
+
+
+
Parameters:
width - The width of the display
height - The height of the display
See Also:
ImmediateModeOGLRenderer.initDisplay(int, int)
+
+
+
+ +

+flush

+
+public void flush()
+
+
Description copied from interface: SGL
+
Flush the current state of the renderer down to GL +

+

+
Specified by:
flush in interface SGL
Overrides:
flush in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.flush()
+
+
+
+ +

+glBegin

+
+public void glBegin(int geomType)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBegin in interface SGL
Overrides:
glBegin in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glBegin(int)
+
+
+
+ +

+glColor4f

+
+public void glColor4f(float r,
+                      float g,
+                      float b,
+                      float a)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glColor4f in interface SGL
Overrides:
glColor4f in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glColor4f(float, float, float, float)
+
+
+
+ +

+glEnd

+
+public void glEnd()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEnd in interface SGL
Overrides:
glEnd in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glEnd()
+
+
+
+ +

+glTexCoord2f

+
+public void glTexCoord2f(float u,
+                         float v)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexCoord2f in interface SGL
Overrides:
glTexCoord2f in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glTexCoord2f(float, float)
+
+
+
+ +

+glVertex2f

+
+public void glVertex2f(float x,
+                       float y)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glVertex2f in interface SGL
Overrides:
glVertex2f in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glVertex2f(float, float)
+
+
+
+ +

+glVertex3f

+
+public void glVertex3f(float x,
+                       float y,
+                       float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glVertex3f in interface SGL
Overrides:
glVertex3f in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glVertex3f(float, float, float)
+
+
+
+ +

+glBindTexture

+
+public void glBindTexture(int target,
+                          int id)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBindTexture in interface SGL
Overrides:
glBindTexture in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glBindTexture(int, int)
+
+
+
+ +

+glBlendFunc

+
+public void glBlendFunc(int src,
+                        int dest)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glBlendFunc in interface SGL
Overrides:
glBlendFunc in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glBlendFunc(int, int)
+
+
+
+ +

+glCallList

+
+public void glCallList(int id)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glCallList in interface SGL
Overrides:
glCallList in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glCallList(int)
+
+
+
+ +

+glClear

+
+public void glClear(int value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClear in interface SGL
Overrides:
glClear in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glClear(int)
+
+
+
+ +

+glClipPlane

+
+public void glClipPlane(int plane,
+                        java.nio.DoubleBuffer buffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glClipPlane in interface SGL
Overrides:
glClipPlane in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glClipPlane(int, java.nio.DoubleBuffer)
+
+
+
+ +

+glColorMask

+
+public void glColorMask(boolean red,
+                        boolean green,
+                        boolean blue,
+                        boolean alpha)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glColorMask in interface SGL
Overrides:
glColorMask in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glColorMask(boolean, boolean, boolean, boolean)
+
+
+
+ +

+glDisable

+
+public void glDisable(int item)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glDisable in interface SGL
Overrides:
glDisable in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glDisable(int)
+
+
+
+ +

+glEnable

+
+public void glEnable(int item)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEnable in interface SGL
Overrides:
glEnable in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glEnable(int)
+
+
+
+ +

+glLineWidth

+
+public void glLineWidth(float width)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glLineWidth in interface SGL
Overrides:
glLineWidth in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glLineWidth(float)
+
+
+
+ +

+glPointSize

+
+public void glPointSize(float size)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPointSize in interface SGL
Overrides:
glPointSize in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glPointSize(float)
+
+
+
+ +

+glPopMatrix

+
+public void glPopMatrix()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPopMatrix in interface SGL
Overrides:
glPopMatrix in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glPopMatrix()
+
+
+
+ +

+glPushMatrix

+
+public void glPushMatrix()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glPushMatrix in interface SGL
Overrides:
glPushMatrix in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glPushMatrix()
+
+
+
+ +

+glRotatef

+
+public void glRotatef(float angle,
+                      float x,
+                      float y,
+                      float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glRotatef in interface SGL
Overrides:
glRotatef in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glRotatef(float, float, float, float)
+
+
+
+ +

+glScalef

+
+public void glScalef(float x,
+                     float y,
+                     float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glScalef in interface SGL
Overrides:
glScalef in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glScalef(float, float, float)
+
+
+
+ +

+glScissor

+
+public void glScissor(int x,
+                      int y,
+                      int width,
+                      int height)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glScissor in interface SGL
Overrides:
glScissor in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glScissor(int, int, int, int)
+
+
+
+ +

+glTexEnvi

+
+public void glTexEnvi(int target,
+                      int mode,
+                      int value)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTexEnvi in interface SGL
Overrides:
glTexEnvi in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glTexEnvi(int, int, int)
+
+
+
+ +

+glTranslatef

+
+public void glTranslatef(float x,
+                         float y,
+                         float z)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glTranslatef in interface SGL
Overrides:
glTranslatef in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glTranslatef(float, float, float)
+
+
+
+ +

+glEndList

+
+public void glEndList()
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glEndList in interface SGL
Overrides:
glEndList in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glEndList()
+
+
+
+ +

+glNewList

+
+public void glNewList(int id,
+                      int option)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glNewList in interface SGL
Overrides:
glNewList in class ImmediateModeOGLRenderer
+
+
+
See Also:
ImmediateModeOGLRenderer.glNewList(int, int)
+
+
+
+ +

+getCurrentColor

+
+public float[] getCurrentColor()
+
+
Description copied from interface: SGL
+
Get the current colour being rendered +

+

+
Specified by:
getCurrentColor in interface SGL
Overrides:
getCurrentColor in class ImmediateModeOGLRenderer
+
+
+ +
Returns:
The current colour being rendered
See Also:
SGL.getCurrentColor()
+
+
+
+ +

+glLoadMatrix

+
+public void glLoadMatrix(java.nio.FloatBuffer buffer)
+
+
Description copied from interface: SGL
+
OpenGL Method - @url http://www.opengl.org/documentation/ +

+

+
Specified by:
glLoadMatrix in interface SGL
Overrides:
glLoadMatrix in class ImmediateModeOGLRenderer
+
+
+
See Also:
SGL.glLoadMatrix(java.nio.FloatBuffer)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/DefaultLineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/DefaultLineStripRenderer.html new file mode 100644 index 000000000..35e5b312c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/DefaultLineStripRenderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer

+
+No usage of org.newdawn.slick.opengl.renderer.DefaultLineStripRenderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/ImmediateModeOGLRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/ImmediateModeOGLRenderer.html new file mode 100644 index 000000000..de99abf30 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/ImmediateModeOGLRenderer.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer

+
+ + + + + + + + + +
+Packages that use ImmediateModeOGLRenderer
org.newdawn.slick.opengl.renderer  
+  +

+ + + + + +
+Uses of ImmediateModeOGLRenderer in org.newdawn.slick.opengl.renderer
+  +

+ + + + + + + + + +
Subclasses of ImmediateModeOGLRenderer in org.newdawn.slick.opengl.renderer
+ classVAOGLRenderer + +
+          A renderer that caches all operations into an array, creates an opengl vertex array when + required and spits the data down to the card in batch mode
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/LineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/LineStripRenderer.html new file mode 100644 index 000000000..0da1c7d22 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/LineStripRenderer.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Interface org.newdawn.slick.opengl.renderer.LineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.opengl.renderer.LineStripRenderer

+
+ + + + + + + + + +
+Packages that use LineStripRenderer
org.newdawn.slick.opengl.renderer  
+  +

+ + + + + +
+Uses of LineStripRenderer in org.newdawn.slick.opengl.renderer
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.opengl.renderer that implement LineStripRenderer
+ classDefaultLineStripRenderer + +
+          The default version of the renderer relies of GL calls to do everything.
+ classQuadBasedLineStripRenderer + +
+          A line strip renderer that uses quads to generate lines
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl.renderer that return LineStripRenderer
+static LineStripRendererRenderer.getLineStripRenderer() + +
+          Get the line strip renderer to use
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl.renderer with parameters of type LineStripRenderer
+static voidRenderer.setLineStripRenderer(LineStripRenderer renderer) + +
+          Set the line strip renderer to be used globally
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/QuadBasedLineStripRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/QuadBasedLineStripRenderer.html new file mode 100644 index 000000000..842a773d1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/QuadBasedLineStripRenderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer

+
+No usage of org.newdawn.slick.opengl.renderer.QuadBasedLineStripRenderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/Renderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/Renderer.html new file mode 100644 index 000000000..da8ec0e5f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/Renderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.renderer.Renderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.renderer.Renderer

+
+No usage of org.newdawn.slick.opengl.renderer.Renderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/SGL.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/SGL.html new file mode 100644 index 000000000..31ec11df3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/SGL.html @@ -0,0 +1,476 @@ + + + + + + +Uses of Interface org.newdawn.slick.opengl.renderer.SGL (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.opengl.renderer.SGL

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use SGL
org.newdawn.slick  
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.opengl.renderer  
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick declared as SGL
+protected static SGLImage.GL + +
+          The renderer to use for all GL operations
+protected static SGLGraphics.GL + +
+          The renderer to use for all GL operations
+protected static SGLGameContainer.GL + +
+          The renderer to use for all GL operations
+protected  SGLColor.GL + +
+          The renderer to use for all GL operations
+protected static SGLCachedRender.GL + +
+          The renderer to use for all GL operations
+protected static SGLBigImage.GL + +
+          The renderer to use for all GL operations
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.opengl
+  +

+ + + + + + + + + + + + + +
Fields in org.newdawn.slick.opengl declared as SGL
+protected static SGLTextureImpl.GL + +
+          The renderer to use for all GL operations
+protected static SGLInternalTextureLoader.GL + +
+          The renderer to use for all GL operations
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.opengl.renderer
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.opengl.renderer that implement SGL
+ classImmediateModeOGLRenderer + +
+          The default OpenGL renderer, uses immediate mode for everything
+ classVAOGLRenderer + +
+          A renderer that caches all operations into an array, creates an opengl vertex array when + required and spits the data down to the card in batch mode
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl.renderer that return SGL
+static SGLRenderer.get() + +
+          Get the renderer to be used when accessing GL
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.opengl.renderer with parameters of type SGL
+static voidRenderer.setRenderer(SGL r) + +
+          Set the renderer to be used
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + +
Fields in org.newdawn.slick.particles declared as SGL
+protected  SGLParticleSystem.GL + +
+          The renderer to use for all GL operations
+protected static SGLParticle.GL + +
+          The renderer to use for all GL operations
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.state.transition declared as SGL
+protected static SGLVerticalSplitTransition.GL + +
+          The renderer to use for all GL operations
+protected static SGLSelectTransition.GL + +
+          The renderer to use for all GL operations
+protected static SGLHorizontalSplitTransition.GL + +
+          The renderer to use for all GL operations
+protected static SGLBlobbyTransition.GL + +
+          The renderer to use for all GL operations
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.svg declared as SGL
+protected static SGLSimpleDiagramRenderer.GL + +
+          The renderer to use for all GL operations
+  +

+ + + + + +
+Uses of SGL in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.util declared as SGL
+protected static SGLMaskUtil.GL + +
+          The renderer to use for all GL operations
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/VAOGLRenderer.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/VAOGLRenderer.html new file mode 100644 index 000000000..f67c3e459 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/class-use/VAOGLRenderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.opengl.renderer.VAOGLRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.opengl.renderer.VAOGLRenderer

+
+No usage of org.newdawn.slick.opengl.renderer.VAOGLRenderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/package-frame.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-frame.html new file mode 100644 index 000000000..3885eb41b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-frame.html @@ -0,0 +1,53 @@ + + + + + + +org.newdawn.slick.opengl.renderer (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.opengl.renderer + + + + +
+Interfaces  + +
+LineStripRenderer +
+SGL
+ + + + + + +
+Classes  + +
+DefaultLineStripRenderer +
+ImmediateModeOGLRenderer +
+QuadBasedLineStripRenderer +
+Renderer +
+VAOGLRenderer
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/package-summary.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-summary.html new file mode 100644 index 000000000..2f6234ee4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-summary.html @@ -0,0 +1,193 @@ + + + + + + +org.newdawn.slick.opengl.renderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.opengl.renderer +

+ + + + + + + + + + + + + +
+Interface Summary
LineStripRendererThe description of a class able to render line strips through + OpenGL
SGLThe description of the OpenGL functions used Slick.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DefaultLineStripRendererThe default version of the renderer relies of GL calls to do everything.
ImmediateModeOGLRendererThe default OpenGL renderer, uses immediate mode for everything
QuadBasedLineStripRendererA line strip renderer that uses quads to generate lines
RendererThe static holder for the current GL implementation.
VAOGLRendererA renderer that caches all operations into an array, creates an opengl vertex array when + required and spits the data down to the card in batch mode
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/package-tree.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-tree.html new file mode 100644 index 000000000..a406d2c5d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-tree.html @@ -0,0 +1,163 @@ + + + + + + +org.newdawn.slick.opengl.renderer Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.opengl.renderer +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/opengl/renderer/package-use.html b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-use.html new file mode 100644 index 000000000..5eae13c65 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/opengl/renderer/package-use.html @@ -0,0 +1,298 @@ + + + + + + +Uses of Package org.newdawn.slick.opengl.renderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.opengl.renderer

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.opengl.renderer
org.newdawn.slick  
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.opengl.renderer  
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.opengl
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.opengl.renderer
ImmediateModeOGLRenderer + +
+          The default OpenGL renderer, uses immediate mode for everything
LineStripRenderer + +
+          The description of a class able to render line strips through + OpenGL
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.particles
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.state.transition
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.svg
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.opengl.renderer used by org.newdawn.slick.util
SGL + +
+          The description of the OpenGL functions used Slick.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/package-frame.html b/lib/javadoc/org/newdawn/slick/package-frame.html new file mode 100644 index 000000000..a0a520cb1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/package-frame.html @@ -0,0 +1,120 @@ + + + + + + +org.newdawn.slick (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick + + + + +
+Interfaces  + +
+ControlledInputReciever +
+ControllerListener +
+Font +
+Game +
+InputListener +
+KeyListener +
+MouseListener +
+MusicListener +
+Renderable +
+ShapeFill
+ + + + + + +
+Classes  + +
+AngelCodeFont +
+Animation +
+AppGameContainer +
+AppletGameContainer +
+BasicGame +
+BigImage +
+CachedRender +
+CanvasGameContainer +
+Color +
+GameContainer +
+Graphics +
+Image +
+ImageBuffer +
+Input +
+Music +
+PackedSpriteSheet +
+SavedState +
+ScalableGame +
+Sound +
+SpriteSheet +
+SpriteSheetFont +
+TrueTypeFont +
+UnicodeFont +
+UnicodeFont.DisplayList +
+XMLPackedSheet
+ + + + + + +
+Exceptions  + +
+SlickException
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/package-summary.html b/lib/javadoc/org/newdawn/slick/package-summary.html new file mode 100644 index 000000000..a3dfda239 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/package-summary.html @@ -0,0 +1,341 @@ + + + + + + +org.newdawn.slick (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
ControlledInputRecieverDescription of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListenerDescription of classes capable of responding to controller events
FontThe proprites of any font implementation
GameThe main game interface that should be implemented by any game being developed + using the container system.
InputListenerA listener that will be notified of keyboard, mouse and controller events
KeyListenerDescribes classes capable of responding to key presses
MouseListenerDescription of classes that respond to mouse related input events
MusicListenerThe description of any class needing to recieve notification of changes + to music state.
RenderableDescription of anything that can be drawn
ShapeFillA filling method for a shape.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AngelCodeFontA font implementation that will parse BMFont format font files.
AnimationA utility to hold and render animations
AppGameContainerA game container that will display the game as an stand alone + application.
AppletGameContainerA game container that displays the game as an applet.
BasicGameA basic implementation of a game to take out the boring bits
BigImageAn image implementation that handles loaded images that are larger than the + maximum texture size supported by the card.
CachedRenderA set of rendering that is cached onto the graphics card and hopefully + is quicker to render.
CanvasGameContainerA game container that displays the game on an AWT Canvas.
ColorA simple wrapper round the values required for a colour
GameContainerA generic game container that handles the game loop, fps recording and + managing the input system
GraphicsA graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
ImageAn image loaded from a file and renderable to the canvas
ImageBufferA utility for creating images from pixel operations + + Expected usage is: + + ImageBuffer buffer = new ImageBuffer(320,200); + buffer.setRGBA(100,100,50,50,20,255); + ..
InputA wrapped for all keyboard, mouse and controller input
MusicA piece of music loaded and playable within the game.
PackedSpriteSheetA sprite sheet packed and defined by the Pacific Software Image Packer available + from: + + http://homepage.ntlworld.com/config/imagepacker/
SavedStateA utility to allow game setup/state to be stored locally.
ScalableGameA wrapper to allow any game to be scalable.
SoundA single sound effect loaded from either OGG or XM/MOD file.
SpriteSheetA sheet of sprites that can be drawn individually
SpriteSheetFontA font implementation that will use the graphics inside a SpriteSheet for its data.
TrueTypeFontA TrueType font implementation for Slick
UnicodeFontA Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
UnicodeFont.DisplayListA simple descriptor for display lists cached within this font
XMLPackedSheetA sprite sheet based on an XML descriptor generated from the simple slick tool
+  + +

+ + + + + + + + + +
+Exception Summary
SlickExceptionA generic exception thrown by everything in the library
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/package-tree.html b/lib/javadoc/org/newdawn/slick/package-tree.html new file mode 100644 index 000000000..e459dfe3d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/package-tree.html @@ -0,0 +1,202 @@ + + + + + + +org.newdawn.slick Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/package-use.html b/lib/javadoc/org/newdawn/slick/package-use.html new file mode 100644 index 000000000..d08fce7d4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/package-use.html @@ -0,0 +1,1131 @@ + + + + + + +Uses of Package org.newdawn.slick (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick
org.newdawn.slick  
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game. 
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering 
org.newdawn.slick.font  
org.newdawn.slick.font.effects  
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision. 
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.imageoutSupports saving of slick images to various file types. 
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats. 
org.newdawn.slick.opengl.pbuffer  
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
org.newdawn.slick.utilUtilities to support the library. 
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick
Animation + +
+          A utility to hold and render animations
AppletGameContainer.Container + +
+          A game container to provide the applet context
AppletGameContainer.ContainerPanel + +
+          Create a new panel to display the GL context
Color + +
+          A simple wrapper round the values required for a colour
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
Font + +
+          The proprites of any font implementation
Game + +
+          The main game interface that should be implemented by any game being developed + using the container system.
GameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Image + +
+          An image loaded from a file and renderable to the canvas
Input + +
+          A wrapped for all keyboard, mouse and controller input
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
Music + +
+          A piece of music loaded and playable within the game.
MusicListener + +
+          The description of any class needing to recieve notification of changes + to music state.
Renderable + +
+          Description of anything that can be drawn
ShapeFill + +
+          A filling method for a shape.
SlickException + +
+          A generic exception thrown by everything in the library
SpriteSheet + +
+          A sheet of sprites that can be drawn individually
UnicodeFont.DisplayList + +
+          A simple descriptor for display lists cached within this font
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.command
Input + +
+          A wrapped for all keyboard, mouse and controller input
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.fills
Color + +
+          A simple wrapper round the values required for a colour
ShapeFill + +
+          A filling method for a shape.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.font
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
UnicodeFont + +
+          A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.font.effects
UnicodeFont + +
+          A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.geom
Image + +
+          An image loaded from a file and renderable to the canvas
ShapeFill + +
+          A filling method for a shape.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.gui
Color + +
+          A simple wrapper round the values required for a colour
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
Font + +
+          The proprites of any font implementation
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Image + +
+          An image loaded from a file and renderable to the canvas
Input + +
+          A wrapped for all keyboard, mouse and controller input
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
SlickException + +
+          A generic exception thrown by everything in the library
Sound + +
+          A single sound effect loaded from either OGG or XM/MOD file.
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.imageout
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.opengl
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.opengl.pbuffer
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.particles
Color + +
+          A simple wrapper round the values required for a colour
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.particles.effects
Image + +
+          An image loaded from a file and renderable to the canvas
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.state
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
Game + +
+          The main game interface that should be implemented by any game being developed + using the container system.
GameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Input + +
+          A wrapped for all keyboard, mouse and controller input
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.state.transition
Color + +
+          A simple wrapper round the values required for a colour
GameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.svg
Color + +
+          A simple wrapper round the values required for a colour
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.tests
BasicGame + +
+          A basic implementation of a game to take out the boring bits
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
Game + +
+          The main game interface that should be implemented by any game being developed + using the container system.
GameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
Music + +
+          A piece of music loaded and playable within the game.
MusicListener + +
+          The description of any class needing to recieve notification of changes + to music state.
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.tests.states
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
GameContainer + +
+          A generic game container that handles the game loop, fps recording and + managing the input system
Graphics + +
+          A graphics context that can be used to render primatives to the accelerated + canvas provided by LWJGL.
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.tests.xml
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.tiled
Image + +
+          An image loaded from a file and renderable to the canvas
SlickException + +
+          A generic exception thrown by everything in the library
SpriteSheet + +
+          A sheet of sprites that can be drawn individually
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.util
Color + +
+          A simple wrapper round the values required for a colour
ControlledInputReciever + +
+          Description of any class capable of recieving and controlling it's own + reception of input + + You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces: + + InputListener + MouseListener + KeyListener + ControllerListener
ControllerListener + +
+          Description of classes capable of responding to controller events
Font + +
+          The proprites of any font implementation
Game + +
+          The main game interface that should be implemented by any game being developed + using the container system.
Image + +
+          An image loaded from a file and renderable to the canvas
Input + +
+          A wrapped for all keyboard, mouse and controller input
InputListener + +
+          A listener that will be notified of keyboard, mouse and controller events
KeyListener + +
+          Describes classes capable of responding to key presses
MouseListener + +
+          Description of classes that respond to mouse related input events
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick used by org.newdawn.slick.util.xml
SlickException + +
+          A generic exception thrown by everything in the library
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.ColorRecord.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.ColorRecord.html new file mode 100644 index 000000000..2798b4f38 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.ColorRecord.html @@ -0,0 +1,299 @@ + + + + + + +ConfigurableEmitter.ColorRecord (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter.ColorRecord

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public class ConfigurableEmitter.ColorRecord
extends java.lang.Object
+ + +

+A single element in the colour range of this emitter +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+ Colorcol + +
+          The color at this position
+ floatpos + +
+          The position in the life cycle
+  + + + + + + + + + + +
+Constructor Summary
ConfigurableEmitter.ColorRecord(float pos, + Color col) + +
+          Create a new record
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+pos

+
+public float pos
+
+
The position in the life cycle +

+

+
+
+
+ +

+col

+
+public Color col
+
+
The color at this position +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ConfigurableEmitter.ColorRecord

+
+public ConfigurableEmitter.ColorRecord(float pos,
+                                       Color col)
+
+
Create a new record +

+

+
Parameters:
pos - The position in the life cycle (0 = start, 1 = end)
col - The color applied at this position
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.LinearInterpolator.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.LinearInterpolator.html new file mode 100644 index 000000000..064715ea6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.LinearInterpolator.html @@ -0,0 +1,476 @@ + + + + + + +ConfigurableEmitter.LinearInterpolator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter.LinearInterpolator

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator
+
+
+
All Implemented Interfaces:
ConfigurableEmitter.Value
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public class ConfigurableEmitter.LinearInterpolator
extends java.lang.Object
implements ConfigurableEmitter.Value
+ + +

+A value computed based on linear interpolation between a set of points +

+ +

+

+
Author:
+
void
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ConfigurableEmitter.LinearInterpolator(java.util.ArrayList curve, + int min, + int max) + +
+          Create a new interpolated value
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.util.ArrayListgetCurve() + +
+          The list of data points to interpolate between
+ intgetMax() + +
+          Get the maxmimum value possible in this data set
+ intgetMin() + +
+          Get the minimum value possible in this data set
+ floatgetValue(float t) + +
+          Get the value to use at a given time value
+ booleanisActive() + +
+          Check if this interpolated value should be used
+ voidsetActive(boolean active) + +
+          Indicate if this interpoalte value should be used
+ voidsetCurve(java.util.ArrayList curve) + +
+          Set the collection of data points to interpolate between
+ voidsetMax(int max) + +
+          Set the maximum value possible in this data set
+ voidsetMin(int min) + +
+          Set the minimum value possible in this data set
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ConfigurableEmitter.LinearInterpolator

+
+public ConfigurableEmitter.LinearInterpolator(java.util.ArrayList curve,
+                                              int min,
+                                              int max)
+
+
Create a new interpolated value +

+

+
Parameters:
curve - The set of points to interpolate between
min - The minimum value in the dataset
max - The maximum value possible in the dataset
+
+ + + + + + + + +
+Method Detail
+ +

+setCurve

+
+public void setCurve(java.util.ArrayList curve)
+
+
Set the collection of data points to interpolate between +

+

+
+
+
+
Parameters:
curve - The list of data points to interpolate between
+
+
+
+ +

+getCurve

+
+public java.util.ArrayList getCurve()
+
+
The list of data points to interpolate between +

+

+
+
+
+ +
Returns:
A list of Vector2f of the data points to interpolate between
+
+
+
+ +

+getValue

+
+public float getValue(float t)
+
+
Get the value to use at a given time value +

+

+
Specified by:
getValue in interface ConfigurableEmitter.Value
+
+
+
Parameters:
t - The time value (expecting t in [0,1]) +
Returns:
The value to use at the specified time
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Check if this interpolated value should be used +

+

+
+
+
+ +
Returns:
True if this value is in use
+
+
+
+ +

+setActive

+
+public void setActive(boolean active)
+
+
Indicate if this interpoalte value should be used +

+

+
+
+
+
Parameters:
active - True if this value should be used
+
+
+
+ +

+getMax

+
+public int getMax()
+
+
Get the maxmimum value possible in this data set +

+

+
+
+
+ +
Returns:
The maximum value possible in this data set
+
+
+
+ +

+setMax

+
+public void setMax(int max)
+
+
Set the maximum value possible in this data set +

+

+
+
+
+
Parameters:
max - The maximum value possible in this data set
+
+
+
+ +

+getMin

+
+public int getMin()
+
+
Get the minimum value possible in this data set +

+

+
+
+
+ +
Returns:
The minimum value possible in this data set
+
+
+
+ +

+setMin

+
+public void setMin(int min)
+
+
Set the minimum value possible in this data set +

+

+
+
+
+
Parameters:
min - The minimum value possible in this data set
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.RandomValue.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.RandomValue.html new file mode 100644 index 000000000..c13f905d2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.RandomValue.html @@ -0,0 +1,288 @@ + + + + + + +ConfigurableEmitter.RandomValue (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter.RandomValue

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter.RandomValue
+
+
+
All Implemented Interfaces:
ConfigurableEmitter.Value
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public class ConfigurableEmitter.RandomValue
extends java.lang.Object
implements ConfigurableEmitter.Value
+ + +

+A configurable simple linear random value +

+ +

+

+
Author:
+
void
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetValue() + +
+          get the configured value
+ floatgetValue(float time) + +
+          Get the currently configured value
+ voidsetValue(float value) + +
+          Set the configured value
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public float getValue(float time)
+
+
Get the currently configured value +

+

+
Specified by:
getValue in interface ConfigurableEmitter.Value
+
+
+ +
Returns:
The currently configured value
+
+
+
+ +

+setValue

+
+public void setValue(float value)
+
+
Set the configured value +

+

+
+
+
+
Parameters:
value - The configured value
+
+
+
+ +

+getValue

+
+public float getValue()
+
+
get the configured value +

+

+
+
+
+ +
Returns:
the configured value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Range.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Range.html new file mode 100644 index 000000000..f8617e5ce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Range.html @@ -0,0 +1,362 @@ + + + + + + +ConfigurableEmitter.Range (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter.Range

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter.Range
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public class ConfigurableEmitter.Range
extends java.lang.Object
+ + +

+A simple bean describing a range of values +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetMax() + +
+          Get the maximum value for this range
+ floatgetMin() + +
+          Get the minimum value for this range
+ booleanisEnabled() + +
+          Check if this configuration option is enabled
+ floatrandom() + +
+          Generate a random number in the range
+ voidsetEnabled(boolean enabled) + +
+          Indicate if this option should be enabled
+ voidsetMax(float max) + +
+          Set the maxmium value for this range
+ voidsetMin(float min) + +
+          Set the minimum value for this range
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+random

+
+public float random()
+
+
Generate a random number in the range +

+

+ +
Returns:
The random number from the range
+
+
+
+ +

+isEnabled

+
+public boolean isEnabled()
+
+
Check if this configuration option is enabled +

+

+ +
Returns:
True if the range is enabled
+
+
+
+ +

+setEnabled

+
+public void setEnabled(boolean enabled)
+
+
Indicate if this option should be enabled +

+

+
Parameters:
enabled - True if this option should be enabled
+
+
+
+ +

+getMax

+
+public float getMax()
+
+
Get the maximum value for this range +

+

+ +
Returns:
The maximum value for this range
+
+
+
+ +

+setMax

+
+public void setMax(float max)
+
+
Set the maxmium value for this range +

+

+
Parameters:
max - The maximum value for this range
+
+
+
+ +

+getMin

+
+public float getMin()
+
+
Get the minimum value for this range +

+

+ +
Returns:
The minimum value for this range
+
+
+
+ +

+setMin

+
+public void setMin(float min)
+
+
Set the minimum value for this range +

+

+
Parameters:
min - The minimum value for this range
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.SimpleValue.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.SimpleValue.html new file mode 100644 index 000000000..7d8443841 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.SimpleValue.html @@ -0,0 +1,263 @@ + + + + + + +ConfigurableEmitter.SimpleValue (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter.SimpleValue

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter.SimpleValue
+
+
+
All Implemented Interfaces:
ConfigurableEmitter.Value
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public class ConfigurableEmitter.SimpleValue
extends java.lang.Object
implements ConfigurableEmitter.Value
+ + +

+A configurable simple single value +

+ +

+

+
Author:
+
void
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetValue(float time) + +
+          Get the currently configured value
+ voidsetValue(float value) + +
+          Set the configured value
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public float getValue(float time)
+
+
Get the currently configured value +

+

+
Specified by:
getValue in interface ConfigurableEmitter.Value
+
+
+ +
Returns:
The currently configured value
+
+
+
+ +

+setValue

+
+public void setValue(float value)
+
+
Set the configured value +

+

+
+
+
+
Parameters:
value - The configured value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Value.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Value.html new file mode 100644 index 000000000..6b87b591b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.Value.html @@ -0,0 +1,223 @@ + + + + + + +ConfigurableEmitter.Value (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Interface ConfigurableEmitter.Value

+
+
All Known Implementing Classes:
ConfigurableEmitter.LinearInterpolator, ConfigurableEmitter.RandomValue, ConfigurableEmitter.SimpleValue
+
+
+
Enclosing class:
ConfigurableEmitter
+
+
+
+
public static interface ConfigurableEmitter.Value
+ + +

+a general interface to provide a general value :] +

+ +

+

+
Author:
+
void
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ floatgetValue(float time) + +
+          get the current value that might depend from the given time
+  +

+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+float getValue(float time)
+
+
get the current value that might depend from the given time +

+

+
Parameters:
time - +
Returns:
the current value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.html new file mode 100644 index 000000000..c7ff82454 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitter.html @@ -0,0 +1,1581 @@ + + + + + + +ConfigurableEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ConfigurableEmitter

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ConfigurableEmitter
+
+
+
All Implemented Interfaces:
ParticleEmitter
+
+
+
+
public class ConfigurableEmitter
extends java.lang.Object
implements ParticleEmitter
+ + +

+An emitter than can be externally configured. This configuration can also be + saved/loaded using the ParticleIO class. +

+ +

+

+
Author:
+
kevin
+
See Also:
ParticleIO
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+ classConfigurableEmitter.ColorRecord + +
+          A single element in the colour range of this emitter
+ classConfigurableEmitter.LinearInterpolator + +
+          A value computed based on linear interpolation between a set of points
+ classConfigurableEmitter.RandomValue + +
+          A configurable simple linear random value
+ classConfigurableEmitter.Range + +
+          A simple bean describing a range of values
+ classConfigurableEmitter.SimpleValue + +
+          A configurable simple single value
+static interfaceConfigurableEmitter.Value + +
+          a general interface to provide a general value :]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  booleanadjust + +
+          True if we need to adjust particles for movement
+protected  floatadjustx + +
+          The amount to adjust on the x axis
+protected  floatadjusty + +
+          The amount to adjust on the y axis
+ ConfigurableEmitter.LinearInterpolatoralpha + +
+          Whiskas - Interpolated value for alpha
+ ConfigurableEmitter.SimpleValueangularOffset + +
+          The angular offset
+ java.util.ArrayListcolors + +
+          The color range
+protected  booleancompleted + +
+          True if the system has completed due to a wrap up
+ ConfigurableEmitter.RangeemitCount + +
+          The number of particles that will be emitted
+ ConfigurableEmitter.SimpleValueendAlpha + +
+          The ending alpha value
+ ConfigurableEmitter.SimpleValuegravityFactor + +
+          The factor of gravity to apply
+ ConfigurableEmitter.SimpleValuegrowthFactor + +
+          The growth factor on the particles
+ java.lang.StringimageName + +
+          The name of the image in use
+ ConfigurableEmitter.RangeinitialDistance + +
+          The initial distance of the particles
+ ConfigurableEmitter.RangeinitialLife + +
+          The initial life of the new pixels
+ ConfigurableEmitter.RangeinitialSize + +
+          The initial size of the new pixels
+ ConfigurableEmitter.Rangelength + +
+          The length of the effect
+ java.lang.Stringname + +
+          The name attribute
+ ConfigurableEmitter.LinearInterpolatorscaleY + +
+          Whiskas - Interpolated value for y axis scaling
+ ConfigurableEmitter.LinearInterpolatorsize + +
+          Whiskas - Interpolated value for size
+ ConfigurableEmitter.RangespawnCount + +
+          The spawn count property - how many particles are spawned each time
+ ConfigurableEmitter.RangespawnInterval + +
+          The spawn interval range property - how often spawn happens
+ ConfigurableEmitter.Rangespeed + +
+          The speed particles fly out
+ ConfigurableEmitter.RandomValuespread + +
+          The spread of the particles
+ ConfigurableEmitter.SimpleValuestartAlpha + +
+          The starting alpha value
+ booleanuseAdditive + +
+          True if the additivie blending mode should be used for particles owned by + this emitter
+ booleanuseOriented + +
+          True if the quads should be orieted based on velocity
+ intusePoints + +
+          The points indicate
+ ConfigurableEmitter.LinearInterpolatorvelocity + +
+          Whiskas - Interpolated value for velocity
+ ConfigurableEmitter.SimpleValuewindFactor + +
+          The factor of wind to apply
+protected  booleanwrapUp + +
+          True if we're wrapping up
+ ConfigurableEmitter.RangexOffset + +
+          The offset from the x position
+ ConfigurableEmitter.RangeyOffset + +
+          The offset from the y position
+  + + + + + + + + + + +
+Constructor Summary
ConfigurableEmitter(java.lang.String name) + +
+          Create a new emitter configurable externally
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddColorPoint(float pos, + Color col) + +
+          Add a point in the colour cycle
+ booleancompleted() + +
+          Check if this emitter has completed it's cycle
+ ConfigurableEmitterduplicate() + +
+          Create a duplicate of this emitter.
+ ImagegetImage() + +
+          Get the image to draw for each particle
+ java.lang.StringgetImageName() + +
+          The name of the image to load
+ floatgetX() + +
+          Get the base x coordiante for spawning particles
+ floatgetY() + +
+          Get the base y coordiante for spawning particles
+ booleanisEnabled() + +
+          Check if the emitter is enabled
+ booleanisOriented() + +
+          Check if the particles produced should maintain orientation
+ voidreplay() + +
+          Cause the emitter to replay it's circle
+ voidreplayCheck() + +
+          Check if the replay has died out - used by the editor
+ voidreset() + +
+          Release all the particles held by this emitter
+ voidresetState() + +
+          Clear the state of emitter back to default
+ voidsetEnabled(boolean enabled) + +
+          Indicate whether the emitter should be enabled
+ voidsetImageName(java.lang.String imageName) + +
+          Set the name of the image to use on a per particle basis.
+ voidsetPosition(float x, + float y) + +
+          Set the position of this particle source
+ voidsetPosition(float x, + float y, + boolean moveParticles) + +
+          Set the position of this particle source
+static voidsetRelativePath(java.lang.String path) + +
+          Set the path from which images should be loaded
+ java.lang.StringtoString() + +
+           
+ voidupdate(ParticleSystem system, + int delta) + +
+          Update the emitter, produce any particles required by requesting + them from the particle system provided.
+ voidupdateParticle(Particle particle, + int delta) + +
+          Update a single particle that this emitter produced
+ booleanuseAdditive() + +
+          Check if this emitter should use additive blending
+ booleanusePoints(ParticleSystem system) + +
+          Check if this emitter should use points based on it's own settings + and those of the particle system
+ voidwrapUp() + +
+          Wrap up the particle emitter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+spawnInterval

+
+public ConfigurableEmitter.Range spawnInterval
+
+
The spawn interval range property - how often spawn happens +

+

+
+
+
+ +

+spawnCount

+
+public ConfigurableEmitter.Range spawnCount
+
+
The spawn count property - how many particles are spawned each time +

+

+
+
+
+ +

+initialLife

+
+public ConfigurableEmitter.Range initialLife
+
+
The initial life of the new pixels +

+

+
+
+
+ +

+initialSize

+
+public ConfigurableEmitter.Range initialSize
+
+
The initial size of the new pixels +

+

+
+
+
+ +

+xOffset

+
+public ConfigurableEmitter.Range xOffset
+
+
The offset from the x position +

+

+
+
+
+ +

+yOffset

+
+public ConfigurableEmitter.Range yOffset
+
+
The offset from the y position +

+

+
+
+
+ +

+spread

+
+public ConfigurableEmitter.RandomValue spread
+
+
The spread of the particles +

+

+
+
+
+ +

+angularOffset

+
+public ConfigurableEmitter.SimpleValue angularOffset
+
+
The angular offset +

+

+
+
+
+ +

+initialDistance

+
+public ConfigurableEmitter.Range initialDistance
+
+
The initial distance of the particles +

+

+
+
+
+ +

+speed

+
+public ConfigurableEmitter.Range speed
+
+
The speed particles fly out +

+

+
+
+
+ +

+growthFactor

+
+public ConfigurableEmitter.SimpleValue growthFactor
+
+
The growth factor on the particles +

+

+
+
+
+ +

+gravityFactor

+
+public ConfigurableEmitter.SimpleValue gravityFactor
+
+
The factor of gravity to apply +

+

+
+
+
+ +

+windFactor

+
+public ConfigurableEmitter.SimpleValue windFactor
+
+
The factor of wind to apply +

+

+
+
+
+ +

+length

+
+public ConfigurableEmitter.Range length
+
+
The length of the effect +

+

+
+
+
+ +

+colors

+
+public java.util.ArrayList colors
+
+
The color range +

+

+
See Also:
ConfigurableEmitter.ColorRecord
+
+
+ +

+startAlpha

+
+public ConfigurableEmitter.SimpleValue startAlpha
+
+
The starting alpha value +

+

+
+
+
+ +

+endAlpha

+
+public ConfigurableEmitter.SimpleValue endAlpha
+
+
The ending alpha value +

+

+
+
+
+ +

+alpha

+
+public ConfigurableEmitter.LinearInterpolator alpha
+
+
Whiskas - Interpolated value for alpha +

+

+
+
+
+ +

+size

+
+public ConfigurableEmitter.LinearInterpolator size
+
+
Whiskas - Interpolated value for size +

+

+
+
+
+ +

+velocity

+
+public ConfigurableEmitter.LinearInterpolator velocity
+
+
Whiskas - Interpolated value for velocity +

+

+
+
+
+ +

+scaleY

+
+public ConfigurableEmitter.LinearInterpolator scaleY
+
+
Whiskas - Interpolated value for y axis scaling +

+

+
+
+
+ +

+emitCount

+
+public ConfigurableEmitter.Range emitCount
+
+
The number of particles that will be emitted +

+

+
+
+
+ +

+usePoints

+
+public int usePoints
+
+
The points indicate +

+

+
+
+
+ +

+useOriented

+
+public boolean useOriented
+
+
True if the quads should be orieted based on velocity +

+

+
+
+
+ +

+useAdditive

+
+public boolean useAdditive
+
+
True if the additivie blending mode should be used for particles owned by + this emitter +

+

+
+
+
+ +

+name

+
+public java.lang.String name
+
+
The name attribute +

+

+
+
+
+ +

+imageName

+
+public java.lang.String imageName
+
+
The name of the image in use +

+

+
+
+
+ +

+wrapUp

+
+protected boolean wrapUp
+
+
True if we're wrapping up +

+

+
+
+
+ +

+completed

+
+protected boolean completed
+
+
True if the system has completed due to a wrap up +

+

+
+
+
+ +

+adjust

+
+protected boolean adjust
+
+
True if we need to adjust particles for movement +

+

+
+
+
+ +

+adjustx

+
+protected float adjustx
+
+
The amount to adjust on the x axis +

+

+
+
+
+ +

+adjusty

+
+protected float adjusty
+
+
The amount to adjust on the y axis +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ConfigurableEmitter

+
+public ConfigurableEmitter(java.lang.String name)
+
+
Create a new emitter configurable externally +

+

+
Parameters:
name - The name of emitter
+
+ + + + + + + + +
+Method Detail
+ +

+setRelativePath

+
+public static void setRelativePath(java.lang.String path)
+
+
Set the path from which images should be loaded +

+

+
+
+
+
Parameters:
path - The path from which images should be loaded
+
+
+
+ +

+setImageName

+
+public void setImageName(java.lang.String imageName)
+
+
Set the name of the image to use on a per particle basis. The complete + reference to the image is required (based on the relative path) +

+

+
+
+
+
Parameters:
imageName - The name of the image to use on a per particle reference
See Also:
setRelativePath(String)
+
+
+
+ +

+getImageName

+
+public java.lang.String getImageName()
+
+
The name of the image to load +

+

+
+
+
+ +
Returns:
The name of the image to load
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+setPosition

+
+public void setPosition(float x,
+                        float y)
+
+
Set the position of this particle source +

+

+
+
+
+
Parameters:
x - The x coodinate of that this emitter should spawn at
y - The y coodinate of that this emitter should spawn at
+
+
+
+ +

+setPosition

+
+public void setPosition(float x,
+                        float y,
+                        boolean moveParticles)
+
+
Set the position of this particle source +

+

+
+
+
+
Parameters:
x - The x coodinate of that this emitter should spawn at
y - The y coodinate of that this emitter should spawn at
moveParticles - True if particles should be moved with the emitter
+
+
+
+ +

+getX

+
+public float getX()
+
+
Get the base x coordiante for spawning particles +

+

+
+
+
+ +
Returns:
The x coordinate for spawning particles
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the base y coordiante for spawning particles +

+

+
+
+
+ +
Returns:
The y coordinate for spawning particles
+
+
+
+ +

+isEnabled

+
+public boolean isEnabled()
+
+
Description copied from interface: ParticleEmitter
+
Check if the emitter is enabled +

+

+
Specified by:
isEnabled in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter is enabled
See Also:
ParticleEmitter.isEnabled()
+
+
+
+ +

+setEnabled

+
+public void setEnabled(boolean enabled)
+
+
Description copied from interface: ParticleEmitter
+
Indicate whether the emitter should be enabled +

+

+
Specified by:
setEnabled in interface ParticleEmitter
+
+
+
Parameters:
enabled - True if the emitter should be enabled
See Also:
ParticleEmitter.setEnabled(boolean)
+
+
+
+ +

+update

+
+public void update(ParticleSystem system,
+                   int delta)
+
+
Description copied from interface: ParticleEmitter
+
Update the emitter, produce any particles required by requesting + them from the particle system provided. +

+

+
Specified by:
update in interface ParticleEmitter
+
+
+
Parameters:
system - The particle system used to create particles
delta - The amount of time in milliseconds since last emitter update
See Also:
ParticleEmitter.update(org.newdawn.slick.particles.ParticleSystem, + int)
+
+
+
+ +

+updateParticle

+
+public void updateParticle(Particle particle,
+                           int delta)
+
+
Description copied from interface: ParticleEmitter
+
Update a single particle that this emitter produced +

+

+
Specified by:
updateParticle in interface ParticleEmitter
+
+
+
Parameters:
particle - The particle to be updated
delta - The amount of time in millisecond since last particle update
See Also:
ParticleEmitter.updateParticle(org.newdawn.slick.particles.Particle, + int)
+
+
+
+ +

+completed

+
+public boolean completed()
+
+
Check if this emitter has completed it's cycle +

+

+
Specified by:
completed in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter has completed it's cycle
+
+
+
+ +

+replay

+
+public void replay()
+
+
Cause the emitter to replay it's circle +

+

+
+
+
+
+
+
+
+ +

+reset

+
+public void reset()
+
+
Release all the particles held by this emitter +

+

+
+
+
+
+
+
+
+ +

+replayCheck

+
+public void replayCheck()
+
+
Check if the replay has died out - used by the editor +

+

+
+
+
+
+
+
+
+ +

+duplicate

+
+public ConfigurableEmitter duplicate()
+
+
Create a duplicate of this emitter. + The duplicate should be added to a ParticleSystem to be used. +

+

+
+
+
+ +
Returns:
a copy if no IOException occurred, null otherwise
+
+
+
+ +

+addColorPoint

+
+public void addColorPoint(float pos,
+                          Color col)
+
+
Add a point in the colour cycle +

+

+
+
+
+
Parameters:
pos - The position in the life cycle (0 = start, 1 = end)
col - The color applied at this position
+
+
+
+ +

+useAdditive

+
+public boolean useAdditive()
+
+
Description copied from interface: ParticleEmitter
+
Check if this emitter should use additive blending +

+

+
Specified by:
useAdditive in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter should use the right blending
+
+
+
+ +

+isOriented

+
+public boolean isOriented()
+
+
Description copied from interface: ParticleEmitter
+
Check if the particles produced should maintain orientation +

+

+
Specified by:
isOriented in interface ParticleEmitter
+
+
+ +
Returns:
True if the particles produced should maintain orientation
+
+
+
+ +

+usePoints

+
+public boolean usePoints(ParticleSystem system)
+
+
Description copied from interface: ParticleEmitter
+
Check if this emitter should use points based on it's own settings + and those of the particle system +

+

+
Specified by:
usePoints in interface ParticleEmitter
+
+
+
Parameters:
system - The particle system to cross check agianst +
Returns:
True if we should use points
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
Description copied from interface: ParticleEmitter
+
Get the image to draw for each particle +

+

+
Specified by:
getImage in interface ParticleEmitter
+
+
+ +
Returns:
The image to draw for each particle
+
+
+
+ +

+wrapUp

+
+public void wrapUp()
+
+
Description copied from interface: ParticleEmitter
+
Wrap up the particle emitter. This means the emitter will no longer produce + particles and will be marked as completed once the particles have expired +

+

+
Specified by:
wrapUp in interface ParticleEmitter
+
+
+
+
+
+
+ +

+resetState

+
+public void resetState()
+
+
Description copied from interface: ParticleEmitter
+
Clear the state of emitter back to default +

+

+
Specified by:
resetState in interface ParticleEmitter
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitterFactory.html b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitterFactory.html new file mode 100644 index 000000000..ef4f8d3fa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ConfigurableEmitterFactory.html @@ -0,0 +1,220 @@ + + + + + + +ConfigurableEmitterFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Interface ConfigurableEmitterFactory

+
+
+
public interface ConfigurableEmitterFactory
+ + +

+A description of any class that can create Configurable Emitters during the ParticleIO + load phase. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ ConfigurableEmittercreateEmitter(java.lang.String name) + +
+          Create a configurable emitter that will be populated with + loaded data
+  +

+ + + + + + + + +
+Method Detail
+ +

+createEmitter

+
+ConfigurableEmitter createEmitter(java.lang.String name)
+
+
Create a configurable emitter that will be populated with + loaded data +

+

+
Parameters:
name - The name given to the emitter +
Returns:
The newly created configurable emitter
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/Particle.html b/lib/javadoc/org/newdawn/slick/particles/Particle.html new file mode 100644 index 000000000..d27dc07a5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/Particle.html @@ -0,0 +1,1388 @@ + + + + + + +Particle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class Particle

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.Particle
+
+
+
+
public class Particle
extends java.lang.Object
+ + +

+A single particle within a system +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Colorcolor + +
+          The colour of the particle
+protected static SGLGL + +
+          The renderer to use for all GL operations
+protected  Imageimage + +
+          The image for this particle
+static intINHERIT_POINTS + +
+          Indicates the particle should inherit it's use of points
+protected  floatlife + +
+          The life left in the particle
+protected  booleanoriented + +
+          True if this particle's quad should be oritented based on it's direction
+protected  floatoriginalLife + +
+          The original life of this particle
+protected  floatscaleY + +
+          The currently scalar applied on the y axis
+protected  floatsize + +
+          The current size in pixels of the particle
+protected  inttype + +
+          The type identifier of this particle
+static intUSE_POINTS + +
+          Indicates the particle should explicitly use points
+static intUSE_QUADS + +
+          Indicates the particle should explicitly not use points
+protected  intusePoints + +
+          How this particle should be rendered
+protected  floatvelx + +
+          The x component of the direction vector of the particle
+protected  floatvely + +
+          The y component of the direction vector of the particle
+protected  floatx + +
+          The x coordinate of the particle
+protected  floaty + +
+          The y coordinate of the particle
+  + + + + + + + + + + +
+Constructor Summary
Particle(ParticleSystem engine) + +
+          Create a new particle belonging to given engine
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadjustColor(float r, + float g, + float b, + float a) + +
+          Adjust (add) the color of the particle
+ voidadjustColor(int r, + int g, + int b, + int a) + +
+          Adjust (add) the color of the particle
+ voidadjustLife(float delta) + +
+          Adjust the life othe particle
+ voidadjustPosition(float dx, + float dy) + +
+          Adjust (add) the position of this particle
+ voidadjustSize(float delta) + +
+          Adjust the size of the particle
+ voidadjustVelocity(float dx, + float dy) + +
+          Adjust (add) the direction of this particle
+ ColorgetColor() + +
+          Get the color of this particle
+ ParticleEmittergetEmitter() + +
+          Get the emitter that owns this particle
+ floatgetLife() + +
+          Get the life remaining in the particle in milliseconds
+ floatgetOriginalLife() + +
+          Get the original life of this particle
+ floatgetScaleY() + +
+          Get the current scalar applied on the y axis
+ floatgetSize() + +
+          Get the size of this particle
+ intgetType() + +
+          Get the type of this particle
+ floatgetX() + +
+          Get the x offset of this particle
+ floatgetY() + +
+          Get the y offset of this particle
+ voidinit(ParticleEmitter emitter, + float life) + +
+          Initialise the state of the particle as it's reused
+ booleaninUse() + +
+          Check if this particle is currently in use (i.e.
+ booleanisOriented() + +
+          Check if this particle is being oriented based on it's velocity
+ voidkill() + +
+          Kill the particle, stop it rendering and send it back to the engine for + use.
+ voidmove(float x, + float y) + +
+          Move this particle a fixed amount
+ voidrender() + +
+          Render this particle
+ voidsetColor(float r, + float g, + float b, + float a) + +
+          Set the color of the particle
+ voidsetImage(Image image) + +
+          Set the image used to render this particle
+ voidsetLife(float life) + +
+          Set the life of the particle
+ voidsetOriented(boolean oriented) + +
+          Indicate if this particle should be oriented based on it's velocity
+ voidsetPosition(float x, + float y) + +
+          Set the position of this particle
+ voidsetScaleY(float scaleY) + +
+          Set the current scalar applied on the y axis
+ voidsetSize(float size) + +
+          Set the size of the particle
+ voidsetSpeed(float speed) + +
+          Set the current speed of this particle
+ voidsetType(int type) + +
+          Set the type of this particle
+ voidsetUsePoint(int usePoints) + +
+          Indicate how this particle should be renered
+ voidsetVelocity(float velx, + float vely) + +
+          Set the velocity of the particle
+ voidsetVelocity(float dirx, + float diry, + float speed) + +
+          Set the velocity of the particle
+ java.lang.StringtoString() + +
+           
+ voidupdate(int delta) + +
+          Update the state of this particle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+INHERIT_POINTS

+
+public static final int INHERIT_POINTS
+
+
Indicates the particle should inherit it's use of points +

+

+
See Also:
Constant Field Values
+
+
+ +

+USE_POINTS

+
+public static final int USE_POINTS
+
+
Indicates the particle should explicitly use points +

+

+
See Also:
Constant Field Values
+
+
+ +

+USE_QUADS

+
+public static final int USE_QUADS
+
+
Indicates the particle should explicitly not use points +

+

+
See Also:
Constant Field Values
+
+
+ +

+x

+
+protected float x
+
+
The x coordinate of the particle +

+

+
+
+
+ +

+y

+
+protected float y
+
+
The y coordinate of the particle +

+

+
+
+
+ +

+velx

+
+protected float velx
+
+
The x component of the direction vector of the particle +

+

+
+
+
+ +

+vely

+
+protected float vely
+
+
The y component of the direction vector of the particle +

+

+
+
+
+ +

+size

+
+protected float size
+
+
The current size in pixels of the particle +

+

+
+
+
+ +

+color

+
+protected Color color
+
+
The colour of the particle +

+

+
+
+
+ +

+life

+
+protected float life
+
+
The life left in the particle +

+

+
+
+
+ +

+originalLife

+
+protected float originalLife
+
+
The original life of this particle +

+

+
+
+
+ +

+image

+
+protected Image image
+
+
The image for this particle +

+

+
+
+
+ +

+type

+
+protected int type
+
+
The type identifier of this particle +

+

+
+
+
+ +

+usePoints

+
+protected int usePoints
+
+
How this particle should be rendered +

+

+
+
+
+ +

+oriented

+
+protected boolean oriented
+
+
True if this particle's quad should be oritented based on it's direction +

+

+
+
+
+ +

+scaleY

+
+protected float scaleY
+
+
The currently scalar applied on the y axis +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Particle

+
+public Particle(ParticleSystem engine)
+
+
Create a new particle belonging to given engine +

+

+
Parameters:
engine - The engine the new particle belongs to
+
+ + + + + + + + +
+Method Detail
+ +

+getX

+
+public float getX()
+
+
Get the x offset of this particle +

+

+ +
Returns:
The x offset of this particle
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the y offset of this particle +

+

+ +
Returns:
The y offset of this particle
+
+
+
+ +

+move

+
+public void move(float x,
+                 float y)
+
+
Move this particle a fixed amount +

+

+
Parameters:
x - The amount to move the particle on the horizontal axis
y - The amount to move the particle on the vertical axis
+
+
+
+ +

+getSize

+
+public float getSize()
+
+
Get the size of this particle +

+

+ +
Returns:
The size of this particle
+
+
+
+ +

+getColor

+
+public Color getColor()
+
+
Get the color of this particle +

+

+ +
Returns:
The color of this particle
+
+
+
+ +

+setImage

+
+public void setImage(Image image)
+
+
Set the image used to render this particle +

+

+
Parameters:
image - The image used to render this particle
+
+
+
+ +

+getOriginalLife

+
+public float getOriginalLife()
+
+
Get the original life of this particle +

+

+ +
Returns:
The original life of this particle
+
+
+
+ +

+getLife

+
+public float getLife()
+
+
Get the life remaining in the particle in milliseconds +

+

+ +
Returns:
The life remaining in the particle
+
+
+
+ +

+inUse

+
+public boolean inUse()
+
+
Check if this particle is currently in use (i.e. is it rendering?) +

+

+ +
Returns:
True if the particle is currently in use
+
+
+
+ +

+render

+
+public void render()
+
+
Render this particle +

+

+
+
+
+
+ +

+update

+
+public void update(int delta)
+
+
Update the state of this particle +

+

+
Parameters:
delta - The time since the last update
+
+
+
+ +

+init

+
+public void init(ParticleEmitter emitter,
+                 float life)
+
+
Initialise the state of the particle as it's reused +

+

+
Parameters:
emitter - The emitter controlling this particle
life - The life the particle should have (in milliseconds)
+
+
+
+ +

+setType

+
+public void setType(int type)
+
+
Set the type of this particle +

+

+
Parameters:
type - The type of this particle
+
+
+
+ +

+setUsePoint

+
+public void setUsePoint(int usePoints)
+
+
Indicate how this particle should be renered +

+

+
Parameters:
usePoints - The indicator for rendering
See Also:
USE_POINTS, +USE_QUADS, +INHERIT_POINTS
+
+
+
+ +

+getType

+
+public int getType()
+
+
Get the type of this particle +

+

+ +
Returns:
The type of this particle
+
+
+
+ +

+setSize

+
+public void setSize(float size)
+
+
Set the size of the particle +

+

+
Parameters:
size - The size of the particle (in pixels)
+
+
+
+ +

+adjustSize

+
+public void adjustSize(float delta)
+
+
Adjust the size of the particle +

+

+
Parameters:
delta - The amount to adjust the size by (in pixels)
+
+
+
+ +

+setLife

+
+public void setLife(float life)
+
+
Set the life of the particle +

+

+
Parameters:
life - The life of the particle in milliseconds
+
+
+
+ +

+adjustLife

+
+public void adjustLife(float delta)
+
+
Adjust the life othe particle +

+

+
Parameters:
delta - The amount to adjust the particle by (in milliseconds)
+
+
+
+ +

+kill

+
+public void kill()
+
+
Kill the particle, stop it rendering and send it back to the engine for + use. +

+

+
+
+
+
+ +

+setColor

+
+public void setColor(float r,
+                     float g,
+                     float b,
+                     float a)
+
+
Set the color of the particle +

+

+
Parameters:
r - The red component of the color
g - The green component of the color
b - The blue component of the color
a - The alpha component of the color
+
+
+
+ +

+setPosition

+
+public void setPosition(float x,
+                        float y)
+
+
Set the position of this particle +

+

+
Parameters:
x - The new x position of the particle
y - The new y position of the particle
+
+
+
+ +

+setVelocity

+
+public void setVelocity(float dirx,
+                        float diry,
+                        float speed)
+
+
Set the velocity of the particle +

+

+
Parameters:
dirx - The x component of the new velocity
diry - The y component of the new velocity
speed - The speed in the given direction
+
+
+
+ +

+setSpeed

+
+public void setSpeed(float speed)
+
+
Set the current speed of this particle +

+

+
Parameters:
speed - The speed of this particle
+
+
+
+ +

+setVelocity

+
+public void setVelocity(float velx,
+                        float vely)
+
+
Set the velocity of the particle +

+

+
Parameters:
velx - The x component of the new velocity
vely - The y component of the new velocity
+
+
+
+ +

+adjustPosition

+
+public void adjustPosition(float dx,
+                           float dy)
+
+
Adjust (add) the position of this particle +

+

+
Parameters:
dx - The amount to adjust the x component by
dy - The amount to adjust the y component by
+
+
+
+ +

+adjustColor

+
+public void adjustColor(float r,
+                        float g,
+                        float b,
+                        float a)
+
+
Adjust (add) the color of the particle +

+

+
Parameters:
r - The amount to adjust the red component by
g - The amount to adjust the green component by
b - The amount to adjust the blue component by
a - The amount to adjust the alpha component by
+
+
+
+ +

+adjustColor

+
+public void adjustColor(int r,
+                        int g,
+                        int b,
+                        int a)
+
+
Adjust (add) the color of the particle +

+

+
Parameters:
r - The amount to adjust the red component by
g - The amount to adjust the green component by
b - The amount to adjust the blue component by
a - The amount to adjust the alpha component by
+
+
+
+ +

+adjustVelocity

+
+public void adjustVelocity(float dx,
+                           float dy)
+
+
Adjust (add) the direction of this particle +

+

+
Parameters:
dx - The amount to adjust the x component by
dy - The amount to adjust the y component by
+
+
+
+ +

+getEmitter

+
+public ParticleEmitter getEmitter()
+
+
Get the emitter that owns this particle +

+

+ +
Returns:
The emitter that owns this particle
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+
+ +

+isOriented

+
+public boolean isOriented()
+
+
Check if this particle is being oriented based on it's velocity +

+

+ +
Returns:
True if this particle being oriented based on it's velocity
+
+
+
+ +

+setOriented

+
+public void setOriented(boolean oriented)
+
+
Indicate if this particle should be oriented based on it's velocity +

+

+
Parameters:
oriented - True if this particle is being oriented based on it's velocity
+
+
+
+ +

+getScaleY

+
+public float getScaleY()
+
+
Get the current scalar applied on the y axis +

+

+ +
Returns:
The scalar applied on the y axis
+
+
+
+ +

+setScaleY

+
+public void setScaleY(float scaleY)
+
+
Set the current scalar applied on the y axis +

+

+
Parameters:
scaleY - The new scalar to apply on the y axis
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ParticleEmitter.html b/lib/javadoc/org/newdawn/slick/particles/ParticleEmitter.html new file mode 100644 index 000000000..5633c9106 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ParticleEmitter.html @@ -0,0 +1,446 @@ + + + + + + +ParticleEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Interface ParticleEmitter

+
+
All Known Implementing Classes:
ConfigurableEmitter, FireEmitter
+
+
+
+
public interface ParticleEmitter
+ + +

+An emitter is responsible for producing the particles and controlling them during + their life. An implementation of this interface can be considered a particle + effect. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancompleted() + +
+          Check if this emitter has completed it's cycle
+ ImagegetImage() + +
+          Get the image to draw for each particle
+ booleanisEnabled() + +
+          Check if the emitter is enabled
+ booleanisOriented() + +
+          Check if the particles produced should maintain orientation
+ voidresetState() + +
+          Clear the state of emitter back to default
+ voidsetEnabled(boolean enabled) + +
+          Indicate whether the emitter should be enabled
+ voidupdate(ParticleSystem system, + int delta) + +
+          Update the emitter, produce any particles required by requesting + them from the particle system provided.
+ voidupdateParticle(Particle particle, + int delta) + +
+          Update a single particle that this emitter produced
+ booleanuseAdditive() + +
+          Check if this emitter should use additive blending
+ booleanusePoints(ParticleSystem system) + +
+          Check if this emitter should use points based on it's own settings + and those of the particle system
+ voidwrapUp() + +
+          Wrap up the particle emitter.
+  +

+ + + + + + + + +
+Method Detail
+ +

+update

+
+void update(ParticleSystem system,
+            int delta)
+
+
Update the emitter, produce any particles required by requesting + them from the particle system provided. +

+

+
Parameters:
system - The particle system used to create particles
delta - The amount of time in milliseconds since last emitter update
+
+
+
+ +

+completed

+
+boolean completed()
+
+
Check if this emitter has completed it's cycle +

+

+ +
Returns:
True if the emitter has completed it's cycle
+
+
+
+ +

+wrapUp

+
+void wrapUp()
+
+
Wrap up the particle emitter. This means the emitter will no longer produce + particles and will be marked as completed once the particles have expired +

+

+
+
+
+
+ +

+updateParticle

+
+void updateParticle(Particle particle,
+                    int delta)
+
+
Update a single particle that this emitter produced +

+

+
Parameters:
particle - The particle to be updated
delta - The amount of time in millisecond since last particle update
+
+
+
+ +

+isEnabled

+
+boolean isEnabled()
+
+
Check if the emitter is enabled +

+

+ +
Returns:
True if the emitter is enabled
+
+
+
+ +

+setEnabled

+
+void setEnabled(boolean enabled)
+
+
Indicate whether the emitter should be enabled +

+

+
Parameters:
enabled - True if the emitter should be enabled
+
+
+
+ +

+useAdditive

+
+boolean useAdditive()
+
+
Check if this emitter should use additive blending +

+

+ +
Returns:
True if the emitter should use the right blending
+
+
+
+ +

+getImage

+
+Image getImage()
+
+
Get the image to draw for each particle +

+

+ +
Returns:
The image to draw for each particle
+
+
+
+ +

+isOriented

+
+boolean isOriented()
+
+
Check if the particles produced should maintain orientation +

+

+ +
Returns:
True if the particles produced should maintain orientation
+
+
+
+ +

+usePoints

+
+boolean usePoints(ParticleSystem system)
+
+
Check if this emitter should use points based on it's own settings + and those of the particle system +

+

+
Parameters:
system - The particle system to cross check agianst +
Returns:
True if we should use points
+
+
+
+ +

+resetState

+
+void resetState()
+
+
Clear the state of emitter back to default +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ParticleIO.html b/lib/javadoc/org/newdawn/slick/particles/ParticleIO.html new file mode 100644 index 000000000..293ae4808 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ParticleIO.html @@ -0,0 +1,751 @@ + + + + + + +ParticleIO (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ParticleIO

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ParticleIO
+
+
+
+
public class ParticleIO
extends java.lang.Object
+ + +

+Utility methods to (de)serialize ConfigureEmitters to and from XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ParticleIO() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static ParticleSystemloadConfiguredSystem(java.io.File ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.io.InputStream ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.io.InputStream ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory, + ParticleSystem system, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.lang.String ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.lang.String ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemloadConfiguredSystem(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ConfigurableEmitterloadEmitter(java.io.File ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterloadEmitter(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterloadEmitter(java.io.InputStream ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterloadEmitter(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterloadEmitter(java.lang.String ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterloadEmitter(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static voidsaveConfiguredSystem(java.io.File file, + ParticleSystem system) + +
+          Save a particle system with only ConfigurableEmitters in to an XML file
+static voidsaveConfiguredSystem(java.io.OutputStream out, + ParticleSystem system) + +
+          Save a particle system with only ConfigurableEmitters in to an XML file
+static voidsaveEmitter(java.io.File file, + ConfigurableEmitter emitter) + +
+          Save a single emitter to the XML file
+static voidsaveEmitter(java.io.OutputStream out, + ConfigurableEmitter emitter) + +
+          Save a single emitter to the XML file
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParticleIO

+
+public ParticleIO()
+
+
+ + + + + + + + +
+Method Detail
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.lang.String ref,
+                                                  Color mask)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The reference to the XML file (file or classpath)
mask - +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.lang.String ref)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The reference to the XML file (file or classpath) +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.File ref)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The XML file to read +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
+                                                  Color mask)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The stream to read the XML from
mask - The mask used to make the particle image transparent +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The stream to read the XML from +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.lang.String ref,
+                                                  ConfigurableEmitterFactory factory)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The reference to the XML file (file or classpath)
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.File ref,
+                                                  ConfigurableEmitterFactory factory)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The XML file to read
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
+                                                  ConfigurableEmitterFactory factory)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The stream to read the XML from
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadConfiguredSystem

+
+public static ParticleSystem loadConfiguredSystem(java.io.InputStream ref,
+                                                  ConfigurableEmitterFactory factory,
+                                                  ParticleSystem system,
+                                                  Color mask)
+                                           throws java.io.IOException
+
+
Load a set of configured emitters into a single system +

+

+
Parameters:
ref - The stream to read the XML from
factory - The factory used to create the emitter than will be poulated + with loaded data.
system - The particle system that will be loaded into
mask - The mask used to make the image background transparent +
Returns:
A configured particle system +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+saveConfiguredSystem

+
+public static void saveConfiguredSystem(java.io.File file,
+                                        ParticleSystem system)
+                                 throws java.io.IOException
+
+
Save a particle system with only ConfigurableEmitters in to an XML file +

+

+
Parameters:
file - The file to save to
system - The system to store +
Throws: +
java.io.IOException - Indicates a failure to save or encode the system XML.
+
+
+
+ +

+saveConfiguredSystem

+
+public static void saveConfiguredSystem(java.io.OutputStream out,
+                                        ParticleSystem system)
+                                 throws java.io.IOException
+
+
Save a particle system with only ConfigurableEmitters in to an XML file +

+

+
Parameters:
out - The location to which we'll save
system - The system to store +
Throws: +
java.io.IOException - Indicates a failure to save or encode the system XML.
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.lang.String ref)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The reference to the emitter XML file to load (classpath or + file) +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.io.File ref)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The XML file to read +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.io.InputStream ref)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The stream to read the XML from +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.lang.String ref,
+                                              ConfigurableEmitterFactory factory)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The reference to the emitter XML file to load (classpath or + file)
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.io.File ref,
+                                              ConfigurableEmitterFactory factory)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The XML file to read
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+loadEmitter

+
+public static ConfigurableEmitter loadEmitter(java.io.InputStream ref,
+                                              ConfigurableEmitterFactory factory)
+                                       throws java.io.IOException
+
+
Load a single emitter from an XML file +

+

+
Parameters:
ref - The stream to read the XML from
factory - The factory used to create the emitter than will be poulated + with loaded data. +
Returns:
The configured emitter +
Throws: +
java.io.IOException - Indicates a failure to find, read or parse the XML file
+
+
+
+ +

+saveEmitter

+
+public static void saveEmitter(java.io.File file,
+                               ConfigurableEmitter emitter)
+                        throws java.io.IOException
+
+
Save a single emitter to the XML file +

+

+
Parameters:
file - The file to save the emitter to
emitter - The emitter to store to the XML file +
Throws: +
java.io.IOException - Indicates a failure to write or encode the XML
+
+
+
+ +

+saveEmitter

+
+public static void saveEmitter(java.io.OutputStream out,
+                               ConfigurableEmitter emitter)
+                        throws java.io.IOException
+
+
Save a single emitter to the XML file +

+

+
Parameters:
out - The location to which we should save
emitter - The emitter to store to the XML file +
Throws: +
java.io.IOException - Indicates a failure to write or encode the XML
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/ParticleSystem.html b/lib/javadoc/org/newdawn/slick/particles/ParticleSystem.html new file mode 100644 index 000000000..0f87c5d8f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/ParticleSystem.html @@ -0,0 +1,1113 @@ + + + + + + +ParticleSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles +
+Class ParticleSystem

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.ParticleSystem
+
+
+
+
public class ParticleSystem
extends java.lang.Object
+ + +

+A particle syste responsible for maintaining a set of data about individual + particles which are created and controlled by assigned emitters. This pseudo + chaotic nature hopes to give more organic looking effects +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intBLEND_ADDITIVE + +
+          The blending mode for the glowy style
+static intBLEND_COMBINE + +
+          The blending mode for the normal style
+protected  Particledummy + +
+          The dummy particle to return should no more particles be available
+protected  java.util.ArrayListemitters + +
+          The list of emittered producing and controlling particles
+protected  SGLGL + +
+          The renderer to use for all GL operations
+protected  intmaxParticlesPerEmitter + +
+          The maximum number of particles allows per emitter
+protected  java.util.HashMapparticlesByEmitter + +
+          A map from emitter to a the particle pool holding the particles it uses + void: this is now sorted by emitters to allow emitter specfic state to be set for + each emitter.
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
ParticleSystem(Image defaultSprite) + +
+          Create a new particle system
ParticleSystem(Image defaultSprite, + int maxParticles) + +
+          Create a new particle system
ParticleSystem(java.lang.String defaultSpriteRef) + +
+          Create a new particle system
ParticleSystem(java.lang.String defaultSpriteRef, + int maxParticles) + +
+          Create a new particle system
ParticleSystem(java.lang.String defaultSpriteRef, + int maxParticles, + Color mask) + +
+          Create a new particle system
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddEmitter(ParticleEmitter emitter) + +
+          Add a particle emitter to be used on this system
+protected  ParticlecreateParticle(ParticleSystem system) + +
+          Create a particle specific to this system, override for your own implementations.
+ ParticleSystemduplicate() + +
+          Create a duplicate of this system.
+ intgetBlendingMode() + +
+          Get the blending mode in use
+ ParticleEmittergetEmitter(int index) + +
+          Get an emitter a specified index int he list contained within this system
+ intgetEmitterCount() + +
+          Get the number of emitters applied to the system
+ ParticlegetNewParticle(ParticleEmitter emitter, + float life) + +
+          Get a new particle from the system.
+ intgetParticleCount() + +
+          Get the number of particles in use in this system
+ floatgetPositionX() + +
+          Get the x coordiante of the position of the system
+ floatgetPositionY() + +
+          Get the y coordiante of the position of the system
+ booleanisVisible() + +
+          Check if this system is currently visible, i.e.
+ voidmoveAll(ParticleEmitter emitter, + float x, + float y) + +
+          Move all the particles owned by the specified emitter
+ voidrelease(Particle particle) + +
+          Release a particle back to the system once it has expired
+ voidreleaseAll(ParticleEmitter emitter) + +
+          Release all the particles owned by the specified emitter
+ voidremoveAllEmitters() + +
+          Remove all the emitters from the system
+ voidremoveEmitter(ParticleEmitter emitter) + +
+          Remove a particle emitter that is currently used in the system
+ voidrender() + +
+          Render the particles in the system
+ voidrender(float x, + float y) + +
+          Render the particles in the system
+ voidreset() + +
+          Reset the state of the system
+ voidsetBlendingMode(int mode) + +
+          Set the blending mode for the particles
+ voidsetDefaultImageName(java.lang.String ref) + +
+          Set the default image name
+ voidsetPosition(float x, + float y) + +
+          Set the position at which this system should render relative to the current + graphics context setup
+static voidsetRelativePath(java.lang.String path) + +
+          Set the path from which images should be loaded
+ voidsetRemoveCompletedEmitters(boolean remove) + +
+          Indicate if completed emitters should be removed
+ voidsetUsePoints(boolean usePoints) + +
+          Indicate if this engine should use points to render the particles
+ voidsetVisible(boolean visible) + +
+          Indicate whether the particle system should be visible, i.e.
+ voidupdate(int delta) + +
+          Update the system, request the assigned emitters update the particles
+ booleanusePoints() + +
+          Check if this engine should use points to render the particles
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+BLEND_ADDITIVE

+
+public static final int BLEND_ADDITIVE
+
+
The blending mode for the glowy style +

+

+
See Also:
Constant Field Values
+
+
+ +

+BLEND_COMBINE

+
+public static final int BLEND_COMBINE
+
+
The blending mode for the normal style +

+

+
See Also:
Constant Field Values
+
+
+ +

+particlesByEmitter

+
+protected java.util.HashMap particlesByEmitter
+
+
A map from emitter to a the particle pool holding the particles it uses + void: this is now sorted by emitters to allow emitter specfic state to be set for + each emitter. actually this is used to allow setting an individual blend mode for + each emitter +

+

+
+
+
+ +

+maxParticlesPerEmitter

+
+protected int maxParticlesPerEmitter
+
+
The maximum number of particles allows per emitter +

+

+
+
+
+ +

+emitters

+
+protected java.util.ArrayList emitters
+
+
The list of emittered producing and controlling particles +

+

+
+
+
+ +

+dummy

+
+protected Particle dummy
+
+
The dummy particle to return should no more particles be available +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ParticleSystem

+
+public ParticleSystem(Image defaultSprite)
+
+
Create a new particle system +

+

+
Parameters:
defaultSprite - The sprite to render for each particle
+
+
+ +

+ParticleSystem

+
+public ParticleSystem(java.lang.String defaultSpriteRef)
+
+
Create a new particle system +

+

+
Parameters:
defaultSpriteRef - The sprite to render for each particle
+
+
+ +

+ParticleSystem

+
+public ParticleSystem(java.lang.String defaultSpriteRef,
+                      int maxParticles)
+
+
Create a new particle system +

+

+
Parameters:
defaultSpriteRef - The sprite to render for each particle
maxParticles - The number of particles available in the system
+
+
+ +

+ParticleSystem

+
+public ParticleSystem(java.lang.String defaultSpriteRef,
+                      int maxParticles,
+                      Color mask)
+
+
Create a new particle system +

+

+
Parameters:
defaultSpriteRef - The sprite to render for each particle
maxParticles - The number of particles available in the system
mask - The mask used to make the sprite image transparent
+
+
+ +

+ParticleSystem

+
+public ParticleSystem(Image defaultSprite,
+                      int maxParticles)
+
+
Create a new particle system +

+

+
Parameters:
defaultSprite - The sprite to render for each particle
maxParticles - The number of particles available in the system
+
+ + + + + + + + +
+Method Detail
+ +

+setRelativePath

+
+public static void setRelativePath(java.lang.String path)
+
+
Set the path from which images should be loaded +

+

+
Parameters:
path - The path from which images should be loaded
+
+
+
+ +

+reset

+
+public void reset()
+
+
Reset the state of the system +

+

+
+
+
+
+ +

+isVisible

+
+public boolean isVisible()
+
+
Check if this system is currently visible, i.e. it's actually + rendered +

+

+ +
Returns:
True if the particle system is rendered
+
+
+
+ +

+setVisible

+
+public void setVisible(boolean visible)
+
+
Indicate whether the particle system should be visible, i.e. whether + it'll actually render +

+

+
Parameters:
visible - True if the particle system should render
+
+
+
+ +

+setRemoveCompletedEmitters

+
+public void setRemoveCompletedEmitters(boolean remove)
+
+
Indicate if completed emitters should be removed +

+

+
Parameters:
remove - True if completed emitters should be removed
+
+
+
+ +

+setUsePoints

+
+public void setUsePoints(boolean usePoints)
+
+
Indicate if this engine should use points to render the particles +

+

+
Parameters:
usePoints - True if points should be used to render the particles
+
+
+
+ +

+usePoints

+
+public boolean usePoints()
+
+
Check if this engine should use points to render the particles +

+

+ +
Returns:
True if the engine should use points to render the particles
+
+
+
+ +

+setDefaultImageName

+
+public void setDefaultImageName(java.lang.String ref)
+
+
Set the default image name +

+

+
Parameters:
ref - The default image name
+
+
+
+ +

+getBlendingMode

+
+public int getBlendingMode()
+
+
Get the blending mode in use +

+

+ +
Returns:
The blending mode in use
See Also:
BLEND_COMBINE, +BLEND_ADDITIVE
+
+
+
+ +

+createParticle

+
+protected Particle createParticle(ParticleSystem system)
+
+
Create a particle specific to this system, override for your own implementations. + These particles will be cached and reused within this system. +

+

+
Parameters:
system - The system owning this particle +
Returns:
The newly created particle.
+
+
+
+ +

+setBlendingMode

+
+public void setBlendingMode(int mode)
+
+
Set the blending mode for the particles +

+

+
Parameters:
mode - The mode for blending particles together
+
+
+
+ +

+getEmitterCount

+
+public int getEmitterCount()
+
+
Get the number of emitters applied to the system +

+

+ +
Returns:
The number of emitters applied to the system
+
+
+
+ +

+getEmitter

+
+public ParticleEmitter getEmitter(int index)
+
+
Get an emitter a specified index int he list contained within this system +

+

+
Parameters:
index - The index of the emitter to retrieve +
Returns:
The particle emitter
+
+
+
+ +

+addEmitter

+
+public void addEmitter(ParticleEmitter emitter)
+
+
Add a particle emitter to be used on this system +

+

+
Parameters:
emitter - The emitter to be added
+
+
+
+ +

+removeEmitter

+
+public void removeEmitter(ParticleEmitter emitter)
+
+
Remove a particle emitter that is currently used in the system +

+

+
Parameters:
emitter - The emitter to be removed
+
+
+
+ +

+removeAllEmitters

+
+public void removeAllEmitters()
+
+
Remove all the emitters from the system +

+

+
+
+
+
+ +

+getPositionX

+
+public float getPositionX()
+
+
Get the x coordiante of the position of the system +

+

+ +
Returns:
The x coordinate of the position of the system
+
+
+
+ +

+getPositionY

+
+public float getPositionY()
+
+
Get the y coordiante of the position of the system +

+

+ +
Returns:
The y coordinate of the position of the system
+
+
+
+ +

+setPosition

+
+public void setPosition(float x,
+                        float y)
+
+
Set the position at which this system should render relative to the current + graphics context setup +

+

+
Parameters:
x - The x coordinate at which this system should be centered
y - The y coordinate at which this system should be centered
+
+
+
+ +

+render

+
+public void render()
+
+
Render the particles in the system +

+

+
+
+
+
+ +

+render

+
+public void render(float x,
+                   float y)
+
+
Render the particles in the system +

+

+
Parameters:
x - The x coordinate to render the particle system at (in the current coordinate space)
y - The y coordinate to render the particle system at (in the current coordiante space)
+
+
+
+ +

+update

+
+public void update(int delta)
+
+
Update the system, request the assigned emitters update the particles +

+

+
Parameters:
delta - The amount of time thats passed since last update in milliseconds
+
+
+
+ +

+getParticleCount

+
+public int getParticleCount()
+
+
Get the number of particles in use in this system +

+

+ +
Returns:
The number of particles in use in this system
+
+
+
+ +

+getNewParticle

+
+public Particle getNewParticle(ParticleEmitter emitter,
+                               float life)
+
+
Get a new particle from the system. This should be used by emitters to + request particles +

+

+
Parameters:
emitter - The emitter requesting the particle
life - The time the new particle should live for +
Returns:
A particle from the system
+
+
+
+ +

+release

+
+public void release(Particle particle)
+
+
Release a particle back to the system once it has expired +

+

+
Parameters:
particle - The particle to be released
+
+
+
+ +

+releaseAll

+
+public void releaseAll(ParticleEmitter emitter)
+
+
Release all the particles owned by the specified emitter +

+

+
Parameters:
emitter - The emitter owning the particles that should be released
+
+
+
+ +

+moveAll

+
+public void moveAll(ParticleEmitter emitter,
+                    float x,
+                    float y)
+
+
Move all the particles owned by the specified emitter +

+

+
Parameters:
emitter - The emitter owning the particles that should be released
x - The amount on the x axis to move the particles
y - The amount on the y axis to move the particles
+
+
+
+ +

+duplicate

+
+public ParticleSystem duplicate()
+                         throws SlickException
+
+
Create a duplicate of this system. This would have been nicer as a different interface + but may cause to much API change headache. Maybe next full version release it should be + rethought. + + TODO: Consider refactor at next point release +

+

+ +
Returns:
A copy of this particle system +
Throws: +
SlickException - Indicates a failure during copy or a invalid particle system to be duplicated
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.ColorRecord.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.ColorRecord.html new file mode 100644 index 000000000..d28678b02 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.ColorRecord.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord

+
+No usage of org.newdawn.slick.particles.ConfigurableEmitter.ColorRecord +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.LinearInterpolator.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.LinearInterpolator.html new file mode 100644 index 000000000..921f9787f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.LinearInterpolator.html @@ -0,0 +1,205 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter.LinearInterpolator
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter.LinearInterpolator in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.particles declared as ConfigurableEmitter.LinearInterpolator
+ ConfigurableEmitter.LinearInterpolatorConfigurableEmitter.alpha + +
+          Whiskas - Interpolated value for alpha
+ ConfigurableEmitter.LinearInterpolatorConfigurableEmitter.scaleY + +
+          Whiskas - Interpolated value for y axis scaling
+ ConfigurableEmitter.LinearInterpolatorConfigurableEmitter.size + +
+          Whiskas - Interpolated value for size
+ ConfigurableEmitter.LinearInterpolatorConfigurableEmitter.velocity + +
+          Whiskas - Interpolated value for velocity
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.RandomValue.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.RandomValue.html new file mode 100644 index 000000000..acbf546df --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.RandomValue.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter.RandomValue (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter.RandomValue

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter.RandomValue
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter.RandomValue in org.newdawn.slick.particles
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.particles declared as ConfigurableEmitter.RandomValue
+ ConfigurableEmitter.RandomValueConfigurableEmitter.spread + +
+          The spread of the particles
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Range.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Range.html new file mode 100644 index 000000000..1500d9502 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Range.html @@ -0,0 +1,253 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter.Range (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter.Range

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter.Range
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter.Range in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.particles declared as ConfigurableEmitter.Range
+ ConfigurableEmitter.RangeConfigurableEmitter.emitCount + +
+          The number of particles that will be emitted
+ ConfigurableEmitter.RangeConfigurableEmitter.initialDistance + +
+          The initial distance of the particles
+ ConfigurableEmitter.RangeConfigurableEmitter.initialLife + +
+          The initial life of the new pixels
+ ConfigurableEmitter.RangeConfigurableEmitter.initialSize + +
+          The initial size of the new pixels
+ ConfigurableEmitter.RangeConfigurableEmitter.length + +
+          The length of the effect
+ ConfigurableEmitter.RangeConfigurableEmitter.spawnCount + +
+          The spawn count property - how many particles are spawned each time
+ ConfigurableEmitter.RangeConfigurableEmitter.spawnInterval + +
+          The spawn interval range property - how often spawn happens
+ ConfigurableEmitter.RangeConfigurableEmitter.speed + +
+          The speed particles fly out
+ ConfigurableEmitter.RangeConfigurableEmitter.xOffset + +
+          The offset from the x position
+ ConfigurableEmitter.RangeConfigurableEmitter.yOffset + +
+          The offset from the y position
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.SimpleValue.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.SimpleValue.html new file mode 100644 index 000000000..37b265930 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.SimpleValue.html @@ -0,0 +1,221 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter.SimpleValue (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter.SimpleValue

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter.SimpleValue
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter.SimpleValue in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in org.newdawn.slick.particles declared as ConfigurableEmitter.SimpleValue
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.angularOffset + +
+          The angular offset
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.endAlpha + +
+          The ending alpha value
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.gravityFactor + +
+          The factor of gravity to apply
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.growthFactor + +
+          The growth factor on the particles
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.startAlpha + +
+          The starting alpha value
+ ConfigurableEmitter.SimpleValueConfigurableEmitter.windFactor + +
+          The factor of wind to apply
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Value.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Value.html new file mode 100644 index 000000000..abcd9d1c4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.Value.html @@ -0,0 +1,197 @@ + + + + + + +Uses of Interface org.newdawn.slick.particles.ConfigurableEmitter.Value (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.particles.ConfigurableEmitter.Value

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter.Value
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter.Value in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.particles that implement ConfigurableEmitter.Value
+ classConfigurableEmitter.LinearInterpolator + +
+          A value computed based on linear interpolation between a set of points
+ classConfigurableEmitter.RandomValue + +
+          A configurable simple linear random value
+ classConfigurableEmitter.SimpleValue + +
+          A configurable simple single value
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.html new file mode 100644 index 000000000..8cb0385bd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitter.html @@ -0,0 +1,267 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ConfigurableEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ConfigurableEmitter

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitter
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitter in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles that return ConfigurableEmitter
+ ConfigurableEmitterConfigurableEmitterFactory.createEmitter(java.lang.String name) + +
+          Create a configurable emitter that will be populated with + loaded data
+ ConfigurableEmitterConfigurableEmitter.duplicate() + +
+          Create a duplicate of this emitter.
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.File ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.InputStream ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.lang.String ref) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type ConfigurableEmitter
+static voidParticleIO.saveEmitter(java.io.File file, + ConfigurableEmitter emitter) + +
+          Save a single emitter to the XML file
+static voidParticleIO.saveEmitter(java.io.OutputStream out, + ConfigurableEmitter emitter) + +
+          Save a single emitter to the XML file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitterFactory.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitterFactory.html new file mode 100644 index 000000000..e0842fa81 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ConfigurableEmitterFactory.html @@ -0,0 +1,238 @@ + + + + + + +Uses of Interface org.newdawn.slick.particles.ConfigurableEmitterFactory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.particles.ConfigurableEmitterFactory

+
+ + + + + + + + + +
+Packages that use ConfigurableEmitterFactory
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
+  +

+ + + + + +
+Uses of ConfigurableEmitterFactory in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type ConfigurableEmitterFactory
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory, + ParticleSystem system, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+static ConfigurableEmitterParticleIO.loadEmitter(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a single emitter from an XML file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/Particle.html b/lib/javadoc/org/newdawn/slick/particles/class-use/Particle.html new file mode 100644 index 000000000..cb75f99bc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/Particle.html @@ -0,0 +1,270 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.Particle (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.Particle

+
+ + + + + + + + + + + + + +
+Packages that use Particle
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
+  +

+ + + + + +
+Uses of Particle in org.newdawn.slick.particles
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.particles declared as Particle
+protected  ParticleParticleSystem.dummy + +
+          The dummy particle to return should no more particles be available
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles that return Particle
+protected  ParticleParticleSystem.createParticle(ParticleSystem system) + +
+          Create a particle specific to this system, override for your own implementations.
+ ParticleParticleSystem.getNewParticle(ParticleEmitter emitter, + float life) + +
+          Get a new particle from the system.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type Particle
+ voidParticleSystem.release(Particle particle) + +
+          Release a particle back to the system once it has expired
+ voidParticleEmitter.updateParticle(Particle particle, + int delta) + +
+          Update a single particle that this emitter produced
+ voidConfigurableEmitter.updateParticle(Particle particle, + int delta) + +
+           
+  +

+ + + + + +
+Uses of Particle in org.newdawn.slick.particles.effects
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.particles.effects with parameters of type Particle
+ voidFireEmitter.updateParticle(Particle particle, + int delta) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleEmitter.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleEmitter.html new file mode 100644 index 000000000..f91499f4d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleEmitter.html @@ -0,0 +1,294 @@ + + + + + + +Uses of Interface org.newdawn.slick.particles.ParticleEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.particles.ParticleEmitter

+
+ + + + + + + + + + + + + +
+Packages that use ParticleEmitter
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
+  +

+ + + + + +
+Uses of ParticleEmitter in org.newdawn.slick.particles
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.particles that implement ParticleEmitter
+ classConfigurableEmitter + +
+          An emitter than can be externally configured.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles that return ParticleEmitter
+ ParticleEmitterParticle.getEmitter() + +
+          Get the emitter that owns this particle
+ ParticleEmitterParticleSystem.getEmitter(int index) + +
+          Get an emitter a specified index int he list contained within this system
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type ParticleEmitter
+ voidParticleSystem.addEmitter(ParticleEmitter emitter) + +
+          Add a particle emitter to be used on this system
+ ParticleParticleSystem.getNewParticle(ParticleEmitter emitter, + float life) + +
+          Get a new particle from the system.
+ voidParticle.init(ParticleEmitter emitter, + float life) + +
+          Initialise the state of the particle as it's reused
+ voidParticleSystem.moveAll(ParticleEmitter emitter, + float x, + float y) + +
+          Move all the particles owned by the specified emitter
+ voidParticleSystem.releaseAll(ParticleEmitter emitter) + +
+          Release all the particles owned by the specified emitter
+ voidParticleSystem.removeEmitter(ParticleEmitter emitter) + +
+          Remove a particle emitter that is currently used in the system
+  +

+ + + + + +
+Uses of ParticleEmitter in org.newdawn.slick.particles.effects
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.particles.effects that implement ParticleEmitter
+ classFireEmitter + +
+          A stock effect for fire usin the particle system
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleIO.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleIO.html new file mode 100644 index 000000000..4b3769791 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleIO.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ParticleIO (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ParticleIO

+
+No usage of org.newdawn.slick.particles.ParticleIO +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleSystem.html b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleSystem.html new file mode 100644 index 000000000..d95ad7cce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/class-use/ParticleSystem.html @@ -0,0 +1,394 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.ParticleSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.ParticleSystem

+
+ + + + + + + + + + + + + +
+Packages that use ParticleSystem
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
+  +

+ + + + + +
+Uses of ParticleSystem in org.newdawn.slick.particles
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles that return ParticleSystem
+ ParticleSystemParticleSystem.duplicate() + +
+          Create a duplicate of this system.
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.File ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.File ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory, + ParticleSystem system, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.lang.String ref) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.lang.String ref, + Color mask) + +
+          Load a set of configured emitters into a single system
+static ParticleSystemParticleIO.loadConfiguredSystem(java.lang.String ref, + ConfigurableEmitterFactory factory) + +
+          Load a set of configured emitters into a single system
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles with parameters of type ParticleSystem
+protected  ParticleParticleSystem.createParticle(ParticleSystem system) + +
+          Create a particle specific to this system, override for your own implementations.
+static ParticleSystemParticleIO.loadConfiguredSystem(java.io.InputStream ref, + ConfigurableEmitterFactory factory, + ParticleSystem system, + Color mask) + +
+          Load a set of configured emitters into a single system
+static voidParticleIO.saveConfiguredSystem(java.io.File file, + ParticleSystem system) + +
+          Save a particle system with only ConfigurableEmitters in to an XML file
+static voidParticleIO.saveConfiguredSystem(java.io.OutputStream out, + ParticleSystem system) + +
+          Save a particle system with only ConfigurableEmitters in to an XML file
+ voidParticleEmitter.update(ParticleSystem system, + int delta) + +
+          Update the emitter, produce any particles required by requesting + them from the particle system provided.
+ voidConfigurableEmitter.update(ParticleSystem system, + int delta) + +
+           
+ booleanParticleEmitter.usePoints(ParticleSystem system) + +
+          Check if this emitter should use points based on it's own settings + and those of the particle system
+ booleanConfigurableEmitter.usePoints(ParticleSystem system) + +
+           
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.particles with parameters of type ParticleSystem
Particle(ParticleSystem engine) + +
+          Create a new particle belonging to given engine
+  +

+ + + + + +
+Uses of ParticleSystem in org.newdawn.slick.particles.effects
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.particles.effects with parameters of type ParticleSystem
+ voidFireEmitter.update(ParticleSystem system, + int delta) + +
+           
+ booleanFireEmitter.usePoints(ParticleSystem system) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/FireEmitter.html b/lib/javadoc/org/newdawn/slick/particles/effects/FireEmitter.html new file mode 100644 index 000000000..3f234f229 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/FireEmitter.html @@ -0,0 +1,578 @@ + + + + + + +FireEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.particles.effects +
+Class FireEmitter

+
+java.lang.Object
+  extended by org.newdawn.slick.particles.effects.FireEmitter
+
+
+
All Implemented Interfaces:
ParticleEmitter
+
+
+
+
public class FireEmitter
extends java.lang.Object
implements ParticleEmitter
+ + +

+A stock effect for fire usin the particle system +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
FireEmitter() + +
+          Create a default fire effect at 0,0
FireEmitter(int x, + int y) + +
+          Create a default fire effect at x,y
FireEmitter(int x, + int y, + float size) + +
+          Create a default fire effect at x,y
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancompleted() + +
+          Check if this emitter has completed it's cycle
+ ImagegetImage() + +
+          Get the image to draw for each particle
+ booleanisEnabled() + +
+          Check if the emitter is enabled
+ booleanisOriented() + +
+          Check if the particles produced should maintain orientation
+ voidresetState() + +
+          Clear the state of emitter back to default
+ voidsetEnabled(boolean enabled) + +
+          Indicate whether the emitter should be enabled
+ voidupdate(ParticleSystem system, + int delta) + +
+          Update the emitter, produce any particles required by requesting + them from the particle system provided.
+ voidupdateParticle(Particle particle, + int delta) + +
+          Update a single particle that this emitter produced
+ booleanuseAdditive() + +
+          Check if this emitter should use additive blending
+ booleanusePoints(ParticleSystem system) + +
+          Check if this emitter should use points based on it's own settings + and those of the particle system
+ voidwrapUp() + +
+          Wrap up the particle emitter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FireEmitter

+
+public FireEmitter()
+
+
Create a default fire effect at 0,0 +

+

+
+ +

+FireEmitter

+
+public FireEmitter(int x,
+                   int y)
+
+
Create a default fire effect at x,y +

+

+
Parameters:
x - The x coordinate of the fire effect
y - The y coordinate of the fire effect
+
+
+ +

+FireEmitter

+
+public FireEmitter(int x,
+                   int y,
+                   float size)
+
+
Create a default fire effect at x,y +

+

+
Parameters:
x - The x coordinate of the fire effect
y - The y coordinate of the fire effect
size - The size of the particle being pumped out
+
+ + + + + + + + +
+Method Detail
+ +

+update

+
+public void update(ParticleSystem system,
+                   int delta)
+
+
Description copied from interface: ParticleEmitter
+
Update the emitter, produce any particles required by requesting + them from the particle system provided. +

+

+
Specified by:
update in interface ParticleEmitter
+
+
+
Parameters:
system - The particle system used to create particles
delta - The amount of time in milliseconds since last emitter update
See Also:
ParticleEmitter.update(org.newdawn.slick.particles.ParticleSystem, int)
+
+
+
+ +

+updateParticle

+
+public void updateParticle(Particle particle,
+                           int delta)
+
+
Description copied from interface: ParticleEmitter
+
Update a single particle that this emitter produced +

+

+
Specified by:
updateParticle in interface ParticleEmitter
+
+
+
Parameters:
particle - The particle to be updated
delta - The amount of time in millisecond since last particle update
See Also:
ParticleEmitter.updateParticle(org.newdawn.slick.particles.Particle, int)
+
+
+
+ +

+isEnabled

+
+public boolean isEnabled()
+
+
Description copied from interface: ParticleEmitter
+
Check if the emitter is enabled +

+

+
Specified by:
isEnabled in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter is enabled
See Also:
ParticleEmitter.isEnabled()
+
+
+
+ +

+setEnabled

+
+public void setEnabled(boolean enabled)
+
+
Description copied from interface: ParticleEmitter
+
Indicate whether the emitter should be enabled +

+

+
Specified by:
setEnabled in interface ParticleEmitter
+
+
+
Parameters:
enabled - True if the emitter should be enabled
See Also:
ParticleEmitter.setEnabled(boolean)
+
+
+
+ +

+completed

+
+public boolean completed()
+
+
Description copied from interface: ParticleEmitter
+
Check if this emitter has completed it's cycle +

+

+
Specified by:
completed in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter has completed it's cycle
See Also:
ParticleEmitter.completed()
+
+
+
+ +

+useAdditive

+
+public boolean useAdditive()
+
+
Description copied from interface: ParticleEmitter
+
Check if this emitter should use additive blending +

+

+
Specified by:
useAdditive in interface ParticleEmitter
+
+
+ +
Returns:
True if the emitter should use the right blending
See Also:
ParticleEmitter.useAdditive()
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
Description copied from interface: ParticleEmitter
+
Get the image to draw for each particle +

+

+
Specified by:
getImage in interface ParticleEmitter
+
+
+ +
Returns:
The image to draw for each particle
See Also:
ParticleEmitter.getImage()
+
+
+
+ +

+usePoints

+
+public boolean usePoints(ParticleSystem system)
+
+
Description copied from interface: ParticleEmitter
+
Check if this emitter should use points based on it's own settings + and those of the particle system +

+

+
Specified by:
usePoints in interface ParticleEmitter
+
+
+
Parameters:
system - The particle system to cross check agianst +
Returns:
True if we should use points
See Also:
ParticleEmitter.usePoints(org.newdawn.slick.particles.ParticleSystem)
+
+
+
+ +

+isOriented

+
+public boolean isOriented()
+
+
Description copied from interface: ParticleEmitter
+
Check if the particles produced should maintain orientation +

+

+
Specified by:
isOriented in interface ParticleEmitter
+
+
+ +
Returns:
True if the particles produced should maintain orientation
See Also:
ParticleEmitter.isOriented()
+
+
+
+ +

+wrapUp

+
+public void wrapUp()
+
+
Description copied from interface: ParticleEmitter
+
Wrap up the particle emitter. This means the emitter will no longer produce + particles and will be marked as completed once the particles have expired +

+

+
Specified by:
wrapUp in interface ParticleEmitter
+
+
+
See Also:
ParticleEmitter.wrapUp()
+
+
+
+ +

+resetState

+
+public void resetState()
+
+
Description copied from interface: ParticleEmitter
+
Clear the state of emitter back to default +

+

+
Specified by:
resetState in interface ParticleEmitter
+
+
+
See Also:
ParticleEmitter.resetState()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/class-use/FireEmitter.html b/lib/javadoc/org/newdawn/slick/particles/effects/class-use/FireEmitter.html new file mode 100644 index 000000000..825973f4b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/class-use/FireEmitter.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.particles.effects.FireEmitter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.particles.effects.FireEmitter

+
+No usage of org.newdawn.slick.particles.effects.FireEmitter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/package-frame.html b/lib/javadoc/org/newdawn/slick/particles/effects/package-frame.html new file mode 100644 index 000000000..45a0bd5af --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.newdawn.slick.particles.effects (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.particles.effects + + + + +
+Classes  + +
+FireEmitter
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/package-summary.html b/lib/javadoc/org/newdawn/slick/particles/effects/package-summary.html new file mode 100644 index 000000000..42565bcff --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/package-summary.html @@ -0,0 +1,172 @@ + + + + + + +org.newdawn.slick.particles.effects (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.particles.effects +

+This package should contain stock effects for simple particle systems. +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
FireEmitterA stock effect for fire usin the particle system
+  + +

+

+Package org.newdawn.slick.particles.effects Description +

+ +

+This package should contain stock effects for simple particle systems. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/package-tree.html b/lib/javadoc/org/newdawn/slick/particles/effects/package-tree.html new file mode 100644 index 000000000..9c60e601e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.newdawn.slick.particles.effects Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.particles.effects +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/effects/package-use.html b/lib/javadoc/org/newdawn/slick/particles/effects/package-use.html new file mode 100644 index 000000000..bdf25f6bb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/effects/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.newdawn.slick.particles.effects (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.particles.effects

+
+No usage of org.newdawn.slick.particles.effects +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/package-frame.html b/lib/javadoc/org/newdawn/slick/particles/package-frame.html new file mode 100644 index 000000000..635ebdeda --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/package-frame.html @@ -0,0 +1,53 @@ + + + + + + +org.newdawn.slick.particles (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.particles + + + + +
+Interfaces  + +
+ConfigurableEmitter.Value +
+ConfigurableEmitterFactory +
+ParticleEmitter
+ + + + + + +
+Classes  + +
+ConfigurableEmitter +
+Particle +
+ParticleIO +
+ParticleSystem
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/particles/package-summary.html b/lib/javadoc/org/newdawn/slick/particles/package-summary.html new file mode 100644 index 000000000..96ef0d47e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/package-summary.html @@ -0,0 +1,211 @@ + + + + + + +org.newdawn.slick.particles (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.particles +

+The particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
ConfigurableEmitter.Valuea general interface to provide a general value :]
ConfigurableEmitterFactoryA description of any class that can create Configurable Emitters during the ParticleIO + load phase.
ParticleEmitterAn emitter is responsible for producing the particles and controlling them during + their life.
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ConfigurableEmitterAn emitter than can be externally configured.
ParticleA single particle within a system
ParticleIOUtility methods to (de)serialize ConfigureEmitters to and from XML
ParticleSystemA particle syste responsible for maintaining a set of data about individual + particles which are created and controlled by assigned emitters.
+  + +

+

+Package org.newdawn.slick.particles Description +

+ +

+The particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/package-tree.html b/lib/javadoc/org/newdawn/slick/particles/package-tree.html new file mode 100644 index 000000000..4e209579b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +org.newdawn.slick.particles Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.particles +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/particles/package-use.html b/lib/javadoc/org/newdawn/slick/particles/package-use.html new file mode 100644 index 000000000..6d088b7a5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/particles/package-use.html @@ -0,0 +1,261 @@ + + + + + + +Uses of Package org.newdawn.slick.particles (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.particles

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.particles
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect. 
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.particles used by org.newdawn.slick.particles
ConfigurableEmitter + +
+          An emitter than can be externally configured.
ConfigurableEmitter.LinearInterpolator + +
+          A value computed based on linear interpolation between a set of points
ConfigurableEmitter.RandomValue + +
+          A configurable simple linear random value
ConfigurableEmitter.Range + +
+          A simple bean describing a range of values
ConfigurableEmitter.SimpleValue + +
+          A configurable simple single value
ConfigurableEmitter.Value + +
+          a general interface to provide a general value :]
ConfigurableEmitterFactory + +
+          A description of any class that can create Configurable Emitters during the ParticleIO + load phase.
Particle + +
+          A single particle within a system
ParticleEmitter + +
+          An emitter is responsible for producing the particles and controlling them during + their life.
ParticleSystem + +
+          A particle syste responsible for maintaining a set of data about individual + particles which are created and controlled by assigned emitters.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.particles used by org.newdawn.slick.particles.effects
Particle + +
+          A single particle within a system
ParticleEmitter + +
+          An emitter is responsible for producing the particles and controlling them during + their life.
ParticleSystem + +
+          A particle syste responsible for maintaining a set of data about individual + particles which are created and controlled by assigned emitters.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/BasicGameState.html b/lib/javadoc/org/newdawn/slick/state/BasicGameState.html new file mode 100644 index 000000000..f37ce79b3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/BasicGameState.html @@ -0,0 +1,964 @@ + + + + + + +BasicGameState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state +
+Class BasicGameState

+
+java.lang.Object
+  extended by org.newdawn.slick.state.BasicGameState
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener, GameState
+
+
+
Direct Known Subclasses:
TestState1, TestState2, TestState3
+
+
+
+
public abstract class BasicGameState
extends java.lang.Object
implements GameState
+ + +

+A simple state used an adapter so we don't have to implement all the event methods + every time. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BasicGameState() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ voidenter(GameContainer container, + StateBasedGame game) + +
+          Notification that we've entered this game state
+abstract  intgetID() + +
+          Get the ID of this state
+ voidinputEnded() + +
+          Notification that all input events have been sent for this frame
+ voidinputStarted() + +
+          Notification that input is about to be processed
+ booleanisAcceptingInput() + +
+          Check if this input listener is accepting input
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidleave(GameContainer container, + StateBasedGame game) + +
+          Notification that we're leaving this game state
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int newValue) + +
+          Notification that the mouse wheel position was updated
+ voidsetInput(Input input) + +
+          Set the input that events are being sent from
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.state.GameState
init, render, update
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BasicGameState

+
+public BasicGameState()
+
+
+ + + + + + + + +
+Method Detail
+ +

+inputStarted

+
+public void inputStarted()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that input is about to be processed +

+

+
Specified by:
inputStarted in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputStarted()
+
+
+
+ +

+isAcceptingInput

+
+public boolean isAcceptingInput()
+
+
Description copied from interface: ControlledInputReciever
+
Check if this input listener is accepting input +

+

+
Specified by:
isAcceptingInput in interface ControlledInputReciever
+
+
+ +
Returns:
True if the input listener should recieve events
See Also:
ControlledInputReciever.isAcceptingInput()
+
+
+
+ +

+setInput

+
+public void setInput(Input input)
+
+
Description copied from interface: ControlledInputReciever
+
Set the input that events are being sent from +

+

+
Specified by:
setInput in interface ControlledInputReciever
+
+
+
Parameters:
input - The input instance sending events
See Also:
ControlledInputReciever.setInput(org.newdawn.slick.Input)
+
+
+
+ +

+inputEnded

+
+public void inputEnded()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that all input events have been sent for this frame +

+

+
Specified by:
inputEnded in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputEnded()
+
+
+
+ +

+getID

+
+public abstract int getID()
+
+
Description copied from interface: GameState
+
Get the ID of this state +

+

+
Specified by:
getID in interface GameState
+
+
+ +
Returns:
The game unique ID of this state
See Also:
GameState.getID()
+
+
+
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
ControllerListener.controllerButtonPressed(int, int)
+
+
+
+ +

+controllerButtonReleased

+
+public void controllerButtonReleased(int controller,
+                                     int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been released on + the controller. +

+

+
Specified by:
controllerButtonReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
See Also:
ControllerListener.controllerButtonReleased(int, int)
+
+
+
+ +

+controllerDownPressed

+
+public void controllerDownPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been pressed on + the controller. +

+

+
Specified by:
controllerDownPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerDownPressed(int)
+
+
+
+ +

+controllerDownReleased

+
+public void controllerDownReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been released on + the controller. +

+

+
Specified by:
controllerDownReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerDownReleased(int)
+
+
+
+ +

+controllerLeftPressed

+
+public void controllerLeftPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been pressed on + the controller. +

+

+
Specified by:
controllerLeftPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerLeftPressed(int)
+
+
+
+ +

+controllerLeftReleased

+
+public void controllerLeftReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been released on + the controller. +

+

+
Specified by:
controllerLeftReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerLeftReleased(int)
+
+
+
+ +

+controllerRightPressed

+
+public void controllerRightPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been pressed on + the controller. +

+

+
Specified by:
controllerRightPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerRightPressed(int)
+
+
+
+ +

+controllerRightReleased

+
+public void controllerRightReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been released on + the controller. +

+

+
Specified by:
controllerRightReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerRightReleased(int)
+
+
+
+ +

+controllerUpPressed

+
+public void controllerUpPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been pressed on + the controller. +

+

+
Specified by:
controllerUpPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerUpPressed(int)
+
+
+
+ +

+controllerUpReleased

+
+public void controllerUpReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been released on + the controller. +

+

+
Specified by:
controllerUpReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerUpReleased(int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
KeyListener.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
KeyListener.keyReleased(int, char)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseMoved(int, int, int, int)
+
+
+
+ +

+mouseDragged

+
+public void mouseDragged(int oldx,
+                         int oldy,
+                         int newx,
+                         int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was dragged +

+

+
Specified by:
mouseDragged in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseDragged(int, int, int, int)
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
MouseListener.mouseClicked(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
MouseListener.mouseReleased(int, int, int)
+
+
+
+ +

+enter

+
+public void enter(GameContainer container,
+                  StateBasedGame game)
+           throws SlickException
+
+
Description copied from interface: GameState
+
Notification that we've entered this game state +

+

+
Specified by:
enter in interface GameState
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates an internal error that will be reported through the + standard framework mechanism
See Also:
GameState.enter(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)
+
+
+
+ +

+leave

+
+public void leave(GameContainer container,
+                  StateBasedGame game)
+           throws SlickException
+
+
Description copied from interface: GameState
+
Notification that we're leaving this game state +

+

+
Specified by:
leave in interface GameState
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates an internal error that will be reported through the + standard framework mechanism
See Also:
GameState.leave(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int newValue)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
+
+
+
Parameters:
newValue - The amount of the wheel has moved
See Also:
MouseListener.mouseWheelMoved(int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/GameState.html b/lib/javadoc/org/newdawn/slick/state/GameState.html new file mode 100644 index 000000000..20120ffdb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/GameState.html @@ -0,0 +1,415 @@ + + + + + + +GameState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state +
+Interface GameState

+
+
All Superinterfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+
All Known Implementing Classes:
BasicGameState, TestState1, TestState2, TestState3
+
+
+
+
public interface GameState
extends InputListener
+ + +

+A single state building up part of the game. The state include rendering, logic and input handling + for the state. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidenter(GameContainer container, + StateBasedGame game) + +
+          Notification that we've entered this game state
+ intgetID() + +
+          Get the ID of this state
+ voidinit(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+ voidleave(GameContainer container, + StateBasedGame game) + +
+          Notification that we're leaving this game state
+ voidrender(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidupdate(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.MouseListener
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.KeyListener
keyPressed, keyReleased
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControllerListener
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.ControlledInputReciever
inputEnded, inputStarted, isAcceptingInput, setInput
+  +

+ + + + + + + + +
+Method Detail
+ +

+getID

+
+int getID()
+
+
Get the ID of this state +

+

+
+
+
+ +
Returns:
The game unique ID of this state
+
+
+
+ +

+init

+
+void init(GameContainer container,
+          StateBasedGame game)
+          throws SlickException
+
+
Initialise the state. It should load any resources it needs at this stage +

+

+
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates a failure to initialise a resource for this state
+
+
+
+ +

+render

+
+void render(GameContainer container,
+            StateBasedGame game,
+            Graphics g)
+            throws SlickException
+
+
Render this state to the game's graphics context +

+

+
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state
g - The graphics context to render to +
Throws: +
SlickException - Indicates a failure to render an artifact
+
+
+
+ +

+update

+
+void update(GameContainer container,
+            StateBasedGame game,
+            int delta)
+            throws SlickException
+
+
Update the state's logic based on the amount of time thats passed +

+

+
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state
delta - The amount of time thats passed in millisecond since last update +
Throws: +
SlickException - Indicates an internal error that will be reported through the + standard framework mechanism
+
+
+
+ +

+enter

+
+void enter(GameContainer container,
+           StateBasedGame game)
+           throws SlickException
+
+
Notification that we've entered this game state +

+

+
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates an internal error that will be reported through the + standard framework mechanism
+
+
+
+ +

+leave

+
+void leave(GameContainer container,
+           StateBasedGame game)
+           throws SlickException
+
+
Notification that we're leaving this game state +

+

+
+
+
+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates an internal error that will be reported through the + standard framework mechanism
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/StateBasedGame.html b/lib/javadoc/org/newdawn/slick/state/StateBasedGame.html new file mode 100644 index 000000000..4538733ba --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/StateBasedGame.html @@ -0,0 +1,1367 @@ + + + + + + +StateBasedGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state +
+Class StateBasedGame

+
+java.lang.Object
+  extended by org.newdawn.slick.state.StateBasedGame
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
Direct Known Subclasses:
StateBasedTest, TransitionTest
+
+
+
+
public abstract class StateBasedGame
extends java.lang.Object
implements Game, InputListener
+ + +

+A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StateBasedGame(java.lang.String name) + +
+          Create a new state based game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddState(GameState state) + +
+          Add a state to the game.
+ booleancloseRequested() + +
+          Notification that a game close has been requested
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ voidenterState(int id) + +
+          Enter a particular game state with no transition
+ voidenterState(int id, + Transition leave, + Transition enter) + +
+          Enter a particular game state with the transitions provided
+ GameContainergetContainer() + +
+          Get the container holding this game
+ GameStategetCurrentState() + +
+          Get the state the game is currently in
+ intgetCurrentStateID() + +
+          Get the ID of the state the game is currently in
+ GameStategetState(int id) + +
+          Get a state based on it's identifier
+ intgetStateCount() + +
+          Get the number of states that have been added to this game
+ java.lang.StringgetTitle() + +
+          Get the title of this game
+ voidinit(GameContainer container) + +
+          Initialise the game.
+abstract  voidinitStatesList(GameContainer container) + +
+          Initialise the list of states making up this game
+ voidinputEnded() + +
+          Notification that all input events have been sent for this frame
+ voidinputStarted() + +
+          Notification that input is about to be processed
+ booleanisAcceptingInput() + +
+          Check if this input listener is accepting input
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int newValue) + +
+          Notification that the mouse wheel position was updated
+protected  voidpostRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the game level after the current state + and/or transition have been rendered
+protected  voidpostUpdateState(GameContainer container, + int delta) + +
+          User hook for rendering at the game level after the current state + and/or transition have been updated
+protected  voidpreRenderState(GameContainer container, + Graphics g) + +
+          User hook for rendering at the before the current state + and/or transition have been rendered
+protected  voidpreUpdateState(GameContainer container, + int delta) + +
+          User hook for updating at the game before the current state + and/or transition have been updated
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidsetInput(Input input) + +
+          Set the input that events are being sent from
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StateBasedGame

+
+public StateBasedGame(java.lang.String name)
+
+
Create a new state based game +

+

+
Parameters:
name - The name of the game
+
+ + + + + + + + +
+Method Detail
+ +

+inputStarted

+
+public void inputStarted()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that input is about to be processed +

+

+
Specified by:
inputStarted in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputStarted()
+
+
+
+ +

+getStateCount

+
+public int getStateCount()
+
+
Get the number of states that have been added to this game +

+

+
+
+
+ +
Returns:
The number of states that have been added to this game
+
+
+
+ +

+getCurrentStateID

+
+public int getCurrentStateID()
+
+
Get the ID of the state the game is currently in +

+

+
+
+
+ +
Returns:
The ID of the state the game is currently in
+
+
+
+ +

+getCurrentState

+
+public GameState getCurrentState()
+
+
Get the state the game is currently in +

+

+
+
+
+ +
Returns:
The state the game is currently in
+
+
+
+ +

+setInput

+
+public void setInput(Input input)
+
+
Description copied from interface: ControlledInputReciever
+
Set the input that events are being sent from +

+

+
Specified by:
setInput in interface ControlledInputReciever
+
+
+
Parameters:
input - The input instance sending events
See Also:
ControlledInputReciever.setInput(org.newdawn.slick.Input)
+
+
+
+ +

+addState

+
+public void addState(GameState state)
+
+
Add a state to the game. The state will be updated and maintained + by the game +

+

+
+
+
+
Parameters:
state - The state to be added
+
+
+
+ +

+getState

+
+public GameState getState(int id)
+
+
Get a state based on it's identifier +

+

+
+
+
+
Parameters:
id - The ID of the state to retrieve +
Returns:
The state requested or null if no state with the specified ID exists
+
+
+
+ +

+enterState

+
+public void enterState(int id)
+
+
Enter a particular game state with no transition +

+

+
+
+
+
Parameters:
id - The ID of the state to enter
+
+
+
+ +

+enterState

+
+public void enterState(int id,
+                       Transition leave,
+                       Transition enter)
+
+
Enter a particular game state with the transitions provided +

+

+
+
+
+
Parameters:
id - The ID of the state to enter
leave - The transition to use when leaving the current state
enter - The transition to use when entering the new state
+
+
+
+ +

+init

+
+public final void init(GameContainer container)
+                throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+initStatesList

+
+public abstract void initStatesList(GameContainer container)
+                             throws SlickException
+
+
Initialise the list of states making up this game +

+

+
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Indicates a failure to initialise the state based game resources
+
+
+
+ +

+render

+
+public final void render(GameContainer container,
+                         Graphics g)
+                  throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRenderState

+
+protected void preRenderState(GameContainer container,
+                              Graphics g)
+                       throws SlickException
+
+
User hook for rendering at the before the current state + and/or transition have been rendered +

+

+
+
+
+
Parameters:
container - The container in which the game is hosted
g - The graphics context on which to draw +
Throws: +
SlickException - Indicates a failure within render
+
+
+
+ +

+postRenderState

+
+protected void postRenderState(GameContainer container,
+                               Graphics g)
+                        throws SlickException
+
+
User hook for rendering at the game level after the current state + and/or transition have been rendered +

+

+
+
+
+
Parameters:
container - The container in which the game is hosted
g - The graphics context on which to draw +
Throws: +
SlickException - Indicates a failure within render
+
+
+
+ +

+update

+
+public final void update(GameContainer container,
+                         int delta)
+                  throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+preUpdateState

+
+protected void preUpdateState(GameContainer container,
+                              int delta)
+                       throws SlickException
+
+
User hook for updating at the game before the current state + and/or transition have been updated +

+

+
+
+
+
Parameters:
container - The container in which the game is hosted
delta - The amount of time in milliseconds since last update +
Throws: +
SlickException - Indicates a failure within render
+
+
+
+ +

+postUpdateState

+
+protected void postUpdateState(GameContainer container,
+                               int delta)
+                        throws SlickException
+
+
User hook for rendering at the game level after the current state + and/or transition have been updated +

+

+
+
+
+
Parameters:
container - The container in which the game is hosted
delta - The amount of time in milliseconds since last update +
Throws: +
SlickException - Indicates a failure within render
+
+
+
+ +

+closeRequested

+
+public boolean closeRequested()
+
+
Description copied from interface: Game
+
Notification that a game close has been requested +

+

+
Specified by:
closeRequested in interface Game
+
+
+ +
Returns:
True if the game should close
See Also:
Game.closeRequested()
+
+
+
+ +

+getTitle

+
+public java.lang.String getTitle()
+
+
Description copied from interface: Game
+
Get the title of this game +

+

+
Specified by:
getTitle in interface Game
+
+
+ +
Returns:
The title of the game
See Also:
Game.getTitle()
+
+
+
+ +

+getContainer

+
+public GameContainer getContainer()
+
+
Get the container holding this game +

+

+
+
+
+ +
Returns:
The game container holding this game
+
+
+
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
ControllerListener.controllerButtonPressed(int, int)
+
+
+
+ +

+controllerButtonReleased

+
+public void controllerButtonReleased(int controller,
+                                     int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been released on + the controller. +

+

+
Specified by:
controllerButtonReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
See Also:
ControllerListener.controllerButtonReleased(int, int)
+
+
+
+ +

+controllerDownPressed

+
+public void controllerDownPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been pressed on + the controller. +

+

+
Specified by:
controllerDownPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerDownPressed(int)
+
+
+
+ +

+controllerDownReleased

+
+public void controllerDownReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been released on + the controller. +

+

+
Specified by:
controllerDownReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerDownReleased(int)
+
+
+
+ +

+controllerLeftPressed

+
+public void controllerLeftPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been pressed on + the controller. +

+

+
Specified by:
controllerLeftPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerLeftPressed(int)
+
+
+
+ +

+controllerLeftReleased

+
+public void controllerLeftReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been released on + the controller. +

+

+
Specified by:
controllerLeftReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerLeftReleased(int)
+
+
+
+ +

+controllerRightPressed

+
+public void controllerRightPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been pressed on + the controller. +

+

+
Specified by:
controllerRightPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerRightPressed(int)
+
+
+
+ +

+controllerRightReleased

+
+public void controllerRightReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been released on + the controller. +

+

+
Specified by:
controllerRightReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerRightReleased(int)
+
+
+
+ +

+controllerUpPressed

+
+public void controllerUpPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been pressed on + the controller. +

+

+
Specified by:
controllerUpPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerUpPressed(int)
+
+
+
+ +

+controllerUpReleased

+
+public void controllerUpReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been released on + the controller. +

+

+
Specified by:
controllerUpReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerUpReleased(int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
KeyListener.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
KeyListener.keyReleased(int, char)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseMoved(int, int, int, int)
+
+
+
+ +

+mouseDragged

+
+public void mouseDragged(int oldx,
+                         int oldy,
+                         int newx,
+                         int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was dragged +

+

+
Specified by:
mouseDragged in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseDragged(int, int, int, int)
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
MouseListener.mouseClicked(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
MouseListener.mouseReleased(int, int, int)
+
+
+
+ +

+isAcceptingInput

+
+public boolean isAcceptingInput()
+
+
Description copied from interface: ControlledInputReciever
+
Check if this input listener is accepting input +

+

+
Specified by:
isAcceptingInput in interface ControlledInputReciever
+
+
+ +
Returns:
True if the input listener should recieve events
See Also:
ControlledInputReciever.isAcceptingInput()
+
+
+
+ +

+inputEnded

+
+public void inputEnded()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that all input events have been sent for this frame +

+

+
Specified by:
inputEnded in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputEnded()
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int newValue)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
+
+
+
Parameters:
newValue - The amount of the wheel has moved
See Also:
MouseListener.mouseWheelMoved(int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/class-use/BasicGameState.html b/lib/javadoc/org/newdawn/slick/state/class-use/BasicGameState.html new file mode 100644 index 000000000..5724e6437 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/class-use/BasicGameState.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class org.newdawn.slick.state.BasicGameState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.BasicGameState

+
+ + + + + + + + + +
+Packages that use BasicGameState
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + +
+Uses of BasicGameState in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of BasicGameState in org.newdawn.slick.tests.states
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/class-use/GameState.html b/lib/javadoc/org/newdawn/slick/state/class-use/GameState.html new file mode 100644 index 000000000..59e90f11b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/class-use/GameState.html @@ -0,0 +1,392 @@ + + + + + + +Uses of Interface org.newdawn.slick.state.GameState (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.state.GameState

+
+ + + + + + + + + + + + + + + + + +
+Packages that use GameState
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + +
+Uses of GameState in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.state that implement GameState
+ classBasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.state that return GameState
+ GameStateStateBasedGame.getCurrentState() + +
+          Get the state the game is currently in
+ GameStateStateBasedGame.getState(int id) + +
+          Get a state based on it's identifier
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type GameState
+ voidStateBasedGame.addState(GameState state) + +
+          Add a state to the game.
+  +

+ + + + + +
+Uses of GameState in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state.transition with parameters of type GameState
+ voidVerticalSplitTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidTransition.init(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ voidSelectTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidRotateTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidHorizontalSplitTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidFadeOutTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidFadeInTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidEmptyTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidCombinedTransition.init(GameState firstState, + GameState secondState) + +
+           
+ voidBlobbyTransition.init(GameState firstState, + GameState secondState) + +
+           
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.state.transition with parameters of type GameState
CrossStateTransition(GameState secondState) + +
+          Create a cross state transitions
+  +

+ + + + + +
+Uses of GameState in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.tests.states that implement GameState
+ classTestState1 + +
+          A simple test state to display a message describing the test
+ classTestState2 + +
+          A simple test state to display an image and rotate it
+ classTestState3 + +
+          A simple test state to display an image and rotate it
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/class-use/StateBasedGame.html b/lib/javadoc/org/newdawn/slick/state/class-use/StateBasedGame.html new file mode 100644 index 000000000..bf306e443 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/class-use/StateBasedGame.html @@ -0,0 +1,767 @@ + + + + + + +Uses of Class org.newdawn.slick.state.StateBasedGame (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.StateBasedGame

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use StateBasedGame
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + +
+Uses of StateBasedGame in org.newdawn.slick.state
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type StateBasedGame
+ voidGameState.enter(GameContainer container, + StateBasedGame game) + +
+          Notification that we've entered this game state
+ voidBasicGameState.enter(GameContainer container, + StateBasedGame game) + +
+           
+ voidGameState.init(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+ voidGameState.leave(GameContainer container, + StateBasedGame game) + +
+          Notification that we're leaving this game state
+ voidBasicGameState.leave(GameContainer container, + StateBasedGame game) + +
+           
+ voidGameState.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidGameState.update(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+  +

+ + + + + +
+Uses of StateBasedGame in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.state.transition with parameters of type StateBasedGame
+ voidVerticalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidSelectTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.postRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.postRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is has just rendered the second state is the cross + transition.
+ voidVerticalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidSelectTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidRotateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidHorizontalSplitTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeOutTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidFadeInTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidEmptyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCombinedTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidBlobbyTransition.preRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+           
+ voidCrossStateTransition.preRenderFirstState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the first state is the cross + transition.
+ voidCrossStateTransition.preRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the second state is the cross + transition.
+ voidVerticalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ voidSelectTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidRotateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidHorizontalSplitTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidFadeOutTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidFadeInTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidEmptyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCrossStateTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidCombinedTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+ voidBlobbyTransition.update(StateBasedGame game, + GameContainer container, + int delta) + +
+           
+  +

+ + + + + +
+Uses of StateBasedGame in org.newdawn.slick.tests
+  +

+ + + + + + + + + + + + + +
Subclasses of StateBasedGame in org.newdawn.slick.tests
+ classStateBasedTest + +
+          A test for the multi-state based functionality
+ classTransitionTest + +
+          A test to view the different transitions that are currently implemented
+  +

+ + + + + +
+Uses of StateBasedGame in org.newdawn.slick.tests.states
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tests.states with parameters of type StateBasedGame
+ voidTestState3.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState2.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState1.init(GameContainer container, + StateBasedGame game) + +
+           
+ voidTestState3.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState2.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState1.render(GameContainer container, + StateBasedGame game, + Graphics g) + +
+           
+ voidTestState3.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+ voidTestState2.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+ voidTestState1.update(GameContainer container, + StateBasedGame game, + int delta) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/package-frame.html b/lib/javadoc/org/newdawn/slick/state/package-frame.html new file mode 100644 index 000000000..68fa0b416 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/package-frame.html @@ -0,0 +1,45 @@ + + + + + + +org.newdawn.slick.state (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.state + + + + +
+Interfaces  + +
+GameState
+ + + + + + +
+Classes  + +
+BasicGameState +
+StateBasedGame
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/state/package-summary.html b/lib/javadoc/org/newdawn/slick/state/package-summary.html new file mode 100644 index 000000000..28f38b3af --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/package-summary.html @@ -0,0 +1,195 @@ + + + + + + +org.newdawn.slick.state (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.state +

+State based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
GameStateA single state building up part of the game.
+  + +

+ + + + + + + + + + + + + +
+Class Summary
BasicGameStateA simple state used an adapter so we don't have to implement all the event methods + every time.
StateBasedGameA state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  + +

+

+Package org.newdawn.slick.state Description +

+ +

+State based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. However, states can be used to simply +segregate section on the play. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/package-tree.html b/lib/javadoc/org/newdawn/slick/state/package-tree.html new file mode 100644 index 000000000..22a0af6e2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/package-tree.html @@ -0,0 +1,177 @@ + + + + + + +org.newdawn.slick.state Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.state +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/package-use.html b/lib/javadoc/org/newdawn/slick/state/package-use.html new file mode 100644 index 000000000..080951774 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/package-use.html @@ -0,0 +1,257 @@ + + + + + + +Uses of Package org.newdawn.slick.state (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.state

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.state
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.tests.statesStates for the StateBasedGameTest 
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.state used by org.newdawn.slick.state
GameState + +
+          A single state building up part of the game.
StateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.state used by org.newdawn.slick.state.transition
GameState + +
+          A single state building up part of the game.
StateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.state used by org.newdawn.slick.tests
StateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.state used by org.newdawn.slick.tests.states
BasicGameState + +
+          A simple state used an adapter so we don't have to implement all the event methods + every time.
GameState + +
+          A single state building up part of the game.
StateBasedGame + +
+          A state based game isolated different stages of the game (menu, ingame, hiscores, etc) into + different states so they can be easily managed and maintained.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/BlobbyTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/BlobbyTransition.html new file mode 100644 index 000000000..be3e50032 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/BlobbyTransition.html @@ -0,0 +1,454 @@ + + + + + + +BlobbyTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class BlobbyTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.BlobbyTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class BlobbyTransition
extends java.lang.Object
implements Transition
+ + +

+A transition that causes the previous state to rotate and scale down into + the new state. + + This is an enter transition +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + +
+Constructor Summary
BlobbyTransition() + +
+          Create a new transition
BlobbyTransition(Color background) + +
+          Create a new transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+BlobbyTransition

+
+public BlobbyTransition()
+
+
Create a new transition +

+

+
+ +

+BlobbyTransition

+
+public BlobbyTransition(Color background)
+
+
Create a new transition +

+

+
Parameters:
background - The background colour to draw under the previous state
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
See Also:
Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/CombinedTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/CombinedTransition.html new file mode 100644 index 000000000..cbc1e51b5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/CombinedTransition.html @@ -0,0 +1,422 @@ + + + + + + +CombinedTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class CombinedTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.CombinedTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class CombinedTransition
extends java.lang.Object
implements Transition
+ + +

+A transition thats built of a set of other transitions which are chained + together to build the overall effect. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CombinedTransition() + +
+          Create an empty transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddTransition(Transition t) + +
+          Add a transition to the list that will be combined to form + the final transition
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CombinedTransition

+
+public CombinedTransition()
+
+
Create an empty transition +

+

+ + + + + + + + +
+Method Detail
+ +

+addTransition

+
+public void addTransition(Transition t)
+
+
Add a transition to the list that will be combined to form + the final transition +

+

+
+
+
+
Parameters:
t - The transition to add
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/CrossStateTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/CrossStateTransition.html new file mode 100644 index 000000000..3db58787c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/CrossStateTransition.html @@ -0,0 +1,493 @@ + + + + + + +CrossStateTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class CrossStateTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.CrossStateTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public abstract class CrossStateTransition
extends java.lang.Object
implements Transition
+ + +

+A transition that will combine two states into one effect. The first state is + the one we're transitioning from. The second state is specified in the constructor. + + By default one state will simply be rendered over the other. Subclass this transition + overriding the preRenderFirstState and preRenderSecondState to setup the rendering + for each state (alpha or what ever). Note that it's also possible to use the + postRenderSecondState method to clean up your OpenGL setup. + + So these methods are called like so: + + preRenderFirstState() + = the first state is rendered + preRenderSecondState() + = the second state is rendered + postRenderSecondState() +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CrossStateTransition(GameState secondState) + +
+          Create a cross state transitions
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpostRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is has just rendered the second state is the cross + transition.
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidpreRenderFirstState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the first state is the cross + transition.
+ voidpreRenderSecondState(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Notification that the transition is about to render the second state is the cross + transition.
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface org.newdawn.slick.state.transition.Transition
init
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CrossStateTransition

+
+public CrossStateTransition(GameState secondState)
+
+
Create a cross state transitions +

+

+
Parameters:
secondState - The secondary state with combining with the + source state.
+
+ + + + + + + + +
+Method Detail
+ +

+isComplete

+
+public abstract boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+preRenderFirstState

+
+public void preRenderFirstState(StateBasedGame game,
+                                GameContainer container,
+                                Graphics g)
+                         throws SlickException
+
+
Notification that the transition is about to render the first state is the cross + transition. +

+

+
+
+
+
Parameters:
game - The game being rendered
container - The container holding the game
g - The graphic context used to render +
Throws: +
SlickException - Indicates a failure to setup the rendering state - throw for anything that goes wrong
+
+
+
+ +

+preRenderSecondState

+
+public void preRenderSecondState(StateBasedGame game,
+                                 GameContainer container,
+                                 Graphics g)
+                          throws SlickException
+
+
Notification that the transition is about to render the second state is the cross + transition. +

+

+
+
+
+
Parameters:
game - The game being rendered
container - The container holding the game
g - The graphic context used to render +
Throws: +
SlickException - Indicates a failure to setup the rendering state - throw for anything that goes wrong
+
+
+
+ +

+postRenderSecondState

+
+public void postRenderSecondState(StateBasedGame game,
+                                  GameContainer container,
+                                  Graphics g)
+                           throws SlickException
+
+
Notification that the transition is has just rendered the second state is the cross + transition. +

+

+
+
+
+
Parameters:
game - The game being rendered
container - The container holding the game
g - The graphic context used to render +
Throws: +
SlickException - Indicates a failure to setup the rendering state - throw for anything that goes wrong
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/EmptyTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/EmptyTransition.html new file mode 100644 index 000000000..6d0e4680a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/EmptyTransition.html @@ -0,0 +1,394 @@ + + + + + + +EmptyTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class EmptyTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.EmptyTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class EmptyTransition
extends java.lang.Object
implements Transition
+ + +

+A transition that has no effect and instantly finishes. Used as a utility for the people + not using transitions +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EmptyTransition() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+EmptyTransition

+
+public EmptyTransition()
+
+
+ + + + + + + + +
+Method Detail
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/FadeInTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/FadeInTransition.html new file mode 100644 index 000000000..4f2eef64f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/FadeInTransition.html @@ -0,0 +1,424 @@ + + + + + + +FadeInTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class FadeInTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.FadeInTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class FadeInTransition
extends java.lang.Object
implements Transition
+ + +

+A transition to fade in from a given colour +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
FadeInTransition() + +
+          Create a new fade in transition
FadeInTransition(Color color) + +
+          Create a new fade in transition
FadeInTransition(Color color, + int fadeTime) + +
+          Create a new fade in transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FadeInTransition

+
+public FadeInTransition()
+
+
Create a new fade in transition +

+

+
+ +

+FadeInTransition

+
+public FadeInTransition(Color color)
+
+
Create a new fade in transition +

+

+
Parameters:
color - The color we're going to fade in from
+
+
+ +

+FadeInTransition

+
+public FadeInTransition(Color color,
+                        int fadeTime)
+
+
Create a new fade in transition +

+

+
Parameters:
color - The color we're going to fade in from
fadeTime - The time it takes for the fade to occur
+
+ + + + + + + + +
+Method Detail
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/FadeOutTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/FadeOutTransition.html new file mode 100644 index 000000000..e4dc8076d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/FadeOutTransition.html @@ -0,0 +1,424 @@ + + + + + + +FadeOutTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class FadeOutTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.FadeOutTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class FadeOutTransition
extends java.lang.Object
implements Transition
+ + +

+A transition to fade out to a given colour +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
FadeOutTransition() + +
+          Create a new fade out transition
FadeOutTransition(Color color) + +
+          Create a new fade out transition
FadeOutTransition(Color color, + int fadeTime) + +
+          Create a new fade out transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FadeOutTransition

+
+public FadeOutTransition()
+
+
Create a new fade out transition +

+

+
+ +

+FadeOutTransition

+
+public FadeOutTransition(Color color)
+
+
Create a new fade out transition +

+

+
Parameters:
color - The color we're going to fade out to
+
+
+ +

+FadeOutTransition

+
+public FadeOutTransition(Color color,
+                         int fadeTime)
+
+
Create a new fade out transition +

+

+
Parameters:
color - The color we're going to fade out to
fadeTime - The time it takes the fade to occur
+
+ + + + + + + + +
+Method Detail
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/HorizontalSplitTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/HorizontalSplitTransition.html new file mode 100644 index 000000000..483ccebf0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/HorizontalSplitTransition.html @@ -0,0 +1,454 @@ + + + + + + +HorizontalSplitTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class HorizontalSplitTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.HorizontalSplitTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class HorizontalSplitTransition
extends java.lang.Object
implements Transition
+ + +

+Horitzonal split transition that causes the previous state to split horizontally + revealing the new state underneath. + + This state is an enter transition. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + +
+Constructor Summary
HorizontalSplitTransition() + +
+          Create a new transition
HorizontalSplitTransition(Color background) + +
+          Create a new transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HorizontalSplitTransition

+
+public HorizontalSplitTransition()
+
+
Create a new transition +

+

+
+ +

+HorizontalSplitTransition

+
+public HorizontalSplitTransition(Color background)
+
+
Create a new transition +

+

+
Parameters:
background - The background colour to draw under the previous state
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
See Also:
Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/RotateTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/RotateTransition.html new file mode 100644 index 000000000..422700617 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/RotateTransition.html @@ -0,0 +1,416 @@ + + + + + + +RotateTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class RotateTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.RotateTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class RotateTransition
extends java.lang.Object
implements Transition
+ + +

+A transition that causes the previous state to rotate and scale down into + the new state. + + This is an enter transition +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
RotateTransition() + +
+          Create a new transition
RotateTransition(Color background) + +
+          Create a new transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RotateTransition

+
+public RotateTransition()
+
+
Create a new transition +

+

+
+ +

+RotateTransition

+
+public RotateTransition(Color background)
+
+
Create a new transition +

+

+
Parameters:
background - The background colour to draw under the previous state
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
See Also:
Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/SelectTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/SelectTransition.html new file mode 100644 index 000000000..12c7d4a26 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/SelectTransition.html @@ -0,0 +1,455 @@ + + + + + + +SelectTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class SelectTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.SelectTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class SelectTransition
extends java.lang.Object
implements Transition
+ + +

+A transition that moves to the next as though it was selected by some background menu. Note + this transition is provided as an example more than intended for use. The values contained + are designed for 800x600 resolution. + + This is an enter transition +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + +
+Constructor Summary
SelectTransition() + +
+          Create a new transition
SelectTransition(Color background) + +
+          Create a new transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+SelectTransition

+
+public SelectTransition()
+
+
Create a new transition +

+

+
+ +

+SelectTransition

+
+public SelectTransition(Color background)
+
+
Create a new transition +

+

+
Parameters:
background - The background colour to draw under the previous state
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
See Also:
Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/Transition.html b/lib/javadoc/org/newdawn/slick/state/transition/Transition.html new file mode 100644 index 000000000..9d11ddc1e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/Transition.html @@ -0,0 +1,327 @@ + + + + + + +Transition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Interface Transition

+
+
All Known Implementing Classes:
BlobbyTransition, CombinedTransition, CrossStateTransition, EmptyTransition, FadeInTransition, FadeOutTransition, HorizontalSplitTransition, RotateTransition, SelectTransition, VerticalSplitTransition
+
+
+
+
public interface Transition
+ + +

+A transition between two game states +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+  +

+ + + + + + + + +
+Method Detail
+ +

+update

+
+void update(StateBasedGame game,
+            GameContainer container,
+            int delta)
+            throws SlickException
+
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
+
+
+
+ +

+preRender

+
+void preRender(StateBasedGame game,
+               GameContainer container,
+               Graphics g)
+               throws SlickException
+
+
Render the transition before the existing state rendering +

+

+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
+
+
+
+ +

+postRender

+
+void postRender(StateBasedGame game,
+                GameContainer container,
+                Graphics g)
+                throws SlickException
+
+
Render the transition over the existing state rendering +

+

+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
+
+
+
+ +

+isComplete

+
+boolean isComplete()
+
+
Check if this transtion has been completed +

+

+ +
Returns:
True if the transition has been completed
+
+
+
+ +

+init

+
+void init(GameState firstState,
+          GameState secondState)
+
+
Initialise the transition +

+

+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/VerticalSplitTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/VerticalSplitTransition.html new file mode 100644 index 000000000..cbce45827 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/VerticalSplitTransition.html @@ -0,0 +1,454 @@ + + + + + + +VerticalSplitTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.state.transition +
+Class VerticalSplitTransition

+
+java.lang.Object
+  extended by org.newdawn.slick.state.transition.VerticalSplitTransition
+
+
+
All Implemented Interfaces:
Transition
+
+
+
+
public class VerticalSplitTransition
extends java.lang.Object
implements Transition
+ + +

+Vertical split transition that causes the previous state to split vertically + revealing the new state underneath. + + This state is an enter transition. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + + + + +
+Constructor Summary
VerticalSplitTransition() + +
+          Create a new transition
VerticalSplitTransition(Color background) + +
+          Create a new transition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameState firstState, + GameState secondState) + +
+          Initialise the transition
+ booleanisComplete() + +
+          Check if this transtion has been completed
+ voidpostRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition over the existing state rendering
+ voidpreRender(StateBasedGame game, + GameContainer container, + Graphics g) + +
+          Render the transition before the existing state rendering
+ voidupdate(StateBasedGame game, + GameContainer container, + int delta) + +
+          Update the transition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+VerticalSplitTransition

+
+public VerticalSplitTransition()
+
+
Create a new transition +

+

+
+ +

+VerticalSplitTransition

+
+public VerticalSplitTransition(Color background)
+
+
Create a new transition +

+

+
Parameters:
background - The background colour to draw under the previous state
+
+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameState firstState,
+                 GameState secondState)
+
+
Description copied from interface: Transition
+
Initialise the transition +

+

+
Specified by:
init in interface Transition
+
+
+
Parameters:
firstState - The first state we're rendering (this will be rendered by the framework)
secondState - The second stat we're transitioning to or from (this one won't be rendered)
See Also:
Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)
+
+
+
+ +

+isComplete

+
+public boolean isComplete()
+
+
Description copied from interface: Transition
+
Check if this transtion has been completed +

+

+
Specified by:
isComplete in interface Transition
+
+
+ +
Returns:
True if the transition has been completed
See Also:
Transition.isComplete()
+
+
+
+ +

+postRender

+
+public void postRender(StateBasedGame game,
+                       GameContainer container,
+                       Graphics g)
+                throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition over the existing state rendering +

+

+
Specified by:
postRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+preRender

+
+public void preRender(StateBasedGame game,
+                      GameContainer container,
+                      Graphics g)
+               throws SlickException
+
+
Description copied from interface: Transition
+
Render the transition before the existing state rendering +

+

+
Specified by:
preRender in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
g - The graphics context to use when rendering the transiton +
Throws: +
SlickException - Indicates a failure occured during the render
See Also:
Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(StateBasedGame game,
+                   GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Transition
+
Update the transition. Cause what ever happens in the transition to happen +

+

+
Specified by:
update in interface Transition
+
+
+
Parameters:
game - The game this transition is being rendered as part of
container - The container holding the game
delta - The amount of time passed since last update +
Throws: +
SlickException - Indicates a failure occured during the update
See Also:
Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/BlobbyTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/BlobbyTransition.html new file mode 100644 index 000000000..726b48fdd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/BlobbyTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.BlobbyTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.BlobbyTransition

+
+No usage of org.newdawn.slick.state.transition.BlobbyTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/CombinedTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/CombinedTransition.html new file mode 100644 index 000000000..d52017e2d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/CombinedTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.CombinedTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.CombinedTransition

+
+No usage of org.newdawn.slick.state.transition.CombinedTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/CrossStateTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/CrossStateTransition.html new file mode 100644 index 000000000..538c80907 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/CrossStateTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.CrossStateTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.CrossStateTransition

+
+No usage of org.newdawn.slick.state.transition.CrossStateTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/EmptyTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/EmptyTransition.html new file mode 100644 index 000000000..c2e544990 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/EmptyTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.EmptyTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.EmptyTransition

+
+No usage of org.newdawn.slick.state.transition.EmptyTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeInTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeInTransition.html new file mode 100644 index 000000000..08528eda1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeInTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.FadeInTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.FadeInTransition

+
+No usage of org.newdawn.slick.state.transition.FadeInTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeOutTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeOutTransition.html new file mode 100644 index 000000000..d23c057ee --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/FadeOutTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.FadeOutTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.FadeOutTransition

+
+No usage of org.newdawn.slick.state.transition.FadeOutTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/HorizontalSplitTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/HorizontalSplitTransition.html new file mode 100644 index 000000000..8c2a2e070 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/HorizontalSplitTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.HorizontalSplitTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.HorizontalSplitTransition

+
+No usage of org.newdawn.slick.state.transition.HorizontalSplitTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/RotateTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/RotateTransition.html new file mode 100644 index 000000000..33f349f0a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/RotateTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.RotateTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.RotateTransition

+
+No usage of org.newdawn.slick.state.transition.RotateTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/SelectTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/SelectTransition.html new file mode 100644 index 000000000..49f5a5a79 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/SelectTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.SelectTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.SelectTransition

+
+No usage of org.newdawn.slick.state.transition.SelectTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/Transition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/Transition.html new file mode 100644 index 000000000..ee9d382ab --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/Transition.html @@ -0,0 +1,335 @@ + + + + + + +Uses of Interface org.newdawn.slick.state.transition.Transition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.state.transition.Transition

+
+ + + + + + + + + + + + + + + + + +
+Packages that use Transition
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + +
+Uses of Transition in org.newdawn.slick.state
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.state with parameters of type Transition
+ voidStateBasedGame.enterState(int id, + Transition leave, + Transition enter) + +
+          Enter a particular game state with the transitions provided
+  +

+ + + + + +
+Uses of Transition in org.newdawn.slick.state.transition
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.state.transition that implement Transition
+ classBlobbyTransition + +
+          A transition that causes the previous state to rotate and scale down into + the new state.
+ classCombinedTransition + +
+          A transition thats built of a set of other transitions which are chained + together to build the overall effect.
+ classCrossStateTransition + +
+          A transition that will combine two states into one effect.
+ classEmptyTransition + +
+          A transition that has no effect and instantly finishes.
+ classFadeInTransition + +
+          A transition to fade in from a given colour
+ classFadeOutTransition + +
+          A transition to fade out to a given colour
+ classHorizontalSplitTransition + +
+          Horitzonal split transition that causes the previous state to split horizontally + revealing the new state underneath.
+ classRotateTransition + +
+          A transition that causes the previous state to rotate and scale down into + the new state.
+ classSelectTransition + +
+          A transition that moves to the next as though it was selected by some background menu.
+ classVerticalSplitTransition + +
+          Vertical split transition that causes the previous state to split vertically + revealing the new state underneath.
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.state.transition with parameters of type Transition
+ voidCombinedTransition.addTransition(Transition t) + +
+          Add a transition to the list that will be combined to form + the final transition
+  +

+ + + + + +
+Uses of Transition in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tests that return Transition
+ Transition[]TransitionTest.getNextTransitionPair() + +
+          Get the next transition pair that we'lluse
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/class-use/VerticalSplitTransition.html b/lib/javadoc/org/newdawn/slick/state/transition/class-use/VerticalSplitTransition.html new file mode 100644 index 000000000..4dce0bec8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/class-use/VerticalSplitTransition.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.state.transition.VerticalSplitTransition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.state.transition.VerticalSplitTransition

+
+No usage of org.newdawn.slick.state.transition.VerticalSplitTransition +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/package-frame.html b/lib/javadoc/org/newdawn/slick/state/transition/package-frame.html new file mode 100644 index 000000000..1c7168d8d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/package-frame.html @@ -0,0 +1,61 @@ + + + + + + +org.newdawn.slick.state.transition (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.state.transition + + + + +
+Interfaces  + +
+Transition
+ + + + + + +
+Classes  + +
+BlobbyTransition +
+CombinedTransition +
+CrossStateTransition +
+EmptyTransition +
+FadeInTransition +
+FadeOutTransition +
+HorizontalSplitTransition +
+RotateTransition +
+SelectTransition +
+VerticalSplitTransition
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/package-summary.html b/lib/javadoc/org/newdawn/slick/state/transition/package-summary.html new file mode 100644 index 000000000..14b4d12cf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/package-summary.html @@ -0,0 +1,212 @@ + + + + + + +org.newdawn.slick.state.transition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.state.transition +

+ + + + + + + + + +
+Interface Summary
TransitionA transition between two game states
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BlobbyTransitionA transition that causes the previous state to rotate and scale down into + the new state.
CombinedTransitionA transition thats built of a set of other transitions which are chained + together to build the overall effect.
CrossStateTransitionA transition that will combine two states into one effect.
EmptyTransitionA transition that has no effect and instantly finishes.
FadeInTransitionA transition to fade in from a given colour
FadeOutTransitionA transition to fade out to a given colour
HorizontalSplitTransitionHoritzonal split transition that causes the previous state to split horizontally + revealing the new state underneath.
RotateTransitionA transition that causes the previous state to rotate and scale down into + the new state.
SelectTransitionA transition that moves to the next as though it was selected by some background menu.
VerticalSplitTransitionVertical split transition that causes the previous state to split vertically + revealing the new state underneath.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/package-tree.html b/lib/javadoc/org/newdawn/slick/state/transition/package-tree.html new file mode 100644 index 000000000..84bed7418 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/package-tree.html @@ -0,0 +1,168 @@ + + + + + + +org.newdawn.slick.state.transition Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.state.transition +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/state/transition/package-use.html b/lib/javadoc/org/newdawn/slick/state/transition/package-use.html new file mode 100644 index 000000000..7883a58b8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/state/transition/package-use.html @@ -0,0 +1,209 @@ + + + + + + +Uses of Package org.newdawn.slick.state.transition (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.state.transition

+
+ + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.state.transition
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits. 
org.newdawn.slick.state.transition  
org.newdawn.slick.testsTests for the facilities provided by the library. 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.state.transition used by org.newdawn.slick.state
Transition + +
+          A transition between two game states
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.state.transition used by org.newdawn.slick.state.transition
Transition + +
+          A transition between two game states
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.state.transition used by org.newdawn.slick.tests
Transition + +
+          A transition between two game states
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/Diagram.html b/lib/javadoc/org/newdawn/slick/svg/Diagram.html new file mode 100644 index 000000000..ad83d8bf8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/Diagram.html @@ -0,0 +1,514 @@ + + + + + + +Diagram (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class Diagram

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.Diagram
+
+
+
Direct Known Subclasses:
SVGMorph
+
+
+
+
public class Diagram
extends java.lang.Object
+ + +

+A diagram read from SVG containing multiple figures +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Diagram(float width, + float height) + +
+          Create a new empty diagram
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFigure(Figure figure) + +
+          Add a figure to the diagram
+ voidaddGradient(java.lang.String name, + Gradient gradient) + +
+          Add gradient to the diagram
+ voidaddPatternDef(java.lang.String name, + java.lang.String href) + +
+          Add a pattern definition basd on a image
+ FiguregetFigure(int index) + +
+          Get the figure at a given index
+ FiguregetFigureByID(java.lang.String id) + +
+          Get a figure by a given ID
+ intgetFigureCount() + +
+          Get the number of figures in the diagram
+ GradientgetGradient(java.lang.String name) + +
+          Get the gradient defined in this document
+ floatgetHeight() + +
+          Get the height of the diagram
+ java.lang.StringgetPatternDef(java.lang.String name) + +
+          Get a pattern definition from the diagram
+ java.lang.String[]getPatternDefNames() + +
+          Get the names of the patterns defined
+ floatgetWidth() + +
+          Get the width of the diagram
+ voidremoveFigure(Figure figure) + +
+          Remove a figure from the diagram
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Diagram

+
+public Diagram(float width,
+               float height)
+
+
Create a new empty diagram +

+

+
Parameters:
width - The width of the diagram
height - The height of the diagram
+
+ + + + + + + + +
+Method Detail
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of the diagram +

+

+ +
Returns:
The width of the diagram
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height of the diagram +

+

+ +
Returns:
The height of the diagram
+
+
+
+ +

+addPatternDef

+
+public void addPatternDef(java.lang.String name,
+                          java.lang.String href)
+
+
Add a pattern definition basd on a image +

+

+
Parameters:
name - The name of the pattern
href - The href to the image specified in the doc
+
+
+
+ +

+addGradient

+
+public void addGradient(java.lang.String name,
+                        Gradient gradient)
+
+
Add gradient to the diagram +

+

+
Parameters:
name - The name of the gradient
gradient - The gradient to be added
+
+
+
+ +

+getPatternDef

+
+public java.lang.String getPatternDef(java.lang.String name)
+
+
Get a pattern definition from the diagram +

+

+
Parameters:
name - The name of the pattern +
Returns:
The href to the image that was specified for the given pattern
+
+
+
+ +

+getGradient

+
+public Gradient getGradient(java.lang.String name)
+
+
Get the gradient defined in this document +

+

+
Parameters:
name - The name of the gradient +
Returns:
The gradient definition
+
+
+
+ +

+getPatternDefNames

+
+public java.lang.String[] getPatternDefNames()
+
+
Get the names of the patterns defined +

+

+ +
Returns:
The names of the pattern
+
+
+
+ +

+getFigureByID

+
+public Figure getFigureByID(java.lang.String id)
+
+
Get a figure by a given ID +

+

+
Parameters:
id - The ID of the figure +
Returns:
The figure with the given ID
+
+
+
+ +

+addFigure

+
+public void addFigure(Figure figure)
+
+
Add a figure to the diagram +

+

+
Parameters:
figure - The figure to add
+
+
+
+ +

+getFigureCount

+
+public int getFigureCount()
+
+
Get the number of figures in the diagram +

+

+ +
Returns:
The number of figures in the diagram
+
+
+
+ +

+getFigure

+
+public Figure getFigure(int index)
+
+
Get the figure at a given index +

+

+
Parameters:
index - The index of the figure to retrieve +
Returns:
The figure at the given index
+
+
+
+ +

+removeFigure

+
+public void removeFigure(Figure figure)
+
+
Remove a figure from the diagram +

+

+
Parameters:
figure - The figure to be removed
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/Figure.html b/lib/javadoc/org/newdawn/slick/svg/Figure.html new file mode 100644 index 000000000..daa7e57c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/Figure.html @@ -0,0 +1,459 @@ + + + + + + +Figure (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class Figure

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.Figure
+
+
+
+
public class Figure
extends java.lang.Object
+ + +

+A figure that is part of diagram loaded from SVG +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intELLIPSE + +
+          Ellipse Type
+static intLINE + +
+          Line Type
+static intPATH + +
+          Path Type
+static intPOLYGON + +
+          Polygon Type
+static intRECTANGLE + +
+          Rectangle Type
+  + + + + + + + + + + +
+Constructor Summary
Figure(int type, + Shape shape, + NonGeometricData data, + Transform transform) + +
+          Create a new figure
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ NonGeometricDatagetData() + +
+          Get the data associated with this figure
+ ShapegetShape() + +
+          Get the shape of this figure
+ TransformgetTransform() + +
+          Get the transform that was applied to the shape given in the SVG + to get it to it's currently state
+ intgetType() + +
+          Get the type of this figure
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ELLIPSE

+
+public static final int ELLIPSE
+
+
Ellipse Type +

+

+
See Also:
Constant Field Values
+
+
+ +

+LINE

+
+public static final int LINE
+
+
Line Type +

+

+
See Also:
Constant Field Values
+
+
+ +

+RECTANGLE

+
+public static final int RECTANGLE
+
+
Rectangle Type +

+

+
See Also:
Constant Field Values
+
+
+ +

+PATH

+
+public static final int PATH
+
+
Path Type +

+

+
See Also:
Constant Field Values
+
+
+ +

+POLYGON

+
+public static final int POLYGON
+
+
Polygon Type +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Figure

+
+public Figure(int type,
+              Shape shape,
+              NonGeometricData data,
+              Transform transform)
+
+
Create a new figure +

+

+
Parameters:
type - The type of the figure
shape - The shape of the figure
data - The other associated data
transform - The transform that was applied to the shape
+
+ + + + + + + + +
+Method Detail
+ +

+getTransform

+
+public Transform getTransform()
+
+
Get the transform that was applied to the shape given in the SVG + to get it to it's currently state +

+

+ +
Returns:
The transform specified in the SVG
+
+
+
+ +

+getType

+
+public int getType()
+
+
Get the type of this figure +

+

+ +
Returns:
The type of this figure
+
+
+
+ +

+getShape

+
+public Shape getShape()
+
+
Get the shape of this figure +

+

+ +
Returns:
The shape of this figure
+
+
+
+ +

+getData

+
+public NonGeometricData getData()
+
+
Get the data associated with this figure +

+

+ +
Returns:
The data associated with this figure
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/Gradient.html b/lib/javadoc/org/newdawn/slick/svg/Gradient.html new file mode 100644 index 000000000..5fda1c088 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/Gradient.html @@ -0,0 +1,657 @@ + + + + + + +Gradient (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class Gradient

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.Gradient
+
+
+
+
public class Gradient
extends java.lang.Object
+ + +

+A gradient definition from an SVG file, includes the stops, name and transform. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Gradient(java.lang.String name, + boolean radial) + +
+          Create a new gradient definition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddStep(float location, + Color c) + +
+          Add a colour step/stop to the gradient
+ voidgenImage() + +
+          Generate the image used for texturing the gradient across shapes
+ ColorgetColorAt(float p) + +
+          Get the intepolated colour at the given location on the gradient
+ ImagegetImage() + +
+          Get the image generated for this gradient
+ floatgetR() + +
+          Get the radius value given for this gradient
+ TransformgetTransform() + +
+          Get the transform to apply during this gradient application
+ floatgetX1() + +
+          Get the first x value given for this gradient (cx in the case of radial)
+ floatgetX2() + +
+          Get the second x value given for this gradient (fx in the case of radial)
+ floatgetY1() + +
+          Get the first y value given for this gradient (cy in the case of radial)
+ floatgetY2() + +
+          Get the second y value given for this gradient (fy in the case of radial)
+ booleanisRadial() + +
+          Check if the gradient is radial
+ voidreference(java.lang.String ref) + +
+          Reference another gradient, i.e.
+ voidresolve(Diagram diagram) + +
+          Resolve the gradient reference
+ voidsetR(float r) + +
+          Set the radius given in the SVG
+ voidsetTransform(Transform trans) + +
+          Set the transform given for this definition
+ voidsetX1(float x1) + +
+          Set the first x value given for the gradient (cx in the case of radial)
+ voidsetX2(float x2) + +
+          Set the second x value given for the gradient (fx in the case of radial)
+ voidsetY1(float y1) + +
+          Set the first y value given for the gradient (cy in the case of radial)
+ voidsetY2(float y2) + +
+          Set the second y value given for the gradient (fy in the case of radial)
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Gradient

+
+public Gradient(java.lang.String name,
+                boolean radial)
+
+
Create a new gradient definition +

+

+
Parameters:
name - The name of the gradient
radial - True if the gradient is radial
+
+ + + + + + + + +
+Method Detail
+ +

+isRadial

+
+public boolean isRadial()
+
+
Check if the gradient is radial +

+

+ +
Returns:
True if the gradient is radial
+
+
+
+ +

+setTransform

+
+public void setTransform(Transform trans)
+
+
Set the transform given for this definition +

+

+
Parameters:
trans - The transform given for this definition
+
+
+
+ +

+getTransform

+
+public Transform getTransform()
+
+
Get the transform to apply during this gradient application +

+

+ +
Returns:
The transform given for this gradient
+
+
+
+ +

+reference

+
+public void reference(java.lang.String ref)
+
+
Reference another gradient, i.e. use it's colour stops +

+

+
Parameters:
ref - The name of the other gradient to reference
+
+
+
+ +

+resolve

+
+public void resolve(Diagram diagram)
+
+
Resolve the gradient reference +

+

+
Parameters:
diagram - The diagram to resolve against
+
+
+
+ +

+genImage

+
+public void genImage()
+
+
Generate the image used for texturing the gradient across shapes +

+

+
+
+
+
+ +

+getImage

+
+public Image getImage()
+
+
Get the image generated for this gradient +

+

+ +
Returns:
The image generated for the gradient
+
+
+
+ +

+setR

+
+public void setR(float r)
+
+
Set the radius given in the SVG +

+

+
Parameters:
r - The radius for radial gradients
+
+
+
+ +

+setX1

+
+public void setX1(float x1)
+
+
Set the first x value given for the gradient (cx in the case of radial) +

+

+
Parameters:
x1 - The first x value given for the gradient
+
+
+
+ +

+setX2

+
+public void setX2(float x2)
+
+
Set the second x value given for the gradient (fx in the case of radial) +

+

+
Parameters:
x2 - The second x value given for the gradient
+
+
+
+ +

+setY1

+
+public void setY1(float y1)
+
+
Set the first y value given for the gradient (cy in the case of radial) +

+

+
Parameters:
y1 - The first y value given for the gradient
+
+
+
+ +

+setY2

+
+public void setY2(float y2)
+
+
Set the second y value given for the gradient (fy in the case of radial) +

+

+
Parameters:
y2 - The second y value given for the gradient
+
+
+
+ +

+getR

+
+public float getR()
+
+
Get the radius value given for this gradient +

+

+ +
Returns:
The radius value given for this gradient
+
+
+
+ +

+getX1

+
+public float getX1()
+
+
Get the first x value given for this gradient (cx in the case of radial) +

+

+ +
Returns:
The first x value given for this gradient
+
+
+
+ +

+getX2

+
+public float getX2()
+
+
Get the second x value given for this gradient (fx in the case of radial) +

+

+ +
Returns:
The second x value given for this gradient
+
+
+
+ +

+getY1

+
+public float getY1()
+
+
Get the first y value given for this gradient (cy in the case of radial) +

+

+ +
Returns:
The first y value given for this gradient
+
+
+
+ +

+getY2

+
+public float getY2()
+
+
Get the second y value given for this gradient (fy in the case of radial) +

+

+ +
Returns:
The second y value given for this gradient
+
+
+
+ +

+addStep

+
+public void addStep(float location,
+                    Color c)
+
+
Add a colour step/stop to the gradient +

+

+
Parameters:
location - The location on the gradient the colour affects
c - The color to apply
+
+
+
+ +

+getColorAt

+
+public Color getColorAt(float p)
+
+
Get the intepolated colour at the given location on the gradient +

+

+
Parameters:
p - The point of the gradient (0 >= n >= 1) +
Returns:
The interpolated colour at the given location
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/InkscapeLoader.html b/lib/javadoc/org/newdawn/slick/svg/InkscapeLoader.html new file mode 100644 index 000000000..f5dfa1214 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/InkscapeLoader.html @@ -0,0 +1,396 @@ + + + + + + +InkscapeLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class InkscapeLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.InkscapeLoader
+
+
+
All Implemented Interfaces:
Loader
+
+
+
+
public class InkscapeLoader
extends java.lang.Object
implements Loader
+ + +

+A loader specifically for the SVG that is produced from Inkscape +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intRADIAL_TRIANGULATION_LEVEL + +
+          The number of times to over trigulate to get enough tesselation for + smooth shading
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddElementProcessor(ElementProcessor proc) + +
+          Add an ElementProcessor which will be passed + each element read as the Inkscape SVG document is processed.
+static Diagramload(java.io.InputStream in, + boolean offset) + +
+          Load a SVG document into a diagram
+static Diagramload(java.lang.String ref) + +
+          Load a SVG document into a diagram
+static Diagramload(java.lang.String ref, + boolean offset) + +
+          Load a SVG document into a diagram
+ voidloadChildren(org.w3c.dom.Element element, + Transform t) + +
+          Load the children of a given element
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+RADIAL_TRIANGULATION_LEVEL

+
+public static int RADIAL_TRIANGULATION_LEVEL
+
+
The number of times to over trigulate to get enough tesselation for + smooth shading +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+addElementProcessor

+
+public static void addElementProcessor(ElementProcessor proc)
+
+
Add an ElementProcessor which will be passed + each element read as the Inkscape SVG document is processed. +

+

+
+
+
+
Parameters:
proc - The processor to be added
+
+
+
+ +

+load

+
+public static Diagram load(java.lang.String ref,
+                           boolean offset)
+                    throws SlickException
+
+
Load a SVG document into a diagram +

+

+
+
+
+
Parameters:
ref - The reference in the classpath to load the diagram from
offset - Offset the diagram for the height of the document +
Returns:
The diagram loaded +
Throws: +
SlickException - Indicates a failure to process the document
+
+
+
+ +

+load

+
+public static Diagram load(java.lang.String ref)
+                    throws SlickException
+
+
Load a SVG document into a diagram +

+

+
+
+
+
Parameters:
ref - The reference in the classpath to load the diagram from +
Returns:
The diagram loaded +
Throws: +
SlickException - Indicates a failure to process the document
+
+
+
+ +

+load

+
+public static Diagram load(java.io.InputStream in,
+                           boolean offset)
+                    throws SlickException
+
+
Load a SVG document into a diagram +

+

+
+
+
+
Parameters:
offset - Offset the diagram for the height of the document
in - The input stream from which to read the SVG +
Returns:
The diagram loaded +
Throws: +
SlickException - Indicates a failure to process the document
+
+
+
+ +

+loadChildren

+
+public void loadChildren(org.w3c.dom.Element element,
+                         Transform t)
+                  throws ParsingException
+
+
Description copied from interface: Loader
+
Load the children of a given element +

+

+
Specified by:
loadChildren in interface Loader
+
+
+
Parameters:
element - The element whose children should be loaded
t - The transform to apply to all the children +
Throws: +
ParsingException - Indicates a failure to read the XML
See Also:
Loader.loadChildren(org.w3c.dom.Element, + org.newdawn.slick.geom.Transform)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/LinearGradientFill.html b/lib/javadoc/org/newdawn/slick/svg/LinearGradientFill.html new file mode 100644 index 000000000..555b01bcf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/LinearGradientFill.html @@ -0,0 +1,280 @@ + + + + + + +LinearGradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class LinearGradientFill

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.LinearGradientFill
+
+
+
All Implemented Interfaces:
TexCoordGenerator
+
+
+
+
public class LinearGradientFill
extends java.lang.Object
implements TexCoordGenerator
+ + +

+A filler for shapes that applys SVG linear gradients +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LinearGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for gradients
+  + + + + + + + + + + + +
+Method Summary
+ Vector2fgetCoordFor(float x, + float y) + +
+          Get the texture coordinate for a given render position
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinearGradientFill

+
+public LinearGradientFill(Shape shape,
+                          Transform trans,
+                          Gradient gradient)
+
+
Create a new fill for gradients +

+

+
Parameters:
shape - The shape being filled
trans - The transform given for the shape
gradient - The gradient to apply
+
+ + + + + + + + +
+Method Detail
+ +

+getCoordFor

+
+public Vector2f getCoordFor(float x,
+                            float y)
+
+
Description copied from interface: TexCoordGenerator
+
Get the texture coordinate for a given render position +

+

+
Specified by:
getCoordFor in interface TexCoordGenerator
+
+
+
Parameters:
x - The x coordinate of the vertex being rendered
y - The y coordinate of the vertex being rendered +
Returns:
The texture coordinate to apply
See Also:
TexCoordGenerator.getCoordFor(float, float)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/Loader.html b/lib/javadoc/org/newdawn/slick/svg/Loader.html new file mode 100644 index 000000000..7872fc3a8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/Loader.html @@ -0,0 +1,224 @@ + + + + + + +Loader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Interface Loader

+
+
All Known Implementing Classes:
InkscapeLoader
+
+
+
+
public interface Loader
+ + +

+Description of a simple XML loader +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidloadChildren(org.w3c.dom.Element element, + Transform t) + +
+          Load the children of a given element
+  +

+ + + + + + + + +
+Method Detail
+ +

+loadChildren

+
+void loadChildren(org.w3c.dom.Element element,
+                  Transform t)
+                  throws ParsingException
+
+
Load the children of a given element +

+

+
Parameters:
element - The element whose children should be loaded
t - The transform to apply to all the children +
Throws: +
ParsingException - Indicates a failure to read the XML
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/NonGeometricData.html b/lib/javadoc/org/newdawn/slick/svg/NonGeometricData.html new file mode 100644 index 000000000..69a19ce1e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/NonGeometricData.html @@ -0,0 +1,667 @@ + + + + + + +NonGeometricData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class NonGeometricData

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.NonGeometricData
+
+
+
Direct Known Subclasses:
InkscapeNonGeometricData
+
+
+
+
public class NonGeometricData
extends java.lang.Object
+ + +

+A set of data about a shape that doesn't fit into it's geometric + configuration. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringFILL + +
+          The fill type
+static java.lang.StringID + +
+          The ID of the figure
+static java.lang.StringNONE + +
+          Value indicating that no settings has been specified
+static java.lang.StringOPACITY + +
+          The alpha value for filling
+static java.lang.StringSTROKE + +
+          The stroke type
+static java.lang.StringSTROKE_DASHARRAY + +
+          The dash definition of the line to draw
+static java.lang.StringSTROKE_DASHOFFSET + +
+          The offset into the dash definition of the line to draw
+static java.lang.StringSTROKE_MITERLIMIT + +
+          The mitre of the line to draw
+static java.lang.StringSTROKE_OPACITY + +
+          The alpha value for drawing
+static java.lang.StringSTROKE_WIDTH + +
+          The width of the line to draw
+  + + + + + + + + + + +
+Constructor Summary
NonGeometricData(java.lang.String metaData) + +
+          Create a set of non-geometric data for a figure
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAttribute(java.lang.String attribute, + java.lang.String value) + +
+          Add a configured style attribute into the data set
+ ColorgetAsColor(java.lang.String attribute) + +
+          Get an attribute value converted to a color.
+ floatgetAsFloat(java.lang.String attribute) + +
+          Get an attribute converted to a float value
+ java.lang.StringgetAsReference(java.lang.String attribute) + +
+          Get the attribute value as a reference to another entity
+ java.lang.StringgetAttribute(java.lang.String attribute) + +
+          Get the attribtue value for a given attribute
+ java.lang.StringgetMetaData() + +
+          Get the meta data assigned to the figure.
+ booleanisColor(java.lang.String attribute) + +
+          Check if a given attribute is in colour format
+ booleanisFilled() + +
+          True if the shape is meant to be filled
+ booleanisStroked() + +
+          True if the shape is meant to be outlined
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID

+
+public static final java.lang.String ID
+
+
The ID of the figure +

+

+
See Also:
Constant Field Values
+
+
+ +

+FILL

+
+public static final java.lang.String FILL
+
+
The fill type +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE

+
+public static final java.lang.String STROKE
+
+
The stroke type +

+

+
See Also:
Constant Field Values
+
+
+ +

+OPACITY

+
+public static final java.lang.String OPACITY
+
+
The alpha value for filling +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE_WIDTH

+
+public static final java.lang.String STROKE_WIDTH
+
+
The width of the line to draw +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE_MITERLIMIT

+
+public static final java.lang.String STROKE_MITERLIMIT
+
+
The mitre of the line to draw +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE_DASHARRAY

+
+public static final java.lang.String STROKE_DASHARRAY
+
+
The dash definition of the line to draw +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE_DASHOFFSET

+
+public static final java.lang.String STROKE_DASHOFFSET
+
+
The offset into the dash definition of the line to draw +

+

+
See Also:
Constant Field Values
+
+
+ +

+STROKE_OPACITY

+
+public static final java.lang.String STROKE_OPACITY
+
+
The alpha value for drawing +

+

+
See Also:
Constant Field Values
+
+
+ +

+NONE

+
+public static final java.lang.String NONE
+
+
Value indicating that no settings has been specified +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+NonGeometricData

+
+public NonGeometricData(java.lang.String metaData)
+
+
Create a set of non-geometric data for a figure +

+

+
Parameters:
metaData - The meta data (either label or id) for the figure
+
+ + + + + + + + +
+Method Detail
+ +

+addAttribute

+
+public void addAttribute(java.lang.String attribute,
+                         java.lang.String value)
+
+
Add a configured style attribute into the data set +

+

+
Parameters:
attribute - The attribute to add
value - The value to assign
+
+
+
+ +

+isColor

+
+public boolean isColor(java.lang.String attribute)
+
+
Check if a given attribute is in colour format +

+

+
Parameters:
attribute - The attribute to check +
Returns:
True if the attirbute value is in colour format
+
+
+
+ +

+getMetaData

+
+public java.lang.String getMetaData()
+
+
Get the meta data assigned to the figure. Either the label or + the id value. +

+

+ +
Returns:
The meta data assigned to the figure
+
+
+
+ +

+getAttribute

+
+public java.lang.String getAttribute(java.lang.String attribute)
+
+
Get the attribtue value for a given attribute +

+

+
Parameters:
attribute - The attribute whose value should be obtained +
Returns:
The value for the given attribute
+
+
+
+ +

+getAsColor

+
+public Color getAsColor(java.lang.String attribute)
+
+
Get an attribute value converted to a color. isColor should first be checked +

+

+
Parameters:
attribute - The attribute whose value should be interpreted as a color +
Returns:
The color based on the attribute
+
+
+
+ +

+getAsReference

+
+public java.lang.String getAsReference(java.lang.String attribute)
+
+
Get the attribute value as a reference to another entity +

+

+
Parameters:
attribute - The name of the attribute to retrieve +
Returns:
The reference part of the attribute value
+
+
+
+ +

+getAsFloat

+
+public float getAsFloat(java.lang.String attribute)
+
+
Get an attribute converted to a float value +

+

+
Parameters:
attribute - The attribute to retrieve +
Returns:
The float value derived from the attribute
+
+
+
+ +

+isFilled

+
+public boolean isFilled()
+
+
True if the shape is meant to be filled +

+

+ +
Returns:
True if the shape is meant to be filled
+
+
+
+ +

+isStroked

+
+public boolean isStroked()
+
+
True if the shape is meant to be outlined +

+

+ +
Returns:
True if the shape is meant to be outlined
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/ParsingException.html b/lib/javadoc/org/newdawn/slick/svg/ParsingException.html new file mode 100644 index 000000000..cfc949ab2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/ParsingException.html @@ -0,0 +1,317 @@ + + + + + + +ParsingException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class ParsingException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.newdawn.slick.SlickException
+              extended by org.newdawn.slick.svg.ParsingException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class ParsingException
extends SlickException
+ + +

+Exception indicating a failure to parse XML, giving element information +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
ParsingException(org.w3c.dom.Element element, + java.lang.String message) + +
+          Create a new exception
ParsingException(org.w3c.dom.Element element, + java.lang.String message, + java.lang.Throwable cause) + +
+          Create a new exception
ParsingException(java.lang.String nodeID, + java.lang.String message) + +
+          Create a new exception
ParsingException(java.lang.String nodeID, + java.lang.String message, + java.lang.Throwable cause) + +
+          Create a new exception
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParsingException

+
+public ParsingException(java.lang.String nodeID,
+                        java.lang.String message,
+                        java.lang.Throwable cause)
+
+
Create a new exception +

+

+
Parameters:
nodeID - The ID of the node that failed validation
message - The description of the failure
cause - The exception causing this one
+
+
+ +

+ParsingException

+
+public ParsingException(org.w3c.dom.Element element,
+                        java.lang.String message,
+                        java.lang.Throwable cause)
+
+
Create a new exception +

+

+
Parameters:
element - The element that failed validation
message - The description of the failure
cause - The exception causing this one
+
+
+ +

+ParsingException

+
+public ParsingException(java.lang.String nodeID,
+                        java.lang.String message)
+
+
Create a new exception +

+

+
Parameters:
nodeID - The ID of the node that failed validation
message - The description of the failure
+
+
+ +

+ParsingException

+
+public ParsingException(org.w3c.dom.Element element,
+                        java.lang.String message)
+
+
Create a new exception +

+

+
Parameters:
element - The element that failed validation
message - The description of the failure
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/RadialGradientFill.html b/lib/javadoc/org/newdawn/slick/svg/RadialGradientFill.html new file mode 100644 index 000000000..ce23da1cd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/RadialGradientFill.html @@ -0,0 +1,280 @@ + + + + + + +RadialGradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class RadialGradientFill

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.RadialGradientFill
+
+
+
All Implemented Interfaces:
TexCoordGenerator
+
+
+
+
public class RadialGradientFill
extends java.lang.Object
implements TexCoordGenerator
+ + +

+A filler to apply a SVG radial gradient across a shape +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RadialGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for a radial gradient
+  + + + + + + + + + + + +
+Method Summary
+ Vector2fgetCoordFor(float x, + float y) + +
+          Get the texture coordinate for a given render position
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RadialGradientFill

+
+public RadialGradientFill(Shape shape,
+                          Transform trans,
+                          Gradient gradient)
+
+
Create a new fill for a radial gradient +

+

+
Parameters:
shape - The shape being filled
trans - The transform given for the shape in the SVG
gradient - The gradient to apply across the shape
+
+ + + + + + + + +
+Method Detail
+ +

+getCoordFor

+
+public Vector2f getCoordFor(float x,
+                            float y)
+
+
Description copied from interface: TexCoordGenerator
+
Get the texture coordinate for a given render position +

+

+
Specified by:
getCoordFor in interface TexCoordGenerator
+
+
+
Parameters:
x - The x coordinate of the vertex being rendered
y - The y coordinate of the vertex being rendered +
Returns:
The texture coordinate to apply
See Also:
TexCoordGenerator.getCoordFor(float, float)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/SVGMorph.html b/lib/javadoc/org/newdawn/slick/svg/SVGMorph.html new file mode 100644 index 000000000..4daa89367 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/SVGMorph.html @@ -0,0 +1,394 @@ + + + + + + +SVGMorph (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class SVGMorph

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.Diagram
+      extended by org.newdawn.slick.svg.SVGMorph
+
+
+
+
public class SVGMorph
extends Diagram
+ + +

+A utility to allow morphing between a set of similar SVG diagrams +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SVGMorph(Diagram diagram) + +
+          Create a new morph with a first diagram base
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddStep(Diagram diagram) + +
+          Add a subsquent step to the morphing
+ FiguregetFigure(int index) + +
+          Get the figure at a given index
+ intgetFigureCount() + +
+          Get the number of figures in the diagram
+ voidsetExternalDiagram(Diagram diagram) + +
+          Set the current diagram we should morph from.
+ voidsetMorphTime(float time) + +
+          Set the "time" index for this morph.
+ voidupdateMorphTime(float delta) + +
+          Update the morph time index by the amount specified
+ + + + + + + +
Methods inherited from class org.newdawn.slick.svg.Diagram
addFigure, addGradient, addPatternDef, getFigureByID, getGradient, getHeight, getPatternDef, getPatternDefNames, getWidth, removeFigure
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SVGMorph

+
+public SVGMorph(Diagram diagram)
+
+
Create a new morph with a first diagram base +

+

+
Parameters:
diagram - The base diagram which provides the first step of the morph
+
+ + + + + + + + +
+Method Detail
+ +

+addStep

+
+public void addStep(Diagram diagram)
+
+
Add a subsquent step to the morphing +

+

+
Parameters:
diagram - The diagram to add as the next step in the morph
+
+
+
+ +

+setExternalDiagram

+
+public void setExternalDiagram(Diagram diagram)
+
+
Set the current diagram we should morph from. This only really works with + updateMorphTime() but can be used for smooth transitions between + morphs. +

+

+
Parameters:
diagram - The diagram to use as the base of the morph
+
+
+
+ +

+updateMorphTime

+
+public void updateMorphTime(float delta)
+
+
Update the morph time index by the amount specified +

+

+
Parameters:
delta - The amount to update the morph by
+
+
+
+ +

+setMorphTime

+
+public void setMorphTime(float time)
+
+
Set the "time" index for this morph. This is given in terms of diagrams, so + 0.5f would give you the position half way between the first and second diagrams. +

+

+
Parameters:
time - The time index to represent on this diagrams
+
+
+
+ +

+getFigureCount

+
+public int getFigureCount()
+
+
Description copied from class: Diagram
+
Get the number of figures in the diagram +

+

+
Overrides:
getFigureCount in class Diagram
+
+
+ +
Returns:
The number of figures in the diagram
See Also:
Diagram.getFigureCount()
+
+
+
+ +

+getFigure

+
+public Figure getFigure(int index)
+
+
Description copied from class: Diagram
+
Get the figure at a given index +

+

+
Overrides:
getFigure in class Diagram
+
+
+
Parameters:
index - The index of the figure to retrieve +
Returns:
The figure at the given index
See Also:
Diagram.getFigure(int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/SimpleDiagramRenderer.html b/lib/javadoc/org/newdawn/slick/svg/SimpleDiagramRenderer.html new file mode 100644 index 000000000..0bbe15dfd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/SimpleDiagramRenderer.html @@ -0,0 +1,368 @@ + + + + + + +SimpleDiagramRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg +
+Class SimpleDiagramRenderer

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.SimpleDiagramRenderer
+
+
+
+
public class SimpleDiagramRenderer
extends java.lang.Object
+ + +

+A very primtive implementation for rendering a diagram. This simply + sticks the shapes on the screen in the right fill and stroke colours +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+ Diagramdiagram + +
+          The diagram to be rendered
+protected static SGLGL + +
+          The renderer to use for all GL operations
+ intlist + +
+          The display list representing the diagram
+  + + + + + + + + + + +
+Constructor Summary
SimpleDiagramRenderer(Diagram diagram) + +
+          Create a new simple renderer
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidrender(Graphics g) + +
+          Render the diagram to the given graphics context
+static voidrender(Graphics g, + Diagram diagram) + +
+          Utility method to render a diagram in immediate mode
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+
+ +

+diagram

+
+public Diagram diagram
+
+
The diagram to be rendered +

+

+
+
+
+ +

+list

+
+public int list
+
+
The display list representing the diagram +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+SimpleDiagramRenderer

+
+public SimpleDiagramRenderer(Diagram diagram)
+
+
Create a new simple renderer +

+

+
Parameters:
diagram - The diagram to be rendered
+
+ + + + + + + + +
+Method Detail
+ +

+render

+
+public void render(Graphics g)
+
+
Render the diagram to the given graphics context +

+

+
Parameters:
g - The graphics context to which we should render the diagram
+
+
+
+ +

+render

+
+public static void render(Graphics g,
+                          Diagram diagram)
+
+
Utility method to render a diagram in immediate mode +

+

+
Parameters:
g - The graphics context to render to
diagram - The diagram to render
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/Diagram.html b/lib/javadoc/org/newdawn/slick/svg/class-use/Diagram.html new file mode 100644 index 000000000..3507a8fd6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/Diagram.html @@ -0,0 +1,413 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.Diagram (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.Diagram

+
+ + + + + + + + + + + + + +
+Packages that use Diagram
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of Diagram in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Subclasses of Diagram in org.newdawn.slick.svg
+ classSVGMorph + +
+          A utility to allow morphing between a set of similar SVG diagrams
+  +

+ + + + + + + + + +
Fields in org.newdawn.slick.svg declared as Diagram
+ DiagramSimpleDiagramRenderer.diagram + +
+          The diagram to be rendered
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that return Diagram
+static DiagramInkscapeLoader.load(java.io.InputStream in, + boolean offset) + +
+          Load a SVG document into a diagram
+static DiagramInkscapeLoader.load(java.lang.String ref) + +
+          Load a SVG document into a diagram
+static DiagramInkscapeLoader.load(java.lang.String ref, + boolean offset) + +
+          Load a SVG document into a diagram
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Diagram
+ voidSVGMorph.addStep(Diagram diagram) + +
+          Add a subsquent step to the morphing
+static voidSimpleDiagramRenderer.render(Graphics g, + Diagram diagram) + +
+          Utility method to render a diagram in immediate mode
+ voidGradient.resolve(Diagram diagram) + +
+          Resolve the gradient reference
+ voidSVGMorph.setExternalDiagram(Diagram diagram) + +
+          Set the current diagram we should morph from.
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.svg with parameters of type Diagram
SimpleDiagramRenderer(Diagram diagram) + +
+          Create a new simple renderer
SVGMorph(Diagram diagram) + +
+          Create a new morph with a first diagram base
+  +

+ + + + + +
+Uses of Diagram in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg.inkscape with parameters of type Diagram
+ voidUseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+ voidRectProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPolygonProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPathProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidLineProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidGroupProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          O
+ voidEllipseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidElementProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ voidDefsProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/Figure.html b/lib/javadoc/org/newdawn/slick/svg/class-use/Figure.html new file mode 100644 index 000000000..a1c3090a8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/Figure.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.Figure (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.Figure

+
+ + + + + + + + + +
+Packages that use Figure
org.newdawn.slick.svgDemo/Test SVG area. 
+  +

+ + + + + +
+Uses of Figure in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that return Figure
+ FigureSVGMorph.getFigure(int index) + +
+           
+ FigureDiagram.getFigure(int index) + +
+          Get the figure at a given index
+ FigureDiagram.getFigureByID(java.lang.String id) + +
+          Get a figure by a given ID
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Figure
+ voidDiagram.addFigure(Figure figure) + +
+          Add a figure to the diagram
+ voidDiagram.removeFigure(Figure figure) + +
+          Remove a figure from the diagram
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/Gradient.html b/lib/javadoc/org/newdawn/slick/svg/class-use/Gradient.html new file mode 100644 index 000000000..b9aa4c788 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/Gradient.html @@ -0,0 +1,221 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.Gradient (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.Gradient

+
+ + + + + + + + + +
+Packages that use Gradient
org.newdawn.slick.svgDemo/Test SVG area. 
+  +

+ + + + + +
+Uses of Gradient in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg that return Gradient
+ GradientDiagram.getGradient(java.lang.String name) + +
+          Get the gradient defined in this document
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type Gradient
+ voidDiagram.addGradient(java.lang.String name, + Gradient gradient) + +
+          Add gradient to the diagram
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.svg with parameters of type Gradient
LinearGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for gradients
RadialGradientFill(Shape shape, + Transform trans, + Gradient gradient) + +
+          Create a new fill for a radial gradient
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/InkscapeLoader.html b/lib/javadoc/org/newdawn/slick/svg/class-use/InkscapeLoader.html new file mode 100644 index 000000000..7ad4aa5cd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/InkscapeLoader.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.InkscapeLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.InkscapeLoader

+
+No usage of org.newdawn.slick.svg.InkscapeLoader +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/LinearGradientFill.html b/lib/javadoc/org/newdawn/slick/svg/class-use/LinearGradientFill.html new file mode 100644 index 000000000..4308c8ad6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/LinearGradientFill.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.LinearGradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.LinearGradientFill

+
+No usage of org.newdawn.slick.svg.LinearGradientFill +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/Loader.html b/lib/javadoc/org/newdawn/slick/svg/class-use/Loader.html new file mode 100644 index 000000000..aca2b1073 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/Loader.html @@ -0,0 +1,302 @@ + + + + + + +Uses of Interface org.newdawn.slick.svg.Loader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.svg.Loader

+
+ + + + + + + + + + + + + +
+Packages that use Loader
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of Loader in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.svg that implement Loader
+ classInkscapeLoader + +
+          A loader specifically for the SVG that is produced from Inkscape
+  +

+ + + + + +
+Uses of Loader in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg.inkscape with parameters of type Loader
+ voidUseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+ voidRectProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPolygonProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPathProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidLineProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidGroupProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          O
+ voidEllipseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidElementProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ voidDefsProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/NonGeometricData.html b/lib/javadoc/org/newdawn/slick/svg/class-use/NonGeometricData.html new file mode 100644 index 000000000..4ecd7ae41 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/NonGeometricData.html @@ -0,0 +1,227 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.NonGeometricData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.NonGeometricData

+
+ + + + + + + + + + + + + +
+Packages that use NonGeometricData
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of NonGeometricData in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg that return NonGeometricData
+ NonGeometricDataFigure.getData() + +
+          Get the data associated with this figure
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.svg with parameters of type NonGeometricData
Figure(int type, + Shape shape, + NonGeometricData data, + Transform transform) + +
+          Create a new figure
+  +

+ + + + + +
+Uses of NonGeometricData in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + +
Subclasses of NonGeometricData in org.newdawn.slick.svg.inkscape
+ classInkscapeNonGeometricData + +
+          A custom non-geometric data type that can pass back any attribute + on the field.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/ParsingException.html b/lib/javadoc/org/newdawn/slick/svg/class-use/ParsingException.html new file mode 100644 index 000000000..3d08126c8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/ParsingException.html @@ -0,0 +1,312 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.ParsingException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.ParsingException

+
+ + + + + + + + + + + + + +
+Packages that use ParsingException
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of ParsingException in org.newdawn.slick.svg
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg that throw ParsingException
+ voidLoader.loadChildren(org.w3c.dom.Element element, + Transform t) + +
+          Load the children of a given element
+ voidInkscapeLoader.loadChildren(org.w3c.dom.Element element, + Transform t) + +
+           
+  +

+ + + + + +
+Uses of ParsingException in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.svg.inkscape that throw ParsingException
+ voidUseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+ voidRectProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPolygonProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidPathProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidLineProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidGroupProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          O
+ voidEllipseProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+           
+ voidElementProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ voidDefsProcessor.process(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/RadialGradientFill.html b/lib/javadoc/org/newdawn/slick/svg/class-use/RadialGradientFill.html new file mode 100644 index 000000000..8981d70c3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/RadialGradientFill.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.RadialGradientFill (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.RadialGradientFill

+
+No usage of org.newdawn.slick.svg.RadialGradientFill +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/SVGMorph.html b/lib/javadoc/org/newdawn/slick/svg/class-use/SVGMorph.html new file mode 100644 index 000000000..908dac870 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/SVGMorph.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.SVGMorph (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.SVGMorph

+
+No usage of org.newdawn.slick.svg.SVGMorph +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/class-use/SimpleDiagramRenderer.html b/lib/javadoc/org/newdawn/slick/svg/class-use/SimpleDiagramRenderer.html new file mode 100644 index 000000000..4cf969e17 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/class-use/SimpleDiagramRenderer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.SimpleDiagramRenderer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.SimpleDiagramRenderer

+
+No usage of org.newdawn.slick.svg.SimpleDiagramRenderer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/DefsProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/DefsProcessor.html new file mode 100644 index 000000000..d30a98064 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/DefsProcessor.html @@ -0,0 +1,308 @@ + + + + + + +DefsProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class DefsProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.DefsProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class DefsProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+A processor for the defs node +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefsProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefsProcessor

+
+public DefsProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform transform)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
transform - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/ElementProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/ElementProcessor.html new file mode 100644 index 000000000..9c9f9fb0a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/ElementProcessor.html @@ -0,0 +1,255 @@ + + + + + + +ElementProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Interface ElementProcessor

+
+
All Known Implementing Classes:
DefsProcessor, EllipseProcessor, GroupProcessor, LineProcessor, PathProcessor, PolygonProcessor, RectProcessor, UseProcessor
+
+
+
+
public interface ElementProcessor
+ + +

+The description of a module which processes a single XML element from a SVG (inkscape) + document. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+  +

+ + + + + + + + +
+Method Detail
+ +

+process

+
+void process(Loader loader,
+             org.w3c.dom.Element element,
+             Diagram diagram,
+             Transform transform)
+             throws ParsingException
+
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
transform - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
+
+
+
+ +

+handles

+
+boolean handles(org.w3c.dom.Element element)
+
+
Check if this processor handles the element specified +

+

+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/EllipseProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/EllipseProcessor.html new file mode 100644 index 000000000..b4060e527 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/EllipseProcessor.html @@ -0,0 +1,308 @@ + + + + + + +EllipseProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class EllipseProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.EllipseProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class EllipseProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+Processor for and nodes marked as arcs +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EllipseProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+EllipseProcessor

+
+public EllipseProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/GroupProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/GroupProcessor.html new file mode 100644 index 000000000..52566a4c5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/GroupProcessor.html @@ -0,0 +1,303 @@ + + + + + + +GroupProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class GroupProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.GroupProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class GroupProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+TODO: Document this class +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
GroupProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          O
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GroupProcessor

+
+public GroupProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
O +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/InkscapeNonGeometricData.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/InkscapeNonGeometricData.html new file mode 100644 index 000000000..68f0909ed --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/InkscapeNonGeometricData.html @@ -0,0 +1,324 @@ + + + + + + +InkscapeNonGeometricData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class InkscapeNonGeometricData

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.NonGeometricData
+      extended by org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData
+
+
+
+
public class InkscapeNonGeometricData
extends NonGeometricData
+ + +

+A custom non-geometric data type that can pass back any attribute + on the field. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.svg.NonGeometricData
FILL, ID, NONE, OPACITY, STROKE, STROKE_DASHARRAY, STROKE_DASHOFFSET, STROKE_MITERLIMIT, STROKE_OPACITY, STROKE_WIDTH
+  + + + + + + + + + + +
+Constructor Summary
InkscapeNonGeometricData(java.lang.String metaData, + org.w3c.dom.Element element) + +
+          Create a new non-geometric data holder
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetAttribute(java.lang.String attribute) + +
+          Get the attribtue value for a given attribute
+ org.w3c.dom.ElementgetElement() + +
+          Returns the XML element that is wrapped by this instance.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.svg.NonGeometricData
addAttribute, getAsColor, getAsFloat, getAsReference, getMetaData, isColor, isFilled, isStroked
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InkscapeNonGeometricData

+
+public InkscapeNonGeometricData(java.lang.String metaData,
+                                org.w3c.dom.Element element)
+
+
Create a new non-geometric data holder +

+

+
Parameters:
metaData - The metadata provided
element - The XML element from the SVG document
+
+ + + + + + + + +
+Method Detail
+ +

+getAttribute

+
+public java.lang.String getAttribute(java.lang.String attribute)
+
+
Description copied from class: NonGeometricData
+
Get the attribtue value for a given attribute +

+

+
Overrides:
getAttribute in class NonGeometricData
+
+
+
Parameters:
attribute - The attribute whose value should be obtained +
Returns:
The value for the given attribute
See Also:
NonGeometricData.getAttribute(java.lang.String)
+
+
+
+ +

+getElement

+
+public org.w3c.dom.Element getElement()
+
+
Returns the XML element that is wrapped by this instance. +

+

+ +
Returns:
The XML element for this instance
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/LineProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/LineProcessor.html new file mode 100644 index 000000000..7b43344fe --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/LineProcessor.html @@ -0,0 +1,308 @@ + + + + + + +LineProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class LineProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.LineProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class LineProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+A processor for the element +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LineProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LineProcessor

+
+public LineProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/PathProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/PathProcessor.html new file mode 100644 index 000000000..a3980c85e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/PathProcessor.html @@ -0,0 +1,308 @@ + + + + + + +PathProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class PathProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.PathProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class PathProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+A processor for the and elements marked as not an arc. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PathProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PathProcessor

+
+public PathProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/PolygonProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/PolygonProcessor.html new file mode 100644 index 000000000..4889ea0e2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/PolygonProcessor.html @@ -0,0 +1,308 @@ + + + + + + +PolygonProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class PolygonProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.PolygonProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class PolygonProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+A processor for the and elements marked as not an arc. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PolygonProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PolygonProcessor

+
+public PolygonProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/RectProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/RectProcessor.html new file mode 100644 index 000000000..0e356629d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/RectProcessor.html @@ -0,0 +1,308 @@ + + + + + + +RectProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class RectProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.RectProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class RectProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+A processor for the element. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RectProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform t) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RectProcessor

+
+public RectProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform t)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
t - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/UseProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/UseProcessor.html new file mode 100644 index 000000000..8dd646e40 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/UseProcessor.html @@ -0,0 +1,309 @@ + + + + + + +UseProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class UseProcessor

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.UseProcessor
+
+
+
All Implemented Interfaces:
ElementProcessor
+
+
+
+
public class UseProcessor
extends java.lang.Object
implements ElementProcessor
+ + +

+Processor for the "use", a tag that allows references to other elements + and cloning. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
UseProcessor() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhandles(org.w3c.dom.Element element) + +
+          Check if this processor handles the element specified
+ voidprocess(Loader loader, + org.w3c.dom.Element element, + Diagram diagram, + Transform transform) + +
+          Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UseProcessor

+
+public UseProcessor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+handles

+
+public boolean handles(org.w3c.dom.Element element)
+
+
Description copied from interface: ElementProcessor
+
Check if this processor handles the element specified +

+

+
Specified by:
handles in interface ElementProcessor
+
+
+
Parameters:
element - The element to check +
Returns:
True if this processor can handle the given element
See Also:
ElementProcessor.handles(org.w3c.dom.Element)
+
+
+
+ +

+process

+
+public void process(Loader loader,
+                    org.w3c.dom.Element element,
+                    Diagram diagram,
+                    Transform transform)
+             throws ParsingException
+
+
Description copied from interface: ElementProcessor
+
Process a document extracting all the elements that the processor is + interested in and producing appropriate diagram components for the + element. +

+

+
Specified by:
process in interface ElementProcessor
+
+
+
Parameters:
loader - The loader/context of the parsing
element - The element to be processed
diagram - The diagram to be built
transform - The transform to apply to all elements at this level +
Throws: +
ParsingException - Indicates an invalid content to an element
See Also:
ElementProcessor.process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/Util.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/Util.html new file mode 100644 index 000000000..ddff2d26b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/Util.html @@ -0,0 +1,341 @@ + + + + + + +Util (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.svg.inkscape +
+Class Util

+
+java.lang.Object
+  extended by org.newdawn.slick.svg.inkscape.Util
+
+
+
+
public class Util
extends java.lang.Object
+ + +

+A set of utility for processing the SVG documents produced by Inkscape +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringINKSCAPE + +
+          The namespace for inkscape
+static java.lang.StringSODIPODI + +
+          The namespace for sodipodi
+static java.lang.StringXLINK + +
+          The namespace for xlink
+  + + + + + + + + + + +
+Constructor Summary
Util() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static java.lang.StringgetAsReference(java.lang.String value) + +
+          Get the attribute value as a reference to another entity
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+INKSCAPE

+
+public static final java.lang.String INKSCAPE
+
+
The namespace for inkscape +

+

+
See Also:
Constant Field Values
+
+
+ +

+SODIPODI

+
+public static final java.lang.String SODIPODI
+
+
The namespace for sodipodi +

+

+
See Also:
Constant Field Values
+
+
+ +

+XLINK

+
+public static final java.lang.String XLINK
+
+
The namespace for xlink +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Util

+
+public Util()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getAsReference

+
+public static java.lang.String getAsReference(java.lang.String value)
+
+
Get the attribute value as a reference to another entity +

+

+
Parameters:
value - The value to treat as reference +
Returns:
The reference part of the attribute value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/DefsProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/DefsProcessor.html new file mode 100644 index 000000000..20b7b0728 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/DefsProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.DefsProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.DefsProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.DefsProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/ElementProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/ElementProcessor.html new file mode 100644 index 000000000..ce3f2f834 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/ElementProcessor.html @@ -0,0 +1,267 @@ + + + + + + +Uses of Interface org.newdawn.slick.svg.inkscape.ElementProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.svg.inkscape.ElementProcessor

+
+ + + + + + + + + + + + + +
+Packages that use ElementProcessor
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + +
+Uses of ElementProcessor in org.newdawn.slick.svg
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.svg with parameters of type ElementProcessor
+static voidInkscapeLoader.addElementProcessor(ElementProcessor proc) + +
+          Add an ElementProcessor which will be passed + each element read as the Inkscape SVG document is processed.
+  +

+ + + + + +
+Uses of ElementProcessor in org.newdawn.slick.svg.inkscape
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.svg.inkscape that implement ElementProcessor
+ classDefsProcessor + +
+          A processor for the defs node
+ classEllipseProcessor + +
+          Processor for and nodes marked as arcs
+ classGroupProcessor + +
+          TODO: Document this class
+ classLineProcessor + +
+          A processor for the element
+ classPathProcessor + +
+          A processor for the and elements marked as not an arc.
+ classPolygonProcessor + +
+          A processor for the and elements marked as not an arc.
+ classRectProcessor + +
+          A processor for the element.
+ classUseProcessor + +
+          Processor for the "use", a tag that allows references to other elements + and cloning.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/EllipseProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/EllipseProcessor.html new file mode 100644 index 000000000..ec30f35e2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/EllipseProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.EllipseProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.EllipseProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.EllipseProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/GroupProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/GroupProcessor.html new file mode 100644 index 000000000..13e7c1b33 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/GroupProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.GroupProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.GroupProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.GroupProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/InkscapeNonGeometricData.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/InkscapeNonGeometricData.html new file mode 100644 index 000000000..47c8e2815 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/InkscapeNonGeometricData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData

+
+No usage of org.newdawn.slick.svg.inkscape.InkscapeNonGeometricData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/LineProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/LineProcessor.html new file mode 100644 index 000000000..ea0211a30 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/LineProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.LineProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.LineProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.LineProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PathProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PathProcessor.html new file mode 100644 index 000000000..af9589379 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PathProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.PathProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.PathProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.PathProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PolygonProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PolygonProcessor.html new file mode 100644 index 000000000..b6879816d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/PolygonProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.PolygonProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.PolygonProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.PolygonProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/RectProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/RectProcessor.html new file mode 100644 index 000000000..95e758d7b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/RectProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.RectProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.RectProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.RectProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/UseProcessor.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/UseProcessor.html new file mode 100644 index 000000000..d139363aa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/UseProcessor.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.UseProcessor (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.UseProcessor

+
+No usage of org.newdawn.slick.svg.inkscape.UseProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/Util.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/Util.html new file mode 100644 index 000000000..fe8c8335e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/class-use/Util.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.svg.inkscape.Util (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.svg.inkscape.Util

+
+No usage of org.newdawn.slick.svg.inkscape.Util +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/package-frame.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-frame.html new file mode 100644 index 000000000..585d99161 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-frame.html @@ -0,0 +1,61 @@ + + + + + + +org.newdawn.slick.svg.inkscape (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.svg.inkscape + + + + +
+Interfaces  + +
+ElementProcessor
+ + + + + + +
+Classes  + +
+DefsProcessor +
+EllipseProcessor +
+GroupProcessor +
+InkscapeNonGeometricData +
+LineProcessor +
+PathProcessor +
+PolygonProcessor +
+RectProcessor +
+UseProcessor +
+Util
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/package-summary.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-summary.html new file mode 100644 index 000000000..039247bb8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-summary.html @@ -0,0 +1,210 @@ + + + + + + +org.newdawn.slick.svg.inkscape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.svg.inkscape +

+ + + + + + + + + +
+Interface Summary
ElementProcessorThe description of a module which processes a single XML element from a SVG (inkscape) + document.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DefsProcessorA processor for the defs node
EllipseProcessorProcessor for and nodes marked as arcs
GroupProcessorTODO: Document this class
InkscapeNonGeometricDataA custom non-geometric data type that can pass back any attribute + on the field.
LineProcessorA processor for the element
PathProcessorA processor for the and elements marked as not an arc.
PolygonProcessorA processor for the and elements marked as not an arc.
RectProcessorA processor for the element.
UseProcessorProcessor for the "use", a tag that allows references to other elements + and cloning.
UtilA set of utility for processing the SVG documents produced by Inkscape
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/package-tree.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-tree.html new file mode 100644 index 000000000..b1fb94dd0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-tree.html @@ -0,0 +1,168 @@ + + + + + + +org.newdawn.slick.svg.inkscape Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.svg.inkscape +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/inkscape/package-use.html b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-use.html new file mode 100644 index 000000000..34a6ad0c5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/inkscape/package-use.html @@ -0,0 +1,191 @@ + + + + + + +Uses of Package org.newdawn.slick.svg.inkscape (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.svg.inkscape

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.svg.inkscape
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.svg.inkscape used by org.newdawn.slick.svg
ElementProcessor + +
+          The description of a module which processes a single XML element from a SVG (inkscape) + document.
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.svg.inkscape used by org.newdawn.slick.svg.inkscape
ElementProcessor + +
+          The description of a module which processes a single XML element from a SVG (inkscape) + document.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/package-frame.html b/lib/javadoc/org/newdawn/slick/svg/package-frame.html new file mode 100644 index 000000000..1aac79cb6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/package-frame.html @@ -0,0 +1,70 @@ + + + + + + +org.newdawn.slick.svg (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.svg + + + + +
+Interfaces  + +
+Loader
+ + + + + + +
+Classes  + +
+Diagram +
+Figure +
+Gradient +
+InkscapeLoader +
+LinearGradientFill +
+NonGeometricData +
+RadialGradientFill +
+SimpleDiagramRenderer +
+SVGMorph
+ + + + + + +
+Exceptions  + +
+ParsingException
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/svg/package-summary.html b/lib/javadoc/org/newdawn/slick/svg/package-summary.html new file mode 100644 index 000000000..c2284aa87 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/package-summary.html @@ -0,0 +1,234 @@ + + + + + + +org.newdawn.slick.svg (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.svg +

+Demo/Test SVG area. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
LoaderDescription of a simple XML loader
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DiagramA diagram read from SVG containing multiple figures
FigureA figure that is part of diagram loaded from SVG
GradientA gradient definition from an SVG file, includes the stops, name and transform.
InkscapeLoaderA loader specifically for the SVG that is produced from Inkscape
LinearGradientFillA filler for shapes that applys SVG linear gradients
NonGeometricDataA set of data about a shape that doesn't fit into it's geometric + configuration.
RadialGradientFillA filler to apply a SVG radial gradient across a shape
SimpleDiagramRendererA very primtive implementation for rendering a diagram.
SVGMorphA utility to allow morphing between a set of similar SVG diagrams
+  + +

+ + + + + + + + + +
+Exception Summary
ParsingExceptionException indicating a failure to parse XML, giving element information
+  + +

+

+Package org.newdawn.slick.svg Description +

+ +

+Demo/Test SVG area. Tiny line is integrated to render-to-texture - however a full implementation is +to follow rendering SVG to OpenGL geometric shapes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/package-tree.html b/lib/javadoc/org/newdawn/slick/svg/package-tree.html new file mode 100644 index 000000000..8be4743c6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/package-tree.html @@ -0,0 +1,170 @@ + + + + + + +org.newdawn.slick.svg Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.svg +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • org.newdawn.slick.svg.Loader
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/svg/package-use.html b/lib/javadoc/org/newdawn/slick/svg/package-use.html new file mode 100644 index 000000000..c8d7d055f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/svg/package-use.html @@ -0,0 +1,239 @@ + + + + + + +Uses of Package org.newdawn.slick.svg (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.svg

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.svg
org.newdawn.slick.svgDemo/Test SVG area. 
org.newdawn.slick.svg.inkscape  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.svg used by org.newdawn.slick.svg
Diagram + +
+          A diagram read from SVG containing multiple figures
Figure + +
+          A figure that is part of diagram loaded from SVG
Gradient + +
+          A gradient definition from an SVG file, includes the stops, name and transform.
Loader + +
+          Description of a simple XML loader
NonGeometricData + +
+          A set of data about a shape that doesn't fit into it's geometric + configuration.
ParsingException + +
+          Exception indicating a failure to parse XML, giving element information
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.svg used by org.newdawn.slick.svg.inkscape
Diagram + +
+          A diagram read from SVG containing multiple figures
Loader + +
+          Description of a simple XML loader
NonGeometricData + +
+          A set of data about a shape that doesn't fit into it's geometric + configuration.
ParsingException + +
+          Exception indicating a failure to parse XML, giving element information
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/AlphaMapTest.html b/lib/javadoc/org/newdawn/slick/tests/AlphaMapTest.html new file mode 100644 index 000000000..fc1e973df --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/AlphaMapTest.html @@ -0,0 +1,410 @@ + + + + + + +AlphaMapTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class AlphaMapTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.AlphaMapTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class AlphaMapTest
extends BasicGame
+ + +

+A test to demonstrate world clipping as opposed to screen clipping +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
AlphaMapTest() + +
+          Create a new tester for the clip plane based clipping
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AlphaMapTest

+
+public AlphaMapTest()
+
+
Create a new tester for the clip plane based clipping +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/AnimationTest.html b/lib/javadoc/org/newdawn/slick/tests/AnimationTest.html new file mode 100644 index 000000000..dad33fab0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/AnimationTest.html @@ -0,0 +1,404 @@ + + + + + + +AnimationTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class AnimationTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.AnimationTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class AnimationTest
extends BasicGame
+ + +

+A test for basic animation rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
AnimationTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnimationTest

+
+public AnimationTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/AntiAliasTest.html b/lib/javadoc/org/newdawn/slick/tests/AntiAliasTest.html new file mode 100644 index 000000000..bcaec7fec --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/AntiAliasTest.html @@ -0,0 +1,383 @@ + + + + + + +AntiAliasTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class AntiAliasTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.AntiAliasTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class AntiAliasTest
extends BasicGame
+ + +

+Test to view the effects of antialiasing on cirles +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
AntiAliasTest() + +
+          Create the test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AntiAliasTest

+
+public AntiAliasTest()
+
+
Create the test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/BigImageTest.html b/lib/javadoc/org/newdawn/slick/tests/BigImageTest.html new file mode 100644 index 000000000..d140b8cc1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/BigImageTest.html @@ -0,0 +1,380 @@ + + + + + + +BigImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class BigImageTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.BigImageTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class BigImageTest
extends BasicGame
+ + +

+A test for basic image rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
BigImageTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BigImageTest

+
+public BigImageTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/BigSpriteSheetTest.html b/lib/javadoc/org/newdawn/slick/tests/BigSpriteSheetTest.html new file mode 100644 index 000000000..040b01591 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/BigSpriteSheetTest.html @@ -0,0 +1,380 @@ + + + + + + +BigSpriteSheetTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class BigSpriteSheetTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.BigSpriteSheetTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class BigSpriteSheetTest
extends BasicGame
+ + +

+A test for big images used as sprites sheets +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
BigSpriteSheetTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BigSpriteSheetTest

+
+public BigSpriteSheetTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/CachedRenderTest.html b/lib/javadoc/org/newdawn/slick/tests/CachedRenderTest.html new file mode 100644 index 000000000..bcc8d1ca1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/CachedRenderTest.html @@ -0,0 +1,384 @@ + + + + + + +CachedRenderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class CachedRenderTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.CachedRenderTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class CachedRenderTest
extends BasicGame
+ + +

+A simple test to show performance gains from cache operations in situtations where + rendering is static and heavy +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
CachedRenderTest() + +
+          Create a new simple test for cached rendering (aka display lists)
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CachedRenderTest

+
+public CachedRenderTest()
+
+
Create a new simple test for cached rendering (aka display lists) +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/CanvasContainerTest.html b/lib/javadoc/org/newdawn/slick/tests/CanvasContainerTest.html new file mode 100644 index 000000000..6b7174915 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/CanvasContainerTest.html @@ -0,0 +1,404 @@ + + + + + + +CanvasContainerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class CanvasContainerTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.CanvasContainerTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class CanvasContainerTest
extends BasicGame
+ + +

+A test for the AWT Canvas container +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
CanvasContainerTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CanvasContainerTest

+
+public CanvasContainerTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/CanvasSizeTest.html b/lib/javadoc/org/newdawn/slick/tests/CanvasSizeTest.html new file mode 100644 index 000000000..5b8c94876 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/CanvasSizeTest.html @@ -0,0 +1,383 @@ + + + + + + +CanvasSizeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class CanvasSizeTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.CanvasSizeTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class CanvasSizeTest
extends BasicGame
+ + +

+Quick test to confirm canvas size is reported correctly +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
CanvasSizeTest() + +
+          Create test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] args) + +
+          Entry point to the test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CanvasSizeTest

+
+public CanvasSizeTest()
+
+
Create test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
Entry point to the test +

+

+
Parameters:
args - The command line arguments passed in (none honoured)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ClipTest.html b/lib/javadoc/org/newdawn/slick/tests/ClipTest.html new file mode 100644 index 000000000..e5b1c9c1b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ClipTest.html @@ -0,0 +1,410 @@ + + + + + + +ClipTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ClipTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ClipTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ClipTest
extends BasicGame
+ + +

+A test to demonstrate world clipping as opposed to screen clipping +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ClipTest() + +
+          Create a new tester for the clip plane based clipping
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClipTest

+
+public ClipTest()
+
+
Create a new tester for the clip plane based clipping +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/CopyAreaAlphaTest.html b/lib/javadoc/org/newdawn/slick/tests/CopyAreaAlphaTest.html new file mode 100644 index 000000000..d128fa3fe --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/CopyAreaAlphaTest.html @@ -0,0 +1,410 @@ + + + + + + +CopyAreaAlphaTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class CopyAreaAlphaTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.CopyAreaAlphaTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class CopyAreaAlphaTest
extends BasicGame
+ + +

+A test to demonstrate world clipping as opposed to screen clipping +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
CopyAreaAlphaTest() + +
+          Create a new tester for the clip plane based clipping
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CopyAreaAlphaTest

+
+public CopyAreaAlphaTest()
+
+
Create a new tester for the clip plane based clipping +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/CurveTest.html b/lib/javadoc/org/newdawn/slick/tests/CurveTest.html new file mode 100644 index 000000000..3e5a94304 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/CurveTest.html @@ -0,0 +1,383 @@ + + + + + + +CurveTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class CurveTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.CurveTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class CurveTest
extends BasicGame
+ + +

+A rudimentry test of loading SVG from inkscape +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
CurveTest() + +
+          Create a new test for inkscape loading
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our simple test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CurveTest

+
+public CurveTest()
+
+
Create a new test for inkscape loading +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our simple test +

+

+
Parameters:
argv - The arguments passed in
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/DeferredLoadingTest.html b/lib/javadoc/org/newdawn/slick/tests/DeferredLoadingTest.html new file mode 100644 index 000000000..8c50eb0ac --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/DeferredLoadingTest.html @@ -0,0 +1,409 @@ + + + + + + +DeferredLoadingTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class DeferredLoadingTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.DeferredLoadingTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class DeferredLoadingTest
extends BasicGame
+ + +

+A test for deferred loading. Each of the resources is requested then the loading list + is cycled to actual perform the resource allowing the rendering to be performed in + between +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
DeferredLoadingTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DeferredLoadingTest

+
+public DeferredLoadingTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/DistanceFieldTest.html b/lib/javadoc/org/newdawn/slick/tests/DistanceFieldTest.html new file mode 100644 index 000000000..1100b0ba5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/DistanceFieldTest.html @@ -0,0 +1,411 @@ + + + + + + +DistanceFieldTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class DistanceFieldTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.DistanceFieldTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class DistanceFieldTest
extends BasicGame
+ + +

+A test to demonstrate distance fields generated by Hiero being applied + to scaled fonts +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
DistanceFieldTest() + +
+          Create a new tester for the clip plane based clipping
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DistanceFieldTest

+
+public DistanceFieldTest()
+
+
Create a new tester for the clip plane based clipping +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/DoubleClickTest.html b/lib/javadoc/org/newdawn/slick/tests/DoubleClickTest.html new file mode 100644 index 000000000..9c5fe2397 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/DoubleClickTest.html @@ -0,0 +1,418 @@ + + + + + + +DoubleClickTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class DoubleClickTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.DoubleClickTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class DoubleClickTest
extends BasicGame
+ + +

+The double click testing +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
DoubleClickTest() + +
+          Create the test game
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DoubleClickTest

+
+public DoubleClickTest()
+
+
Create the test game +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test, not used here
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
BasicGame.mouseClicked(int, int, int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/DuplicateEmitterTest.html b/lib/javadoc/org/newdawn/slick/tests/DuplicateEmitterTest.html new file mode 100644 index 000000000..8c10f19c8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/DuplicateEmitterTest.html @@ -0,0 +1,410 @@ + + + + + + +DuplicateEmitterTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class DuplicateEmitterTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.DuplicateEmitterTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class DuplicateEmitterTest
extends BasicGame
+ + +

+A test for duplicating a ConfigurableEmitter several times +

+ +

+

+
Author:
+
Tommy
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
DuplicateEmitterTest() + +
+          Create a new DuplicateEmitterTest
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          load ressources (the particle system) and create our duplicate emitters + and place them nicely on the screen
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DuplicateEmitterTest

+
+public DuplicateEmitterTest()
+
+
Create a new DuplicateEmitterTest +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
load ressources (the particle system) and create our duplicate emitters + and place them nicely on the screen +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The surrounding game container +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test, not used here
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/FlashTest.html b/lib/javadoc/org/newdawn/slick/tests/FlashTest.html new file mode 100644 index 000000000..f589c5d1c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/FlashTest.html @@ -0,0 +1,404 @@ + + + + + + +FlashTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class FlashTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.FlashTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class FlashTest
extends BasicGame
+ + +

+A test for image flashes +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
FlashTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FlashTest

+
+public FlashTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/FontPerformanceTest.html b/lib/javadoc/org/newdawn/slick/tests/FontPerformanceTest.html new file mode 100644 index 000000000..c2da3f883 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/FontPerformanceTest.html @@ -0,0 +1,407 @@ + + + + + + +FontPerformanceTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class FontPerformanceTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.FontPerformanceTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class FontPerformanceTest
extends BasicGame
+ + +

+A test of the font rendering capabilities +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
FontPerformanceTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FontPerformanceTest

+
+public FontPerformanceTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/FontTest.html b/lib/javadoc/org/newdawn/slick/tests/FontTest.html new file mode 100644 index 000000000..f9b588e74 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/FontTest.html @@ -0,0 +1,407 @@ + + + + + + +FontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class FontTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.FontTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class FontTest
extends BasicGame
+ + +

+A test of the font rendering capabilities +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
FontTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FontTest

+
+public FontTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GUITest.html b/lib/javadoc/org/newdawn/slick/tests/GUITest.html new file mode 100644 index 000000000..9b8357985 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GUITest.html @@ -0,0 +1,437 @@ + + + + + + +GUITest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GUITest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GUITest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, ComponentListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class GUITest
extends BasicGame
implements ComponentListener
+ + +

+A test for the GUI components available in Slick. Very simple stuff +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GUITest() + +
+          Create a new test of GUI rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcomponentActivated(AbstractComponent source) + +
+          Notification that a component has been activated (button clicked, + text field entered, etc)
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GUITest

+
+public GUITest()
+
+
Create a new test of GUI rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
+
+
+
Parameters:
argv - The arguments passed to the test
+
+
+
+ +

+componentActivated

+
+public void componentActivated(AbstractComponent source)
+
+
Description copied from interface: ComponentListener
+
Notification that a component has been activated (button clicked, + text field entered, etc) +

+

+
Specified by:
componentActivated in interface ComponentListener
+
+
+
Parameters:
source - The source of the event
See Also:
ComponentListener.componentActivated(org.newdawn.slick.gui.AbstractComponent)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GeomAccuracyTest.html b/lib/javadoc/org/newdawn/slick/tests/GeomAccuracyTest.html new file mode 100644 index 000000000..be2a4c9b2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GeomAccuracyTest.html @@ -0,0 +1,404 @@ + + + + + + +GeomAccuracyTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GeomAccuracyTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GeomAccuracyTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class GeomAccuracyTest
extends BasicGame
+ + +

+A simple graphics test for the context allowing vector based graphics +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GeomAccuracyTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GeomAccuracyTest

+
+public GeomAccuracyTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GeomTest.html b/lib/javadoc/org/newdawn/slick/tests/GeomTest.html new file mode 100644 index 000000000..0e8427506 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GeomTest.html @@ -0,0 +1,404 @@ + + + + + + +GeomTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GeomTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GeomTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class GeomTest
extends BasicGame
+ + +

+A geomertry test +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GeomTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GeomTest

+
+public GeomTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GeomUtilTest.html b/lib/javadoc/org/newdawn/slick/tests/GeomUtilTest.html new file mode 100644 index 000000000..2c37454f4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GeomUtilTest.html @@ -0,0 +1,519 @@ + + + + + + +GeomUtilTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GeomUtilTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GeomUtilTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, GeomUtilListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class GeomUtilTest
extends BasicGame
implements GeomUtilListener
+ + +

+A test to try shape cutting +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GeomUtilTest() + +
+          Create a simple test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit() + +
+          Perform the cut
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ voidpointExcluded(float x, + float y) + +
+          Notification that a point was excluded from geometry
+ voidpointIntersected(float x, + float y) + +
+          Notification that a point was intersected between two geometries
+ voidpointUsed(float x, + float y) + +
+          Notification that a point was used to build a new geometry
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GeomUtilTest

+
+public GeomUtilTest()
+
+
Create a simple test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init()
+
+
Perform the cut +

+

+
+
+
+
+
+
+
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(GameContainer, Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
+
+
+
Parameters:
argv - The arguments passed to the test
+
+
+
+ +

+pointExcluded

+
+public void pointExcluded(float x,
+                          float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was excluded from geometry +

+

+
Specified by:
pointExcluded in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointIntersected

+
+public void pointIntersected(float x,
+                             float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was intersected between two geometries +

+

+
Specified by:
pointIntersected in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointUsed

+
+public void pointUsed(float x,
+                      float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was used to build a new geometry +

+

+
Specified by:
pointUsed in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int change)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
Overrides:
mouseWheelMoved in class BasicGame
+
+
+
Parameters:
change - The amount of the wheel has moved
See Also:
MouseListener.mouseWheelMoved(int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GeomUtilTileTest.html b/lib/javadoc/org/newdawn/slick/tests/GeomUtilTileTest.html new file mode 100644 index 000000000..b00fc6a8e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GeomUtilTileTest.html @@ -0,0 +1,521 @@ + + + + + + +GeomUtilTileTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GeomUtilTileTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GeomUtilTileTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, GeomUtilListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class GeomUtilTileTest
extends BasicGame
implements GeomUtilListener
+ + +

+A test to try shape building from multiple tiles +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GeomUtilTileTest() + +
+          Create a simple test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancollides(Shape shape1, + Shape shape2) + +
+          Check if two shapes collide
+ voidinit() + +
+          Perform the cut
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidpointExcluded(float x, + float y) + +
+          Notification that a point was excluded from geometry
+ voidpointIntersected(float x, + float y) + +
+          Notification that a point was intersected between two geometries
+ voidpointUsed(float x, + float y) + +
+          Notification that a point was used to build a new geometry
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GeomUtilTileTest

+
+public GeomUtilTileTest()
+
+
Create a simple test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init()
+
+
Perform the cut +

+

+
+
+
+
+
+
+
+ +

+collides

+
+public boolean collides(Shape shape1,
+                        Shape shape2)
+
+
Check if two shapes collide +

+

+
+
+
+
Parameters:
shape1 - The first shape
shape2 - The second shape +
Returns:
True if the shapes collide (i.e. intersection or overlap)
+
+
+
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(GameContainer, Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
+
+
+
Parameters:
argv - The arguments passed to the test
+
+
+
+ +

+pointExcluded

+
+public void pointExcluded(float x,
+                          float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was excluded from geometry +

+

+
Specified by:
pointExcluded in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointIntersected

+
+public void pointIntersected(float x,
+                             float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was intersected between two geometries +

+

+
Specified by:
pointIntersected in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+
+ +

+pointUsed

+
+public void pointUsed(float x,
+                      float y)
+
+
Description copied from interface: GeomUtilListener
+
Notification that a point was used to build a new geometry +

+

+
Specified by:
pointUsed in interface GeomUtilListener
+
+
+
Parameters:
x - The x coordinate of the point
y - The y coordinate of the point
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GradientImageTest.html b/lib/javadoc/org/newdawn/slick/tests/GradientImageTest.html new file mode 100644 index 000000000..a34109dda --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GradientImageTest.html @@ -0,0 +1,404 @@ + + + + + + +GradientImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GradientImageTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GradientImageTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class GradientImageTest
extends BasicGame
+ + +

+A test for applying gradients to images +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GradientImageTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GradientImageTest

+
+public GradientImageTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GradientTest.html b/lib/javadoc/org/newdawn/slick/tests/GradientTest.html new file mode 100644 index 000000000..5058d2d03 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GradientTest.html @@ -0,0 +1,404 @@ + + + + + + +GradientTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GradientTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GradientTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class GradientTest
extends BasicGame
+ + +

+A test for gradient fill on polygons +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GradientTest() + +
+          Create a new gradient test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GradientTest

+
+public GradientTest()
+
+
Create a new gradient test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/GraphicsTest.html b/lib/javadoc/org/newdawn/slick/tests/GraphicsTest.html new file mode 100644 index 000000000..6f2205987 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/GraphicsTest.html @@ -0,0 +1,407 @@ + + + + + + +GraphicsTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class GraphicsTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.GraphicsTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class GraphicsTest
extends BasicGame
+ + +

+A simple graphics test for the context allowing vector based graphics +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
GraphicsTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GraphicsTest

+
+public GraphicsTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageBufferEndianTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageBufferEndianTest.html new file mode 100644 index 000000000..7332d2c27 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageBufferEndianTest.html @@ -0,0 +1,383 @@ + + + + + + +ImageBufferEndianTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageBufferEndianTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageBufferEndianTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageBufferEndianTest
extends BasicGame
+ + +

+Quick test for endianess in image buffers +

+ +

+

+
Author:
+
thaaks
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageBufferEndianTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] args) + +
+          Entry point to the test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageBufferEndianTest

+
+public ImageBufferEndianTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
Entry point to the test +

+

+
Parameters:
args - The arguments passed into the test
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
+
+
+
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.update(org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageBufferTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageBufferTest.html new file mode 100644 index 000000000..f1b5bd8a3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageBufferTest.html @@ -0,0 +1,404 @@ + + + + + + +ImageBufferTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageBufferTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageBufferTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageBufferTest
extends BasicGame
+ + +

+A test for image buffer maniupulation rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageBufferTest() + +
+          Create a new image buffer rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageBufferTest

+
+public ImageBufferTest()
+
+
Create a new image buffer rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageCornerTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageCornerTest.html new file mode 100644 index 000000000..27c88da41 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageCornerTest.html @@ -0,0 +1,380 @@ + + + + + + +ImageCornerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageCornerTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageCornerTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageCornerTest
extends BasicGame
+ + +

+A test for basic image rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageCornerTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageCornerTest

+
+public ImageCornerTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.update(org.newdawn.slick.GameContainer, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageGraphicsTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageGraphicsTest.html new file mode 100644 index 000000000..780c30593 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageGraphicsTest.html @@ -0,0 +1,380 @@ + + + + + + +ImageGraphicsTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageGraphicsTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageGraphicsTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageGraphicsTest
extends BasicGame
+ + +

+A test for rendering to an image +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageGraphicsTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageGraphicsTest

+
+public ImageGraphicsTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageMemTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageMemTest.html new file mode 100644 index 000000000..a3ebd3188 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageMemTest.html @@ -0,0 +1,377 @@ + + + + + + +ImageMemTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageMemTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageMemTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageMemTest
extends BasicGame
+ + +

+A test for basic image rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageMemTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageMemTest

+
+public ImageMemTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageOutTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageOutTest.html new file mode 100644 index 000000000..ba0be0bab --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageOutTest.html @@ -0,0 +1,407 @@ + + + + + + +ImageOutTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageOutTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageOutTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageOutTest
extends BasicGame
+ + +

+A test for saving images +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageOutTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageOutTest

+
+public ImageOutTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageReadTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageReadTest.html new file mode 100644 index 000000000..5f0f77c5c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageReadTest.html @@ -0,0 +1,377 @@ + + + + + + +ImageReadTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageReadTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageReadTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageReadTest
extends BasicGame
+ + +

+A test for reading image data from a teture +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageReadTest() + +
+          Create a new image reading test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ImageReadTest

+
+public ImageReadTest()
+
+
Create a new image reading test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ImageTest.html b/lib/javadoc/org/newdawn/slick/tests/ImageTest.html new file mode 100644 index 000000000..b4999e204 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ImageTest.html @@ -0,0 +1,433 @@ + + + + + + +ImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ImageTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ImageTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ImageTest
extends BasicGame
+ + +

+A test for basic image rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static booleanexitMe + +
+          True if the test should just exit first time round, used for testing shared contexts
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ImageTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+exitMe

+
+public static boolean exitMe
+
+
True if the test should just exit first time round, used for testing shared contexts +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ImageTest

+
+public ImageTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/InkscapeTest.html b/lib/javadoc/org/newdawn/slick/tests/InkscapeTest.html new file mode 100644 index 000000000..766e55c59 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/InkscapeTest.html @@ -0,0 +1,383 @@ + + + + + + +InkscapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class InkscapeTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.InkscapeTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class InkscapeTest
extends BasicGame
+ + +

+A rudimentry test of loading SVG from inkscape +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
InkscapeTest() + +
+          Create a new test for inkscape loading
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our simple test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InkscapeTest

+
+public InkscapeTest()
+
+
Create a new test for inkscape loading +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our simple test +

+

+
Parameters:
argv - The arguments passed in
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/InputProviderTest.html b/lib/javadoc/org/newdawn/slick/tests/InputProviderTest.html new file mode 100644 index 000000000..ccb343ac4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/InputProviderTest.html @@ -0,0 +1,433 @@ + + + + + + +InputProviderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class InputProviderTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.InputProviderTest
+
+
+
All Implemented Interfaces:
InputProviderListener, ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class InputProviderTest
extends BasicGame
implements InputProviderListener
+ + +

+A test for abstract input via InputProvider +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
InputProviderTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrolPressed(Command command) + +
+          A control representing an control was pressed relating to a given command.
+ voidcontrolReleased(Command command) + +
+          A control representing an control was released relating to a given command.
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InputProviderTest

+
+public InputProviderTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+controlPressed

+
+public void controlPressed(Command command)
+
+
Description copied from interface: InputProviderListener
+
A control representing an control was pressed relating to a given command. +

+

+
Specified by:
controlPressed in interface InputProviderListener
+
+
+
Parameters:
command - The command that the control related to
See Also:
InputProviderListener.controlPressed(org.newdawn.slick.command.Command)
+
+
+
+ +

+controlReleased

+
+public void controlReleased(Command command)
+
+
Description copied from interface: InputProviderListener
+
A control representing an control was released relating to a given command. +

+

+
Specified by:
controlReleased in interface InputProviderListener
+
+
+
Parameters:
command - The command that the control related to
See Also:
InputProviderListener.controlReleased(org.newdawn.slick.command.Command)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
+
+
+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/InputTest.html b/lib/javadoc/org/newdawn/slick/tests/InputTest.html new file mode 100644 index 000000000..7b135105a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/InputTest.html @@ -0,0 +1,610 @@ + + + + + + +InputTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class InputTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.InputTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class InputTest
extends BasicGame
+ + +

+A test for input +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
InputTest() + +
+          Create a new input test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, mouseDragged, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InputTest

+
+public InputTest()
+
+
Create a new input test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGame
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGame.keyReleased(int, char)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
BasicGame.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
BasicGame.mouseReleased(int, int, int)
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
BasicGame.mouseClicked(int, int, int, int)
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int change)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
Overrides:
mouseWheelMoved in class BasicGame
+
+
+
Parameters:
change - The amount of the wheel has moved
See Also:
BasicGame.mouseWheelMoved(int)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
Overrides:
mouseMoved in class BasicGame
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
BasicGame.mouseMoved(int, int, int, int)
+
+
+
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
Overrides:
controllerButtonPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
BasicGame.controllerButtonPressed(int, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed into our test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/IsoTiledTest.html b/lib/javadoc/org/newdawn/slick/tests/IsoTiledTest.html new file mode 100644 index 000000000..ac631d28c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/IsoTiledTest.html @@ -0,0 +1,383 @@ + + + + + + +IsoTiledTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class IsoTiledTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.IsoTiledTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class IsoTiledTest
extends BasicGame
+ + +

+Simple test for isometric map rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
IsoTiledTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsoTiledTest

+
+public IsoTiledTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in from the command line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/KeyRepeatTest.html b/lib/javadoc/org/newdawn/slick/tests/KeyRepeatTest.html new file mode 100644 index 000000000..761af89e4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/KeyRepeatTest.html @@ -0,0 +1,404 @@ + + + + + + +KeyRepeatTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class KeyRepeatTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.KeyRepeatTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class KeyRepeatTest
extends BasicGame
+ + +

+A test for basic image rendering +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
KeyRepeatTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+KeyRepeatTest

+
+public KeyRepeatTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/LameTest.html b/lib/javadoc/org/newdawn/slick/tests/LameTest.html new file mode 100644 index 000000000..5d3e20660 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/LameTest.html @@ -0,0 +1,383 @@ + + + + + + +LameTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class LameTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.LameTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class LameTest
extends BasicGame
+ + +

+Lame test +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
LameTest() + +
+          Create the test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LameTest

+
+public LameTest()
+
+
Create the test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/LineRenderTest.html b/lib/javadoc/org/newdawn/slick/tests/LineRenderTest.html new file mode 100644 index 000000000..2a2f4810e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/LineRenderTest.html @@ -0,0 +1,383 @@ + + + + + + +LineRenderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class LineRenderTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.LineRenderTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class LineRenderTest
extends BasicGame
+ + +

+A test for the line rendering capability +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
LineRenderTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LineRenderTest

+
+public LineRenderTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/MorphSVGTest.html b/lib/javadoc/org/newdawn/slick/tests/MorphSVGTest.html new file mode 100644 index 000000000..bea0fae6c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/MorphSVGTest.html @@ -0,0 +1,383 @@ + + + + + + +MorphSVGTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class MorphSVGTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.MorphSVGTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class MorphSVGTest
extends BasicGame
+ + +

+A test to try shape morphing +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
MorphSVGTest() + +
+          Create a simple test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MorphSVGTest

+
+public MorphSVGTest()
+
+
Create a simple test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(GameContainer, Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/MorphShapeTest.html b/lib/javadoc/org/newdawn/slick/tests/MorphShapeTest.html new file mode 100644 index 000000000..a6ca524ae --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/MorphShapeTest.html @@ -0,0 +1,383 @@ + + + + + + +MorphShapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class MorphShapeTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.MorphShapeTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class MorphShapeTest
extends BasicGame
+ + +

+A test to try shape morphing +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
MorphShapeTest() + +
+          Create a simple test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MorphShapeTest

+
+public MorphShapeTest()
+
+
Create a simple test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(GameContainer, Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/MusicListenerTest.html b/lib/javadoc/org/newdawn/slick/tests/MusicListenerTest.html new file mode 100644 index 000000000..fa6ad73eb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/MusicListenerTest.html @@ -0,0 +1,470 @@ + + + + + + +MusicListenerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class MusicListenerTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.MusicListenerTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener, MusicListener
+
+
+
+
public class MusicListenerTest
extends BasicGame
implements MusicListener
+ + +

+A test for music listeners which notify you when the music has eneded +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
MusicListenerTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to the sound test
+ voidmusicEnded(Music music) + +
+          Notification that a piece of music finished playing
+ voidmusicSwapped(Music music, + Music newMusic) + +
+          Notification that a piece of music has been swapped + for another.
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MusicListenerTest

+
+public MusicListenerTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+musicEnded

+
+public void musicEnded(Music music)
+
+
Description copied from interface: MusicListener
+
Notification that a piece of music finished playing +

+

+
Specified by:
musicEnded in interface MusicListener
+
+
+
Parameters:
music - The music that finished playing
See Also:
MusicListener.musicEnded(org.newdawn.slick.Music)
+
+
+
+ +

+musicSwapped

+
+public void musicSwapped(Music music,
+                         Music newMusic)
+
+
Description copied from interface: MusicListener
+
Notification that a piece of music has been swapped + for another. +

+

+
Specified by:
musicSwapped in interface MusicListener
+
+
+
Parameters:
music - The music that has been swapped out
newMusic - The new music we're playing
See Also:
MusicListener.musicSwapped(org.newdawn.slick.Music, org.newdawn.slick.Music)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to the sound test +

+

+
+
+
+
Parameters:
argv - The arguments provided to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/NavMeshTest.html b/lib/javadoc/org/newdawn/slick/tests/NavMeshTest.html new file mode 100644 index 000000000..a655215bd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/NavMeshTest.html @@ -0,0 +1,516 @@ + + + + + + +NavMeshTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class NavMeshTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.NavMeshTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener, PathFindingContext
+
+
+
+
public class NavMeshTest
extends BasicGame
implements PathFindingContext
+ + +

+A test to show nav-mesh generation on tile based maps. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
NavMeshTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MovergetMover() + +
+          Get the object being moved along the path if any
+ intgetSearchDistance() + +
+          Get the distance that has been searched to reach this point
+ intgetSourceX() + +
+          Get the x coordinate of the source location
+ intgetSourceY() + +
+          Get the y coordinate of the source location
+ voidinit(GameContainer container) + +
+          Initialise resources and the map data
+static voidmain(java.lang.String[] argv) + +
+          Entry point to out application
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game - in this case render the map and diagnostic data
+ voidupdate(GameContainer container, + int delta) + +
+          Update data map etc
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NavMeshTest

+
+public NavMeshTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Initialise resources and the map data +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - the container the game is running in +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Update data map etc +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Render the game - in this case render the map and diagnostic data +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container we're running the game in
g - The graphics context on which to render +
Throws: +
SlickException - Throw to indicate a internal error
+
+
+
+ +

+getMover

+
+public Mover getMover()
+
+
Description copied from interface: PathFindingContext
+
Get the object being moved along the path if any +

+

+
Specified by:
getMover in interface PathFindingContext
+
+
+ +
Returns:
The object being moved along the path
+
+
+
+ +

+getSearchDistance

+
+public int getSearchDistance()
+
+
Description copied from interface: PathFindingContext
+
Get the distance that has been searched to reach this point +

+

+
Specified by:
getSearchDistance in interface PathFindingContext
+
+
+ +
Returns:
The distance that has been search to reach this point
+
+
+
+ +

+getSourceX

+
+public int getSourceX()
+
+
Description copied from interface: PathFindingContext
+
Get the x coordinate of the source location +

+

+
Specified by:
getSourceX in interface PathFindingContext
+
+
+ +
Returns:
The x coordinate of the source location
+
+
+
+ +

+getSourceY

+
+public int getSourceY()
+
+
Description copied from interface: PathFindingContext
+
Get the y coordinate of the source location +

+

+
Specified by:
getSourceY in interface PathFindingContext
+
+
+ +
Returns:
The y coordinate of the source location
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to out application +

+

+
+
+
+
Parameters:
argv - The arguments passed to the application
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/PackedSheetTest.html b/lib/javadoc/org/newdawn/slick/tests/PackedSheetTest.html new file mode 100644 index 000000000..3b50d0723 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/PackedSheetTest.html @@ -0,0 +1,404 @@ + + + + + + +PackedSheetTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class PackedSheetTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.PackedSheetTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class PackedSheetTest
extends BasicGame
+ + +

+A test for packed sprite sheets +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
PackedSheetTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PackedSheetTest

+
+public PackedSheetTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ParticleTest.html b/lib/javadoc/org/newdawn/slick/tests/ParticleTest.html new file mode 100644 index 000000000..1bc279bf5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ParticleTest.html @@ -0,0 +1,404 @@ + + + + + + +ParticleTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ParticleTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ParticleTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ParticleTest
extends BasicGame
+ + +

+A particle test using built in effects +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ParticleTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParticleTest

+
+public ParticleTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/PedigreeTest.html b/lib/javadoc/org/newdawn/slick/tests/PedigreeTest.html new file mode 100644 index 000000000..ead137722 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/PedigreeTest.html @@ -0,0 +1,433 @@ + + + + + + +PedigreeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class PedigreeTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.PedigreeTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class PedigreeTest
extends BasicGame
+ + +

+A test for loading editing particle systems +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
PedigreeTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PedigreeTest

+
+public PedigreeTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/PolygonTest.html b/lib/javadoc/org/newdawn/slick/tests/PolygonTest.html new file mode 100644 index 000000000..72f64d681 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/PolygonTest.html @@ -0,0 +1,383 @@ + + + + + + +PolygonTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class PolygonTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.PolygonTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class PolygonTest
extends BasicGame
+ + +

+A test for polygon collision +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
PolygonTest() + +
+          Create the test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point into our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PolygonTest

+
+public PolygonTest()
+
+
Create the test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point into our test +

+

+
Parameters:
argv - The arguments passed on the command line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/PureFontTest.html b/lib/javadoc/org/newdawn/slick/tests/PureFontTest.html new file mode 100644 index 000000000..88d2e51bc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/PureFontTest.html @@ -0,0 +1,407 @@ + + + + + + +PureFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class PureFontTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.PureFontTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class PureFontTest
extends BasicGame
+ + +

+A test of the font rendering capabilities +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
PureFontTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PureFontTest

+
+public PureFontTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SavedStateTest.html b/lib/javadoc/org/newdawn/slick/tests/SavedStateTest.html new file mode 100644 index 000000000..3df5125e9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SavedStateTest.html @@ -0,0 +1,440 @@ + + + + + + +SavedStateTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SavedStateTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SavedStateTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, ComponentListener, InputListener, KeyListener, MouseListener
+
+
+
+
public class SavedStateTest
extends BasicGame
implements ComponentListener
+ + +

+A test of the the local storage utilities +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SavedStateTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcomponentActivated(AbstractComponent source) + +
+          Notification that a component has been activated (button clicked, + text field entered, etc)
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SavedStateTest

+
+public SavedStateTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Specified by:
render in interface Game
+
+
+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
+
+
+
Parameters:
argv - The arguments passed in the test
+
+
+
+ +

+componentActivated

+
+public void componentActivated(AbstractComponent source)
+
+
Description copied from interface: ComponentListener
+
Notification that a component has been activated (button clicked, + text field entered, etc) +

+

+
Specified by:
componentActivated in interface ComponentListener
+
+
+
Parameters:
source - The source of the event
See Also:
ComponentListener.componentActivated(org.newdawn.slick.gui.AbstractComponent)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ScalableTest.html b/lib/javadoc/org/newdawn/slick/tests/ScalableTest.html new file mode 100644 index 000000000..be54d83cb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ScalableTest.html @@ -0,0 +1,383 @@ + + + + + + +ScalableTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ScalableTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ScalableTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ScalableTest
extends BasicGame
+ + +

+A test for a scalable game +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ScalableTest() + +
+          Simple test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ScalableTest

+
+public ScalableTest()
+
+
Simple test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/ShapeTest.html b/lib/javadoc/org/newdawn/slick/tests/ShapeTest.html new file mode 100644 index 000000000..5330920e7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/ShapeTest.html @@ -0,0 +1,452 @@ + + + + + + +ShapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class ShapeTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.ShapeTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class ShapeTest
extends BasicGame
+ + +

+A geomertry test +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
ShapeTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcreatePoly(float x, + float y) + +
+           
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ShapeTest

+
+public ShapeTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+createPoly

+
+public void createPoly(float x,
+                       float y)
+
+
+
+
+
+
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGame
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGame.keyReleased(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SlickCallableTest.html b/lib/javadoc/org/newdawn/slick/tests/SlickCallableTest.html new file mode 100644 index 000000000..670efaa8a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SlickCallableTest.html @@ -0,0 +1,404 @@ + + + + + + +SlickCallableTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SlickCallableTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SlickCallableTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class SlickCallableTest
extends BasicGame
+ + +

+A test for slick callables giving the chance to perform normal GL in mid Slick render +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SlickCallableTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidrenderGL() + +
+          Render the GL scene, this isn't efficient and if you know + OpenGL I'm assuming you can see why.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SlickCallableTest

+
+public SlickCallableTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+renderGL

+
+public void renderGL()
+
+
Render the GL scene, this isn't efficient and if you know + OpenGL I'm assuming you can see why. If not, you probably + don't want to use this feature anyway +

+

+
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SoundPositionTest.html b/lib/javadoc/org/newdawn/slick/tests/SoundPositionTest.html new file mode 100644 index 000000000..ce3182a6e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SoundPositionTest.html @@ -0,0 +1,404 @@ + + + + + + +SoundPositionTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SoundPositionTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SoundPositionTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class SoundPositionTest
extends BasicGame
+ + +

+A test for the sound system (positioning) of the library +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SoundPositionTest() + +
+          Create a new test for sounds
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to the sound test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SoundPositionTest

+
+public SoundPositionTest()
+
+
Create a new test for sounds +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to the sound test +

+

+
Parameters:
argv - The arguments provided to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SoundTest.html b/lib/javadoc/org/newdawn/slick/tests/SoundTest.html new file mode 100644 index 000000000..037691e05 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SoundTest.html @@ -0,0 +1,404 @@ + + + + + + +SoundTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SoundTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SoundTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class SoundTest
extends BasicGame
+ + +

+A test for the sound system of the library +

+ +

+

+
Author:
+
kevin, aaron
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SoundTest() + +
+          Create a new test for sounds
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to the sound test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SoundTest

+
+public SoundTest()
+
+
Create a new test for sounds +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to the sound test +

+

+
Parameters:
argv - The arguments provided to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SoundURLTest.html b/lib/javadoc/org/newdawn/slick/tests/SoundURLTest.html new file mode 100644 index 000000000..aa041e2ce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SoundURLTest.html @@ -0,0 +1,404 @@ + + + + + + +SoundURLTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SoundURLTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SoundURLTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class SoundURLTest
extends BasicGame
+ + +

+A test for the sound system of the library +

+ +

+

+
Author:
+
kevin, aaron
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SoundURLTest() + +
+          Create a new test for sounds
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to the sound test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SoundURLTest

+
+public SoundURLTest()
+
+
Create a new test for sounds +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to the sound test +

+

+
Parameters:
argv - The arguments provided to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/SpriteSheetFontTest.html b/lib/javadoc/org/newdawn/slick/tests/SpriteSheetFontTest.html new file mode 100644 index 000000000..1ece36848 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/SpriteSheetFontTest.html @@ -0,0 +1,407 @@ + + + + + + +SpriteSheetFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class SpriteSheetFontTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.SpriteSheetFontTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class SpriteSheetFontTest
extends BasicGame
+ + +

+Tests the SpriteSheetFont. +

+ +

+

+
Author:
+
Onno Scheffers
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
SpriteSheetFontTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SpriteSheetFontTest

+
+public SpriteSheetFontTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer,org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer,int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/StateBasedTest.html b/lib/javadoc/org/newdawn/slick/tests/StateBasedTest.html new file mode 100644 index 000000000..6793ef455 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/StateBasedTest.html @@ -0,0 +1,302 @@ + + + + + + +StateBasedTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class StateBasedTest

+
+java.lang.Object
+  extended by org.newdawn.slick.state.StateBasedGame
+      extended by org.newdawn.slick.tests.StateBasedTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class StateBasedTest
extends StateBasedGame
+ + +

+A test for the multi-state based functionality +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StateBasedTest() + +
+          Create a new test
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidinitStatesList(GameContainer container) + +
+          Initialise the list of states making up this game
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ + + + + + + +
Methods inherited from class org.newdawn.slick.state.StateBasedGame
addState, closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enterState, enterState, getContainer, getCurrentState, getCurrentStateID, getState, getStateCount, getTitle, init, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, postRenderState, postUpdateState, preRenderState, preUpdateState, render, setInput, update
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StateBasedTest

+
+public StateBasedTest()
+
+
Create a new test +

+

+ + + + + + + + +
+Method Detail
+ +

+initStatesList

+
+public void initStatesList(GameContainer container)
+
+
Description copied from class: StateBasedGame
+
Initialise the list of states making up this game +

+

+
Specified by:
initStatesList in class StateBasedGame
+
+
+
Parameters:
container - The container holding the game
See Also:
StateBasedGame.initStatesList(org.newdawn.slick.GameContainer)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TestBox.html b/lib/javadoc/org/newdawn/slick/tests/TestBox.html new file mode 100644 index 000000000..5e400a5c4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TestBox.html @@ -0,0 +1,857 @@ + + + + + + +TestBox (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TestBox

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TestBox
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TestBox
extends BasicGame
+ + +

+A test box containing a bunch of tests that can be used for quickly sanity + checking tests. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TestBox() + +
+          Create a new box containing all the tests
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddGame(java.lang.Class game) + +
+          Add a game to the box
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ voidinit(GameContainer c) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, getTitle, inputEnded, inputStarted, isAcceptingInput, mouseClicked, mouseDragged, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestBox

+
+public TestBox()
+
+
Create a new box containing all the tests +

+

+ + + + + + + + +
+Method Detail
+ +

+addGame

+
+public void addGame(java.lang.Class game)
+
+
Add a game to the box +

+

+
Parameters:
game - The game to add to the test box
+
+
+
+ +

+init

+
+public void init(GameContainer c)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
c - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
Overrides:
controllerButtonPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
BasicGame.controllerButtonPressed(int, int)
+
+
+
+ +

+controllerButtonReleased

+
+public void controllerButtonReleased(int controller,
+                                     int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been released on + the controller. +

+

+
Specified by:
controllerButtonReleased in interface ControllerListener
Overrides:
controllerButtonReleased in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
See Also:
BasicGame.controllerButtonReleased(int, int)
+
+
+
+ +

+controllerDownPressed

+
+public void controllerDownPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been pressed on + the controller. +

+

+
Specified by:
controllerDownPressed in interface ControllerListener
Overrides:
controllerDownPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
BasicGame.controllerDownPressed(int)
+
+
+
+ +

+controllerDownReleased

+
+public void controllerDownReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been released on + the controller. +

+

+
Specified by:
controllerDownReleased in interface ControllerListener
Overrides:
controllerDownReleased in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
BasicGame.controllerDownReleased(int)
+
+
+
+ +

+controllerLeftPressed

+
+public void controllerLeftPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been pressed on + the controller. +

+

+
Specified by:
controllerLeftPressed in interface ControllerListener
Overrides:
controllerLeftPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
BasicGame.controllerLeftPressed(int)
+
+
+
+ +

+controllerLeftReleased

+
+public void controllerLeftReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been released on + the controller. +

+

+
Specified by:
controllerLeftReleased in interface ControllerListener
Overrides:
controllerLeftReleased in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
BasicGame.controllerLeftReleased(int)
+
+
+
+ +

+controllerRightPressed

+
+public void controllerRightPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been pressed on + the controller. +

+

+
Specified by:
controllerRightPressed in interface ControllerListener
Overrides:
controllerRightPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
BasicGame.controllerRightPressed(int)
+
+
+
+ +

+controllerRightReleased

+
+public void controllerRightReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been released on + the controller. +

+

+
Specified by:
controllerRightReleased in interface ControllerListener
Overrides:
controllerRightReleased in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
BasicGame.controllerRightReleased(int)
+
+
+
+ +

+controllerUpPressed

+
+public void controllerUpPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been pressed on + the controller. +

+

+
Specified by:
controllerUpPressed in interface ControllerListener
Overrides:
controllerUpPressed in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
BasicGame.controllerUpPressed(int)
+
+
+
+ +

+controllerUpReleased

+
+public void controllerUpReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been released on + the controller. +

+

+
Specified by:
controllerUpReleased in interface ControllerListener
Overrides:
controllerUpReleased in class BasicGame
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
BasicGame.controllerUpReleased(int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGame
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGame.keyReleased(int, char)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
Overrides:
mouseMoved in class BasicGame
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
BasicGame.mouseMoved(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
BasicGame.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class BasicGame
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
BasicGame.mouseReleased(int, int, int)
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int change)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
Overrides:
mouseWheelMoved in class BasicGame
+
+
+
Parameters:
change - The amount of the wheel has moved
See Also:
BasicGame.mouseWheelMoved(int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TestUtils.html b/lib/javadoc/org/newdawn/slick/tests/TestUtils.html new file mode 100644 index 000000000..ae5b424c0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TestUtils.html @@ -0,0 +1,347 @@ + + + + + + +TestUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TestUtils

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.TestUtils
+
+
+
+
public class TestUtils
extends java.lang.Object
+ + +

+A simple utility test to use the internal slick API without + the slick framework. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit() + +
+          Initialise resources
+static voidmain(java.lang.String[] argv) + +
+          Entry point to the tests
+ voidrender() + +
+          Game loop render
+ voidstart() + +
+          Start the test
+ voidupdate() + +
+          Game loop update
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestUtils

+
+public TestUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+start

+
+public void start()
+
+
Start the test +

+

+
+
+
+
+ +

+init

+
+public void init()
+
+
Initialise resources +

+

+
+
+
+
+ +

+update

+
+public void update()
+
+
Game loop update +

+

+
+
+
+
+ +

+render

+
+public void render()
+
+
Game loop render +

+

+
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to the tests +

+

+
Parameters:
argv - The arguments to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TexturePaintTest.html b/lib/javadoc/org/newdawn/slick/tests/TexturePaintTest.html new file mode 100644 index 000000000..496ac0a44 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TexturePaintTest.html @@ -0,0 +1,383 @@ + + + + + + +TexturePaintTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TexturePaintTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TexturePaintTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TexturePaintTest
extends BasicGame
+ + +

+Test to emulate texture paint +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TexturePaintTest() + +
+          Create the test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TexturePaintTest

+
+public TexturePaintTest()
+
+
Create the test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+            throws SlickException
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used. +
Throws: +
SlickException - Throw to indicate a internal error
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TileMapTest.html b/lib/javadoc/org/newdawn/slick/tests/TileMapTest.html new file mode 100644 index 000000000..aa6cb8fb4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TileMapTest.html @@ -0,0 +1,404 @@ + + + + + + +TileMapTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TileMapTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TileMapTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TileMapTest
extends BasicGame
+ + +

+A test of the tile map system based around the TilED (http://www.mapeditor.org) tool +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TileMapTest() + +
+          Create our tile map test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TileMapTest

+
+public TileMapTest()
+
+
Create our tile map test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TransformTest.html b/lib/javadoc/org/newdawn/slick/tests/TransformTest.html new file mode 100644 index 000000000..be0c2ffe4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TransformTest.html @@ -0,0 +1,431 @@ + + + + + + +TransformTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TransformTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TransformTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TransformTest
extends BasicGame
+ + +

+A test for transforming the graphics context +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TransformTest() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer contiainer, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TransformTest

+
+public TransformTest()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer contiainer,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
contiainer - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGame
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGame.keyReleased(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TransformTest2.html b/lib/javadoc/org/newdawn/slick/tests/TransformTest2.html new file mode 100644 index 000000000..dda5c2ea6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TransformTest2.html @@ -0,0 +1,431 @@ + + + + + + +TransformTest2 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TransformTest2

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TransformTest2
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TransformTest2
extends BasicGame
+ + +

+A test for transforming the graphics context +

+ +

+

+
Author:
+
Jesse Aldridge
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TransformTest2() + +
+          Create a new test of graphics context rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer contiainer, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TransformTest2

+
+public TransformTest2()
+
+
Create a new test of graphics context rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer contiainer,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
contiainer - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGame
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGame.keyReleased(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TransitionTest.html b/lib/javadoc/org/newdawn/slick/tests/TransitionTest.html new file mode 100644 index 000000000..78d6351f4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TransitionTest.html @@ -0,0 +1,327 @@ + + + + + + +TransitionTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TransitionTest

+
+java.lang.Object
+  extended by org.newdawn.slick.state.StateBasedGame
+      extended by org.newdawn.slick.tests.TransitionTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TransitionTest
extends StateBasedGame
+ + +

+A test to view the different transitions that are currently implemented +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TransitionTest() + +
+          Test the transitions implemented
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Transition[]getNextTransitionPair() + +
+          Get the next transition pair that we'lluse
+ voidinitStatesList(GameContainer container) + +
+          Initialise the list of states making up this game
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ + + + + + + +
Methods inherited from class org.newdawn.slick.state.StateBasedGame
addState, closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enterState, enterState, getContainer, getCurrentState, getCurrentStateID, getState, getStateCount, getTitle, init, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, postRenderState, postUpdateState, preRenderState, preUpdateState, render, setInput, update
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TransitionTest

+
+public TransitionTest()
+
+
Test the transitions implemented +

+

+ + + + + + + + +
+Method Detail
+ +

+initStatesList

+
+public void initStatesList(GameContainer container)
+                    throws SlickException
+
+
Description copied from class: StateBasedGame
+
Initialise the list of states making up this game +

+

+
Specified by:
initStatesList in class StateBasedGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Indicates a failure to initialise the state based game resources
See Also:
StateBasedGame.initStatesList(org.newdawn.slick.GameContainer)
+
+
+
+ +

+getNextTransitionPair

+
+public Transition[] getNextTransitionPair()
+
+
Get the next transition pair that we'lluse +

+

+ +
Returns:
The pair of transitions used to enter and leave the next state
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed to the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TransparentColorTest.html b/lib/javadoc/org/newdawn/slick/tests/TransparentColorTest.html new file mode 100644 index 000000000..d6db36d7c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TransparentColorTest.html @@ -0,0 +1,404 @@ + + + + + + +TransparentColorTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TransparentColorTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TransparentColorTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TransparentColorTest
extends BasicGame
+ + +

+A test for transparent colour specification +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TransparentColorTest() + +
+          Create a new image rendering test
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TransparentColorTest

+
+public TransparentColorTest()
+
+
Create a new image rendering test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments to pass into the test
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/TrueTypeFontPerformanceTest.html b/lib/javadoc/org/newdawn/slick/tests/TrueTypeFontPerformanceTest.html new file mode 100644 index 000000000..90d28258d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/TrueTypeFontPerformanceTest.html @@ -0,0 +1,409 @@ + + + + + + +TrueTypeFontPerformanceTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class TrueTypeFontPerformanceTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.TrueTypeFontPerformanceTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class TrueTypeFontPerformanceTest
extends BasicGame
+ + +

+A test of the font rendering capabilities +

+ +

+

+
Author:
+
James Chambers (Jimmy), Kevin Glass (kevglass)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
TrueTypeFontPerformanceTest() + +
+          Create a new test for font rendering
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+static voidmain(java.lang.String[] argv) + +
+          Entry point to our test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TrueTypeFontPerformanceTest

+
+public TrueTypeFontPerformanceTest()
+
+
Create a new test for font rendering +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
Game.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, + org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, + int)
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class BasicGame
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
BasicGame.keyPressed(int, char)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] argv)
+
+
Entry point to our test +

+

+
Parameters:
argv - The arguments passed in the test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/UnicodeFontTest.html b/lib/javadoc/org/newdawn/slick/tests/UnicodeFontTest.html new file mode 100644 index 000000000..f3028727f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/UnicodeFontTest.html @@ -0,0 +1,385 @@ + + + + + + +UnicodeFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests +
+Class UnicodeFontTest

+
+java.lang.Object
+  extended by org.newdawn.slick.BasicGame
+      extended by org.newdawn.slick.tests.UnicodeFontTest
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener
+
+
+
+
public class UnicodeFontTest
extends BasicGame
+ + +

+A simple test of the unicode font functionality provided +

+ +

+

+
Author:
+
Nathan Sweet
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.BasicGame
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp
+  + + + + + + + + + + +
+Constructor Summary
UnicodeFontTest() + +
+          Create the simple font test
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidinit(GameContainer container) + +
+          Initialise the game.
+static voidmain(java.lang.String[] args) + +
+          Entry point to our simple test
+ voidrender(GameContainer container, + Graphics g) + +
+          Render the game's screen here.
+ voidupdate(GameContainer container, + int delta) + +
+          Update the game logic here.
+ + + + + + + +
Methods inherited from class org.newdawn.slick.BasicGame
closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, getTitle, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UnicodeFontTest

+
+public UnicodeFontTest()
+
+
Create the simple font test +

+

+ + + + + + + + +
+Method Detail
+ +

+init

+
+public void init(GameContainer container)
+          throws SlickException
+
+
Description copied from interface: Game
+
Initialise the game. This can be used to load static resources. It's called + before the game loop starts +

+

+
Specified by:
init in interface Game
Specified by:
init in class BasicGame
+
+
+
Parameters:
container - The container holding the game +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.init(org.newdawn.slick.GameContainer)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   Graphics g)
+
+
Description copied from interface: Game
+
Render the game's screen here. +

+

+
Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering + routines can also be used.
See Also:
Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   int delta)
+            throws SlickException
+
+
Description copied from interface: Game
+
Update the game logic here. No rendering should take place in this method + though it won't do any harm. +

+

+
Specified by:
update in interface Game
Specified by:
update in class BasicGame
+
+
+
Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds +
Throws: +
SlickException - Throw to indicate an internal error
See Also:
BasicGame.update(org.newdawn.slick.GameContainer, int)
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+                 throws SlickException,
+                        java.io.IOException
+
+
Entry point to our simple test +

+

+
Parameters:
args - The arguments supplied to the test +
Throws: +
SlickException - Indicates a failure loading or processing resources +
java.io.IOException - Indicates a failure loading the font
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/AlphaMapTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/AlphaMapTest.html new file mode 100644 index 000000000..49dab5631 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/AlphaMapTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.AlphaMapTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.AlphaMapTest

+
+No usage of org.newdawn.slick.tests.AlphaMapTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/AnimationTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/AnimationTest.html new file mode 100644 index 000000000..ce35fa2bb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/AnimationTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.AnimationTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.AnimationTest

+
+No usage of org.newdawn.slick.tests.AnimationTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/AntiAliasTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/AntiAliasTest.html new file mode 100644 index 000000000..fc500d3a9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/AntiAliasTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.AntiAliasTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.AntiAliasTest

+
+No usage of org.newdawn.slick.tests.AntiAliasTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/BigImageTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/BigImageTest.html new file mode 100644 index 000000000..01a2ef4c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/BigImageTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.BigImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.BigImageTest

+
+No usage of org.newdawn.slick.tests.BigImageTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/BigSpriteSheetTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/BigSpriteSheetTest.html new file mode 100644 index 000000000..c0e6a4b86 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/BigSpriteSheetTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.BigSpriteSheetTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.BigSpriteSheetTest

+
+No usage of org.newdawn.slick.tests.BigSpriteSheetTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/CachedRenderTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/CachedRenderTest.html new file mode 100644 index 000000000..df1015430 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/CachedRenderTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.CachedRenderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.CachedRenderTest

+
+No usage of org.newdawn.slick.tests.CachedRenderTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasContainerTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasContainerTest.html new file mode 100644 index 000000000..2bcc503ff --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasContainerTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.CanvasContainerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.CanvasContainerTest

+
+No usage of org.newdawn.slick.tests.CanvasContainerTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasSizeTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasSizeTest.html new file mode 100644 index 000000000..a01924de5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/CanvasSizeTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.CanvasSizeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.CanvasSizeTest

+
+No usage of org.newdawn.slick.tests.CanvasSizeTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ClipTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ClipTest.html new file mode 100644 index 000000000..abe9d2808 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ClipTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ClipTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ClipTest

+
+No usage of org.newdawn.slick.tests.ClipTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/CopyAreaAlphaTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/CopyAreaAlphaTest.html new file mode 100644 index 000000000..8b657fa18 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/CopyAreaAlphaTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.CopyAreaAlphaTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.CopyAreaAlphaTest

+
+No usage of org.newdawn.slick.tests.CopyAreaAlphaTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/CurveTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/CurveTest.html new file mode 100644 index 000000000..a7ebc05df --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/CurveTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.CurveTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.CurveTest

+
+No usage of org.newdawn.slick.tests.CurveTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/DeferredLoadingTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/DeferredLoadingTest.html new file mode 100644 index 000000000..c05a8fba5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/DeferredLoadingTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.DeferredLoadingTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.DeferredLoadingTest

+
+No usage of org.newdawn.slick.tests.DeferredLoadingTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/DistanceFieldTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/DistanceFieldTest.html new file mode 100644 index 000000000..bbb08ac95 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/DistanceFieldTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.DistanceFieldTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.DistanceFieldTest

+
+No usage of org.newdawn.slick.tests.DistanceFieldTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/DoubleClickTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/DoubleClickTest.html new file mode 100644 index 000000000..299b22d37 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/DoubleClickTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.DoubleClickTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.DoubleClickTest

+
+No usage of org.newdawn.slick.tests.DoubleClickTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/DuplicateEmitterTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/DuplicateEmitterTest.html new file mode 100644 index 000000000..083f1a2a8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/DuplicateEmitterTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.DuplicateEmitterTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.DuplicateEmitterTest

+
+No usage of org.newdawn.slick.tests.DuplicateEmitterTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/FlashTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/FlashTest.html new file mode 100644 index 000000000..3667c820c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/FlashTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.FlashTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.FlashTest

+
+No usage of org.newdawn.slick.tests.FlashTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/FontPerformanceTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/FontPerformanceTest.html new file mode 100644 index 000000000..42ab8c720 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/FontPerformanceTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.FontPerformanceTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.FontPerformanceTest

+
+No usage of org.newdawn.slick.tests.FontPerformanceTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/FontTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/FontTest.html new file mode 100644 index 000000000..543248fd5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/FontTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.FontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.FontTest

+
+No usage of org.newdawn.slick.tests.FontTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GUITest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GUITest.html new file mode 100644 index 000000000..dd8efff34 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GUITest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GUITest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GUITest

+
+No usage of org.newdawn.slick.tests.GUITest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GeomAccuracyTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomAccuracyTest.html new file mode 100644 index 000000000..55910ea8a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomAccuracyTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GeomAccuracyTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GeomAccuracyTest

+
+No usage of org.newdawn.slick.tests.GeomAccuracyTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GeomTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomTest.html new file mode 100644 index 000000000..37c8595b9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GeomTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GeomTest

+
+No usage of org.newdawn.slick.tests.GeomTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTest.html new file mode 100644 index 000000000..522c56e9f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GeomUtilTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GeomUtilTest

+
+No usage of org.newdawn.slick.tests.GeomUtilTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTileTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTileTest.html new file mode 100644 index 000000000..2f88a8f9b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GeomUtilTileTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GeomUtilTileTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GeomUtilTileTest

+
+No usage of org.newdawn.slick.tests.GeomUtilTileTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GradientImageTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GradientImageTest.html new file mode 100644 index 000000000..400939370 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GradientImageTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GradientImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GradientImageTest

+
+No usage of org.newdawn.slick.tests.GradientImageTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GradientTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GradientTest.html new file mode 100644 index 000000000..ef1d6018d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GradientTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GradientTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GradientTest

+
+No usage of org.newdawn.slick.tests.GradientTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/GraphicsTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/GraphicsTest.html new file mode 100644 index 000000000..910ad94b6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/GraphicsTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.GraphicsTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.GraphicsTest

+
+No usage of org.newdawn.slick.tests.GraphicsTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferEndianTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferEndianTest.html new file mode 100644 index 000000000..e5eb21d3f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferEndianTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageBufferEndianTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageBufferEndianTest

+
+No usage of org.newdawn.slick.tests.ImageBufferEndianTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferTest.html new file mode 100644 index 000000000..49d9c59ce --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageBufferTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageBufferTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageBufferTest

+
+No usage of org.newdawn.slick.tests.ImageBufferTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageCornerTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageCornerTest.html new file mode 100644 index 000000000..6f1b13069 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageCornerTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageCornerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageCornerTest

+
+No usage of org.newdawn.slick.tests.ImageCornerTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageGraphicsTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageGraphicsTest.html new file mode 100644 index 000000000..4f5eddea4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageGraphicsTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageGraphicsTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageGraphicsTest

+
+No usage of org.newdawn.slick.tests.ImageGraphicsTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageMemTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageMemTest.html new file mode 100644 index 000000000..77c13b03c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageMemTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageMemTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageMemTest

+
+No usage of org.newdawn.slick.tests.ImageMemTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageOutTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageOutTest.html new file mode 100644 index 000000000..17e09dcba --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageOutTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageOutTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageOutTest

+
+No usage of org.newdawn.slick.tests.ImageOutTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageReadTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageReadTest.html new file mode 100644 index 000000000..052718164 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageReadTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageReadTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageReadTest

+
+No usage of org.newdawn.slick.tests.ImageReadTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ImageTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageTest.html new file mode 100644 index 000000000..eb7a144c7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ImageTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ImageTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ImageTest

+
+No usage of org.newdawn.slick.tests.ImageTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/InkscapeTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/InkscapeTest.html new file mode 100644 index 000000000..9f62491a2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/InkscapeTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.InkscapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.InkscapeTest

+
+No usage of org.newdawn.slick.tests.InkscapeTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/InputProviderTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/InputProviderTest.html new file mode 100644 index 000000000..21842e7b7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/InputProviderTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.InputProviderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.InputProviderTest

+
+No usage of org.newdawn.slick.tests.InputProviderTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/InputTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/InputTest.html new file mode 100644 index 000000000..f18637708 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/InputTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.InputTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.InputTest

+
+No usage of org.newdawn.slick.tests.InputTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/IsoTiledTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/IsoTiledTest.html new file mode 100644 index 000000000..3d2177a13 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/IsoTiledTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.IsoTiledTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.IsoTiledTest

+
+No usage of org.newdawn.slick.tests.IsoTiledTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/KeyRepeatTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/KeyRepeatTest.html new file mode 100644 index 000000000..b88fd2ea3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/KeyRepeatTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.KeyRepeatTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.KeyRepeatTest

+
+No usage of org.newdawn.slick.tests.KeyRepeatTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/LameTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/LameTest.html new file mode 100644 index 000000000..5b998b0a4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/LameTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.LameTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.LameTest

+
+No usage of org.newdawn.slick.tests.LameTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/LineRenderTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/LineRenderTest.html new file mode 100644 index 000000000..be0e639d0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/LineRenderTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.LineRenderTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.LineRenderTest

+
+No usage of org.newdawn.slick.tests.LineRenderTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/MorphSVGTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/MorphSVGTest.html new file mode 100644 index 000000000..b5b144b94 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/MorphSVGTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.MorphSVGTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.MorphSVGTest

+
+No usage of org.newdawn.slick.tests.MorphSVGTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/MorphShapeTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/MorphShapeTest.html new file mode 100644 index 000000000..697826fe2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/MorphShapeTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.MorphShapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.MorphShapeTest

+
+No usage of org.newdawn.slick.tests.MorphShapeTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/MusicListenerTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/MusicListenerTest.html new file mode 100644 index 000000000..bb6eeb9b9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/MusicListenerTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.MusicListenerTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.MusicListenerTest

+
+No usage of org.newdawn.slick.tests.MusicListenerTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/NavMeshTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/NavMeshTest.html new file mode 100644 index 000000000..f19e963d9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/NavMeshTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.NavMeshTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.NavMeshTest

+
+No usage of org.newdawn.slick.tests.NavMeshTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/PackedSheetTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/PackedSheetTest.html new file mode 100644 index 000000000..782328a32 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/PackedSheetTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.PackedSheetTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.PackedSheetTest

+
+No usage of org.newdawn.slick.tests.PackedSheetTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ParticleTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ParticleTest.html new file mode 100644 index 000000000..6001e437b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ParticleTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ParticleTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ParticleTest

+
+No usage of org.newdawn.slick.tests.ParticleTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/PedigreeTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/PedigreeTest.html new file mode 100644 index 000000000..302d6bf4f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/PedigreeTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.PedigreeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.PedigreeTest

+
+No usage of org.newdawn.slick.tests.PedigreeTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/PolygonTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/PolygonTest.html new file mode 100644 index 000000000..b37f83212 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/PolygonTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.PolygonTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.PolygonTest

+
+No usage of org.newdawn.slick.tests.PolygonTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/PureFontTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/PureFontTest.html new file mode 100644 index 000000000..7f363a73c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/PureFontTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.PureFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.PureFontTest

+
+No usage of org.newdawn.slick.tests.PureFontTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SavedStateTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SavedStateTest.html new file mode 100644 index 000000000..d05f77988 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SavedStateTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SavedStateTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SavedStateTest

+
+No usage of org.newdawn.slick.tests.SavedStateTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ScalableTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ScalableTest.html new file mode 100644 index 000000000..d0f4e7be3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ScalableTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ScalableTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ScalableTest

+
+No usage of org.newdawn.slick.tests.ScalableTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/ShapeTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/ShapeTest.html new file mode 100644 index 000000000..3b02678a7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/ShapeTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.ShapeTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.ShapeTest

+
+No usage of org.newdawn.slick.tests.ShapeTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SlickCallableTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SlickCallableTest.html new file mode 100644 index 000000000..57c95aea2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SlickCallableTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SlickCallableTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SlickCallableTest

+
+No usage of org.newdawn.slick.tests.SlickCallableTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SoundPositionTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundPositionTest.html new file mode 100644 index 000000000..26b4f7d25 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundPositionTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SoundPositionTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SoundPositionTest

+
+No usage of org.newdawn.slick.tests.SoundPositionTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SoundTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundTest.html new file mode 100644 index 000000000..7186fbf2c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SoundTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SoundTest

+
+No usage of org.newdawn.slick.tests.SoundTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SoundURLTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundURLTest.html new file mode 100644 index 000000000..e81234199 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SoundURLTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SoundURLTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SoundURLTest

+
+No usage of org.newdawn.slick.tests.SoundURLTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/SpriteSheetFontTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/SpriteSheetFontTest.html new file mode 100644 index 000000000..7d117b973 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/SpriteSheetFontTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.SpriteSheetFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.SpriteSheetFontTest

+
+No usage of org.newdawn.slick.tests.SpriteSheetFontTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/StateBasedTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/StateBasedTest.html new file mode 100644 index 000000000..c2db2cd02 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/StateBasedTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.StateBasedTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.StateBasedTest

+
+No usage of org.newdawn.slick.tests.StateBasedTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TestBox.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TestBox.html new file mode 100644 index 000000000..46c1aec1b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TestBox.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TestBox (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TestBox

+
+No usage of org.newdawn.slick.tests.TestBox +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TestUtils.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TestUtils.html new file mode 100644 index 000000000..4d160165c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TestUtils.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TestUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TestUtils

+
+No usage of org.newdawn.slick.tests.TestUtils +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TexturePaintTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TexturePaintTest.html new file mode 100644 index 000000000..c34f2c833 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TexturePaintTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TexturePaintTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TexturePaintTest

+
+No usage of org.newdawn.slick.tests.TexturePaintTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TileMapTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TileMapTest.html new file mode 100644 index 000000000..5b4f5194d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TileMapTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TileMapTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TileMapTest

+
+No usage of org.newdawn.slick.tests.TileMapTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest.html new file mode 100644 index 000000000..be14e9e05 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TransformTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TransformTest

+
+No usage of org.newdawn.slick.tests.TransformTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest2.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest2.html new file mode 100644 index 000000000..d29d9872f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TransformTest2.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TransformTest2 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TransformTest2

+
+No usage of org.newdawn.slick.tests.TransformTest2 +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TransitionTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TransitionTest.html new file mode 100644 index 000000000..c0b0ca805 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TransitionTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TransitionTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TransitionTest

+
+No usage of org.newdawn.slick.tests.TransitionTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TransparentColorTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TransparentColorTest.html new file mode 100644 index 000000000..776c3aee2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TransparentColorTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TransparentColorTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TransparentColorTest

+
+No usage of org.newdawn.slick.tests.TransparentColorTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/TrueTypeFontPerformanceTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/TrueTypeFontPerformanceTest.html new file mode 100644 index 000000000..fbf9a7c48 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/TrueTypeFontPerformanceTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.TrueTypeFontPerformanceTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.TrueTypeFontPerformanceTest

+
+No usage of org.newdawn.slick.tests.TrueTypeFontPerformanceTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/class-use/UnicodeFontTest.html b/lib/javadoc/org/newdawn/slick/tests/class-use/UnicodeFontTest.html new file mode 100644 index 000000000..57355dc19 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/class-use/UnicodeFontTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.UnicodeFontTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.UnicodeFontTest

+
+No usage of org.newdawn.slick.tests.UnicodeFontTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/package-frame.html b/lib/javadoc/org/newdawn/slick/tests/package-frame.html new file mode 100644 index 000000000..9684ab85f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/package-frame.html @@ -0,0 +1,168 @@ + + + + + + +org.newdawn.slick.tests (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.tests + + + + +
+Classes  + +
+AlphaMapTest +
+AnimationTest +
+AntiAliasTest +
+BigImageTest +
+BigSpriteSheetTest +
+CachedRenderTest +
+CanvasContainerTest +
+CanvasSizeTest +
+ClipTest +
+CopyAreaAlphaTest +
+CurveTest +
+DeferredLoadingTest +
+DistanceFieldTest +
+DoubleClickTest +
+DuplicateEmitterTest +
+FlashTest +
+FontPerformanceTest +
+FontTest +
+GeomAccuracyTest +
+GeomTest +
+GeomUtilTest +
+GeomUtilTileTest +
+GradientImageTest +
+GradientTest +
+GraphicsTest +
+GUITest +
+ImageBufferEndianTest +
+ImageBufferTest +
+ImageCornerTest +
+ImageGraphicsTest +
+ImageMemTest +
+ImageOutTest +
+ImageReadTest +
+ImageTest +
+InkscapeTest +
+InputProviderTest +
+InputTest +
+IsoTiledTest +
+KeyRepeatTest +
+LameTest +
+LineRenderTest +
+MorphShapeTest +
+MorphSVGTest +
+MusicListenerTest +
+NavMeshTest +
+PackedSheetTest +
+ParticleTest +
+PedigreeTest +
+PolygonTest +
+PureFontTest +
+SavedStateTest +
+ScalableTest +
+ShapeTest +
+SlickCallableTest +
+SoundPositionTest +
+SoundTest +
+SoundURLTest +
+SpriteSheetFontTest +
+StateBasedTest +
+TestBox +
+TestUtils +
+TexturePaintTest +
+TileMapTest +
+TransformTest +
+TransformTest2 +
+TransitionTest +
+TransparentColorTest +
+TrueTypeFontPerformanceTest +
+UnicodeFontTest
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/tests/package-summary.html b/lib/javadoc/org/newdawn/slick/tests/package-summary.html new file mode 100644 index 000000000..8595765cc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/package-summary.html @@ -0,0 +1,448 @@ + + + + + + +org.newdawn.slick.tests (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.tests +

+Tests for the facilities provided by the library. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AlphaMapTestA test to demonstrate world clipping as opposed to screen clipping
AnimationTestA test for basic animation rendering
AntiAliasTestTest to view the effects of antialiasing on cirles
BigImageTestA test for basic image rendering
BigSpriteSheetTestA test for big images used as sprites sheets
CachedRenderTestA simple test to show performance gains from cache operations in situtations where + rendering is static and heavy
CanvasContainerTestA test for the AWT Canvas container
CanvasSizeTestQuick test to confirm canvas size is reported correctly
ClipTestA test to demonstrate world clipping as opposed to screen clipping
CopyAreaAlphaTestA test to demonstrate world clipping as opposed to screen clipping
CurveTestA rudimentry test of loading SVG from inkscape
DeferredLoadingTestA test for deferred loading.
DistanceFieldTestA test to demonstrate distance fields generated by Hiero being applied + to scaled fonts
DoubleClickTestThe double click testing
DuplicateEmitterTestA test for duplicating a ConfigurableEmitter several times
FlashTestA test for image flashes
FontPerformanceTestA test of the font rendering capabilities
FontTestA test of the font rendering capabilities
GeomAccuracyTestA simple graphics test for the context allowing vector based graphics
GeomTestA geomertry test
GeomUtilTestA test to try shape cutting
GeomUtilTileTestA test to try shape building from multiple tiles
GradientImageTestA test for applying gradients to images
GradientTestA test for gradient fill on polygons
GraphicsTestA simple graphics test for the context allowing vector based graphics
GUITestA test for the GUI components available in Slick.
ImageBufferEndianTestQuick test for endianess in image buffers
ImageBufferTestA test for image buffer maniupulation rendering
ImageCornerTestA test for basic image rendering
ImageGraphicsTestA test for rendering to an image
ImageMemTestA test for basic image rendering
ImageOutTestA test for saving images
ImageReadTestA test for reading image data from a teture
ImageTestA test for basic image rendering
InkscapeTestA rudimentry test of loading SVG from inkscape
InputProviderTestA test for abstract input via InputProvider
InputTestA test for input
IsoTiledTestSimple test for isometric map rendering
KeyRepeatTestA test for basic image rendering
LameTestLame test
LineRenderTestA test for the line rendering capability
MorphShapeTestA test to try shape morphing
MorphSVGTestA test to try shape morphing
MusicListenerTestA test for music listeners which notify you when the music has eneded
NavMeshTestA test to show nav-mesh generation on tile based maps.
PackedSheetTestA test for packed sprite sheets
ParticleTestA particle test using built in effects
PedigreeTestA test for loading editing particle systems
PolygonTestA test for polygon collision
PureFontTestA test of the font rendering capabilities
SavedStateTestA test of the the local storage utilities
ScalableTestA test for a scalable game
ShapeTestA geomertry test
SlickCallableTestA test for slick callables giving the chance to perform normal GL in mid Slick render
SoundPositionTestA test for the sound system (positioning) of the library
SoundTestA test for the sound system of the library
SoundURLTestA test for the sound system of the library
SpriteSheetFontTestTests the SpriteSheetFont.
StateBasedTestA test for the multi-state based functionality
TestBoxA test box containing a bunch of tests that can be used for quickly sanity + checking tests.
TestUtilsA simple utility test to use the internal slick API without + the slick framework.
TexturePaintTestTest to emulate texture paint
TileMapTestA test of the tile map system based around the TilED (http://www.mapeditor.org) tool
TransformTestA test for transforming the graphics context
TransformTest2A test for transforming the graphics context
TransitionTestA test to view the different transitions that are currently implemented
TransparentColorTestA test for transparent colour specification
TrueTypeFontPerformanceTestA test of the font rendering capabilities
UnicodeFontTestA simple test of the unicode font functionality provided
+  + +

+

+Package org.newdawn.slick.tests Description +

+ +

+Tests for the facilities provided by the library. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/package-tree.html b/lib/javadoc/org/newdawn/slick/tests/package-tree.html new file mode 100644 index 000000000..43fadea1b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/package-tree.html @@ -0,0 +1,166 @@ + + + + + + +org.newdawn.slick.tests Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.tests +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/package-use.html b/lib/javadoc/org/newdawn/slick/tests/package-use.html new file mode 100644 index 000000000..f6eaef0e3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.newdawn.slick.tests (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.tests

+
+No usage of org.newdawn.slick.tests +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/TestState1.html b/lib/javadoc/org/newdawn/slick/tests/states/TestState1.html new file mode 100644 index 000000000..1ae6b5d50 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/TestState1.html @@ -0,0 +1,424 @@ + + + + + + +TestState1 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.states +
+Class TestState1

+
+java.lang.Object
+  extended by org.newdawn.slick.state.BasicGameState
+      extended by org.newdawn.slick.tests.states.TestState1
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener, GameState
+
+
+
+
public class TestState1
extends BasicGameState
+ + +

+A simple test state to display a message describing the test +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intID + +
+          The ID given to this state
+  + + + + + + + + + + +
+Constructor Summary
TestState1() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetID() + +
+          Get the ID of this state
+ voidinit(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidrender(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidupdate(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+ + + + + + + +
Methods inherited from class org.newdawn.slick.state.BasicGameState
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enter, inputEnded, inputStarted, isAcceptingInput, keyPressed, leave, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID

+
+public static final int ID
+
+
The ID given to this state +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+TestState1

+
+public TestState1()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getID

+
+public int getID()
+
+
Description copied from interface: GameState
+
Get the ID of this state +

+

+
Specified by:
getID in interface GameState
Specified by:
getID in class BasicGameState
+
+
+ +
Returns:
The game unique ID of this state
See Also:
BasicGameState.getID()
+
+
+
+ +

+init

+
+public void init(GameContainer container,
+                 StateBasedGame game)
+          throws SlickException
+
+
Description copied from interface: GameState
+
Initialise the state. It should load any resources it needs at this stage +

+

+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates a failure to initialise a resource for this state
See Also:
GameState.init(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   StateBasedGame game,
+                   Graphics g)
+
+
Description copied from interface: GameState
+
Render this state to the game's graphics context +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
g - The graphics context to render to
See Also:
GameState.render(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   StateBasedGame game,
+                   int delta)
+
+
Description copied from interface: GameState
+
Update the state's logic based on the amount of time thats passed +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
delta - The amount of time thats passed in millisecond since last update
See Also:
GameState.update(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, int)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGameState
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGameState.keyReleased(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/TestState2.html b/lib/javadoc/org/newdawn/slick/tests/states/TestState2.html new file mode 100644 index 000000000..5da0d8a72 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/TestState2.html @@ -0,0 +1,424 @@ + + + + + + +TestState2 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.states +
+Class TestState2

+
+java.lang.Object
+  extended by org.newdawn.slick.state.BasicGameState
+      extended by org.newdawn.slick.tests.states.TestState2
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener, GameState
+
+
+
+
public class TestState2
extends BasicGameState
+ + +

+A simple test state to display an image and rotate it +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intID + +
+          The ID given to this state
+  + + + + + + + + + + +
+Constructor Summary
TestState2() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetID() + +
+          Get the ID of this state
+ voidinit(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidrender(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidupdate(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+ + + + + + + +
Methods inherited from class org.newdawn.slick.state.BasicGameState
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enter, inputEnded, inputStarted, isAcceptingInput, keyPressed, leave, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID

+
+public static final int ID
+
+
The ID given to this state +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+TestState2

+
+public TestState2()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getID

+
+public int getID()
+
+
Description copied from interface: GameState
+
Get the ID of this state +

+

+
Specified by:
getID in interface GameState
Specified by:
getID in class BasicGameState
+
+
+ +
Returns:
The game unique ID of this state
See Also:
BasicGameState.getID()
+
+
+
+ +

+init

+
+public void init(GameContainer container,
+                 StateBasedGame game)
+          throws SlickException
+
+
Description copied from interface: GameState
+
Initialise the state. It should load any resources it needs at this stage +

+

+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates a failure to initialise a resource for this state
See Also:
GameState.init(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   StateBasedGame game,
+                   Graphics g)
+
+
Description copied from interface: GameState
+
Render this state to the game's graphics context +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
g - The graphics context to render to
See Also:
GameState.render(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   StateBasedGame game,
+                   int delta)
+
+
Description copied from interface: GameState
+
Update the state's logic based on the amount of time thats passed +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
delta - The amount of time thats passed in millisecond since last update
See Also:
GameState.update(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, int)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGameState
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGameState.keyReleased(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/TestState3.html b/lib/javadoc/org/newdawn/slick/tests/states/TestState3.html new file mode 100644 index 000000000..c89f116f1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/TestState3.html @@ -0,0 +1,424 @@ + + + + + + +TestState3 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.states +
+Class TestState3

+
+java.lang.Object
+  extended by org.newdawn.slick.state.BasicGameState
+      extended by org.newdawn.slick.tests.states.TestState3
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener, GameState
+
+
+
+
public class TestState3
extends BasicGameState
+ + +

+A simple test state to display an image and rotate it +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intID + +
+          The ID given to this state
+  + + + + + + + + + + +
+Constructor Summary
TestState3() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetID() + +
+          Get the ID of this state
+ voidinit(GameContainer container, + StateBasedGame game) + +
+          Initialise the state.
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidrender(GameContainer container, + StateBasedGame game, + Graphics g) + +
+          Render this state to the game's graphics context
+ voidupdate(GameContainer container, + StateBasedGame game, + int delta) + +
+          Update the state's logic based on the amount of time thats passed
+ + + + + + + +
Methods inherited from class org.newdawn.slick.state.BasicGameState
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enter, inputEnded, inputStarted, isAcceptingInput, keyPressed, leave, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID

+
+public static final int ID
+
+
The ID given to this state +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+TestState3

+
+public TestState3()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getID

+
+public int getID()
+
+
Description copied from interface: GameState
+
Get the ID of this state +

+

+
Specified by:
getID in interface GameState
Specified by:
getID in class BasicGameState
+
+
+ +
Returns:
The game unique ID of this state
See Also:
BasicGameState.getID()
+
+
+
+ +

+init

+
+public void init(GameContainer container,
+                 StateBasedGame game)
+          throws SlickException
+
+
Description copied from interface: GameState
+
Initialise the state. It should load any resources it needs at this stage +

+

+
Parameters:
container - The container holding the game
game - The game holding this state +
Throws: +
SlickException - Indicates a failure to initialise a resource for this state
See Also:
GameState.init(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)
+
+
+
+ +

+render

+
+public void render(GameContainer container,
+                   StateBasedGame game,
+                   Graphics g)
+
+
Description copied from interface: GameState
+
Render this state to the game's graphics context +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
g - The graphics context to render to
See Also:
GameState.render(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.Graphics)
+
+
+
+ +

+update

+
+public void update(GameContainer container,
+                   StateBasedGame game,
+                   int delta)
+
+
Description copied from interface: GameState
+
Update the state's logic based on the amount of time thats passed +

+

+
Parameters:
container - The container holding the game
game - The game holding this state
delta - The amount of time thats passed in millisecond since last update
See Also:
GameState.update(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame, int)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
Overrides:
keyReleased in class BasicGameState
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
BasicGameState.keyReleased(int, char)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState1.html b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState1.html new file mode 100644 index 000000000..5d03702c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState1.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.states.TestState1 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.states.TestState1

+
+No usage of org.newdawn.slick.tests.states.TestState1 +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState2.html b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState2.html new file mode 100644 index 000000000..12b439cd6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState2.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.states.TestState2 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.states.TestState2

+
+No usage of org.newdawn.slick.tests.states.TestState2 +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState3.html b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState3.html new file mode 100644 index 000000000..5ef2cf2fb --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/class-use/TestState3.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.states.TestState3 (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.states.TestState3

+
+No usage of org.newdawn.slick.tests.states.TestState3 +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/package-frame.html b/lib/javadoc/org/newdawn/slick/tests/states/package-frame.html new file mode 100644 index 000000000..7e815d83b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.newdawn.slick.tests.states (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.tests.states + + + + +
+Classes  + +
+TestState1 +
+TestState2 +
+TestState3
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/package-summary.html b/lib/javadoc/org/newdawn/slick/tests/states/package-summary.html new file mode 100644 index 000000000..dcba523d7 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/package-summary.html @@ -0,0 +1,180 @@ + + + + + + +org.newdawn.slick.tests.states (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.tests.states +

+States for the StateBasedGameTest +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
TestState1A simple test state to display a message describing the test
TestState2A simple test state to display an image and rotate it
TestState3A simple test state to display an image and rotate it
+  + +

+

+Package org.newdawn.slick.tests.states Description +

+ +

+States for the StateBasedGameTest +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/package-tree.html b/lib/javadoc/org/newdawn/slick/tests/states/package-tree.html new file mode 100644 index 000000000..e429129de --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/package-tree.html @@ -0,0 +1,156 @@ + + + + + + +org.newdawn.slick.tests.states Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.tests.states +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/states/package-use.html b/lib/javadoc/org/newdawn/slick/tests/states/package-use.html new file mode 100644 index 000000000..7d14e1168 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/states/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.newdawn.slick.tests.states (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.tests.states

+
+No usage of org.newdawn.slick.tests.states +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/Entity.html b/lib/javadoc/org/newdawn/slick/tests/xml/Entity.html new file mode 100644 index 000000000..c8dee194a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/Entity.html @@ -0,0 +1,262 @@ + + + + + + +Entity (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class Entity

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.Entity
+
+
+
+
public class Entity
extends java.lang.Object
+ + +

+A test example of some object data that can be configured via XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Entity() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Entity

+
+public Entity()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/GameData.html b/lib/javadoc/org/newdawn/slick/tests/xml/GameData.html new file mode 100644 index 000000000..f5c448370 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/GameData.html @@ -0,0 +1,262 @@ + + + + + + +GameData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class GameData

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.GameData
+
+
+
+
public class GameData
extends java.lang.Object
+ + +

+The top level node of our test structure for XML -> object parsing +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
GameData() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GameData

+
+public GameData()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/Inventory.html b/lib/javadoc/org/newdawn/slick/tests/xml/Inventory.html new file mode 100644 index 000000000..13a18af0d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/Inventory.html @@ -0,0 +1,262 @@ + + + + + + +Inventory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class Inventory

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.Inventory
+
+
+
+
public class Inventory
extends java.lang.Object
+ + +

+A test example of some object data that can be configured via XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Inventory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Inventory

+
+public Inventory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/Item.html b/lib/javadoc/org/newdawn/slick/tests/xml/Item.html new file mode 100644 index 000000000..f90b9ec0b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/Item.html @@ -0,0 +1,323 @@ + + + + + + +Item (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class Item

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.Item
+
+
+
Direct Known Subclasses:
ItemContainer
+
+
+
+
public class Item
extends java.lang.Object
+ + +

+A test example of some object data that can be configured via XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  intcondition + +
+          The condition value injected by the XML parser
+protected  java.lang.Stringname + +
+          The name injected by the XML parser
+  + + + + + + + + + + +
+Constructor Summary
Item() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+name

+
+protected java.lang.String name
+
+
The name injected by the XML parser +

+

+
+
+
+ +

+condition

+
+protected int condition
+
+
The condition value injected by the XML parser +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Item

+
+public Item()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/ItemContainer.html b/lib/javadoc/org/newdawn/slick/tests/xml/ItemContainer.html new file mode 100644 index 000000000..7e98ec550 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/ItemContainer.html @@ -0,0 +1,284 @@ + + + + + + +ItemContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class ItemContainer

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.Item
+      extended by org.newdawn.slick.tests.xml.ItemContainer
+
+
+
+
public class ItemContainer
extends Item
+ + +

+A test example of some object data that can be configured via XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.newdawn.slick.tests.xml.Item
condition, name
+  + + + + + + + + + + +
+Constructor Summary
ItemContainer() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ItemContainer

+
+public ItemContainer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Overrides:
dump in class Item
+
+
+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/ObjectParserTest.html b/lib/javadoc/org/newdawn/slick/tests/xml/ObjectParserTest.html new file mode 100644 index 000000000..638dce067 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/ObjectParserTest.html @@ -0,0 +1,267 @@ + + + + + + +ObjectParserTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class ObjectParserTest

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.ObjectParserTest
+
+
+
+
public class ObjectParserTest
extends java.lang.Object
+ + +

+A simple test to check that the object parser from XML works. Read the Javadoc of + ObjectParser to work out whats going on here +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ObjectParserTest() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidmain(java.lang.String[] argv) + +
+          Entity point to our test.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectParserTest

+
+public ObjectParserTest()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(java.lang.String[] argv)
+                 throws SlickXMLException
+
+
Entity point to our test. Simple read some XML which should + generate an object tree. +

+

+
Parameters:
argv - The arguments passed into the test +
Throws: +
SlickXMLException - Indicates a failure to parse XML or generate objects
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/Stats.html b/lib/javadoc/org/newdawn/slick/tests/xml/Stats.html new file mode 100644 index 000000000..386fb1e27 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/Stats.html @@ -0,0 +1,262 @@ + + + + + + +Stats (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class Stats

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.Stats
+
+
+
+
public class Stats
extends java.lang.Object
+ + +

+A test example of some object data that can be configured via XML +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Stats() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddump(java.lang.String prefix) + +
+          Dump this object to sysout
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Stats

+
+public Stats()
+
+
+ + + + + + + + +
+Method Detail
+ +

+dump

+
+public void dump(java.lang.String prefix)
+
+
Dump this object to sysout +

+

+
Parameters:
prefix - The prefix to apply to all lines
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/XMLTest.html b/lib/javadoc/org/newdawn/slick/tests/xml/XMLTest.html new file mode 100644 index 000000000..adf6ad47a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/XMLTest.html @@ -0,0 +1,266 @@ + + + + + + +XMLTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tests.xml +
+Class XMLTest

+
+java.lang.Object
+  extended by org.newdawn.slick.tests.xml.XMLTest
+
+
+
+
public class XMLTest
extends java.lang.Object
+ + +

+Silly test to check XML parsing functionality, note the JUnit like methods, + want to move it to JUnit soon but not quite there yet. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XMLTest() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidmain(java.lang.String[] argv) + +
+          Simple test for the XML parsing API
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMLTest

+
+public XMLTest()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(java.lang.String[] argv)
+                 throws SlickException
+
+
Simple test for the XML parsing API +

+

+
Parameters:
argv - The arguments given to the test +
Throws: +
SlickException - Indicates a failure
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Entity.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Entity.html new file mode 100644 index 000000000..95a11b606 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Entity.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.Entity (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.Entity

+
+No usage of org.newdawn.slick.tests.xml.Entity +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/GameData.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/GameData.html new file mode 100644 index 000000000..7d9d03f83 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/GameData.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.GameData (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.GameData

+
+No usage of org.newdawn.slick.tests.xml.GameData +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Inventory.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Inventory.html new file mode 100644 index 000000000..a900c668d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Inventory.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.Inventory (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.Inventory

+
+No usage of org.newdawn.slick.tests.xml.Inventory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Item.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Item.html new file mode 100644 index 000000000..12c30432f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Item.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.Item (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.Item

+
+ + + + + + + + + +
+Packages that use Item
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
+  +

+ + + + + +
+Uses of Item in org.newdawn.slick.tests.xml
+  +

+ + + + + + + + + +
Subclasses of Item in org.newdawn.slick.tests.xml
+ classItemContainer + +
+          A test example of some object data that can be configured via XML
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ItemContainer.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ItemContainer.html new file mode 100644 index 000000000..7c3e6e065 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ItemContainer.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.ItemContainer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.ItemContainer

+
+No usage of org.newdawn.slick.tests.xml.ItemContainer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ObjectParserTest.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ObjectParserTest.html new file mode 100644 index 000000000..af3ed2a8d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/ObjectParserTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.ObjectParserTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.ObjectParserTest

+
+No usage of org.newdawn.slick.tests.xml.ObjectParserTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Stats.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Stats.html new file mode 100644 index 000000000..923c5b8c3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/Stats.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.Stats (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.Stats

+
+No usage of org.newdawn.slick.tests.xml.Stats +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/class-use/XMLTest.html b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/XMLTest.html new file mode 100644 index 000000000..e704a4e7a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/class-use/XMLTest.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tests.xml.XMLTest (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tests.xml.XMLTest

+
+No usage of org.newdawn.slick.tests.xml.XMLTest +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/package-frame.html b/lib/javadoc/org/newdawn/slick/tests/xml/package-frame.html new file mode 100644 index 000000000..863eebea0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/package-frame.html @@ -0,0 +1,46 @@ + + + + + + +org.newdawn.slick.tests.xml (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.tests.xml + + + + +
+Classes  + +
+Entity +
+GameData +
+Inventory +
+Item +
+ItemContainer +
+ObjectParserTest +
+Stats +
+XMLTest
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/package-summary.html b/lib/javadoc/org/newdawn/slick/tests/xml/package-summary.html new file mode 100644 index 000000000..4e0639960 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/package-summary.html @@ -0,0 +1,201 @@ + + + + + + +org.newdawn.slick.tests.xml (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.tests.xml +

+Tests for the XML Parser and Object Tree Parser +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
EntityA test example of some object data that can be configured via XML
GameDataThe top level node of our test structure for XML -> object parsing
InventoryA test example of some object data that can be configured via XML
ItemA test example of some object data that can be configured via XML
ItemContainerA test example of some object data that can be configured via XML
ObjectParserTestA simple test to check that the object parser from XML works.
StatsA test example of some object data that can be configured via XML
XMLTestSilly test to check XML parsing functionality, note the JUnit like methods, + want to move it to JUnit soon but not quite there yet.
+  + +

+

+Package org.newdawn.slick.tests.xml Description +

+ +

+Tests for the XML Parser and Object Tree Parser +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/package-tree.html b/lib/javadoc/org/newdawn/slick/tests/xml/package-tree.html new file mode 100644 index 000000000..e73c8bba6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +org.newdawn.slick.tests.xml Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.tests.xml +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tests/xml/package-use.html b/lib/javadoc/org/newdawn/slick/tests/xml/package-use.html new file mode 100644 index 000000000..162fa0e07 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tests/xml/package-use.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Package org.newdawn.slick.tests.xml (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.tests.xml

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.tests.xml
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.tests.xml used by org.newdawn.slick.tests.xml
Item + +
+          A test example of some object data that can be configured via XML
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/Layer.html b/lib/javadoc/org/newdawn/slick/tiled/Layer.html new file mode 100644 index 000000000..6b6107496 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/Layer.html @@ -0,0 +1,477 @@ + + + + + + +Layer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tiled +
+Class Layer

+
+java.lang.Object
+  extended by org.newdawn.slick.tiled.Layer
+
+
+
+
public class Layer
extends java.lang.Object
+ + +

+A layer of tiles on the map +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ int[][][]data + +
+          The tile data representing this data, index 0 = tileset, index 1 = tile + id
+ intheight + +
+          The height of this layer
+ intindex + +
+          The index of this layer
+ java.lang.Stringname + +
+          The name of this layer - read from the XML
+ java.util.Propertiesprops + +
+          the properties of this layer
+ intwidth + +
+          The width of this layer
+  + + + + + + + + + + +
+Constructor Summary
Layer(TiledMap map, + org.w3c.dom.Element element) + +
+          Create a new layer based on the XML definition
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetTileID(int x, + int y) + +
+          Get the gloal ID of the tile at the specified location in this layer
+ voidrender(int x, + int y, + int sx, + int sy, + int width, + int ty, + boolean lineByLine, + int mapTileWidth, + int mapTileHeight) + +
+          Render a section of this layer
+ voidsetTileID(int x, + int y, + int tile) + +
+          Set the global tile ID at a specified location
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+index

+
+public int index
+
+
The index of this layer +

+

+
+
+
+ +

+name

+
+public java.lang.String name
+
+
The name of this layer - read from the XML +

+

+
+
+
+ +

+data

+
+public int[][][] data
+
+
The tile data representing this data, index 0 = tileset, index 1 = tile + id +

+

+
+
+
+ +

+width

+
+public int width
+
+
The width of this layer +

+

+
+
+
+ +

+height

+
+public int height
+
+
The height of this layer +

+

+
+
+
+ +

+props

+
+public java.util.Properties props
+
+
the properties of this layer +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Layer

+
+public Layer(TiledMap map,
+             org.w3c.dom.Element element)
+      throws SlickException
+
+
Create a new layer based on the XML definition +

+

+
Parameters:
element - The XML element describing the layer
map - The map this layer is part of +
Throws: +
SlickException - Indicates a failure to parse the XML layer
+
+ + + + + + + + +
+Method Detail
+ +

+getTileID

+
+public int getTileID(int x,
+                     int y)
+
+
Get the gloal ID of the tile at the specified location in this layer +

+

+
Parameters:
x - The x coorindate of the tile
y - The y coorindate of the tile +
Returns:
The global ID of the tile
+
+
+
+ +

+setTileID

+
+public void setTileID(int x,
+                      int y,
+                      int tile)
+
+
Set the global tile ID at a specified location +

+

+
Parameters:
x - The x location to set
y - The y location to set
tile - The tile value to set
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y,
+                   int sx,
+                   int sy,
+                   int width,
+                   int ty,
+                   boolean lineByLine,
+                   int mapTileWidth,
+                   int mapTileHeight)
+
+
Render a section of this layer +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The number of tiles across to render
ty - The line of tiles to render
lineByLine - True if we should render line by line, i.e. giving us a chance + to render something else between lines
mapTileWidth - the tile width specified in the map file
mapTileHeight - the tile height specified in the map file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/TileSet.html b/lib/javadoc/org/newdawn/slick/tiled/TileSet.html new file mode 100644 index 000000000..04dd7c10a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/TileSet.html @@ -0,0 +1,709 @@ + + + + + + +TileSet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tiled +
+Class TileSet

+
+java.lang.Object
+  extended by org.newdawn.slick.tiled.TileSet
+
+
+
+
public class TileSet
extends java.lang.Object
+ + +

+A holder for tileset information +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ intfirstGID + +
+          The first global tile id in the set
+ intindex + +
+          The index of the tile set
+ intlastGID + +
+          The local global tile id in the set
+ java.lang.Stringname + +
+          The name of the tile set
+ inttileHeight + +
+          The height of the tiles
+protected  inttileMargin + +
+          The margin of the tileset
+ SpriteSheettiles + +
+          The image containing the tiles
+ inttilesAcross + +
+          The number of tiles across the sprite sheet
+ inttilesDown + +
+          The number of tiles down the sprite sheet
+protected  inttileSpacing + +
+          The padding of the tiles
+ inttileWidth + +
+          The width of the tiles
+  + + + + + + + + + + +
+Constructor Summary
TileSet(TiledMap map, + org.w3c.dom.Element element, + boolean loadImage) + +
+          Create a tile set based on an XML definition
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancontains(int gid) + +
+          Check if this tileset contains a particular tile
+ java.util.PropertiesgetProperties(int globalID) + +
+          Get the properties for a specific tile in this tileset
+ intgetTileHeight() + +
+          Get the height of each tile in this set
+ intgetTileMargin() + +
+          Get the margin around tiles in this set
+ intgetTileSpacing() + +
+          Get the spacing between tiles in this set
+ intgetTileWidth() + +
+          Get the width of each tile in this set
+ intgetTileX(int id) + +
+          Get the x position of a tile on this sheet
+ intgetTileY(int id) + +
+          Get the y position of a tile on this sheet
+ voidsetLimit(int limit) + +
+          Set the limit of the tiles in this set
+ voidsetTileSetImage(Image image) + +
+          Set the image to use for this sprite sheet image to use for this tileset
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+index

+
+public int index
+
+
The index of the tile set +

+

+
+
+
+ +

+name

+
+public java.lang.String name
+
+
The name of the tile set +

+

+
+
+
+ +

+firstGID

+
+public int firstGID
+
+
The first global tile id in the set +

+

+
+
+
+ +

+lastGID

+
+public int lastGID
+
+
The local global tile id in the set +

+

+
+
+
+ +

+tileWidth

+
+public int tileWidth
+
+
The width of the tiles +

+

+
+
+
+ +

+tileHeight

+
+public int tileHeight
+
+
The height of the tiles +

+

+
+
+
+ +

+tiles

+
+public SpriteSheet tiles
+
+
The image containing the tiles +

+

+
+
+
+ +

+tilesAcross

+
+public int tilesAcross
+
+
The number of tiles across the sprite sheet +

+

+
+
+
+ +

+tilesDown

+
+public int tilesDown
+
+
The number of tiles down the sprite sheet +

+

+
+
+
+ +

+tileSpacing

+
+protected int tileSpacing
+
+
The padding of the tiles +

+

+
+
+
+ +

+tileMargin

+
+protected int tileMargin
+
+
The margin of the tileset +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TileSet

+
+public TileSet(TiledMap map,
+               org.w3c.dom.Element element,
+               boolean loadImage)
+        throws SlickException
+
+
Create a tile set based on an XML definition +

+

+
Parameters:
element - The XML describing the tileset
map - The map this tileset was loaded from (gives context to paths)
loadImage - True if we should load the image (useful in headless mode) +
Throws: +
SlickException - Indicates a failure to parse the tileset
+
+ + + + + + + + +
+Method Detail
+ +

+getTileWidth

+
+public int getTileWidth()
+
+
Get the width of each tile in this set +

+

+ +
Returns:
The width of each tile in this set
+
+
+
+ +

+getTileHeight

+
+public int getTileHeight()
+
+
Get the height of each tile in this set +

+

+ +
Returns:
The height of each tile in this set
+
+
+
+ +

+getTileSpacing

+
+public int getTileSpacing()
+
+
Get the spacing between tiles in this set +

+

+ +
Returns:
The spacing between tiles in this set
+
+
+
+ +

+getTileMargin

+
+public int getTileMargin()
+
+
Get the margin around tiles in this set +

+

+ +
Returns:
The maring around tiles in this set
+
+
+
+ +

+setTileSetImage

+
+public void setTileSetImage(Image image)
+
+
Set the image to use for this sprite sheet image to use for this tileset +

+

+
Parameters:
image - The image to use for this tileset
+
+
+
+ +

+getProperties

+
+public java.util.Properties getProperties(int globalID)
+
+
Get the properties for a specific tile in this tileset +

+

+
Parameters:
globalID - The global ID of the tile whose properties should be retrieved +
Returns:
The properties for the specified tile, or null if no properties + are defined
+
+
+
+ +

+getTileX

+
+public int getTileX(int id)
+
+
Get the x position of a tile on this sheet +

+

+
Parameters:
id - The tileset specific ID (i.e. not the global one) +
Returns:
The index of the tile on the x-axis
+
+
+
+ +

+getTileY

+
+public int getTileY(int id)
+
+
Get the y position of a tile on this sheet +

+

+
Parameters:
id - The tileset specific ID (i.e. not the global one) +
Returns:
The index of the tile on the y-axis
+
+
+
+ +

+setLimit

+
+public void setLimit(int limit)
+
+
Set the limit of the tiles in this set +

+

+
Parameters:
limit - The limit of the tiles in this set
+
+
+
+ +

+contains

+
+public boolean contains(int gid)
+
+
Check if this tileset contains a particular tile +

+

+
Parameters:
gid - The global id to seach for +
Returns:
True if the ID is contained in this tileset
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/TiledMap.GroupObject.html b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.GroupObject.html new file mode 100644 index 000000000..cf178ecc2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.GroupObject.html @@ -0,0 +1,420 @@ + + + + + + +TiledMap.GroupObject (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tiled +
+Class TiledMap.GroupObject

+
+java.lang.Object
+  extended by org.newdawn.slick.tiled.TiledMap.GroupObject
+
+
+
Enclosing class:
TiledMap
+
+
+
+
protected class TiledMap.GroupObject
extends java.lang.Object
+ + +

+An object from a object-group on the map +

+ +

+

+
Author:
+
kulpae
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ intheight + +
+          The height of this object
+ intindex + +
+          The index of this object
+ java.lang.Stringname + +
+          The name of this object - read from the XML
+ java.util.Propertiesprops + +
+          the properties of this group
+ java.lang.Stringtype + +
+          The type of this object - read from the XML
+ intwidth + +
+          The width of this object
+ intx + +
+          The x-coordinate of this object
+ inty + +
+          The y-coordinate of this object
+  + + + + + + + + + + +
+Constructor Summary
TiledMap.GroupObject(org.w3c.dom.Element element) + +
+          Create a new group based on the XML definition
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+index

+
+public int index
+
+
The index of this object +

+

+
+
+
+ +

+name

+
+public java.lang.String name
+
+
The name of this object - read from the XML +

+

+
+
+
+ +

+type

+
+public java.lang.String type
+
+
The type of this object - read from the XML +

+

+
+
+
+ +

+x

+
+public int x
+
+
The x-coordinate of this object +

+

+
+
+
+ +

+y

+
+public int y
+
+
The y-coordinate of this object +

+

+
+
+
+ +

+width

+
+public int width
+
+
The width of this object +

+

+
+
+
+ +

+height

+
+public int height
+
+
The height of this object +

+

+
+
+
+ +

+props

+
+public java.util.Properties props
+
+
the properties of this group +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TiledMap.GroupObject

+
+public TiledMap.GroupObject(org.w3c.dom.Element element)
+                     throws SlickException
+
+
Create a new group based on the XML definition +

+

+
Parameters:
element - The XML element describing the layer +
Throws: +
SlickException - Indicates a failure to parse the XML group
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/TiledMap.ObjectGroup.html b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.ObjectGroup.html new file mode 100644 index 000000000..db81322c1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.ObjectGroup.html @@ -0,0 +1,380 @@ + + + + + + +TiledMap.ObjectGroup (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tiled +
+Class TiledMap.ObjectGroup

+
+java.lang.Object
+  extended by org.newdawn.slick.tiled.TiledMap.ObjectGroup
+
+
+
Enclosing class:
TiledMap
+
+
+
+
protected class TiledMap.ObjectGroup
extends java.lang.Object
+ + +

+A group of objects on the map (objects layer) +

+ +

+

+
Author:
+
kulpae
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+ intheight + +
+          The height of this layer
+ intindex + +
+          The index of this group
+ java.lang.Stringname + +
+          The name of this group - read from the XML
+ java.util.ArrayListobjects + +
+          The Objects of this group
+ java.util.Propertiesprops + +
+          the properties of this group
+ intwidth + +
+          The width of this layer
+  + + + + + + + + + + +
+Constructor Summary
TiledMap.ObjectGroup(org.w3c.dom.Element element) + +
+          Create a new group based on the XML definition
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+index

+
+public int index
+
+
The index of this group +

+

+
+
+
+ +

+name

+
+public java.lang.String name
+
+
The name of this group - read from the XML +

+

+
+
+
+ +

+objects

+
+public java.util.ArrayList objects
+
+
The Objects of this group +

+

+
+
+
+ +

+width

+
+public int width
+
+
The width of this layer +

+

+
+
+
+ +

+height

+
+public int height
+
+
The height of this layer +

+

+
+
+
+ +

+props

+
+public java.util.Properties props
+
+
the properties of this group +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TiledMap.ObjectGroup

+
+public TiledMap.ObjectGroup(org.w3c.dom.Element element)
+                     throws SlickException
+
+
Create a new group based on the XML definition +

+

+
Parameters:
element - The XML element describing the layer +
Throws: +
SlickException - Indicates a failure to parse the XML group
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/TiledMap.html b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.html new file mode 100644 index 000000000..7e22c0cea --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/TiledMap.html @@ -0,0 +1,1497 @@ + + + + + + +TiledMap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.tiled +
+Class TiledMap

+
+java.lang.Object
+  extended by org.newdawn.slick.tiled.TiledMap
+
+
+
+
public class TiledMap
extends java.lang.Object
+ + +

+This class is intended to parse TilED maps. TilED is a generic tool for tile + map editing and can be found at: + + http://mapeditor.org/ +

+ +

+

+
Author:
+
kevin, Tiago Costa, Loads of others!
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+protected  classTiledMap.GroupObject + +
+          An object from a object-group on the map
+protected  classTiledMap.ObjectGroup + +
+          A group of objects on the map (objects layer)
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  intheight + +
+          The height of the map
+protected static intISOMETRIC + +
+          Indicates an isometric map
+protected  java.util.ArrayListlayers + +
+          The list of layers defined in the map
+protected  java.util.ArrayListobjectGroups + +
+          The list of object-groups defined in the map
+protected  intorientation + +
+          The orientation of this map
+protected static intORTHOGONAL + +
+          Indicates a orthogonal map
+protected  java.util.Propertiesprops + +
+          the properties of the map
+protected  inttileHeight + +
+          The height of the tiles used on the map
+protected  java.util.ArrayListtileSets + +
+          The list of tilesets defined in the map
+protected  java.lang.StringtilesLocation + +
+          The location prefix where we can find tileset images
+protected  inttileWidth + +
+          The width of the tiles used on the map
+protected  intwidth + +
+          The width of the map
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
TiledMap(java.io.InputStream in) + +
+          Load a tile map from an arbitary input stream
TiledMap(java.io.InputStream in, + java.lang.String tileSetsLocation) + +
+          Load a tile map from an arbitary input stream
TiledMap(java.lang.String ref) + +
+          Create a new tile map based on a given TMX file
TiledMap(java.lang.String ref, + boolean loadTileSets) + +
+          Create a new tile map based on a given TMX file
TiledMap(java.lang.String ref, + java.lang.String tileSetsLocation) + +
+          Create a new tile map based on a given TMX file
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ TileSetfindTileSet(int gid) + +
+          Find a tile for a given global tile id
+ intgetHeight() + +
+          Get the height of the map
+ intgetLayerCount() + +
+          Retrieve a count of the number of layers available
+ intgetLayerIndex(java.lang.String name) + +
+          Get the index of the layer with given name
+ java.lang.StringgetLayerProperty(int layerIndex, + java.lang.String propertyName, + java.lang.String def) + +
+          Get a property given to a particular layer.
+ java.lang.StringgetMapProperty(java.lang.String propertyName, + java.lang.String def) + +
+          Get a property given to the map.
+ intgetObjectCount(int groupID) + +
+          Returns the number of objects of a specific object-group.
+ intgetObjectGroupCount() + +
+          Returns the number of object-groups defined in the map.
+ intgetObjectHeight(int groupID, + int objectID) + +
+          Returns the height of a specific object from a specific group.
+ java.lang.StringgetObjectImage(int groupID, + int objectID) + +
+          Retrieve the image source property for a given object
+ java.lang.StringgetObjectName(int groupID, + int objectID) + +
+          Return the name of a specific object from a specific group.
+ java.lang.StringgetObjectProperty(int groupID, + int objectID, + java.lang.String propertyName, + java.lang.String def) + +
+          Looks for a property with the given name and returns it's value.
+ java.lang.StringgetObjectType(int groupID, + int objectID) + +
+          Return the type of an specific object from a specific group.
+ intgetObjectWidth(int groupID, + int objectID) + +
+          Returns the width of a specific object from a specific group.
+ intgetObjectX(int groupID, + int objectID) + +
+          Returns the x-coordinate of a specific object from a specific group.
+ intgetObjectY(int groupID, + int objectID) + +
+          Returns the y-coordinate of a specific object from a specific group.
+ intgetTileHeight() + +
+          Get the height of a single tile
+ intgetTileId(int x, + int y, + int layerIndex) + +
+          Get the global ID of a tile at specified location in the map
+ ImagegetTileImage(int x, + int y, + int layerIndex) + +
+          Gets the Image used to draw the tile at the given x and y coordinates.
+ java.lang.StringgetTileProperty(int tileID, + java.lang.String propertyName, + java.lang.String def) + +
+          Get a propety given to a particular tile.
+ TileSetgetTileSet(int index) + +
+          Get a tileset at a particular index in the list of sets for this map
+ TileSetgetTileSetByGID(int gid) + +
+          Get a tileset by a given global ID
+ intgetTileSetCount() + +
+          Retrieve the number of tilesets available in this map
+ java.lang.StringgetTilesLocation() + +
+          Get the location of the tile images specified
+ intgetTileWidth() + +
+          Get the width of a single tile
+ intgetWidth() + +
+          Get the width of the map
+ voidrender(int x, + int y) + +
+          Render the whole tile map at a given location
+ voidrender(int x, + int y, + int layer) + +
+          Render a single layer from the map
+ voidrender(int x, + int y, + int sx, + int sy, + int width, + int height) + +
+          Render a section of the tile map
+ voidrender(int x, + int y, + int sx, + int sy, + int width, + int height, + boolean lineByLine) + +
+          Render a section of the tile map
+ voidrender(int x, + int y, + int sx, + int sy, + int width, + int height, + int l, + boolean lineByLine) + +
+          Render a section of the tile map
+protected  voidrenderedLine(int visualY, + int mapY, + int layer) + +
+          Overrideable to allow other sprites to be rendered between lines of the + map
+protected  voidrenderIsometricMap(int x, + int y, + int sx, + int sy, + int width, + int height, + Layer layer, + boolean lineByLine) + +
+          Render of isometric map renders.
+ voidsetTileId(int x, + int y, + int layerIndex, + int tileid) + +
+          Set the global ID of a tile at specified location in the map
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+width

+
+protected int width
+
+
The width of the map +

+

+
+
+
+ +

+height

+
+protected int height
+
+
The height of the map +

+

+
+
+
+ +

+tileWidth

+
+protected int tileWidth
+
+
The width of the tiles used on the map +

+

+
+
+
+ +

+tileHeight

+
+protected int tileHeight
+
+
The height of the tiles used on the map +

+

+
+
+
+ +

+tilesLocation

+
+protected java.lang.String tilesLocation
+
+
The location prefix where we can find tileset images +

+

+
+
+
+ +

+props

+
+protected java.util.Properties props
+
+
the properties of the map +

+

+
+
+
+ +

+tileSets

+
+protected java.util.ArrayList tileSets
+
+
The list of tilesets defined in the map +

+

+
+
+
+ +

+layers

+
+protected java.util.ArrayList layers
+
+
The list of layers defined in the map +

+

+
+
+
+ +

+objectGroups

+
+protected java.util.ArrayList objectGroups
+
+
The list of object-groups defined in the map +

+

+
+
+
+ +

+ORTHOGONAL

+
+protected static final int ORTHOGONAL
+
+
Indicates a orthogonal map +

+

+
See Also:
Constant Field Values
+
+
+ +

+ISOMETRIC

+
+protected static final int ISOMETRIC
+
+
Indicates an isometric map +

+

+
See Also:
Constant Field Values
+
+
+ +

+orientation

+
+protected int orientation
+
+
The orientation of this map +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TiledMap

+
+public TiledMap(java.lang.String ref)
+         throws SlickException
+
+
Create a new tile map based on a given TMX file +

+

+
Parameters:
ref - The location of the tile map to load +
Throws: +
SlickException - Indicates a failure to load the tilemap
+
+
+ +

+TiledMap

+
+public TiledMap(java.lang.String ref,
+                boolean loadTileSets)
+         throws SlickException
+
+
Create a new tile map based on a given TMX file +

+

+
Parameters:
ref - The location of the tile map to load
loadTileSets - True if we want to load tilesets - including their image data +
Throws: +
SlickException - Indicates a failure to load the tilemap
+
+
+ +

+TiledMap

+
+public TiledMap(java.lang.String ref,
+                java.lang.String tileSetsLocation)
+         throws SlickException
+
+
Create a new tile map based on a given TMX file +

+

+
Parameters:
ref - The location of the tile map to load
tileSetsLocation - The location where we can find the tileset images and other + resources +
Throws: +
SlickException - Indicates a failure to load the tilemap
+
+
+ +

+TiledMap

+
+public TiledMap(java.io.InputStream in)
+         throws SlickException
+
+
Load a tile map from an arbitary input stream +

+

+
Parameters:
in - The input stream to load from +
Throws: +
SlickException - Indicates a failure to load the tilemap
+
+
+ +

+TiledMap

+
+public TiledMap(java.io.InputStream in,
+                java.lang.String tileSetsLocation)
+         throws SlickException
+
+
Load a tile map from an arbitary input stream +

+

+
Parameters:
in - The input stream to load from
tileSetsLocation - The location at which we can find tileset images +
Throws: +
SlickException - Indicates a failure to load the tilemap
+
+ + + + + + + + +
+Method Detail
+ +

+getTilesLocation

+
+public java.lang.String getTilesLocation()
+
+
Get the location of the tile images specified +

+

+ +
Returns:
The location of the tile images specified as a resource reference + prefix
+
+
+
+ +

+getLayerIndex

+
+public int getLayerIndex(java.lang.String name)
+
+
Get the index of the layer with given name +

+

+
Parameters:
name - The name of the tile to search for +
Returns:
The index of the layer or -1 if there is no layer with given name
+
+
+
+ +

+getTileImage

+
+public Image getTileImage(int x,
+                          int y,
+                          int layerIndex)
+
+
Gets the Image used to draw the tile at the given x and y coordinates. +

+

+
Parameters:
x - The x coordinate of the tile whose image should be retrieved
y - The y coordinate of the tile whose image should be retrieved
layerIndex - The index of the layer on which the tile whose image should be + retrieve exists +
Returns:
The image used to draw the specified tile or null if there is no + image for the specified tile.
+
+
+
+ +

+getWidth

+
+public int getWidth()
+
+
Get the width of the map +

+

+ +
Returns:
The width of the map (in tiles)
+
+
+
+ +

+getHeight

+
+public int getHeight()
+
+
Get the height of the map +

+

+ +
Returns:
The height of the map (in tiles)
+
+
+
+ +

+getTileHeight

+
+public int getTileHeight()
+
+
Get the height of a single tile +

+

+ +
Returns:
The height of a single tile (in pixels)
+
+
+
+ +

+getTileWidth

+
+public int getTileWidth()
+
+
Get the width of a single tile +

+

+ +
Returns:
The height of a single tile (in pixels)
+
+
+
+ +

+getTileId

+
+public int getTileId(int x,
+                     int y,
+                     int layerIndex)
+
+
Get the global ID of a tile at specified location in the map +

+

+
Parameters:
x - The x location of the tile
y - The y location of the tile
layerIndex - The index of the layer to retireve the tile from +
Returns:
The global ID of the tile
+
+
+
+ +

+setTileId

+
+public void setTileId(int x,
+                      int y,
+                      int layerIndex,
+                      int tileid)
+
+
Set the global ID of a tile at specified location in the map +

+

+
Parameters:
x - The x location of the tile
y - The y location of the tile
layerIndex - The index of the layer to set the new tileid
tileid - The tileid to be set
+
+
+
+ +

+getMapProperty

+
+public java.lang.String getMapProperty(java.lang.String propertyName,
+                                       java.lang.String def)
+
+
Get a property given to the map. Note that this method will not perform + well and should not be used as part of the default code path in the game + loop. +

+

+
Parameters:
propertyName - The name of the property of the map to retrieve
def - The default value to return +
Returns:
The value assigned to the property on the map (or the default + value if none is supplied)
+
+
+
+ +

+getLayerProperty

+
+public java.lang.String getLayerProperty(int layerIndex,
+                                         java.lang.String propertyName,
+                                         java.lang.String def)
+
+
Get a property given to a particular layer. Note that this method will + not perform well and should not be used as part of the default code path + in the game loop. +

+

+
Parameters:
layerIndex - The index of the layer to retrieve
propertyName - The name of the property of this layer to retrieve
def - The default value to return +
Returns:
The value assigned to the property on the layer (or the default + value if none is supplied)
+
+
+
+ +

+getTileProperty

+
+public java.lang.String getTileProperty(int tileID,
+                                        java.lang.String propertyName,
+                                        java.lang.String def)
+
+
Get a propety given to a particular tile. Note that this method will not + perform well and should not be used as part of the default code path in + the game loop. +

+

+
Parameters:
tileID - The global ID of the tile to retrieve
propertyName - The name of the property to retireve
def - The default value to return +
Returns:
The value assigned to the property on the tile (or the default + value if none is supplied)
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y)
+
+
Render the whole tile map at a given location +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y,
+                   int layer)
+
+
Render a single layer from the map +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
layer - The layer to render
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y,
+                   int sx,
+                   int sy,
+                   int width,
+                   int height)
+
+
Render a section of the tile map +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The width of the section to render (in tiles)
height - The height of the secton to render (in tiles)
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y,
+                   int sx,
+                   int sy,
+                   int width,
+                   int height,
+                   int l,
+                   boolean lineByLine)
+
+
Render a section of the tile map +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The width of the section to render (in tiles)
height - The height of the secton to render (in tiles)
l - The index of the layer to render
lineByLine - True if we should render line by line, i.e. giving us a chance + to render something else between lines (@see + renderedLine(int, int, int)
+
+
+
+ +

+render

+
+public void render(int x,
+                   int y,
+                   int sx,
+                   int sy,
+                   int width,
+                   int height,
+                   boolean lineByLine)
+
+
Render a section of the tile map +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The width of the section to render (in tiles)
height - The height of the secton to render (in tiles)
lineByLine - True if we should render line by line, i.e. giving us a chance + to render something else between lines (@see + renderedLine(int, int, int)
+
+
+
+ +

+renderIsometricMap

+
+protected void renderIsometricMap(int x,
+                                  int y,
+                                  int sx,
+                                  int sy,
+                                  int width,
+                                  int height,
+                                  Layer layer,
+                                  boolean lineByLine)
+
+
Render of isometric map renders. +

+

+
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The width of the section to render (in tiles)
height - The height of the section to render (in tiles)
layer - if this is null all layers are rendered, if not only the + selected layer is renderered
lineByLine - True if we should render line by line, i.e. giving us a chance + to render something else between lines (@see + renderedLine(int, int, int) + + TODO: [Isometric map] Render stuff between lines, concept of + line differs from ortho maps
+
+
+
+ +

+getLayerCount

+
+public int getLayerCount()
+
+
Retrieve a count of the number of layers available +

+

+ +
Returns:
The number of layers available in this map
+
+
+
+ +

+getTileSetCount

+
+public int getTileSetCount()
+
+
Retrieve the number of tilesets available in this map +

+

+ +
Returns:
The number of tilesets available in this map
+
+
+
+ +

+getTileSet

+
+public TileSet getTileSet(int index)
+
+
Get a tileset at a particular index in the list of sets for this map +

+

+
Parameters:
index - The index of the tileset. +
Returns:
The TileSet requested
+
+
+
+ +

+getTileSetByGID

+
+public TileSet getTileSetByGID(int gid)
+
+
Get a tileset by a given global ID +

+

+
Parameters:
gid - The global ID of the tileset to retrieve +
Returns:
The tileset requested or null if no tileset matches
+
+
+
+ +

+findTileSet

+
+public TileSet findTileSet(int gid)
+
+
Find a tile for a given global tile id +

+

+
Parameters:
gid - The global tile id we're looking for +
Returns:
The tileset in which that tile lives or null if the gid is not + defined
+
+
+
+ +

+renderedLine

+
+protected void renderedLine(int visualY,
+                            int mapY,
+                            int layer)
+
+
Overrideable to allow other sprites to be rendered between lines of the + map +

+

+
Parameters:
visualY - The visual Y coordinate, i.e. 0->height
mapY - The map Y coordinate, i.e. y->y+height
layer - The layer being rendered
+
+
+
+ +

+getObjectGroupCount

+
+public int getObjectGroupCount()
+
+
Returns the number of object-groups defined in the map. +

+

+ +
Returns:
Number of object-groups on the map
+
+
+
+ +

+getObjectCount

+
+public int getObjectCount(int groupID)
+
+
Returns the number of objects of a specific object-group. +

+

+
Parameters:
groupID - The index of this object-group +
Returns:
Number of the objects in the object-group or -1, when error + occurred.
+
+
+
+ +

+getObjectName

+
+public java.lang.String getObjectName(int groupID,
+                                      int objectID)
+
+
Return the name of a specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The name of an object or null, when error occurred
+
+
+
+ +

+getObjectType

+
+public java.lang.String getObjectType(int groupID,
+                                      int objectID)
+
+
Return the type of an specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The type of an object or null, when error occurred
+
+
+
+ +

+getObjectX

+
+public int getObjectX(int groupID,
+                      int objectID)
+
+
Returns the x-coordinate of a specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The x-coordinate of an object, or -1, when error occurred
+
+
+
+ +

+getObjectY

+
+public int getObjectY(int groupID,
+                      int objectID)
+
+
Returns the y-coordinate of a specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The y-coordinate of an object, or -1, when error occurred
+
+
+
+ +

+getObjectWidth

+
+public int getObjectWidth(int groupID,
+                          int objectID)
+
+
Returns the width of a specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The width of an object, or -1, when error occurred
+
+
+
+ +

+getObjectHeight

+
+public int getObjectHeight(int groupID,
+                           int objectID)
+
+
Returns the height of a specific object from a specific group. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The height of an object, or -1, when error occurred
+
+
+
+ +

+getObjectImage

+
+public java.lang.String getObjectImage(int groupID,
+                                       int objectID)
+
+
Retrieve the image source property for a given object +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object +
Returns:
The image source reference or null if one isn't defined
+
+
+
+ +

+getObjectProperty

+
+public java.lang.String getObjectProperty(int groupID,
+                                          int objectID,
+                                          java.lang.String propertyName,
+                                          java.lang.String def)
+
+
Looks for a property with the given name and returns it's value. If no + property is found, def is returned. +

+

+
Parameters:
groupID - Index of a group
objectID - Index of an object
propertyName - Name of a property
def - default value to return, if no property is found +
Returns:
The value of the property with the given name or def, if there is + no property with that name.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/class-use/Layer.html b/lib/javadoc/org/newdawn/slick/tiled/class-use/Layer.html new file mode 100644 index 000000000..72dfccb6f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/class-use/Layer.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Class org.newdawn.slick.tiled.Layer (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tiled.Layer

+
+ + + + + + + + + +
+Packages that use Layer
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
+  +

+ + + + + +
+Uses of Layer in org.newdawn.slick.tiled
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tiled with parameters of type Layer
+protected  voidTiledMap.renderIsometricMap(int x, + int y, + int sx, + int sy, + int width, + int height, + Layer layer, + boolean lineByLine) + +
+          Render of isometric map renders.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/class-use/TileSet.html b/lib/javadoc/org/newdawn/slick/tiled/class-use/TileSet.html new file mode 100644 index 000000000..e24522ce9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/class-use/TileSet.html @@ -0,0 +1,197 @@ + + + + + + +Uses of Class org.newdawn.slick.tiled.TileSet (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tiled.TileSet

+
+ + + + + + + + + +
+Packages that use TileSet
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
+  +

+ + + + + +
+Uses of TileSet in org.newdawn.slick.tiled
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.tiled that return TileSet
+ TileSetTiledMap.findTileSet(int gid) + +
+          Find a tile for a given global tile id
+ TileSetTiledMap.getTileSet(int index) + +
+          Get a tileset at a particular index in the list of sets for this map
+ TileSetTiledMap.getTileSetByGID(int gid) + +
+          Get a tileset by a given global ID
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.GroupObject.html b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.GroupObject.html new file mode 100644 index 000000000..60ac97f4a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.GroupObject.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tiled.TiledMap.GroupObject (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tiled.TiledMap.GroupObject

+
+No usage of org.newdawn.slick.tiled.TiledMap.GroupObject +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.ObjectGroup.html b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.ObjectGroup.html new file mode 100644 index 000000000..fadec11f1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.ObjectGroup.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.tiled.TiledMap.ObjectGroup (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tiled.TiledMap.ObjectGroup

+
+No usage of org.newdawn.slick.tiled.TiledMap.ObjectGroup +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.html b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.html new file mode 100644 index 000000000..cb972e6de --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/class-use/TiledMap.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Class org.newdawn.slick.tiled.TiledMap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.tiled.TiledMap

+
+ + + + + + + + + +
+Packages that use TiledMap
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
+  +

+ + + + + +
+Uses of TiledMap in org.newdawn.slick.tiled
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.tiled with parameters of type TiledMap
Layer(TiledMap map, + org.w3c.dom.Element element) + +
+          Create a new layer based on the XML definition
TileSet(TiledMap map, + org.w3c.dom.Element element, + boolean loadImage) + +
+          Create a tile set based on an XML definition
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/package-frame.html b/lib/javadoc/org/newdawn/slick/tiled/package-frame.html new file mode 100644 index 000000000..9001f66de --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.newdawn.slick.tiled (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.tiled + + + + +
+Classes  + +
+Layer +
+TiledMap +
+TileSet
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/package-summary.html b/lib/javadoc/org/newdawn/slick/tiled/package-summary.html new file mode 100644 index 000000000..ab11fd081 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/package-summary.html @@ -0,0 +1,183 @@ + + + + + + +org.newdawn.slick.tiled (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.tiled +

+Contains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
LayerA layer of tiles on the map
TiledMapThis class is intended to parse TilED maps.
TileSetA holder for tileset information
+  + +

+

+Package org.newdawn.slick.tiled Description +

+ +

+Contains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. The default rendering for the tile map will simply render it flat. The data +from the tilemaps is also available in it's raw form. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/package-tree.html b/lib/javadoc/org/newdawn/slick/tiled/package-tree.html new file mode 100644 index 000000000..216d8c80c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/package-tree.html @@ -0,0 +1,153 @@ + + + + + + +org.newdawn.slick.tiled Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.tiled +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/tiled/package-use.html b/lib/javadoc/org/newdawn/slick/tiled/package-use.html new file mode 100644 index 000000000..a67a1abae --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/tiled/package-use.html @@ -0,0 +1,183 @@ + + + + + + +Uses of Package org.newdawn.slick.tiled (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.tiled

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.tiled
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps. 
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.tiled used by org.newdawn.slick.tiled
Layer + +
+          A layer of tiles on the map
TiledMap + +
+          This class is intended to parse TilED maps.
TileSet + +
+          A holder for tileset information
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/Bootstrap.html b/lib/javadoc/org/newdawn/slick/util/Bootstrap.html new file mode 100644 index 000000000..d28018acd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/Bootstrap.html @@ -0,0 +1,268 @@ + + + + + + +Bootstrap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class Bootstrap

+
+java.lang.Object
+  extended by org.newdawn.slick.util.Bootstrap
+
+
+
+
public class Bootstrap
extends java.lang.Object
+ + +

+Utility class to wrap up starting a game in a single line +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Bootstrap() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidrunAsApplication(Game game, + int width, + int height, + boolean fullscreen) + +
+          Start the game as an application
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Bootstrap

+
+public Bootstrap()
+
+
+ + + + + + + + +
+Method Detail
+ +

+runAsApplication

+
+public static void runAsApplication(Game game,
+                                    int width,
+                                    int height,
+                                    boolean fullscreen)
+
+
Start the game as an application +

+

+
Parameters:
game - The game to be started
width - The width of the window
height - The height of the window
fullscreen - True if the window should be fullscreen
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/BufferedImageUtil.html b/lib/javadoc/org/newdawn/slick/util/BufferedImageUtil.html new file mode 100644 index 000000000..a30ea7ac2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/BufferedImageUtil.html @@ -0,0 +1,333 @@ + + + + + + +BufferedImageUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class BufferedImageUtil

+
+java.lang.Object
+  extended by org.newdawn.slick.util.BufferedImageUtil
+
+
+
+
public class BufferedImageUtil
extends java.lang.Object
+ + +

+This is a utility class that allows you to convert a BufferedImage into a + texture. +

+ +

+

+
Author:
+
James Chambers (Jimmy), Jeremy Adams (elias_naur), Kevin Glass (kevglass)
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BufferedImageUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TexturegetTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceImage) + +
+          Load a texture
+static TexturegetTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceImage, + int filter) + +
+          Load a texture
+static TexturegetTexture(java.lang.String resourceName, + java.awt.image.BufferedImage resourceimage, + int target, + int dstPixelFormat, + int minFilter, + int magFilter) + +
+          Load a texture into OpenGL from a BufferedImage
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BufferedImageUtil

+
+public BufferedImageUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String resourceName,
+                                 java.awt.image.BufferedImage resourceImage)
+                          throws java.io.IOException
+
+
Load a texture +

+

+
Parameters:
resourceName - The location of the resource to load
resourceImage - The BufferedImage we are converting +
Returns:
The loaded texture +
Throws: +
java.io.IOException - Indicates a failure to access the resource
+
+
+
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String resourceName,
+                                 java.awt.image.BufferedImage resourceImage,
+                                 int filter)
+                          throws java.io.IOException
+
+
Load a texture +

+

+
Parameters:
resourceName - The location of the resource to load
resourceImage - The BufferedImage we are converting +
Returns:
The loaded texture +
Throws: +
java.io.IOException - Indicates a failure to access the resource
+
+
+
+ +

+getTexture

+
+public static Texture getTexture(java.lang.String resourceName,
+                                 java.awt.image.BufferedImage resourceimage,
+                                 int target,
+                                 int dstPixelFormat,
+                                 int minFilter,
+                                 int magFilter)
+                          throws java.io.IOException
+
+
Load a texture into OpenGL from a BufferedImage +

+

+
Parameters:
resourceName - The location of the resource to load
resourceimage - The BufferedImage we are converting
target - The GL target to load the texture against
dstPixelFormat - The pixel format of the screen
minFilter - The minimising filter
magFilter - The magnification filter +
Returns:
The loaded texture +
Throws: +
java.io.IOException - Indicates a failure to access the resource
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/ClasspathLocation.html b/lib/javadoc/org/newdawn/slick/util/ClasspathLocation.html new file mode 100644 index 000000000..1366e1ae6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/ClasspathLocation.html @@ -0,0 +1,297 @@ + + + + + + +ClasspathLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class ClasspathLocation

+
+java.lang.Object
+  extended by org.newdawn.slick.util.ClasspathLocation
+
+
+
All Implemented Interfaces:
ResourceLocation
+
+
+
+
public class ClasspathLocation
extends java.lang.Object
implements ResourceLocation
+ + +

+A resource location that searches the classpath +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClasspathLocation() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.net.URLgetResource(java.lang.String ref) + +
+          Get a resource as a URL
+ java.io.InputStreamgetResourceAsStream(java.lang.String ref) + +
+          Get a resource as an input stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClasspathLocation

+
+public ClasspathLocation()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getResource

+
+public java.net.URL getResource(java.lang.String ref)
+
+
Description copied from interface: ResourceLocation
+
Get a resource as a URL +

+

+
Specified by:
getResource in interface ResourceLocation
+
+
+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A URL from which the resource can be read
See Also:
ResourceLocation.getResource(java.lang.String)
+
+
+
+ +

+getResourceAsStream

+
+public java.io.InputStream getResourceAsStream(java.lang.String ref)
+
+
Description copied from interface: ResourceLocation
+
Get a resource as an input stream +

+

+
Specified by:
getResourceAsStream in interface ResourceLocation
+
+
+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A stream from which the resource can be read or + null if the resource can't be found in this location
See Also:
ResourceLocation.getResourceAsStream(java.lang.String)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/DefaultLogSystem.html b/lib/javadoc/org/newdawn/slick/util/DefaultLogSystem.html new file mode 100644 index 000000000..a2948bbe5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/DefaultLogSystem.html @@ -0,0 +1,454 @@ + + + + + + +DefaultLogSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class DefaultLogSystem

+
+java.lang.Object
+  extended by org.newdawn.slick.util.DefaultLogSystem
+
+
+
All Implemented Interfaces:
LogSystem
+
+
+
+
public class DefaultLogSystem
extends java.lang.Object
implements LogSystem
+ + +

+The default implementation that just spits the messages out to stdout +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static java.io.PrintStreamout + +
+          The output stream for dumping the log out on
+  + + + + + + + + + + +
+Constructor Summary
DefaultLogSystem() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddebug(java.lang.String message) + +
+          Log a debug message
+ voiderror(java.lang.String message) + +
+          Log an error
+ voiderror(java.lang.String message, + java.lang.Throwable e) + +
+          Log an error
+ voiderror(java.lang.Throwable e) + +
+          Log an error
+ voidinfo(java.lang.String message) + +
+          Log an information message
+ voidwarn(java.lang.String message) + +
+          Log a warning
+ voidwarn(java.lang.String message, + java.lang.Throwable e) + +
+          Log a warning with an exception that caused it
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+out

+
+public static java.io.PrintStream out
+
+
The output stream for dumping the log out on +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+DefaultLogSystem

+
+public DefaultLogSystem()
+
+
+ + + + + + + + +
+Method Detail
+ +

+error

+
+public void error(java.lang.String message,
+                  java.lang.Throwable e)
+
+
Log an error +

+

+
Specified by:
error in interface LogSystem
+
+
+
Parameters:
message - The message describing the error
e - The exception causing the error
+
+
+
+ +

+error

+
+public void error(java.lang.Throwable e)
+
+
Log an error +

+

+
Specified by:
error in interface LogSystem
+
+
+
Parameters:
e - The exception causing the error
+
+
+
+ +

+error

+
+public void error(java.lang.String message)
+
+
Log an error +

+

+
Specified by:
error in interface LogSystem
+
+
+
Parameters:
message - The message describing the error
+
+
+
+ +

+warn

+
+public void warn(java.lang.String message)
+
+
Log a warning +

+

+
Specified by:
warn in interface LogSystem
+
+
+
Parameters:
message - The message describing the warning
+
+
+
+ +

+info

+
+public void info(java.lang.String message)
+
+
Log an information message +

+

+
Specified by:
info in interface LogSystem
+
+
+
Parameters:
message - The message describing the infomation
+
+
+
+ +

+debug

+
+public void debug(java.lang.String message)
+
+
Log a debug message +

+

+
Specified by:
debug in interface LogSystem
+
+
+
Parameters:
message - The message describing the debug
+
+
+
+ +

+warn

+
+public void warn(java.lang.String message,
+                 java.lang.Throwable e)
+
+
Log a warning with an exception that caused it +

+

+
Specified by:
warn in interface LogSystem
+
+
+
Parameters:
message - The message describing the warning
e - The cause of the warning
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/FastTrig.html b/lib/javadoc/org/newdawn/slick/util/FastTrig.html new file mode 100644 index 000000000..45b98258a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/FastTrig.html @@ -0,0 +1,285 @@ + + + + + + +FastTrig (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class FastTrig

+
+java.lang.Object
+  extended by org.newdawn.slick.util.FastTrig
+
+
+
+
public class FastTrig
extends java.lang.Object
+ + +

+Utility to handle Java's odd trig performance issues +

+ +

+

+
Author:
+
JeffK
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FastTrig() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static doublecos(double radians) + +
+          Get the cosine of an angle
+static doublesin(double radians) + +
+          Get the sine of an angle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FastTrig

+
+public FastTrig()
+
+
+ + + + + + + + +
+Method Detail
+ +

+sin

+
+public static double sin(double radians)
+
+
Get the sine of an angle +

+

+
Parameters:
radians - The angle +
Returns:
The sine of the angle
+
+
+
+ +

+cos

+
+public static double cos(double radians)
+
+
Get the cosine of an angle +

+

+
Parameters:
radians - The angle +
Returns:
The cosine of the angle
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/FileSystemLocation.html b/lib/javadoc/org/newdawn/slick/util/FileSystemLocation.html new file mode 100644 index 000000000..442bf28d9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/FileSystemLocation.html @@ -0,0 +1,301 @@ + + + + + + +FileSystemLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class FileSystemLocation

+
+java.lang.Object
+  extended by org.newdawn.slick.util.FileSystemLocation
+
+
+
All Implemented Interfaces:
ResourceLocation
+
+
+
+
public class FileSystemLocation
extends java.lang.Object
implements ResourceLocation
+ + +

+A resource loading location that searches somewhere on the classpath +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FileSystemLocation(java.io.File root) + +
+          Create a new resoruce location based on the file system
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.net.URLgetResource(java.lang.String ref) + +
+          Get a resource as a URL
+ java.io.InputStreamgetResourceAsStream(java.lang.String ref) + +
+          Get a resource as an input stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FileSystemLocation

+
+public FileSystemLocation(java.io.File root)
+
+
Create a new resoruce location based on the file system +

+

+
Parameters:
root - The root of the file system to search
+
+ + + + + + + + +
+Method Detail
+ +

+getResource

+
+public java.net.URL getResource(java.lang.String ref)
+
+
Description copied from interface: ResourceLocation
+
Get a resource as a URL +

+

+
Specified by:
getResource in interface ResourceLocation
+
+
+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A URL from which the resource can be read
See Also:
ResourceLocation.getResource(String)
+
+
+
+ +

+getResourceAsStream

+
+public java.io.InputStream getResourceAsStream(java.lang.String ref)
+
+
Description copied from interface: ResourceLocation
+
Get a resource as an input stream +

+

+
Specified by:
getResourceAsStream in interface ResourceLocation
+
+
+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A stream from which the resource can be read or + null if the resource can't be found in this location
See Also:
ResourceLocation.getResourceAsStream(String)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/FontUtils.Alignment.html b/lib/javadoc/org/newdawn/slick/util/FontUtils.Alignment.html new file mode 100644 index 000000000..73217f7c0 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/FontUtils.Alignment.html @@ -0,0 +1,329 @@ + + + + + + +FontUtils.Alignment (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class FontUtils.Alignment

+
+java.lang.Object
+  extended by org.newdawn.slick.util.FontUtils.Alignment
+
+
+
Enclosing class:
FontUtils
+
+
+
+
public class FontUtils.Alignment
extends java.lang.Object
+ + +

+Alignment indicators +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intCENTER + +
+          Center alignment
+static intJUSTIFY + +
+          Justify alignment
+static intLEFT + +
+          Left alignment
+static intRIGHT + +
+          Right alignment
+  + + + + + + + + + + +
+Constructor Summary
FontUtils.Alignment() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+LEFT

+
+public static final int LEFT
+
+
Left alignment +

+

+
See Also:
Constant Field Values
+
+
+ +

+CENTER

+
+public static final int CENTER
+
+
Center alignment +

+

+
See Also:
Constant Field Values
+
+
+ +

+RIGHT

+
+public static final int RIGHT
+
+
Right alignment +

+

+
See Also:
Constant Field Values
+
+
+ +

+JUSTIFY

+
+public static final int JUSTIFY
+
+
Justify alignment +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+FontUtils.Alignment

+
+public FontUtils.Alignment()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/FontUtils.html b/lib/javadoc/org/newdawn/slick/util/FontUtils.html new file mode 100644 index 000000000..a096c52f2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/FontUtils.html @@ -0,0 +1,441 @@ + + + + + + +FontUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class FontUtils

+
+java.lang.Object
+  extended by org.newdawn.slick.util.FontUtils
+
+
+
+
public class FontUtils
extends java.lang.Object
+ + +

+Simple utility class to support justified text + + http://slick.javaunlimited.net/viewtopic.php?t=2640 +

+ +

+

+
Author:
+
zenzei
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+ classFontUtils.Alignment + +
+          Alignment indicators
+  + + + + + + + + + + +
+Constructor Summary
FontUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voiddrawCenter(Font font, + java.lang.String s, + int x, + int y, + int width) + +
+          Draw text center justified
+static voiddrawCenter(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text center justified
+static voiddrawLeft(Font font, + java.lang.String s, + int x, + int y) + +
+          Draw text left justified
+static voiddrawRight(Font font, + java.lang.String s, + int x, + int y, + int width) + +
+          Draw text right justified
+static voiddrawRight(Font font, + java.lang.String s, + int x, + int y, + int width, + Color color) + +
+          Draw text right justified
+static intdrawString(Font font, + java.lang.String s, + int alignment, + int x, + int y, + int width, + Color color) + +
+          Draw a string
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FontUtils

+
+public FontUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+drawLeft

+
+public static void drawLeft(Font font,
+                            java.lang.String s,
+                            int x,
+                            int y)
+
+
Draw text left justified +

+

+
Parameters:
font - The font to draw with
s - The string to draw
x - The x location to draw at
y - The y location to draw at
+
+
+
+ +

+drawCenter

+
+public static void drawCenter(Font font,
+                              java.lang.String s,
+                              int x,
+                              int y,
+                              int width)
+
+
Draw text center justified +

+

+
Parameters:
font - The font to draw with
s - The string to draw
x - The x location to draw at
y - The y location to draw at
width - The width to fill with the text
+
+
+
+ +

+drawCenter

+
+public static void drawCenter(Font font,
+                              java.lang.String s,
+                              int x,
+                              int y,
+                              int width,
+                              Color color)
+
+
Draw text center justified +

+

+
Parameters:
font - The font to draw with
s - The string to draw
x - The x location to draw at
y - The y location to draw at
width - The width to fill with the text
color - The color to draw in
+
+
+
+ +

+drawRight

+
+public static void drawRight(Font font,
+                             java.lang.String s,
+                             int x,
+                             int y,
+                             int width)
+
+
Draw text right justified +

+

+
Parameters:
font - The font to draw with
s - The string to draw
x - The x location to draw at
y - The y location to draw at
width - The width to fill with the text
+
+
+
+ +

+drawRight

+
+public static void drawRight(Font font,
+                             java.lang.String s,
+                             int x,
+                             int y,
+                             int width,
+                             Color color)
+
+
Draw text right justified +

+

+
Parameters:
font - The font to draw with
s - The string to draw
x - The x location to draw at
y - The y location to draw at
width - The width to fill with the text
color - The color to draw in
+
+
+
+ +

+drawString

+
+public static final int drawString(Font font,
+                                   java.lang.String s,
+                                   int alignment,
+                                   int x,
+                                   int y,
+                                   int width,
+                                   Color color)
+
+
Draw a string +

+

+
Parameters:
font - The font to draw with
s - The text to draw
alignment - The alignment to apply
x - The x location to draw at
y - The y location to draw at
width - The width to fill with the string
color - The color to draw in +
Returns:
The final x coordinate of the text
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/InputAdapter.html b/lib/javadoc/org/newdawn/slick/util/InputAdapter.html new file mode 100644 index 000000000..b3a2e324e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/InputAdapter.html @@ -0,0 +1,890 @@ + + + + + + +InputAdapter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class InputAdapter

+
+java.lang.Object
+  extended by org.newdawn.slick.util.InputAdapter
+
+
+
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, InputListener, KeyListener, MouseListener
+
+
+
Direct Known Subclasses:
AbstractComponent
+
+
+
+
public class InputAdapter
extends java.lang.Object
implements InputListener
+ + +

+An implement implementation of the InputListener interface +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
InputAdapter() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcontrollerButtonPressed(int controller, + int button) + +
+          Notification that a button control has been pressed on + the controller.
+ voidcontrollerButtonReleased(int controller, + int button) + +
+          Notification that a button control has been released on + the controller.
+ voidcontrollerDownPressed(int controller) + +
+          Notification that the down control has been pressed on + the controller.
+ voidcontrollerDownReleased(int controller) + +
+          Notification that the down control has been released on + the controller.
+ voidcontrollerLeftPressed(int controller) + +
+          Notification that the left control has been pressed on + the controller.
+ voidcontrollerLeftReleased(int controller) + +
+          Notification that the left control has been released on + the controller.
+ voidcontrollerRightPressed(int controller) + +
+          Notification that the right control has been pressed on + the controller.
+ voidcontrollerRightReleased(int controller) + +
+          Notification that the right control has been released on + the controller.
+ voidcontrollerUpPressed(int controller) + +
+          Notification that the up control has been pressed on + the controller.
+ voidcontrollerUpReleased(int controller) + +
+          Notification that the up control has been released on + the controller.
+ voidinputEnded() + +
+          Notification that all input events have been sent for this frame
+ voidinputStarted() + +
+          Notification that input is about to be processed
+ booleanisAcceptingInput() + +
+          Check if this input listener is accepting input
+ voidkeyPressed(int key, + char c) + +
+          Notification that a key was pressed
+ voidkeyReleased(int key, + char c) + +
+          Notification that a key was released
+ voidmouseClicked(int button, + int x, + int y, + int clickCount) + +
+          Notification that a mouse button was clicked.
+ voidmouseDragged(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was dragged
+ voidmouseMoved(int oldx, + int oldy, + int newx, + int newy) + +
+          Notification that mouse cursor was moved
+ voidmousePressed(int button, + int x, + int y) + +
+          Notification that a mouse button was pressed
+ voidmouseReleased(int button, + int x, + int y) + +
+          Notification that a mouse button was released
+ voidmouseWheelMoved(int change) + +
+          Notification that the mouse wheel position was updated
+ voidsetAcceptingInput(boolean acceptingInput) + +
+          Indicate if we should be accepting input of any sort
+ voidsetInput(Input input) + +
+          Set the input that events are being sent from
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InputAdapter

+
+public InputAdapter()
+
+
+ + + + + + + + +
+Method Detail
+ +

+controllerButtonPressed

+
+public void controllerButtonPressed(int controller,
+                                    int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been pressed on + the controller. +

+

+
Specified by:
controllerButtonPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
button - The index of the button pressed (starting at 1)
See Also:
ControllerListener.controllerButtonPressed(int, int)
+
+
+
+ +

+controllerButtonReleased

+
+public void controllerButtonReleased(int controller,
+                                     int button)
+
+
Description copied from interface: ControllerListener
+
Notification that a button control has been released on + the controller. +

+

+
Specified by:
controllerButtonReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
button - The index of the button released (starting at 1)
See Also:
ControllerListener.controllerButtonReleased(int, int)
+
+
+
+ +

+controllerDownPressed

+
+public void controllerDownPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been pressed on + the controller. +

+

+
Specified by:
controllerDownPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerDownPressed(int)
+
+
+
+ +

+controllerDownReleased

+
+public void controllerDownReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the down control has been released on + the controller. +

+

+
Specified by:
controllerDownReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerDownReleased(int)
+
+
+
+ +

+controllerLeftPressed

+
+public void controllerLeftPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been pressed on + the controller. +

+

+
Specified by:
controllerLeftPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerLeftPressed(int)
+
+
+
+ +

+controllerLeftReleased

+
+public void controllerLeftReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the left control has been released on + the controller. +

+

+
Specified by:
controllerLeftReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerLeftReleased(int)
+
+
+
+ +

+controllerRightPressed

+
+public void controllerRightPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been pressed on + the controller. +

+

+
Specified by:
controllerRightPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerRightPressed(int)
+
+
+
+ +

+controllerRightReleased

+
+public void controllerRightReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the right control has been released on + the controller. +

+

+
Specified by:
controllerRightReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerRightReleased(int)
+
+
+
+ +

+controllerUpPressed

+
+public void controllerUpPressed(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been pressed on + the controller. +

+

+
Specified by:
controllerUpPressed in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was pressed.
See Also:
ControllerListener.controllerUpPressed(int)
+
+
+
+ +

+controllerUpReleased

+
+public void controllerUpReleased(int controller)
+
+
Description copied from interface: ControllerListener
+
Notification that the up control has been released on + the controller. +

+

+
Specified by:
controllerUpReleased in interface ControllerListener
+
+
+
Parameters:
controller - The index of the controller on which the control + was released.
See Also:
ControllerListener.controllerUpReleased(int)
+
+
+
+ +

+inputEnded

+
+public void inputEnded()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that all input events have been sent for this frame +

+

+
Specified by:
inputEnded in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputEnded()
+
+
+
+ +

+isAcceptingInput

+
+public boolean isAcceptingInput()
+
+
Description copied from interface: ControlledInputReciever
+
Check if this input listener is accepting input +

+

+
Specified by:
isAcceptingInput in interface ControlledInputReciever
+
+
+ +
Returns:
True if the input listener should recieve events
See Also:
ControlledInputReciever.isAcceptingInput()
+
+
+
+ +

+setAcceptingInput

+
+public void setAcceptingInput(boolean acceptingInput)
+
+
Indicate if we should be accepting input of any sort +

+

+
+
+
+
Parameters:
acceptingInput - True if we should accept input
+
+
+
+ +

+keyPressed

+
+public void keyPressed(int key,
+                       char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was pressed +

+

+
Specified by:
keyPressed in interface KeyListener
+
+
+
Parameters:
key - The key code that was pressed (@see org.newdawn.slick.Input)
c - The character of the key that was pressed
See Also:
KeyListener.keyPressed(int, char)
+
+
+
+ +

+keyReleased

+
+public void keyReleased(int key,
+                        char c)
+
+
Description copied from interface: KeyListener
+
Notification that a key was released +

+

+
Specified by:
keyReleased in interface KeyListener
+
+
+
Parameters:
key - The key code that was released (@see org.newdawn.slick.Input)
c - The character of the key that was released
See Also:
KeyListener.keyReleased(int, char)
+
+
+
+ +

+mouseMoved

+
+public void mouseMoved(int oldx,
+                       int oldy,
+                       int newx,
+                       int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was moved +

+

+
Specified by:
mouseMoved in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
See Also:
MouseListener.mouseMoved(int, int, int, int)
+
+
+
+ +

+mousePressed

+
+public void mousePressed(int button,
+                         int x,
+                         int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was pressed +

+

+
Specified by:
mousePressed in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
See Also:
MouseListener.mousePressed(int, int, int)
+
+
+
+ +

+mouseReleased

+
+public void mouseReleased(int button,
+                          int x,
+                          int y)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was released +

+

+
Specified by:
mouseReleased in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was released
y - The y position of the mouse when the button was released
See Also:
MouseListener.mouseReleased(int, int, int)
+
+
+
+ +

+mouseWheelMoved

+
+public void mouseWheelMoved(int change)
+
+
Description copied from interface: MouseListener
+
Notification that the mouse wheel position was updated +

+

+
Specified by:
mouseWheelMoved in interface MouseListener
+
+
+
Parameters:
change - The amount of the wheel has moved
See Also:
MouseListener.mouseWheelMoved(int)
+
+
+
+ +

+setInput

+
+public void setInput(Input input)
+
+
Description copied from interface: ControlledInputReciever
+
Set the input that events are being sent from +

+

+
Specified by:
setInput in interface ControlledInputReciever
+
+
+
Parameters:
input - The input instance sending events
See Also:
ControlledInputReciever.setInput(org.newdawn.slick.Input)
+
+
+
+ +

+mouseClicked

+
+public void mouseClicked(int button,
+                         int x,
+                         int y,
+                         int clickCount)
+
+
Description copied from interface: MouseListener
+
Notification that a mouse button was clicked. Due to double click + handling the single click may be delayed slightly. For absolute notification + of single clicks use mousePressed(). + + To be absolute this method should only be used when considering double clicks +

+

+
Specified by:
mouseClicked in interface MouseListener
+
+
+
Parameters:
button - The index of the button (starting at 0)
x - The x position of the mouse when the button was pressed
y - The y position of the mouse when the button was pressed
clickCount - The number of times the button was clicked
See Also:
MouseListener.mouseClicked(int, int, int, int)
+
+
+
+ +

+mouseDragged

+
+public void mouseDragged(int oldx,
+                         int oldy,
+                         int newx,
+                         int newy)
+
+
Description copied from interface: MouseListener
+
Notification that mouse cursor was dragged +

+

+
Specified by:
mouseDragged in interface MouseListener
+
+
+
Parameters:
oldx - The old x position of the mouse
oldy - The old y position of the mouse
newx - The new x position of the mouse
newy - The new y position of the mouse
+
+
+
+ +

+inputStarted

+
+public void inputStarted()
+
+
Description copied from interface: ControlledInputReciever
+
Notification that input is about to be processed +

+

+
Specified by:
inputStarted in interface ControlledInputReciever
+
+
+
See Also:
ControlledInputReciever.inputStarted()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/LocatedImage.html b/lib/javadoc/org/newdawn/slick/util/LocatedImage.html new file mode 100644 index 000000000..837571baa --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/LocatedImage.html @@ -0,0 +1,486 @@ + + + + + + +LocatedImage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class LocatedImage

+
+java.lang.Object
+  extended by org.newdawn.slick.util.LocatedImage
+
+
+
+
public class LocatedImage
extends java.lang.Object
+ + +

+An image along with state information that allows it to be drawn without + specifing the state in which to render. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LocatedImage(Image image, + int x, + int y) + +
+          Create a new located image
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw() + +
+          Draw the image based on the current configured state
+ ColorgetColor() + +
+          Get the colour filter being applied
+ floatgetHeight() + +
+          Get the height the image will be drawn at
+ floatgetWidth() + +
+          Get the width the image will be drawn at
+ intgetX() + +
+          Get the x position at which the image will be drawn
+ intgetY() + +
+          Get the y position at which the image will be drawn
+ voidsetColor(Color c) + +
+          Set the colour filter to apply to the image
+ voidsetHeight(float height) + +
+          Set the height the image should be drawn at
+ voidsetWidth(float width) + +
+          Set the width the image should be drawn at
+ voidsetX(int x) + +
+          Set the x position at which the image should be drawn
+ voidsetY(int y) + +
+          Set the y position at which the image should be drawn
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LocatedImage

+
+public LocatedImage(Image image,
+                    int x,
+                    int y)
+
+
Create a new located image +

+

+
Parameters:
image - The image to be drawn
x - The x location at which the image should be drawn
y - The y location at which the image should be drawn
+
+ + + + + + + + +
+Method Detail
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height the image will be drawn at +

+

+ +
Returns:
The height
+
+
+
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width the image will be drawn at +

+

+ +
Returns:
The width
+
+
+
+ +

+setHeight

+
+public void setHeight(float height)
+
+
Set the height the image should be drawn at +

+

+
Parameters:
height - The height the image should be drawn at
+
+
+
+ +

+setWidth

+
+public void setWidth(float width)
+
+
Set the width the image should be drawn at +

+

+
Parameters:
width - The width the image should be drawn at
+
+
+
+ +

+setColor

+
+public void setColor(Color c)
+
+
Set the colour filter to apply to the image +

+

+
Parameters:
c - The color filter to apply to the image
+
+
+
+ +

+getColor

+
+public Color getColor()
+
+
Get the colour filter being applied +

+

+ +
Returns:
The color the being applied
+
+
+
+ +

+setX

+
+public void setX(int x)
+
+
Set the x position at which the image should be drawn +

+

+
Parameters:
x - The x coordinate of the position
+
+
+
+ +

+setY

+
+public void setY(int y)
+
+
Set the y position at which the image should be drawn +

+

+
Parameters:
y - The y coordinate of the position
+
+
+
+ +

+getX

+
+public int getX()
+
+
Get the x position at which the image will be drawn +

+

+ +
Returns:
The x position at which the image will be drawn
+
+
+
+ +

+getY

+
+public int getY()
+
+
Get the y position at which the image will be drawn +

+

+ +
Returns:
The y position at which the image will be drawn
+
+
+
+ +

+draw

+
+public void draw()
+
+
Draw the image based on the current configured state +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/Log.html b/lib/javadoc/org/newdawn/slick/util/Log.html new file mode 100644 index 000000000..d0e6d82a9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/Log.html @@ -0,0 +1,450 @@ + + + + + + +Log (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class Log

+
+java.lang.Object
+  extended by org.newdawn.slick.util.Log
+
+
+
+
public final class Log
extends java.lang.Object
+ + +

+A simple central logging system +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidcheckVerboseLogSetting() + +
+          Check if the system property org.newdawn.slick.verboseLog is set to true.
+static voiddebug(java.lang.String message) + +
+          Log a debug message
+static voiderror(java.lang.String message) + +
+          Log an error
+static voiderror(java.lang.String message, + java.lang.Throwable e) + +
+          Log an error
+static voiderror(java.lang.Throwable e) + +
+          Log an error
+static voidinfo(java.lang.String message) + +
+          Log an information message
+static voidsetForcedVerboseOn() + +
+          Indicate that we want verbose logging, even if switched off in game code.
+static voidsetLogSystem(LogSystem system) + +
+          Set the log system that will have all of the log info + sent to it.
+static voidsetVerbose(boolean v) + +
+          Indicate that we want verbose logging.
+static voidwarn(java.lang.String message) + +
+          Log a warning
+static voidwarn(java.lang.String message, + java.lang.Throwable e) + +
+          Log a warning
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+setLogSystem

+
+public static void setLogSystem(LogSystem system)
+
+
Set the log system that will have all of the log info + sent to it. +

+

+
Parameters:
system - The system to use for logging.
+
+
+
+ +

+setVerbose

+
+public static void setVerbose(boolean v)
+
+
Indicate that we want verbose logging. + The call is ignored if verbose logging is forced by the system property + "org.newdawn.slick.forceVerboseLog" +

+

+
Parameters:
v - True if we want verbose logging (INFO and DEBUG)
+
+
+
+ +

+checkVerboseLogSetting

+
+public static void checkVerboseLogSetting()
+
+
Check if the system property org.newdawn.slick.verboseLog is set to true. + If this is the case we activate the verbose logging mode +

+

+
+
+
+
+ +

+setForcedVerboseOn

+
+public static void setForcedVerboseOn()
+
+
Indicate that we want verbose logging, even if switched off in game code. + Only be called when system property "org.newdawn.slick.forceVerboseLog" is set to true. + You must not call this method directly. +

+

+
+
+
+
+ +

+error

+
+public static void error(java.lang.String message,
+                         java.lang.Throwable e)
+
+
Log an error +

+

+
Parameters:
message - The message describing the error
e - The exception causing the error
+
+
+
+ +

+error

+
+public static void error(java.lang.Throwable e)
+
+
Log an error +

+

+
Parameters:
e - The exception causing the error
+
+
+
+ +

+error

+
+public static void error(java.lang.String message)
+
+
Log an error +

+

+
Parameters:
message - The message describing the error
+
+
+
+ +

+warn

+
+public static void warn(java.lang.String message)
+
+
Log a warning +

+

+
Parameters:
message - The message describing the warning
+
+
+
+ +

+warn

+
+public static void warn(java.lang.String message,
+                        java.lang.Throwable e)
+
+
Log a warning +

+

+
Parameters:
message - The message describing the warning
e - The issue causing the warning
+
+
+
+ +

+info

+
+public static void info(java.lang.String message)
+
+
Log an information message +

+

+
Parameters:
message - The message describing the infomation
+
+
+
+ +

+debug

+
+public static void debug(java.lang.String message)
+
+
Log a debug message +

+

+
Parameters:
message - The message describing the debug
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/LogSystem.html b/lib/javadoc/org/newdawn/slick/util/LogSystem.html new file mode 100644 index 000000000..1872e3f01 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/LogSystem.html @@ -0,0 +1,349 @@ + + + + + + +LogSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Interface LogSystem

+
+
All Known Implementing Classes:
DefaultLogSystem
+
+
+
+
public interface LogSystem
+ + +

+Plugin in interface for the logging of Slick +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddebug(java.lang.String message) + +
+          Log a debug message
+ voiderror(java.lang.String message) + +
+          Log an error
+ voiderror(java.lang.String message, + java.lang.Throwable e) + +
+          Log an error
+ voiderror(java.lang.Throwable e) + +
+          Log an error
+ voidinfo(java.lang.String message) + +
+          Log an information message
+ voidwarn(java.lang.String message) + +
+          Log a warning
+ voidwarn(java.lang.String message, + java.lang.Throwable e) + +
+          Log a warning
+  +

+ + + + + + + + +
+Method Detail
+ +

+error

+
+void error(java.lang.String message,
+           java.lang.Throwable e)
+
+
Log an error +

+

+
Parameters:
message - The message describing the error
e - The exception causing the error
+
+
+
+ +

+error

+
+void error(java.lang.Throwable e)
+
+
Log an error +

+

+
Parameters:
e - The exception causing the error
+
+
+
+ +

+error

+
+void error(java.lang.String message)
+
+
Log an error +

+

+
Parameters:
message - The message describing the error
+
+
+
+ +

+warn

+
+void warn(java.lang.String message)
+
+
Log a warning +

+

+
Parameters:
message - The message describing the warning
+
+
+
+ +

+warn

+
+void warn(java.lang.String message,
+          java.lang.Throwable e)
+
+
Log a warning +

+

+
Parameters:
message - The message describing the warning
e - The cause of the warning
+
+
+
+ +

+info

+
+void info(java.lang.String message)
+
+
Log an information message +

+

+
Parameters:
message - The message describing the infomation
+
+
+
+ +

+debug

+
+void debug(java.lang.String message)
+
+
Log a debug message +

+

+
Parameters:
message - The message describing the debug
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/MaskUtil.html b/lib/javadoc/org/newdawn/slick/util/MaskUtil.html new file mode 100644 index 000000000..c3394fe27 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/MaskUtil.html @@ -0,0 +1,385 @@ + + + + + + +MaskUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class MaskUtil

+
+java.lang.Object
+  extended by org.newdawn.slick.util.MaskUtil
+
+
+
+
public class MaskUtil
extends java.lang.Object
+ + +

+A utility to provide full screen masking +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected static SGLGL + +
+          The renderer to use for all GL operations
+  + + + + + + + + + + +
+Constructor Summary
MaskUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voiddefineMask() + +
+          Start defining the screen mask.
+static voiddrawOffMask() + +
+          Start drawing only off the masked area
+static voiddrawOnMask() + +
+          Start drawing only on the masked area
+static voidfinishDefineMask() + +
+          Finish defining the screen mask
+static voidresetMask() + +
+          Reset the masked area - should be done after you've finished rendering
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+GL

+
+protected static SGL GL
+
+
The renderer to use for all GL operations +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MaskUtil

+
+public MaskUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+defineMask

+
+public static void defineMask()
+
+
Start defining the screen mask. After calling this use graphics functions to + mask out the area +

+

+
+
+
+
+ +

+finishDefineMask

+
+public static void finishDefineMask()
+
+
Finish defining the screen mask +

+

+
+
+
+
+ +

+drawOnMask

+
+public static void drawOnMask()
+
+
Start drawing only on the masked area +

+

+
+
+
+
+ +

+drawOffMask

+
+public static void drawOffMask()
+
+
Start drawing only off the masked area +

+

+
+
+
+
+ +

+resetMask

+
+public static void resetMask()
+
+
Reset the masked area - should be done after you've finished rendering +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/OperationNotSupportedException.html b/lib/javadoc/org/newdawn/slick/util/OperationNotSupportedException.html new file mode 100644 index 000000000..0b98bf809 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/OperationNotSupportedException.html @@ -0,0 +1,252 @@ + + + + + + +OperationNotSupportedException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class OperationNotSupportedException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by org.newdawn.slick.util.OperationNotSupportedException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class OperationNotSupportedException
extends java.lang.RuntimeException
+ + +

+Thrown to indicate that a limited implementation of a class can not + support the operation requested. +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OperationNotSupportedException(java.lang.String msg) + +
+          Create a new exception
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OperationNotSupportedException

+
+public OperationNotSupportedException(java.lang.String msg)
+
+
Create a new exception +

+

+
Parameters:
msg - The message describing the limitation
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/ResourceLoader.html b/lib/javadoc/org/newdawn/slick/util/ResourceLoader.html new file mode 100644 index 000000000..ee51b5034 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/ResourceLoader.html @@ -0,0 +1,373 @@ + + + + + + +ResourceLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Class ResourceLoader

+
+java.lang.Object
+  extended by org.newdawn.slick.util.ResourceLoader
+
+
+
+
public class ResourceLoader
extends java.lang.Object
+ + +

+A simple wrapper around resource loading should anyone decide to change + their minds how this is meant to work in the future. +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ResourceLoader() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddResourceLocation(ResourceLocation location) + +
+          Add a location that will be searched for resources
+static java.net.URLgetResource(java.lang.String ref) + +
+          Get a resource as a URL
+static java.io.InputStreamgetResourceAsStream(java.lang.String ref) + +
+          Get a resource
+static voidremoveAllResourceLocations() + +
+          Remove all the locations, no resources will be found until + new locations have been added
+static voidremoveResourceLocation(ResourceLocation location) + +
+          Remove a location that will be no longer be searched for resources
+static booleanresourceExists(java.lang.String ref) + +
+          Check if a resource is available from any given resource loader
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResourceLoader

+
+public ResourceLoader()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addResourceLocation

+
+public static void addResourceLocation(ResourceLocation location)
+
+
Add a location that will be searched for resources +

+

+
Parameters:
location - The location that will be searched for resoruces
+
+
+
+ +

+removeResourceLocation

+
+public static void removeResourceLocation(ResourceLocation location)
+
+
Remove a location that will be no longer be searched for resources +

+

+
Parameters:
location - The location that will be removed from the search list
+
+
+
+ +

+removeAllResourceLocations

+
+public static void removeAllResourceLocations()
+
+
Remove all the locations, no resources will be found until + new locations have been added +

+

+
+
+
+
+ +

+getResourceAsStream

+
+public static java.io.InputStream getResourceAsStream(java.lang.String ref)
+
+
Get a resource +

+

+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A stream from which the resource can be read
+
+
+
+ +

+resourceExists

+
+public static boolean resourceExists(java.lang.String ref)
+
+
Check if a resource is available from any given resource loader +

+

+
Parameters:
ref - A reference to the resource that should be checked +
Returns:
True if the resource can be located
+
+
+
+ +

+getResource

+
+public static java.net.URL getResource(java.lang.String ref)
+
+
Get a resource as a URL +

+

+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A URL from which the resource can be read
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/ResourceLocation.html b/lib/javadoc/org/newdawn/slick/util/ResourceLocation.html new file mode 100644 index 000000000..891932226 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/ResourceLocation.html @@ -0,0 +1,243 @@ + + + + + + +ResourceLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util +
+Interface ResourceLocation

+
+
All Known Implementing Classes:
ClasspathLocation, FileSystemLocation
+
+
+
+
public interface ResourceLocation
+ + +

+A location from which resources can be loaded +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ java.net.URLgetResource(java.lang.String ref) + +
+          Get a resource as a URL
+ java.io.InputStreamgetResourceAsStream(java.lang.String ref) + +
+          Get a resource as an input stream
+  +

+ + + + + + + + +
+Method Detail
+ +

+getResourceAsStream

+
+java.io.InputStream getResourceAsStream(java.lang.String ref)
+
+
Get a resource as an input stream +

+

+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A stream from which the resource can be read or + null if the resource can't be found in this location
+
+
+
+ +

+getResource

+
+java.net.URL getResource(java.lang.String ref)
+
+
Get a resource as a URL +

+

+
Parameters:
ref - The reference to the resource to retrieve +
Returns:
A URL from which the resource can be read
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/Bootstrap.html b/lib/javadoc/org/newdawn/slick/util/class-use/Bootstrap.html new file mode 100644 index 000000000..35a91febf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/Bootstrap.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.Bootstrap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.Bootstrap

+
+No usage of org.newdawn.slick.util.Bootstrap +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/BufferedImageUtil.html b/lib/javadoc/org/newdawn/slick/util/class-use/BufferedImageUtil.html new file mode 100644 index 000000000..231295374 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/BufferedImageUtil.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.BufferedImageUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.BufferedImageUtil

+
+No usage of org.newdawn.slick.util.BufferedImageUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/ClasspathLocation.html b/lib/javadoc/org/newdawn/slick/util/class-use/ClasspathLocation.html new file mode 100644 index 000000000..684fec614 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/ClasspathLocation.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.ClasspathLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.ClasspathLocation

+
+No usage of org.newdawn.slick.util.ClasspathLocation +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/DefaultLogSystem.html b/lib/javadoc/org/newdawn/slick/util/class-use/DefaultLogSystem.html new file mode 100644 index 000000000..ee89d908f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/DefaultLogSystem.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.DefaultLogSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.DefaultLogSystem

+
+No usage of org.newdawn.slick.util.DefaultLogSystem +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/FastTrig.html b/lib/javadoc/org/newdawn/slick/util/class-use/FastTrig.html new file mode 100644 index 000000000..df08fd24f --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/FastTrig.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.FastTrig (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.FastTrig

+
+No usage of org.newdawn.slick.util.FastTrig +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/FileSystemLocation.html b/lib/javadoc/org/newdawn/slick/util/class-use/FileSystemLocation.html new file mode 100644 index 000000000..4787bb13b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/FileSystemLocation.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.FileSystemLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.FileSystemLocation

+
+No usage of org.newdawn.slick.util.FileSystemLocation +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.Alignment.html b/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.Alignment.html new file mode 100644 index 000000000..214e5c948 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.Alignment.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.FontUtils.Alignment (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.FontUtils.Alignment

+
+No usage of org.newdawn.slick.util.FontUtils.Alignment +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.html b/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.html new file mode 100644 index 000000000..c71dd99e2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/FontUtils.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.FontUtils (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.FontUtils

+
+No usage of org.newdawn.slick.util.FontUtils +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/InputAdapter.html b/lib/javadoc/org/newdawn/slick/util/class-use/InputAdapter.html new file mode 100644 index 000000000..fa615a17e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/InputAdapter.html @@ -0,0 +1,205 @@ + + + + + + +Uses of Class org.newdawn.slick.util.InputAdapter (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.InputAdapter

+
+ + + + + + + + + +
+Packages that use InputAdapter
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
+  +

+ + + + + +
+Uses of InputAdapter in org.newdawn.slick.gui
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of InputAdapter in org.newdawn.slick.gui
+ classAbstractComponent + +
+          The utility class to handle all the input related gubbins for basic GUI + components
+ classBasicComponent + +
+          Deprecated.  
+ classMouseOverArea + +
+          A mouse over area that can be used for menus or buttons
+ classTextField + +
+          A single text field supporting text entry
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/LocatedImage.html b/lib/javadoc/org/newdawn/slick/util/class-use/LocatedImage.html new file mode 100644 index 000000000..7aba81237 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/LocatedImage.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.LocatedImage (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.LocatedImage

+
+No usage of org.newdawn.slick.util.LocatedImage +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/Log.html b/lib/javadoc/org/newdawn/slick/util/class-use/Log.html new file mode 100644 index 000000000..56b05fe40 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/Log.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.Log (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.Log

+
+No usage of org.newdawn.slick.util.Log +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/LogSystem.html b/lib/javadoc/org/newdawn/slick/util/class-use/LogSystem.html new file mode 100644 index 000000000..ddc14b48a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/LogSystem.html @@ -0,0 +1,197 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.LogSystem (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.LogSystem

+
+ + + + + + + + + +
+Packages that use LogSystem
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of LogSystem in org.newdawn.slick.util
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util that implement LogSystem
+ classDefaultLogSystem + +
+          The default implementation that just spits the messages out to stdout
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type LogSystem
+static voidLog.setLogSystem(LogSystem system) + +
+          Set the log system that will have all of the log info + sent to it.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/MaskUtil.html b/lib/javadoc/org/newdawn/slick/util/class-use/MaskUtil.html new file mode 100644 index 000000000..95a9e835d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/MaskUtil.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.MaskUtil (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.MaskUtil

+
+No usage of org.newdawn.slick.util.MaskUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/OperationNotSupportedException.html b/lib/javadoc/org/newdawn/slick/util/class-use/OperationNotSupportedException.html new file mode 100644 index 000000000..a427554bc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/OperationNotSupportedException.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.OperationNotSupportedException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.OperationNotSupportedException

+
+No usage of org.newdawn.slick.util.OperationNotSupportedException +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLoader.html b/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLoader.html new file mode 100644 index 000000000..7199d3caf --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLoader.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.ResourceLoader (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.ResourceLoader

+
+No usage of org.newdawn.slick.util.ResourceLoader +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLocation.html b/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLocation.html new file mode 100644 index 000000000..d9f41ecb4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/class-use/ResourceLocation.html @@ -0,0 +1,212 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.ResourceLocation (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.ResourceLocation

+
+ + + + + + + + + +
+Packages that use ResourceLocation
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + +
+Uses of ResourceLocation in org.newdawn.slick.util
+  +

+ + + + + + + + + + + + + +
Classes in org.newdawn.slick.util that implement ResourceLocation
+ classClasspathLocation + +
+          A resource location that searches the classpath
+ classFileSystemLocation + +
+          A resource loading location that searches somewhere on the classpath
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util with parameters of type ResourceLocation
+static voidResourceLoader.addResourceLocation(ResourceLocation location) + +
+          Add a location that will be searched for resources
+static voidResourceLoader.removeResourceLocation(ResourceLocation location) + +
+          Remove a location that will be no longer be searched for resources
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/package-frame.html b/lib/javadoc/org/newdawn/slick/util/package-frame.html new file mode 100644 index 000000000..aaf8b1eab --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/package-frame.html @@ -0,0 +1,78 @@ + + + + + + +org.newdawn.slick.util (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.util + + + + +
+Interfaces  + +
+LogSystem +
+ResourceLocation
+ + + + + + +
+Classes  + +
+Bootstrap +
+BufferedImageUtil +
+ClasspathLocation +
+DefaultLogSystem +
+FastTrig +
+FileSystemLocation +
+FontUtils +
+InputAdapter +
+LocatedImage +
+Log +
+MaskUtil +
+ResourceLoader
+ + + + + + +
+Exceptions  + +
+OperationNotSupportedException
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/util/package-summary.html b/lib/javadoc/org/newdawn/slick/util/package-summary.html new file mode 100644 index 000000000..8ea051634 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/package-summary.html @@ -0,0 +1,254 @@ + + + + + + +org.newdawn.slick.util (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.util +

+Utilities to support the library. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Interface Summary
LogSystemPlugin in interface for the logging of Slick
ResourceLocationA location from which resources can be loaded
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BootstrapUtility class to wrap up starting a game in a single line
BufferedImageUtilThis is a utility class that allows you to convert a BufferedImage into a + texture.
ClasspathLocationA resource location that searches the classpath
DefaultLogSystemThe default implementation that just spits the messages out to stdout
FastTrigUtility to handle Java's odd trig performance issues
FileSystemLocationA resource loading location that searches somewhere on the classpath
FontUtilsSimple utility class to support justified text + + http://slick.javaunlimited.net/viewtopic.php?t=2640
InputAdapterAn implement implementation of the InputListener interface
LocatedImageAn image along with state information that allows it to be drawn without + specifing the state in which to render.
LogA simple central logging system
MaskUtilA utility to provide full screen masking
ResourceLoaderA simple wrapper around resource loading should anyone decide to change + their minds how this is meant to work in the future.
+  + +

+ + + + + + + + + +
+Exception Summary
OperationNotSupportedExceptionThrown to indicate that a limited implementation of a class can not + support the operation requested.
+  + +

+

+Package org.newdawn.slick.util Description +

+ +

+Utilities to support the library. Basically anything that didn't fit elsewhere. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/package-tree.html b/lib/javadoc/org/newdawn/slick/util/package-tree.html new file mode 100644 index 000000000..c4a303476 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/package-tree.html @@ -0,0 +1,169 @@ + + + + + + +org.newdawn.slick.util Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/package-use.html b/lib/javadoc/org/newdawn/slick/util/package-use.html new file mode 100644 index 000000000..29f9e73c9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/package-use.html @@ -0,0 +1,195 @@ + + + + + + +Uses of Package org.newdawn.slick.util (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.util

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.util
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.utilUtilities to support the library. 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.util used by org.newdawn.slick.gui
InputAdapter + +
+          An implement implementation of the InputListener interface
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.util used by org.newdawn.slick.util
LogSystem + +
+          Plugin in interface for the logging of Slick
ResourceLocation + +
+          A location from which resources can be loaded
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarHeuristic.html new file mode 100644 index 000000000..0fd980a89 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarHeuristic.html @@ -0,0 +1,235 @@ + + + + + + +AStarHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Interface AStarHeuristic

+
+
All Known Implementing Classes:
ClosestHeuristic, ClosestSquaredHeuristic, ManhattanHeuristic
+
+
+
+
public interface AStarHeuristic
+ + +

+The description of a class providing a cost for a given tile based + on a target location and entity being moved. This heuristic controls + what priority is placed on different tiles during the search for a path +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ floatgetCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCost

+
+float getCost(TileBasedMap map,
+              Mover mover,
+              int x,
+              int y,
+              int tx,
+              int ty)
+
+
Get the additional heuristic cost of the given tile. This controls the + order in which tiles are searched while attempting to find a path to the + target location. The lower the cost the more likely the tile will + be searched. +

+

+
Parameters:
map - The map on which the path is being found
mover - The entity that is moving along the path
x - The x coordinate of the tile being evaluated
y - The y coordinate of the tile being evaluated
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The cost associated with the given tile
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarPathFinder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarPathFinder.html new file mode 100644 index 000000000..dc17f5403 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/AStarPathFinder.html @@ -0,0 +1,743 @@ + + + + + + +AStarPathFinder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Class AStarPathFinder

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.AStarPathFinder
+
+
+
All Implemented Interfaces:
PathFinder, PathFindingContext
+
+
+
+
public class AStarPathFinder
extends java.lang.Object
implements PathFinder, PathFindingContext
+ + +

+A path finder implementation that uses the AStar heuristic based algorithm + to determine a path. +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
AStarPathFinder(TileBasedMap map, + int maxSearchDistance, + boolean allowDiagMovement) + +
+          Create a path finder with the default heuristic - closest to target.
AStarPathFinder(TileBasedMap map, + int maxSearchDistance, + boolean allowDiagMovement, + AStarHeuristic heuristic) + +
+          Create a path finder
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddToClosed(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Add a node to the closed list
+protected  voidaddToOpen(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Add a node to the open list
+ PathfindPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map.
+ intgetCurrentX() + +
+          Get the X coordinate of the node currently being evaluated
+ intgetCurrentY() + +
+          Get the Y coordinate of the node currently being evaluated
+protected  org.newdawn.slick.util.pathfinding.AStarPathFinder.NodegetFirstInOpen() + +
+          Get the first element from the open list.
+ floatgetHeuristicCost(Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the heuristic cost for the given location.
+ floatgetMovementCost(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Get the cost to move through a given location
+ MovergetMover() + +
+          Get the object being moved along the path if any
+ intgetSearchDistance() + +
+          Get the distance that has been searched to reach this point
+ intgetSourceX() + +
+          Get the x coordinate of the source location
+ intgetSourceY() + +
+          Get the y coordinate of the source location
+protected  booleaninClosedList(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Check if the node supplied is in the closed list
+protected  booleaninOpenList(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Check if a node is in the open list
+protected  booleanisValidLocation(Mover mover, + int sx, + int sy, + int x, + int y) + +
+          Check if a given location is valid for the supplied mover
+protected  voidremoveFromClosed(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Remove a node from the closed list
+protected  voidremoveFromOpen(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node) + +
+          Remove a node from the open list
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AStarPathFinder

+
+public AStarPathFinder(TileBasedMap map,
+                       int maxSearchDistance,
+                       boolean allowDiagMovement)
+
+
Create a path finder with the default heuristic - closest to target. +

+

+
Parameters:
map - The map to be searched
maxSearchDistance - The maximum depth we'll search before giving up
allowDiagMovement - True if the search should try diaganol movement
+
+
+ +

+AStarPathFinder

+
+public AStarPathFinder(TileBasedMap map,
+                       int maxSearchDistance,
+                       boolean allowDiagMovement,
+                       AStarHeuristic heuristic)
+
+
Create a path finder +

+

+
Parameters:
heuristic - The heuristic used to determine the search order of the map
map - The map to be searched
maxSearchDistance - The maximum depth we'll search before giving up
allowDiagMovement - True if the search should try diaganol movement
+
+ + + + + + + + +
+Method Detail
+ +

+findPath

+
+public Path findPath(Mover mover,
+                     int sx,
+                     int sy,
+                     int tx,
+                     int ty)
+
+
Description copied from interface: PathFinder
+
Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map. +

+

+
Specified by:
findPath in interface PathFinder
+
+
+
Parameters:
mover - The entity that will be moving along the path. This provides + a place to pass context information about the game entity doing the moving, e.g. + can it fly? can it swim etc.
sx - The x coordinate of the start location
sy - The y coordinate of the start location
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The path found from start to end, or null if no path can be found.
See Also:
PathFinder.findPath(Mover, int, int, int, int)
+
+
+
+ +

+getCurrentX

+
+public int getCurrentX()
+
+
Get the X coordinate of the node currently being evaluated +

+

+
+
+
+ +
Returns:
The X coordinate of the node currently being evaluated
+
+
+
+ +

+getCurrentY

+
+public int getCurrentY()
+
+
Get the Y coordinate of the node currently being evaluated +

+

+
+
+
+ +
Returns:
The Y coordinate of the node currently being evaluated
+
+
+
+ +

+getFirstInOpen

+
+protected org.newdawn.slick.util.pathfinding.AStarPathFinder.Node getFirstInOpen()
+
+
Get the first element from the open list. This is the next + one to be searched. +

+

+
+
+
+ +
Returns:
The first element in the open list
+
+
+
+ +

+addToOpen

+
+protected void addToOpen(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Add a node to the open list +

+

+
+
+
+
Parameters:
node - The node to be added to the open list
+
+
+
+ +

+inOpenList

+
+protected boolean inOpenList(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Check if a node is in the open list +

+

+
+
+
+
Parameters:
node - The node to check for +
Returns:
True if the node given is in the open list
+
+
+
+ +

+removeFromOpen

+
+protected void removeFromOpen(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Remove a node from the open list +

+

+
+
+
+
Parameters:
node - The node to remove from the open list
+
+
+
+ +

+addToClosed

+
+protected void addToClosed(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Add a node to the closed list +

+

+
+
+
+
Parameters:
node - The node to add to the closed list
+
+
+
+ +

+inClosedList

+
+protected boolean inClosedList(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Check if the node supplied is in the closed list +

+

+
+
+
+
Parameters:
node - The node to search for +
Returns:
True if the node specified is in the closed list
+
+
+
+ +

+removeFromClosed

+
+protected void removeFromClosed(org.newdawn.slick.util.pathfinding.AStarPathFinder.Node node)
+
+
Remove a node from the closed list +

+

+
+
+
+
Parameters:
node - The node to remove from the closed list
+
+
+
+ +

+isValidLocation

+
+protected boolean isValidLocation(Mover mover,
+                                  int sx,
+                                  int sy,
+                                  int x,
+                                  int y)
+
+
Check if a given location is valid for the supplied mover +

+

+
+
+
+
Parameters:
mover - The mover that would hold a given location
sx - The starting x coordinate
sy - The starting y coordinate
x - The x coordinate of the location to check
y - The y coordinate of the location to check +
Returns:
True if the location is valid for the given mover
+
+
+
+ +

+getMovementCost

+
+public float getMovementCost(Mover mover,
+                             int sx,
+                             int sy,
+                             int tx,
+                             int ty)
+
+
Get the cost to move through a given location +

+

+
+
+
+
Parameters:
mover - The entity that is being moved
sx - The x coordinate of the tile whose cost is being determined
sy - The y coordiante of the tile whose cost is being determined
tx - The x coordinate of the target location
ty - The y coordinate of the target location +
Returns:
The cost of movement through the given tile
+
+
+
+ +

+getHeuristicCost

+
+public float getHeuristicCost(Mover mover,
+                              int x,
+                              int y,
+                              int tx,
+                              int ty)
+
+
Get the heuristic cost for the given location. This determines in which + order the locations are processed. +

+

+
+
+
+
Parameters:
mover - The entity that is being moved
x - The x coordinate of the tile whose cost is being determined
y - The y coordiante of the tile whose cost is being determined
tx - The x coordinate of the target location
ty - The y coordinate of the target location +
Returns:
The heuristic cost assigned to the tile
+
+
+
+ +

+getMover

+
+public Mover getMover()
+
+
Description copied from interface: PathFindingContext
+
Get the object being moved along the path if any +

+

+
Specified by:
getMover in interface PathFindingContext
+
+
+ +
Returns:
The object being moved along the path
See Also:
PathFindingContext.getMover()
+
+
+
+ +

+getSearchDistance

+
+public int getSearchDistance()
+
+
Description copied from interface: PathFindingContext
+
Get the distance that has been searched to reach this point +

+

+
Specified by:
getSearchDistance in interface PathFindingContext
+
+
+ +
Returns:
The distance that has been search to reach this point
See Also:
PathFindingContext.getSearchDistance()
+
+
+
+ +

+getSourceX

+
+public int getSourceX()
+
+
Description copied from interface: PathFindingContext
+
Get the x coordinate of the source location +

+

+
Specified by:
getSourceX in interface PathFindingContext
+
+
+ +
Returns:
The x coordinate of the source location
See Also:
PathFindingContext.getSourceX()
+
+
+
+ +

+getSourceY

+
+public int getSourceY()
+
+
Description copied from interface: PathFindingContext
+
Get the y coordinate of the source location +

+

+
Specified by:
getSourceY in interface PathFindingContext
+
+
+ +
Returns:
The y coordinate of the source location
See Also:
PathFindingContext.getSourceY()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/Mover.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/Mover.html new file mode 100644 index 000000000..1f39a1278 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/Mover.html @@ -0,0 +1,183 @@ + + + + + + +Mover (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Interface Mover

+
+
+
public interface Mover
+ + +

+A tagging interface for an object representing the entity in the game that + is going to moving along the path. This allows us to pass around entity/state + information to determine whether a particular tile is blocked, or how much + cost to apply on a particular tile. + + For instance, a Mover might represent a tank or plane on a game map. Passing round + this entity allows us to determine whether rough ground on a map should effect + the unit's cost for moving through the tile. +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.Step.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.Step.html new file mode 100644 index 000000000..f6d8af98c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.Step.html @@ -0,0 +1,347 @@ + + + + + + +Path.Step (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Class Path.Step

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.Path.Step
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
Enclosing class:
Path
+
+
+
+
public class Path.Step
extends java.lang.Object
implements java.io.Serializable
+ + +

+A single step within the path +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Path.Step(int x, + int y) + +
+          Create a new step
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(java.lang.Object other) + +
+           
+ intgetX() + +
+          Get the x coordinate of the new step
+ intgetY() + +
+          Get the y coordinate of the new step
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Path.Step

+
+public Path.Step(int x,
+                 int y)
+
+
Create a new step +

+

+
Parameters:
x - The x coordinate of the new step
y - The y coordinate of the new step
+
+ + + + + + + + +
+Method Detail
+ +

+getX

+
+public int getX()
+
+
Get the x coordinate of the new step +

+

+
+
+
+ +
Returns:
The x coodindate of the new step
+
+
+
+ +

+getY

+
+public int getY()
+
+
Get the y coordinate of the new step +

+

+
+
+
+ +
Returns:
The y coodindate of the new step
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class java.lang.Object
+
+
+
See Also:
Object.hashCode()
+
+
+
+ +

+equals

+
+public boolean equals(java.lang.Object other)
+
+
+
Overrides:
equals in class java.lang.Object
+
+
+
See Also:
Object.equals(Object)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.html new file mode 100644 index 000000000..9acbe2693 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/Path.html @@ -0,0 +1,445 @@ + + + + + + +Path (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Class Path

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.Path
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Path
extends java.lang.Object
implements java.io.Serializable
+ + +

+A path determined by some path finding algorithm. A series of steps from + the starting location to the target location. This includes a step for the + initial location. +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+ classPath.Step + +
+          A single step within the path
+  + + + + + + + + + + +
+Constructor Summary
Path() + +
+          Create an empty path
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidappendStep(int x, + int y) + +
+          Append a step to the path.
+ booleancontains(int x, + int y) + +
+          Check if this path contains the given step
+ intgetLength() + +
+          Get the length of the path, i.e.
+ Path.StepgetStep(int index) + +
+          Get the step at a given index in the path
+ intgetX(int index) + +
+          Get the x coordinate for the step at the given index
+ intgetY(int index) + +
+          Get the y coordinate for the step at the given index
+ voidprependStep(int x, + int y) + +
+          Prepend a step to the path.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Path

+
+public Path()
+
+
Create an empty path +

+

+ + + + + + + + +
+Method Detail
+ +

+getLength

+
+public int getLength()
+
+
Get the length of the path, i.e. the number of steps +

+

+
+
+
+ +
Returns:
The number of steps in this path
+
+
+
+ +

+getStep

+
+public Path.Step getStep(int index)
+
+
Get the step at a given index in the path +

+

+
+
+
+
Parameters:
index - The index of the step to retrieve. Note this should + be >= 0 and < getLength(); +
Returns:
The step information, the position on the map.
+
+
+
+ +

+getX

+
+public int getX(int index)
+
+
Get the x coordinate for the step at the given index +

+

+
+
+
+
Parameters:
index - The index of the step whose x coordinate should be retrieved +
Returns:
The x coordinate at the step
+
+
+
+ +

+getY

+
+public int getY(int index)
+
+
Get the y coordinate for the step at the given index +

+

+
+
+
+
Parameters:
index - The index of the step whose y coordinate should be retrieved +
Returns:
The y coordinate at the step
+
+
+
+ +

+appendStep

+
+public void appendStep(int x,
+                       int y)
+
+
Append a step to the path. +

+

+
+
+
+
Parameters:
x - The x coordinate of the new step
y - The y coordinate of the new step
+
+
+
+ +

+prependStep

+
+public void prependStep(int x,
+                        int y)
+
+
Prepend a step to the path. +

+

+
+
+
+
Parameters:
x - The x coordinate of the new step
y - The y coordinate of the new step
+
+
+
+ +

+contains

+
+public boolean contains(int x,
+                        int y)
+
+
Check if this path contains the given step +

+

+
+
+
+
Parameters:
x - The x coordinate of the step to check for
y - The y coordinate of the step to check for +
Returns:
True if the path contains the given step
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFinder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFinder.html new file mode 100644 index 000000000..caf3c2fac --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFinder.html @@ -0,0 +1,236 @@ + + + + + + +PathFinder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Interface PathFinder

+
+
All Known Implementing Classes:
AStarPathFinder
+
+
+
+
public interface PathFinder
+ + +

+A description of an implementation that can find a path from one + location on a tile map to another based on information provided + by that tile map. +

+ +

+

+
Author:
+
Kevin Glass
+
See Also:
TileBasedMap
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ PathfindPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map.
+  +

+ + + + + + + + +
+Method Detail
+ +

+findPath

+
+Path findPath(Mover mover,
+              int sx,
+              int sy,
+              int tx,
+              int ty)
+
+
Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map. +

+

+
Parameters:
mover - The entity that will be moving along the path. This provides + a place to pass context information about the game entity doing the moving, e.g. + can it fly? can it swim etc.
sx - The x coordinate of the start location
sy - The y coordinate of the start location
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The path found from start to end, or null if no path can be found.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFindingContext.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFindingContext.html new file mode 100644 index 000000000..46021825c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/PathFindingContext.html @@ -0,0 +1,286 @@ + + + + + + +PathFindingContext (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Interface PathFindingContext

+
+
All Known Implementing Classes:
AStarPathFinder, NavMeshBuilder, NavMeshTest
+
+
+
+
public interface PathFindingContext
+ + +

+The context describing the current path finding state +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MovergetMover() + +
+          Get the object being moved along the path if any
+ intgetSearchDistance() + +
+          Get the distance that has been searched to reach this point
+ intgetSourceX() + +
+          Get the x coordinate of the source location
+ intgetSourceY() + +
+          Get the y coordinate of the source location
+  +

+ + + + + + + + +
+Method Detail
+ +

+getMover

+
+Mover getMover()
+
+
Get the object being moved along the path if any +

+

+ +
Returns:
The object being moved along the path
+
+
+
+ +

+getSourceX

+
+int getSourceX()
+
+
Get the x coordinate of the source location +

+

+ +
Returns:
The x coordinate of the source location
+
+
+
+ +

+getSourceY

+
+int getSourceY()
+
+
Get the y coordinate of the source location +

+

+ +
Returns:
The y coordinate of the source location
+
+
+
+ +

+getSearchDistance

+
+int getSearchDistance()
+
+
Get the distance that has been searched to reach this point +

+

+ +
Returns:
The distance that has been search to reach this point
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/TileBasedMap.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/TileBasedMap.html new file mode 100644 index 000000000..396828b37 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/TileBasedMap.html @@ -0,0 +1,322 @@ + + + + + + +TileBasedMap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding +
+Interface TileBasedMap

+
+
+
public interface TileBasedMap
+ + +

+The description for the data we're pathfinding over. This provides the contract + between the data being searched (i.e. the in game map) and the path finding + generic tools +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanblocked(PathFindingContext context, + int tx, + int ty) + +
+          Check if the given location is blocked, i.e.
+ floatgetCost(PathFindingContext context, + int tx, + int ty) + +
+          Get the cost of moving through the given tile.
+ intgetHeightInTiles() + +
+          Get the height of the tile map.
+ intgetWidthInTiles() + +
+          Get the width of the tile map.
+ voidpathFinderVisited(int x, + int y) + +
+          Notification that the path finder visited a given tile.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getWidthInTiles

+
+int getWidthInTiles()
+
+
Get the width of the tile map. The slightly odd name is used + to distiguish this method from commonly used names in game maps. +

+

+ +
Returns:
The number of tiles across the map
+
+
+
+ +

+getHeightInTiles

+
+int getHeightInTiles()
+
+
Get the height of the tile map. The slightly odd name is used + to distiguish this method from commonly used names in game maps. +

+

+ +
Returns:
The number of tiles down the map
+
+
+
+ +

+pathFinderVisited

+
+void pathFinderVisited(int x,
+                       int y)
+
+
Notification that the path finder visited a given tile. This is + used for debugging new heuristics. +

+

+
Parameters:
x - The x coordinate of the tile that was visited
y - The y coordinate of the tile that was visited
+
+
+
+ +

+blocked

+
+boolean blocked(PathFindingContext context,
+                int tx,
+                int ty)
+
+
Check if the given location is blocked, i.e. blocks movement of + the supplied mover. +

+

+
Parameters:
context - The context describing the pathfinding at the time of this request
tx - The x coordinate of the tile we're moving to
ty - The y coordinate of the tile we're moving to +
Returns:
True if the location is blocked
+
+
+
+ +

+getCost

+
+float getCost(PathFindingContext context,
+              int tx,
+              int ty)
+
+
Get the cost of moving through the given tile. This can be used to + make certain areas more desirable. A simple and valid implementation + of this method would be to return 1 in all cases. +

+

+
Parameters:
context - The context describing the pathfinding at the time of this request
tx - The x coordinate of the tile we're moving to
ty - The y coordinate of the tile we're moving to +
Returns:
The relative cost of moving across the given tile
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarHeuristic.html new file mode 100644 index 000000000..71b7f33b3 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarHeuristic.html @@ -0,0 +1,229 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.pathfinding.AStarHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.pathfinding.AStarHeuristic

+
+ + + + + + + + + + + + + +
+Packages that use AStarHeuristic
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
org.newdawn.slick.util.pathfinding.heuristics  
+  +

+ + + + + +
+Uses of AStarHeuristic in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.util.pathfinding with parameters of type AStarHeuristic
AStarPathFinder(TileBasedMap map, + int maxSearchDistance, + boolean allowDiagMovement, + AStarHeuristic heuristic) + +
+          Create a path finder
+  +

+ + + + + +
+Uses of AStarHeuristic in org.newdawn.slick.util.pathfinding.heuristics
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.newdawn.slick.util.pathfinding.heuristics that implement AStarHeuristic
+ classClosestHeuristic + +
+          A heuristic that uses the tile that is closest to the target + as the next best tile.
+ classClosestSquaredHeuristic + +
+          A heuristic that uses the tile that is closest to the target + as the next best tile.
+ classManhattanHeuristic + +
+          A heuristic that drives the search based on the Manhattan distance + between the current location and the target
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarPathFinder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarPathFinder.html new file mode 100644 index 000000000..dc70bcd72 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/AStarPathFinder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.AStarPathFinder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.AStarPathFinder

+
+No usage of org.newdawn.slick.util.pathfinding.AStarPathFinder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Mover.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Mover.html new file mode 100644 index 000000000..517d3a085 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Mover.html @@ -0,0 +1,389 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.pathfinding.Mover (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.pathfinding.Mover

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use Mover
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
org.newdawn.slick.util.pathfinding.heuristics  
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of Mover in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tests that return Mover
+ MoverNavMeshTest.getMover() + +
+           
+  +

+ + + + + +
+Uses of Mover in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding that return Mover
+ MoverPathFindingContext.getMover() + +
+          Get the object being moved along the path if any
+ MoverAStarPathFinder.getMover() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding with parameters of type Mover
+ PathPathFinder.findPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map.
+ PathAStarPathFinder.findPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+           
+ floatAStarHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+ floatAStarPathFinder.getHeuristicCost(Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the heuristic cost for the given location.
+ floatAStarPathFinder.getMovementCost(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Get the cost to move through a given location
+protected  booleanAStarPathFinder.isValidLocation(Mover mover, + int sx, + int sy, + int x, + int y) + +
+          Check if a given location is valid for the supplied mover
+  +

+ + + + + +
+Uses of Mover in org.newdawn.slick.util.pathfinding.heuristics
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.heuristics with parameters of type Mover
+ floatManhattanHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+ floatClosestSquaredHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+ floatClosestHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+  +

+ + + + + +
+Uses of Mover in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh that return Mover
+ MoverNavMeshBuilder.getMover() + +
+          Path finding context implementation
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.Step.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.Step.html new file mode 100644 index 000000000..5ce4b97b5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.Step.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.Path.Step (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.Path.Step

+
+ + + + + + + + + +
+Packages that use Path.Step
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
+  +

+ + + + + +
+Uses of Path.Step in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding that return Path.Step
+ Path.StepPath.getStep(int index) + +
+          Get the step at a given index in the path
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.html new file mode 100644 index 000000000..e4ef6a81c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/Path.html @@ -0,0 +1,198 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.Path (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.Path

+
+ + + + + + + + + +
+Packages that use Path
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
+  +

+ + + + + +
+Uses of Path in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding that return Path
+ PathPathFinder.findPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+          Find a path from the starting location provided (sx,sy) to the target + location (tx,ty) avoiding blockages and attempting to honour costs + provided by the tile map.
+ PathAStarPathFinder.findPath(Mover mover, + int sx, + int sy, + int tx, + int ty) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFinder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFinder.html new file mode 100644 index 000000000..809b49eb4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFinder.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.pathfinding.PathFinder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.pathfinding.PathFinder

+
+ + + + + + + + + +
+Packages that use PathFinder
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
+  +

+ + + + + +
+Uses of PathFinder in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util.pathfinding that implement PathFinder
+ classAStarPathFinder + +
+          A path finder implementation that uses the AStar heuristic based algorithm + to determine a path.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFindingContext.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFindingContext.html new file mode 100644 index 000000000..cc134f19d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/PathFindingContext.html @@ -0,0 +1,268 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.pathfinding.PathFindingContext (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.pathfinding.PathFindingContext

+
+ + + + + + + + + + + + + + + + + +
+Packages that use PathFindingContext
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of PathFindingContext in org.newdawn.slick.tests
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.tests that implement PathFindingContext
+ classNavMeshTest + +
+          A test to show nav-mesh generation on tile based maps.
+  +

+ + + + + +
+Uses of PathFindingContext in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util.pathfinding that implement PathFindingContext
+ classAStarPathFinder + +
+          A path finder implementation that uses the AStar heuristic based algorithm + to determine a path.
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding with parameters of type PathFindingContext
+ booleanTileBasedMap.blocked(PathFindingContext context, + int tx, + int ty) + +
+          Check if the given location is blocked, i.e.
+ floatTileBasedMap.getCost(PathFindingContext context, + int tx, + int ty) + +
+          Get the cost of moving through the given tile.
+  +

+ + + + + +
+Uses of PathFindingContext in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + +
Classes in org.newdawn.slick.util.pathfinding.navmesh that implement PathFindingContext
+ classNavMeshBuilder + +
+          The builder responsible for converting a tile based map into + a navigation mesh
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/TileBasedMap.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/TileBasedMap.html new file mode 100644 index 000000000..4287b5a5b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/class-use/TileBasedMap.html @@ -0,0 +1,317 @@ + + + + + + +Uses of Interface org.newdawn.slick.util.pathfinding.TileBasedMap (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.newdawn.slick.util.pathfinding.TileBasedMap

+
+ + + + + + + + + + + + + + + + + +
+Packages that use TileBasedMap
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
org.newdawn.slick.util.pathfinding.heuristics  
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of TileBasedMap in org.newdawn.slick.util.pathfinding
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding with parameters of type TileBasedMap
+ floatAStarHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+  +

+ + + + + + + + + + + +
Constructors in org.newdawn.slick.util.pathfinding with parameters of type TileBasedMap
AStarPathFinder(TileBasedMap map, + int maxSearchDistance, + boolean allowDiagMovement) + +
+          Create a path finder with the default heuristic - closest to target.
AStarPathFinder(TileBasedMap map, + int maxSearchDistance, + boolean allowDiagMovement, + AStarHeuristic heuristic) + +
+          Create a path finder
+  +

+ + + + + +
+Uses of TileBasedMap in org.newdawn.slick.util.pathfinding.heuristics
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.heuristics with parameters of type TileBasedMap
+ floatManhattanHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+ floatClosestSquaredHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+ floatClosestHeuristic.getCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+           
+  +

+ + + + + +
+Uses of TileBasedMap in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh with parameters of type TileBasedMap
+ NavMeshNavMeshBuilder.build(TileBasedMap map) + +
+          Build a navigation mesh based on a tile map
+ NavMeshNavMeshBuilder.build(TileBasedMap map, + boolean tileBased) + +
+          Build a navigation mesh based on a tile map
+ booleanNavMeshBuilder.clear(TileBasedMap map, + Space space) + +
+          Check if a particular space is clear of blockages
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestHeuristic.html new file mode 100644 index 000000000..141ad08af --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestHeuristic.html @@ -0,0 +1,284 @@ + + + + + + +ClosestHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.heuristics +
+Class ClosestHeuristic

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic
+
+
+
All Implemented Interfaces:
AStarHeuristic
+
+
+
+
public class ClosestHeuristic
extends java.lang.Object
implements AStarHeuristic
+ + +

+A heuristic that uses the tile that is closest to the target + as the next best tile. +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClosestHeuristic() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ floatgetCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClosestHeuristic

+
+public ClosestHeuristic()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getCost

+
+public float getCost(TileBasedMap map,
+                     Mover mover,
+                     int x,
+                     int y,
+                     int tx,
+                     int ty)
+
+
Description copied from interface: AStarHeuristic
+
Get the additional heuristic cost of the given tile. This controls the + order in which tiles are searched while attempting to find a path to the + target location. The lower the cost the more likely the tile will + be searched. +

+

+
Specified by:
getCost in interface AStarHeuristic
+
+
+
Parameters:
map - The map on which the path is being found
mover - The entity that is moving along the path
x - The x coordinate of the tile being evaluated
y - The y coordinate of the tile being evaluated
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The cost associated with the given tile
See Also:
AStarHeuristic.getCost(TileBasedMap, Mover, int, int, int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestSquaredHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestSquaredHeuristic.html new file mode 100644 index 000000000..a9bb545d5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ClosestSquaredHeuristic.html @@ -0,0 +1,285 @@ + + + + + + +ClosestSquaredHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.heuristics +
+Class ClosestSquaredHeuristic

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic
+
+
+
All Implemented Interfaces:
AStarHeuristic
+
+
+
+
public class ClosestSquaredHeuristic
extends java.lang.Object
implements AStarHeuristic
+ + +

+A heuristic that uses the tile that is closest to the target + as the next best tile. In this case the sqrt is removed + and the distance squared is used instead +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClosestSquaredHeuristic() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ floatgetCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClosestSquaredHeuristic

+
+public ClosestSquaredHeuristic()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getCost

+
+public float getCost(TileBasedMap map,
+                     Mover mover,
+                     int x,
+                     int y,
+                     int tx,
+                     int ty)
+
+
Description copied from interface: AStarHeuristic
+
Get the additional heuristic cost of the given tile. This controls the + order in which tiles are searched while attempting to find a path to the + target location. The lower the cost the more likely the tile will + be searched. +

+

+
Specified by:
getCost in interface AStarHeuristic
+
+
+
Parameters:
map - The map on which the path is being found
mover - The entity that is moving along the path
x - The x coordinate of the tile being evaluated
y - The y coordinate of the tile being evaluated
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The cost associated with the given tile
See Also:
AStarHeuristic.getCost(TileBasedMap, Mover, int, int, int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ManhattanHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ManhattanHeuristic.html new file mode 100644 index 000000000..ea1c1c655 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/ManhattanHeuristic.html @@ -0,0 +1,288 @@ + + + + + + +ManhattanHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.heuristics +
+Class ManhattanHeuristic

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic
+
+
+
All Implemented Interfaces:
AStarHeuristic
+
+
+
+
public class ManhattanHeuristic
extends java.lang.Object
implements AStarHeuristic
+ + +

+A heuristic that drives the search based on the Manhattan distance + between the current location and the target +

+ +

+

+
Author:
+
Kevin Glass
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ManhattanHeuristic(int minimumCost) + +
+          Create a new heuristic
+  + + + + + + + + + + + +
+Method Summary
+ floatgetCost(TileBasedMap map, + Mover mover, + int x, + int y, + int tx, + int ty) + +
+          Get the additional heuristic cost of the given tile.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ManhattanHeuristic

+
+public ManhattanHeuristic(int minimumCost)
+
+
Create a new heuristic +

+

+
Parameters:
minimumCost - The minimum movement cost from any one square to the next
+
+ + + + + + + + +
+Method Detail
+ +

+getCost

+
+public float getCost(TileBasedMap map,
+                     Mover mover,
+                     int x,
+                     int y,
+                     int tx,
+                     int ty)
+
+
Description copied from interface: AStarHeuristic
+
Get the additional heuristic cost of the given tile. This controls the + order in which tiles are searched while attempting to find a path to the + target location. The lower the cost the more likely the tile will + be searched. +

+

+
Specified by:
getCost in interface AStarHeuristic
+
+
+
Parameters:
map - The map on which the path is being found
mover - The entity that is moving along the path
x - The x coordinate of the tile being evaluated
y - The y coordinate of the tile being evaluated
tx - The x coordinate of the target location
ty - Teh y coordinate of the target location +
Returns:
The cost associated with the given tile
See Also:
AStarHeuristic.getCost(TileBasedMap, Mover, int, int, int, int)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestHeuristic.html new file mode 100644 index 000000000..d8b9ff723 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestHeuristic.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic

+
+No usage of org.newdawn.slick.util.pathfinding.heuristics.ClosestHeuristic +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestSquaredHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestSquaredHeuristic.html new file mode 100644 index 000000000..3b6496278 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ClosestSquaredHeuristic.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic

+
+No usage of org.newdawn.slick.util.pathfinding.heuristics.ClosestSquaredHeuristic +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ManhattanHeuristic.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ManhattanHeuristic.html new file mode 100644 index 000000000..23ba168f5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/class-use/ManhattanHeuristic.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic

+
+No usage of org.newdawn.slick.util.pathfinding.heuristics.ManhattanHeuristic +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-frame.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-frame.html new file mode 100644 index 000000000..0a68193b2 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.newdawn.slick.util.pathfinding.heuristics (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.util.pathfinding.heuristics + + + + +
+Classes  + +
+ClosestHeuristic +
+ClosestSquaredHeuristic +
+ManhattanHeuristic
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-summary.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-summary.html new file mode 100644 index 000000000..3ce4df77b --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-summary.html @@ -0,0 +1,168 @@ + + + + + + +org.newdawn.slick.util.pathfinding.heuristics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.util.pathfinding.heuristics +

+ + + + + + + + + + + + + + + + + +
+Class Summary
ClosestHeuristicA heuristic that uses the tile that is closest to the target + as the next best tile.
ClosestSquaredHeuristicA heuristic that uses the tile that is closest to the target + as the next best tile.
ManhattanHeuristicA heuristic that drives the search based on the Manhattan distance + between the current location and the target
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-tree.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-tree.html new file mode 100644 index 000000000..8a43fabe8 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-tree.html @@ -0,0 +1,156 @@ + + + + + + +org.newdawn.slick.util.pathfinding.heuristics Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.util.pathfinding.heuristics +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-use.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-use.html new file mode 100644 index 000000000..f2d569e22 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/heuristics/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.newdawn.slick.util.pathfinding.heuristics (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.util.pathfinding.heuristics

+
+No usage of org.newdawn.slick.util.pathfinding.heuristics +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Link.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Link.html new file mode 100644 index 000000000..8cc101a2e --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Link.html @@ -0,0 +1,339 @@ + + + + + + +Link (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.navmesh +
+Class Link

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.navmesh.Link
+
+
+
+
public class Link
extends java.lang.Object
+ + +

+A link between this space and another +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Link(float px, + float py, + Space target) + +
+          Create a new link
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatdistance2(float tx, + float ty) + +
+          Get the distance squared from this link to the given position
+ SpacegetTarget() + +
+          Get the space this object links to
+ floatgetX() + +
+          Get the x coordinate of the link
+ floatgetY() + +
+          Get the y coordinate of the link
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Link

+
+public Link(float px,
+            float py,
+            Space target)
+
+
Create a new link +

+

+
Parameters:
px - The x coordinate of the linking point
py - The y coordinate of the linking point
target - The target space we're linking to
+
+ + + + + + + + +
+Method Detail
+ +

+distance2

+
+public float distance2(float tx,
+                       float ty)
+
+
Get the distance squared from this link to the given position +

+

+
Parameters:
tx - The x coordinate of the target location
ty - The y coordinate of the target location +
Returns:
The distance squared from this link to the target
+
+
+
+ +

+getX

+
+public float getX()
+
+
Get the x coordinate of the link +

+

+ +
Returns:
The x coordinate of the link
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the y coordinate of the link +

+

+ +
Returns:
The y coordinate of the link
+
+
+
+ +

+getTarget

+
+public Space getTarget()
+
+
Get the space this object links to +

+

+ +
Returns:
The space this object links to
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMesh.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMesh.html new file mode 100644 index 000000000..06f02a784 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMesh.html @@ -0,0 +1,383 @@ + + + + + + +NavMesh (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.navmesh +
+Class NavMesh

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.navmesh.NavMesh
+
+
+
+
public class NavMesh
extends java.lang.Object
+ + +

+A nav-mesh is a set of shapes that describe the navigation of a map. These + shapes are linked together allow path finding but without the high + resolution that tile maps require. This leads to fast path finding and + potentially much more accurate map definition. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
NavMesh() + +
+          Create a new empty mesh
NavMesh(java.util.ArrayList spaces) + +
+          Create a new mesh with a set of spaces
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddSpace(Space space) + +
+          Add a single space to the mesh
+ NavPathfindPath(float sx, + float sy, + float tx, + float ty, + boolean optimize) + +
+          Find a path from the source to the target coordinates
+ SpacefindSpace(float x, + float y) + +
+          Find the space at a given location
+ SpacegetSpace(int index) + +
+          Get the space at a given index
+ intgetSpaceCount() + +
+          Get the number of spaces that are in the mesh
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NavMesh

+
+public NavMesh()
+
+
Create a new empty mesh +

+

+
+ +

+NavMesh

+
+public NavMesh(java.util.ArrayList spaces)
+
+
Create a new mesh with a set of spaces +

+

+
Parameters:
spaces - The spaces included in the mesh
+
+ + + + + + + + +
+Method Detail
+ +

+getSpaceCount

+
+public int getSpaceCount()
+
+
Get the number of spaces that are in the mesh +

+

+ +
Returns:
The spaces in the mesh
+
+
+
+ +

+getSpace

+
+public Space getSpace(int index)
+
+
Get the space at a given index +

+

+
Parameters:
index - The index of the space to retrieve +
Returns:
The space at the given index
+
+
+
+ +

+addSpace

+
+public void addSpace(Space space)
+
+
Add a single space to the mesh +

+

+
Parameters:
space - The space to be added
+
+
+
+ +

+findSpace

+
+public Space findSpace(float x,
+                       float y)
+
+
Find the space at a given location +

+

+
Parameters:
x - The x coordinate at which to find the space
y - The y coordinate at which to find the space +
Returns:
The space at the given location
+
+
+
+ +

+findPath

+
+public NavPath findPath(float sx,
+                        float sy,
+                        float tx,
+                        float ty,
+                        boolean optimize)
+
+
Find a path from the source to the target coordinates +

+

+
Parameters:
sx - The x coordinate of the source location
sy - The y coordinate of the source location
tx - The x coordinate of the target location
ty - The y coordinate of the target location
optimize - True if paths should be optimized +
Returns:
The path between the two spaces
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMeshBuilder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMeshBuilder.html new file mode 100644 index 000000000..809128ada --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavMeshBuilder.html @@ -0,0 +1,425 @@ + + + + + + +NavMeshBuilder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.navmesh +
+Class NavMeshBuilder

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder
+
+
+
All Implemented Interfaces:
PathFindingContext
+
+
+
+
public class NavMeshBuilder
extends java.lang.Object
implements PathFindingContext
+ + +

+The builder responsible for converting a tile based map into + a navigation mesh +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NavMeshBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ NavMeshbuild(TileBasedMap map) + +
+          Build a navigation mesh based on a tile map
+ NavMeshbuild(TileBasedMap map, + boolean tileBased) + +
+          Build a navigation mesh based on a tile map
+ booleanclear(TileBasedMap map, + Space space) + +
+          Check if a particular space is clear of blockages
+ MovergetMover() + +
+          Path finding context implementation
+ intgetSearchDistance() + +
+          Path finding context implementation
+ intgetSourceX() + +
+          Path finding context implementation
+ intgetSourceY() + +
+          Path finding context implementation
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NavMeshBuilder

+
+public NavMeshBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+build

+
+public NavMesh build(TileBasedMap map)
+
+
Build a navigation mesh based on a tile map +

+

+
+
+
+
Parameters:
map - The map to build the navigation mesh from +
Returns:
The newly created navigation mesh
+
+
+
+ +

+build

+
+public NavMesh build(TileBasedMap map,
+                     boolean tileBased)
+
+
Build a navigation mesh based on a tile map +

+

+
+
+
+
Parameters:
map - The map to build the navigation mesh from
tileBased - True if we'll use the tiles for the mesh initially + rather than quad spacing +
Returns:
The newly created navigation mesh
+
+
+
+ +

+clear

+
+public boolean clear(TileBasedMap map,
+                     Space space)
+
+
Check if a particular space is clear of blockages +

+

+
+
+
+
Parameters:
map - The map the spaces are being built from
space - The space to check +
Returns:
True if there are no blockages in the space
+
+
+
+ +

+getMover

+
+public Mover getMover()
+
+
Path finding context implementation +

+

+
Specified by:
getMover in interface PathFindingContext
+
+
+ +
Returns:
The current mover
+
+
+
+ +

+getSearchDistance

+
+public int getSearchDistance()
+
+
Path finding context implementation +

+

+
Specified by:
getSearchDistance in interface PathFindingContext
+
+
+ +
Returns:
The current search distance
+
+
+
+ +

+getSourceX

+
+public int getSourceX()
+
+
Path finding context implementation +

+

+
Specified by:
getSourceX in interface PathFindingContext
+
+
+ +
Returns:
The current x location
+
+
+
+ +

+getSourceY

+
+public int getSourceY()
+
+
Path finding context implementation +

+

+
Specified by:
getSourceY in interface PathFindingContext
+
+
+ +
Returns:
The current y location
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavPath.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavPath.html new file mode 100644 index 000000000..9275e3bb1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/NavPath.html @@ -0,0 +1,376 @@ + + + + + + +NavPath (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.navmesh +
+Class NavPath

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.navmesh.NavPath
+
+
+
+
public class NavPath
extends java.lang.Object
+ + +

+A path across a navigation mesh +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NavPath() + +
+          Create a new path
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ floatgetX(int step) + +
+          Get the x coordinate of the given step
+ floatgetY(int step) + +
+          Get the y coordinate of the given step
+ intlength() + +
+          Get the length of the path
+ voidpush(Link link) + +
+          Push a link to the end of the path
+ voidremove(int i) + +
+          Remove a step in the path
+ java.lang.StringtoString() + +
+          Get a string representation of this instance
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NavPath

+
+public NavPath()
+
+
Create a new path +

+

+ + + + + + + + +
+Method Detail
+ +

+push

+
+public void push(Link link)
+
+
Push a link to the end of the path +

+

+
Parameters:
link - The link to the end of the path
+
+
+
+ +

+length

+
+public int length()
+
+
Get the length of the path +

+

+ +
Returns:
The number of steps in the path
+
+
+
+ +

+getX

+
+public float getX(int step)
+
+
Get the x coordinate of the given step +

+

+
Parameters:
step - The index of the step to retrieve +
Returns:
The x coordinate at the given step index
+
+
+
+ +

+getY

+
+public float getY(int step)
+
+
Get the y coordinate of the given step +

+

+
Parameters:
step - The index of the step to retrieve +
Returns:
The y coordinate at the given step index
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
Get a string representation of this instance +

+

+
Overrides:
toString in class java.lang.Object
+
+
+ +
Returns:
The string representation of this instance
+
+
+
+ +

+remove

+
+public void remove(int i)
+
+
Remove a step in the path +

+

+
Parameters:
i -
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Space.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Space.html new file mode 100644 index 000000000..13dbba622 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/Space.html @@ -0,0 +1,616 @@ + + + + + + +Space (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.pathfinding.navmesh +
+Class Space

+
+java.lang.Object
+  extended by org.newdawn.slick.util.pathfinding.navmesh.Space
+
+
+
+
public class Space
extends java.lang.Object
+ + +

+A quad space within a navigation mesh +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Space(float x, + float y, + float width, + float height) + +
+          Create a new space
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancanMerge(Space other) + +
+          Check if the given space can be merged with this one.
+ voidclearCost() + +
+          Clear the costing values across the whole map
+ booleancontains(float xp, + float yp) + +
+          Check if this space contains a given point
+ voidfill(Space target, + float sx, + float sy, + float cost) + +
+          Fill the spaces based on the cost from a given starting point
+ floatgetCost() + +
+          Get the cost to get to this node at the moment
+ floatgetHeight() + +
+          Get the height of the space
+ LinkgetLink(int index) + +
+          Get the link from this space to another at a particular index
+ intgetLinkCount() + +
+          Get the number of links
+ floatgetWidth() + +
+          Get the width of the space
+ floatgetX() + +
+          Get the x coordinate of the top corner of the space
+ floatgetY() + +
+          Get the y coordinate of the top corner of the space
+ booleanhasJoinedEdge(Space other) + +
+          Check if this space has an edge that is joined with another
+ voidlink(Space other) + +
+          Link this space to another by creating a link and finding the point + at which the spaces link up
+ Spacemerge(Space other) + +
+          Merge this space with another
+ booleanpickLowestCost(Space target, + NavPath path) + +
+          Pick the lowest cost route from this space to another on the path
+ java.lang.StringtoString() + +
+          Get the string representation of this instance
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Space

+
+public Space(float x,
+             float y,
+             float width,
+             float height)
+
+
Create a new space +

+

+
Parameters:
x - The x coordinate of the top corner of the space
y - The y coordinate of the top corner of the space
width - The width of the space
height - The height of the space
+
+ + + + + + + + +
+Method Detail
+ +

+getWidth

+
+public float getWidth()
+
+
Get the width of the space +

+

+ +
Returns:
The width of the space
+
+
+
+ +

+getHeight

+
+public float getHeight()
+
+
Get the height of the space +

+

+ +
Returns:
The height of the space
+
+
+
+ +

+getX

+
+public float getX()
+
+
Get the x coordinate of the top corner of the space +

+

+ +
Returns:
The x coordinate of the top corner of the space
+
+
+
+ +

+getY

+
+public float getY()
+
+
Get the y coordinate of the top corner of the space +

+

+ +
Returns:
The y coordinate of the top corner of the space
+
+
+
+ +

+link

+
+public void link(Space other)
+
+
Link this space to another by creating a link and finding the point + at which the spaces link up +

+

+
Parameters:
other - The other space to link to
+
+
+
+ +

+hasJoinedEdge

+
+public boolean hasJoinedEdge(Space other)
+
+
Check if this space has an edge that is joined with another +

+

+
Parameters:
other - The other space to check against +
Returns:
True if the spaces have a shared edge
+
+
+
+ +

+merge

+
+public Space merge(Space other)
+
+
Merge this space with another +

+

+
Parameters:
other - The other space to merge with +
Returns:
The result space created by joining the two
+
+
+
+ +

+canMerge

+
+public boolean canMerge(Space other)
+
+
Check if the given space can be merged with this one. It must have + an adjacent edge and have the same height or width as this space. +

+

+
Parameters:
other - The other space to be considered +
Returns:
True if the spaces can be joined together
+
+
+
+ +

+getLinkCount

+
+public int getLinkCount()
+
+
Get the number of links +

+

+ +
Returns:
The number of links from the space to others
+
+
+
+ +

+getLink

+
+public Link getLink(int index)
+
+
Get the link from this space to another at a particular index +

+

+
Parameters:
index - The index of the link to retrieve +
Returns:
The link from this space to another
+
+
+
+ +

+contains

+
+public boolean contains(float xp,
+                        float yp)
+
+
Check if this space contains a given point +

+

+
Parameters:
xp - The x coordinate to check
yp - The y coordinate to check +
Returns:
True if this space container the coordinate given
+
+
+
+ +

+fill

+
+public void fill(Space target,
+                 float sx,
+                 float sy,
+                 float cost)
+
+
Fill the spaces based on the cost from a given starting point +

+

+
Parameters:
target - The target space we're heading for
sx - The x coordinate of the starting point
sy - The y coordinate of the starting point
cost - The cost up to this point
+
+
+
+ +

+clearCost

+
+public void clearCost()
+
+
Clear the costing values across the whole map +

+

+
+
+
+
+ +

+getCost

+
+public float getCost()
+
+
Get the cost to get to this node at the moment +

+

+ +
Returns:
The cost to get to this node
+
+
+
+ +

+pickLowestCost

+
+public boolean pickLowestCost(Space target,
+                              NavPath path)
+
+
Pick the lowest cost route from this space to another on the path +

+

+
Parameters:
target - The target space we're looking for
path - The path to add the steps to +
Returns:
True if the path was found
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
Get the string representation of this instance +

+

+
Overrides:
toString in class java.lang.Object
+
+
+ +
Returns:
The string representation of this instance
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Link.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Link.html new file mode 100644 index 000000000..acd198503 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Link.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.navmesh.Link (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.navmesh.Link

+
+ + + + + + + + + +
+Packages that use Link
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of Link in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh that return Link
+ LinkSpace.getLink(int index) + +
+          Get the link from this space to another at a particular index
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh with parameters of type Link
+ voidNavPath.push(Link link) + +
+          Push a link to the end of the path
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMesh.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMesh.html new file mode 100644 index 000000000..2af48c650 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMesh.html @@ -0,0 +1,189 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.navmesh.NavMesh (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.navmesh.NavMesh

+
+ + + + + + + + + +
+Packages that use NavMesh
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of NavMesh in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh that return NavMesh
+ NavMeshNavMeshBuilder.build(TileBasedMap map) + +
+          Build a navigation mesh based on a tile map
+ NavMeshNavMeshBuilder.build(TileBasedMap map, + boolean tileBased) + +
+          Build a navigation mesh based on a tile map
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMeshBuilder.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMeshBuilder.html new file mode 100644 index 000000000..cec8326b5 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavMeshBuilder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder

+
+No usage of org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavPath.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavPath.html new file mode 100644 index 000000000..bc44b5c65 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/NavPath.html @@ -0,0 +1,201 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.navmesh.NavPath (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.navmesh.NavPath

+
+ + + + + + + + + +
+Packages that use NavPath
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of NavPath in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh that return NavPath
+ NavPathNavMesh.findPath(float sx, + float sy, + float tx, + float ty, + boolean optimize) + +
+          Find a path from the source to the target coordinates
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh with parameters of type NavPath
+ booleanSpace.pickLowestCost(Space target, + NavPath path) + +
+          Pick the lowest cost route from this space to another on the path
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Space.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Space.html new file mode 100644 index 000000000..f541171dd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/class-use/Space.html @@ -0,0 +1,299 @@ + + + + + + +Uses of Class org.newdawn.slick.util.pathfinding.navmesh.Space (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.pathfinding.navmesh.Space

+
+ + + + + + + + + +
+Packages that use Space
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + +
+Uses of Space in org.newdawn.slick.util.pathfinding.navmesh
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh that return Space
+ SpaceNavMesh.findSpace(float x, + float y) + +
+          Find the space at a given location
+ SpaceNavMesh.getSpace(int index) + +
+          Get the space at a given index
+ SpaceLink.getTarget() + +
+          Get the space this object links to
+ SpaceSpace.merge(Space other) + +
+          Merge this space with another
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.pathfinding.navmesh with parameters of type Space
+ voidNavMesh.addSpace(Space space) + +
+          Add a single space to the mesh
+ booleanSpace.canMerge(Space other) + +
+          Check if the given space can be merged with this one.
+ booleanNavMeshBuilder.clear(TileBasedMap map, + Space space) + +
+          Check if a particular space is clear of blockages
+ voidSpace.fill(Space target, + float sx, + float sy, + float cost) + +
+          Fill the spaces based on the cost from a given starting point
+ booleanSpace.hasJoinedEdge(Space other) + +
+          Check if this space has an edge that is joined with another
+ voidSpace.link(Space other) + +
+          Link this space to another by creating a link and finding the point + at which the spaces link up
+ SpaceSpace.merge(Space other) + +
+          Merge this space with another
+ booleanSpace.pickLowestCost(Space target, + NavPath path) + +
+          Pick the lowest cost route from this space to another on the path
+  +

+ + + + + + + + +
Constructors in org.newdawn.slick.util.pathfinding.navmesh with parameters of type Space
Link(float px, + float py, + Space target) + +
+          Create a new link
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-frame.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-frame.html new file mode 100644 index 000000000..414d9baec --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-frame.html @@ -0,0 +1,40 @@ + + + + + + +org.newdawn.slick.util.pathfinding.navmesh (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.util.pathfinding.navmesh + + + + +
+Classes  + +
+Link +
+NavMesh +
+NavMeshBuilder +
+NavPath +
+Space
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-summary.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-summary.html new file mode 100644 index 000000000..e30b99d3a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-summary.html @@ -0,0 +1,174 @@ + + + + + + +org.newdawn.slick.util.pathfinding.navmesh (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.util.pathfinding.navmesh +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
LinkA link between this space and another
NavMeshA nav-mesh is a set of shapes that describe the navigation of a map.
NavMeshBuilderThe builder responsible for converting a tile based map into + a navigation mesh
NavPathA path across a navigation mesh
SpaceA quad space within a navigation mesh
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-tree.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-tree.html new file mode 100644 index 000000000..7cab891c6 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.newdawn.slick.util.pathfinding.navmesh Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.util.pathfinding.navmesh +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • org.newdawn.slick.util.pathfinding.navmesh.Link
    • org.newdawn.slick.util.pathfinding.navmesh.NavMesh
    • org.newdawn.slick.util.pathfinding.navmesh.NavMeshBuilder (implements org.newdawn.slick.util.pathfinding.PathFindingContext) +
    • org.newdawn.slick.util.pathfinding.navmesh.NavPath
    • org.newdawn.slick.util.pathfinding.navmesh.Space
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-use.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-use.html new file mode 100644 index 000000000..c57102939 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/navmesh/package-use.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Package org.newdawn.slick.util.pathfinding.navmesh (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.util.pathfinding.navmesh

+
+ + + + + + + + + +
+Packages that use org.newdawn.slick.util.pathfinding.navmesh
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.util.pathfinding.navmesh used by org.newdawn.slick.util.pathfinding.navmesh
Link + +
+          A link between this space and another
NavMesh + +
+          A nav-mesh is a set of shapes that describe the navigation of a map.
NavPath + +
+          A path across a navigation mesh
Space + +
+          A quad space within a navigation mesh
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/package-frame.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-frame.html new file mode 100644 index 000000000..f042082b4 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-frame.html @@ -0,0 +1,53 @@ + + + + + + +org.newdawn.slick.util.pathfinding (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.util.pathfinding + + + + +
+Interfaces  + +
+AStarHeuristic +
+Mover +
+PathFinder +
+PathFindingContext +
+TileBasedMap
+ + + + + + +
+Classes  + +
+AStarPathFinder +
+Path
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/package-summary.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-summary.html new file mode 100644 index 000000000..eea355799 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-summary.html @@ -0,0 +1,211 @@ + + + + + + +org.newdawn.slick.util.pathfinding (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.util.pathfinding +

+A set of classes to provide configurable A* path finding on tilebased maps +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
AStarHeuristicThe description of a class providing a cost for a given tile based + on a target location and entity being moved.
MoverA tagging interface for an object representing the entity in the game that + is going to moving along the path.
PathFinderA description of an implementation that can find a path from one + location on a tile map to another based on information provided + by that tile map.
PathFindingContextThe context describing the current path finding state
TileBasedMapThe description for the data we're pathfinding over.
+  + +

+ + + + + + + + + + + + + +
+Class Summary
AStarPathFinderA path finder implementation that uses the AStar heuristic based algorithm + to determine a path.
PathA path determined by some path finding algorithm.
+  + +

+

+Package org.newdawn.slick.util.pathfinding Description +

+ +

+A set of classes to provide configurable A* path finding on tilebased maps +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/package-tree.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-tree.html new file mode 100644 index 000000000..5cebf6042 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-tree.html @@ -0,0 +1,161 @@ + + + + + + +org.newdawn.slick.util.pathfinding Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.util.pathfinding +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • org.newdawn.slick.util.pathfinding.AStarPathFinder (implements org.newdawn.slick.util.pathfinding.PathFinder, org.newdawn.slick.util.pathfinding.PathFindingContext) +
    • org.newdawn.slick.util.pathfinding.Path (implements java.io.Serializable) +
    • org.newdawn.slick.util.pathfinding.Path.Step (implements java.io.Serializable) +
    +
+

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/pathfinding/package-use.html b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-use.html new file mode 100644 index 000000000..4941618a1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/pathfinding/package-use.html @@ -0,0 +1,301 @@ + + + + + + +Uses of Package org.newdawn.slick.util.pathfinding (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.util.pathfinding

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.util.pathfinding
org.newdawn.slick.testsTests for the facilities provided by the library. 
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps 
org.newdawn.slick.util.pathfinding.heuristics  
org.newdawn.slick.util.pathfinding.navmesh  
+  +

+ + + + + + + + + + + +
+Classes in org.newdawn.slick.util.pathfinding used by org.newdawn.slick.tests
Mover + +
+          A tagging interface for an object representing the entity in the game that + is going to moving along the path.
PathFindingContext + +
+          The context describing the current path finding state
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.util.pathfinding used by org.newdawn.slick.util.pathfinding
AStarHeuristic + +
+          The description of a class providing a cost for a given tile based + on a target location and entity being moved.
Mover + +
+          A tagging interface for an object representing the entity in the game that + is going to moving along the path.
Path + +
+          A path determined by some path finding algorithm.
Path.Step + +
+          A single step within the path
PathFinder + +
+          A description of an implementation that can find a path from one + location on a tile map to another based on information provided + by that tile map.
PathFindingContext + +
+          The context describing the current path finding state
TileBasedMap + +
+          The description for the data we're pathfinding over.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.util.pathfinding used by org.newdawn.slick.util.pathfinding.heuristics
AStarHeuristic + +
+          The description of a class providing a cost for a given tile based + on a target location and entity being moved.
Mover + +
+          A tagging interface for an object representing the entity in the game that + is going to moving along the path.
TileBasedMap + +
+          The description for the data we're pathfinding over.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.util.pathfinding used by org.newdawn.slick.util.pathfinding.navmesh
Mover + +
+          A tagging interface for an object representing the entity in the game that + is going to moving along the path.
PathFindingContext + +
+          The context describing the current path finding state
TileBasedMap + +
+          The description for the data we're pathfinding over.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/ObjectTreeParser.html b/lib/javadoc/org/newdawn/slick/util/xml/ObjectTreeParser.html new file mode 100644 index 000000000..6c8757cd9 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/ObjectTreeParser.html @@ -0,0 +1,499 @@ + + + + + + +ObjectTreeParser (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.xml +
+Class ObjectTreeParser

+
+java.lang.Object
+  extended by org.newdawn.slick.util.xml.ObjectTreeParser
+
+
+
+
public class ObjectTreeParser
extends java.lang.Object
+ + +

+Provides a method of parsing XML into an existing data model. This does not + provide the same functionality as JAXB or the variety of XML bindings out there. This + is a utility to map XML onto an existing data model. The idea being that the design level + model should not be driven by the XML schema thats defined. The two arn't always equal + and often you end up with a set of class that represent your XML that you then have + to traverse to extract into your normal data model. + + This utility hopes to take a piece of XML and map it onto a previously designed data + model. At the moment it's way to tied to the structure of the XML but this will + hopefully change with time. + + XML element names must be mapped to class names. This can be done in two ways either: + + - Specify an explict mapping with addElementMapping() + - Specify the default package name and use the element name as the class name + + Each attribute in an element is mapped into a property of the element class, preferably + through a set bean method, but alternatively by direct injection into private + fields. + + Each child element is added to the target class by call the method add() on it with a single + parameter of the type generated for the child element. + + Classes can optionally implement setXMLElementName(String) and setXMLElementContent(String) to + recieve the name and content respectively of the XMLElement they were parsed from. This can + help when mapping two elements to a single class. + + To reiterate, I'm not sure this is a good idea yet. It helps me as a utility since I've done + this several times in the past but in the general case it may not be perfect. Consider a custom + parser using XMLParser or JAXB (et al) seriously instead. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ObjectTreeParser() + +
+          Create an object tree parser with no default package
ObjectTreeParser(java.lang.String defaultPackage) + +
+          Create an object tree parser specifing the default package + where classes will be search for using the XML element name
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddElementMapping(java.lang.String elementName, + java.lang.Class elementClass) + +
+          Add a mapping between XML element name and class name
+ voidaddIgnoredElement(java.lang.String elementName) + +
+          Add a name to the list of elements ignored
+ java.lang.Objectparse(java.lang.String ref) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+ java.lang.Objectparse(java.lang.String name, + java.io.InputStream in) + +
+          Parse the XML document that can be read from the given input stream
+ java.lang.ObjectparseOnto(java.lang.String name, + java.io.InputStream in, + java.lang.Object target) + +
+          Parse the XML document that can be read from the given input stream
+ java.lang.ObjectparseOnto(java.lang.String ref, + java.lang.Object target) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+ voidsetAddMethodName(java.lang.String methodName) + +
+          Set the name of the method to use to add child objects to their + parents.
+ voidsetDefaultPackage(java.lang.String defaultPackage) + +
+          Set the default package which will be search for classes by their XML + element name.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectTreeParser

+
+public ObjectTreeParser()
+
+
Create an object tree parser with no default package +

+

+
+ +

+ObjectTreeParser

+
+public ObjectTreeParser(java.lang.String defaultPackage)
+
+
Create an object tree parser specifing the default package + where classes will be search for using the XML element name +

+

+
Parameters:
defaultPackage - The default package to be searched
+
+ + + + + + + + +
+Method Detail
+ +

+addElementMapping

+
+public void addElementMapping(java.lang.String elementName,
+                              java.lang.Class elementClass)
+
+
Add a mapping between XML element name and class name +

+

+
Parameters:
elementName - The name of the XML element
elementClass - The class to be created for the given element
+
+
+
+ +

+addIgnoredElement

+
+public void addIgnoredElement(java.lang.String elementName)
+
+
Add a name to the list of elements ignored +

+

+
Parameters:
elementName - The name to ignore
+
+
+
+ +

+setAddMethodName

+
+public void setAddMethodName(java.lang.String methodName)
+
+
Set the name of the method to use to add child objects to their + parents. This is sometimes useful to not clash with the existing + data model methods. +

+

+
Parameters:
methodName - The name of the method to call
+
+
+
+ +

+setDefaultPackage

+
+public void setDefaultPackage(java.lang.String defaultPackage)
+
+
Set the default package which will be search for classes by their XML + element name. +

+

+
Parameters:
defaultPackage - The default package to be searched
+
+
+
+ +

+parse

+
+public java.lang.Object parse(java.lang.String ref)
+                       throws SlickXMLException
+
+
Parse the XML document located by the slick resource loader using the + reference given. +

+

+
Parameters:
ref - The reference to the XML document +
Returns:
The root element of the newly parse document +
Throws: +
SlickXMLException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+
+ +

+parse

+
+public java.lang.Object parse(java.lang.String name,
+                              java.io.InputStream in)
+                       throws SlickXMLException
+
+
Parse the XML document that can be read from the given input stream +

+

+
Parameters:
name - The name of the document
in - The input stream from which the document can be read +
Returns:
The root element of the newly parse document +
Throws: +
SlickXMLException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+
+ +

+parseOnto

+
+public java.lang.Object parseOnto(java.lang.String ref,
+                                  java.lang.Object target)
+                           throws SlickXMLException
+
+
Parse the XML document located by the slick resource loader using the + reference given. +

+

+
Parameters:
ref - The reference to the XML document
target - The top level object that represents the root node +
Returns:
The root element of the newly parse document +
Throws: +
SlickXMLException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+
+ +

+parseOnto

+
+public java.lang.Object parseOnto(java.lang.String name,
+                                  java.io.InputStream in,
+                                  java.lang.Object target)
+                           throws SlickXMLException
+
+
Parse the XML document that can be read from the given input stream +

+

+
Parameters:
name - The name of the document
in - The input stream from which the document can be read
target - The top level object that represents the root node +
Returns:
The root element of the newly parse document +
Throws: +
SlickXMLException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/SlickXMLException.html b/lib/javadoc/org/newdawn/slick/util/xml/SlickXMLException.html new file mode 100644 index 000000000..42347dade --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/SlickXMLException.html @@ -0,0 +1,272 @@ + + + + + + +SlickXMLException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.xml +
+Class SlickXMLException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.newdawn.slick.SlickException
+              extended by org.newdawn.slick.util.xml.SlickXMLException
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class SlickXMLException
extends SlickException
+ + +

+An exception to describe failures in XML. Made a special case because with XML + to object parsing you might want to handle it differently +

+ +

+

+
Author:
+
kevin
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
SlickXMLException(java.lang.String message) + +
+          Create a new exception
SlickXMLException(java.lang.String message, + java.lang.Throwable e) + +
+          Create a new exception
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SlickXMLException

+
+public SlickXMLException(java.lang.String message)
+
+
Create a new exception +

+

+
Parameters:
message - The message describing the failure
+
+
+ +

+SlickXMLException

+
+public SlickXMLException(java.lang.String message,
+                         java.lang.Throwable e)
+
+
Create a new exception +

+

+
Parameters:
message - The message describing the failure
e - The exception causing this failure
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/XMLElement.html b/lib/javadoc/org/newdawn/slick/util/xml/XMLElement.html new file mode 100644 index 000000000..2bf9d916c --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/XMLElement.html @@ -0,0 +1,544 @@ + + + + + + +XMLElement (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.xml +
+Class XMLElement

+
+java.lang.Object
+  extended by org.newdawn.slick.util.xml.XMLElement
+
+
+
+
public class XMLElement
extends java.lang.Object
+ + +

+A utility wrapper round the standard DOM XML element. This provides a more simple API + for accessing attributes, children and providing defaults when schemas arn't used - which + is generally a little simpler for most of us. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element
+ java.lang.StringgetAttribute(java.lang.String name, + java.lang.String def) + +
+          Get the value specified for a given attribute on this element
+ java.lang.String[]getAttributeNames() + +
+          Get the names of the attributes specified on this element
+ booleangetBooleanAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as a boolean.
+ booleangetBooleanAttribute(java.lang.String name, + boolean def) + +
+          Get the value specified for a given attribute on this element as a boolean.
+ XMLElementListgetChildren() + +
+          Get the complete list of children for this node
+ XMLElementListgetChildrenByName(java.lang.String name) + +
+          Get a list of children with a given element name
+ java.lang.StringgetContent() + +
+          Get the text content of the element, i.e.
+ doublegetDoubleAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as an double.
+ doublegetDoubleAttribute(java.lang.String name, + double def) + +
+          Get the value specified for a given attribute on this element as an double.
+ intgetIntAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as an integer.
+ intgetIntAttribute(java.lang.String name, + int def) + +
+          Get the value specified for a given attribute on this element as an integer.
+ java.lang.StringgetName() + +
+          Get the name of this element
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getAttributeNames

+
+public java.lang.String[] getAttributeNames()
+
+
Get the names of the attributes specified on this element +

+

+ +
Returns:
The names of the elements specified
+
+
+
+ +

+getName

+
+public java.lang.String getName()
+
+
Get the name of this element +

+

+ +
Returns:
The name of this element
+
+
+
+ +

+getAttribute

+
+public java.lang.String getAttribute(java.lang.String name)
+
+
Get the value specified for a given attribute on this element +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved +
Returns:
The value given for the attribute
+
+
+
+ +

+getAttribute

+
+public java.lang.String getAttribute(java.lang.String name,
+                                     java.lang.String def)
+
+
Get the value specified for a given attribute on this element +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved
def - The default value to return if the attribute is specified +
Returns:
The value given for the attribute
+
+
+
+ +

+getIntAttribute

+
+public int getIntAttribute(java.lang.String name)
+                    throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as an integer. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an integer
+
+
+
+ +

+getIntAttribute

+
+public int getIntAttribute(java.lang.String name,
+                           int def)
+                    throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as an integer. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved
def - The default value to return if the attribute is specified +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an integer
+
+
+
+ +

+getDoubleAttribute

+
+public double getDoubleAttribute(java.lang.String name)
+                          throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as an double. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an double
+
+
+
+ +

+getDoubleAttribute

+
+public double getDoubleAttribute(java.lang.String name,
+                                 double def)
+                          throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as an double. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved
def - The default value to return if the attribute is specified +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an double
+
+
+
+ +

+getBooleanAttribute

+
+public boolean getBooleanAttribute(java.lang.String name)
+                            throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as a boolean. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an boolean
+
+
+
+ +

+getBooleanAttribute

+
+public boolean getBooleanAttribute(java.lang.String name,
+                                   boolean def)
+                            throws SlickXMLException
+
+
Get the value specified for a given attribute on this element as a boolean. +

+

+
Parameters:
name - The name of the attribute whose value should be retrieved
def - The default value to return if the attribute is specified +
Returns:
The value given for the attribute +
Throws: +
SlickXMLException - Indicates a failure to convert the value into an boolean
+
+
+
+ +

+getContent

+
+public java.lang.String getContent()
+
+
Get the text content of the element, i.e. the bit between the tags +

+

+ +
Returns:
The text content of the node
+
+
+
+ +

+getChildren

+
+public XMLElementList getChildren()
+
+
Get the complete list of children for this node +

+

+ +
Returns:
The list of children for this node
+
+
+
+ +

+getChildrenByName

+
+public XMLElementList getChildrenByName(java.lang.String name)
+
+
Get a list of children with a given element name +

+

+
Parameters:
name - The name of the element type that should be retrieved +
Returns:
A list of elements
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
See Also:
Object.toString()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/XMLElementList.html b/lib/javadoc/org/newdawn/slick/util/xml/XMLElementList.html new file mode 100644 index 000000000..45244c24d --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/XMLElementList.html @@ -0,0 +1,351 @@ + + + + + + +XMLElementList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.xml +
+Class XMLElementList

+
+java.lang.Object
+  extended by org.newdawn.slick.util.xml.XMLElementList
+
+
+
+
public class XMLElementList
extends java.lang.Object
+ + +

+A simple typed list. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XMLElementList() + +
+          Create a new list
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(XMLElement element) + +
+          Add an element to the list
+ voidaddAllTo(java.util.Collection collection) + +
+          Add all the elements in this list to another collection
+ booleancontains(XMLElement element) + +
+          Check if this list contains the given element
+ XMLElementget(int i) + +
+          Get the element at a specified index
+ intsize() + +
+          Get the number of elements in the list
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMLElementList

+
+public XMLElementList()
+
+
Create a new list +

+

+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(XMLElement element)
+
+
Add an element to the list +

+

+
Parameters:
element - The element to be added
+
+
+
+ +

+size

+
+public int size()
+
+
Get the number of elements in the list +

+

+ +
Returns:
The number of elements in the list
+
+
+
+ +

+get

+
+public XMLElement get(int i)
+
+
Get the element at a specified index +

+

+
Parameters:
i - The index of the element +
Returns:
The element at the specified index
+
+
+
+ +

+contains

+
+public boolean contains(XMLElement element)
+
+
Check if this list contains the given element +

+

+
Parameters:
element - The element to check for +
Returns:
True if the element is in the list
+
+
+
+ +

+addAllTo

+
+public void addAllTo(java.util.Collection collection)
+
+
Add all the elements in this list to another collection +

+

+
Parameters:
collection - The collection the elements should be added to
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/XMLParser.html b/lib/javadoc/org/newdawn/slick/util/xml/XMLParser.html new file mode 100644 index 000000000..83a000c16 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/XMLParser.html @@ -0,0 +1,300 @@ + + + + + + +XMLParser (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.newdawn.slick.util.xml +
+Class XMLParser

+
+java.lang.Object
+  extended by org.newdawn.slick.util.xml.XMLParser
+
+
+
+
public class XMLParser
extends java.lang.Object
+ + +

+A simple utility wrapper around the Java DOM implementation to hopefully + make XML parsing that bit easier without requiring YAL. +

+ +

+

+
Author:
+
kevin
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XMLParser() + +
+          Create a new parser
+  + + + + + + + + + + + + + + + +
+Method Summary
+ XMLElementparse(java.lang.String ref) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+ XMLElementparse(java.lang.String name, + java.io.InputStream in) + +
+          Parse the XML document that can be read from the given input stream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMLParser

+
+public XMLParser()
+
+
Create a new parser +

+

+ + + + + + + + +
+Method Detail
+ +

+parse

+
+public XMLElement parse(java.lang.String ref)
+                 throws SlickException
+
+
Parse the XML document located by the slick resource loader using the + reference given. +

+

+
Parameters:
ref - The reference to the XML document +
Returns:
The root element of the newly parse document +
Throws: +
SlickException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+
+ +

+parse

+
+public XMLElement parse(java.lang.String name,
+                        java.io.InputStream in)
+                 throws SlickXMLException
+
+
Parse the XML document that can be read from the given input stream +

+

+
Parameters:
name - The name of the document
in - The input stream from which the document can be read +
Returns:
The root element of the newly parse document +
Throws: +
SlickXMLException - Indicates a failure to parse the XML, most likely the + XML is malformed in some way.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/class-use/ObjectTreeParser.html b/lib/javadoc/org/newdawn/slick/util/xml/class-use/ObjectTreeParser.html new file mode 100644 index 000000000..e3f3d4739 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/class-use/ObjectTreeParser.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.xml.ObjectTreeParser (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.xml.ObjectTreeParser

+
+No usage of org.newdawn.slick.util.xml.ObjectTreeParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/class-use/SlickXMLException.html b/lib/javadoc/org/newdawn/slick/util/xml/class-use/SlickXMLException.html new file mode 100644 index 000000000..c0dba6a9a --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/class-use/SlickXMLException.html @@ -0,0 +1,299 @@ + + + + + + +Uses of Class org.newdawn.slick.util.xml.SlickXMLException (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.xml.SlickXMLException

+
+ + + + + + + + + + + + + +
+Packages that use SlickXMLException
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + +
+Uses of SlickXMLException in org.newdawn.slick.tests.xml
+  +

+ + + + + + + + + +
Methods in org.newdawn.slick.tests.xml that throw SlickXMLException
+static voidObjectParserTest.main(java.lang.String[] argv) + +
+          Entity point to our test.
+  +

+ + + + + +
+Uses of SlickXMLException in org.newdawn.slick.util.xml
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.xml that throw SlickXMLException
+ booleanXMLElement.getBooleanAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as a boolean.
+ booleanXMLElement.getBooleanAttribute(java.lang.String name, + boolean def) + +
+          Get the value specified for a given attribute on this element as a boolean.
+ doubleXMLElement.getDoubleAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as an double.
+ doubleXMLElement.getDoubleAttribute(java.lang.String name, + double def) + +
+          Get the value specified for a given attribute on this element as an double.
+ intXMLElement.getIntAttribute(java.lang.String name) + +
+          Get the value specified for a given attribute on this element as an integer.
+ intXMLElement.getIntAttribute(java.lang.String name, + int def) + +
+          Get the value specified for a given attribute on this element as an integer.
+ java.lang.ObjectObjectTreeParser.parse(java.lang.String ref) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+ XMLElementXMLParser.parse(java.lang.String name, + java.io.InputStream in) + +
+          Parse the XML document that can be read from the given input stream
+ java.lang.ObjectObjectTreeParser.parse(java.lang.String name, + java.io.InputStream in) + +
+          Parse the XML document that can be read from the given input stream
+ java.lang.ObjectObjectTreeParser.parseOnto(java.lang.String name, + java.io.InputStream in, + java.lang.Object target) + +
+          Parse the XML document that can be read from the given input stream
+ java.lang.ObjectObjectTreeParser.parseOnto(java.lang.String ref, + java.lang.Object target) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElement.html b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElement.html new file mode 100644 index 000000000..62fd07168 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElement.html @@ -0,0 +1,222 @@ + + + + + + +Uses of Class org.newdawn.slick.util.xml.XMLElement (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.xml.XMLElement

+
+ + + + + + + + + +
+Packages that use XMLElement
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + +
+Uses of XMLElement in org.newdawn.slick.util.xml
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.xml that return XMLElement
+ XMLElementXMLElementList.get(int i) + +
+          Get the element at a specified index
+ XMLElementXMLParser.parse(java.lang.String ref) + +
+          Parse the XML document located by the slick resource loader using the + reference given.
+ XMLElementXMLParser.parse(java.lang.String name, + java.io.InputStream in) + +
+          Parse the XML document that can be read from the given input stream
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.xml with parameters of type XMLElement
+ voidXMLElementList.add(XMLElement element) + +
+          Add an element to the list
+ booleanXMLElementList.contains(XMLElement element) + +
+          Check if this list contains the given element
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElementList.html b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElementList.html new file mode 100644 index 000000000..8214f62fd --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLElementList.html @@ -0,0 +1,188 @@ + + + + + + +Uses of Class org.newdawn.slick.util.xml.XMLElementList (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.xml.XMLElementList

+
+ + + + + + + + + +
+Packages that use XMLElementList
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + +
+Uses of XMLElementList in org.newdawn.slick.util.xml
+  +

+ + + + + + + + + + + + + +
Methods in org.newdawn.slick.util.xml that return XMLElementList
+ XMLElementListXMLElement.getChildren() + +
+          Get the complete list of children for this node
+ XMLElementListXMLElement.getChildrenByName(java.lang.String name) + +
+          Get a list of children with a given element name
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLParser.html b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLParser.html new file mode 100644 index 000000000..0586045fc --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/class-use/XMLParser.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.newdawn.slick.util.xml.XMLParser (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.newdawn.slick.util.xml.XMLParser

+
+No usage of org.newdawn.slick.util.xml.XMLParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/package-frame.html b/lib/javadoc/org/newdawn/slick/util/xml/package-frame.html new file mode 100644 index 000000000..fbf0c6ba1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/package-frame.html @@ -0,0 +1,49 @@ + + + + + + +org.newdawn.slick.util.xml (Slick - The 2D Library) + + + + + + + + + + + +org.newdawn.slick.util.xml + + + + +
+Classes  + +
+ObjectTreeParser +
+XMLElement +
+XMLElementList +
+XMLParser
+ + + + + + +
+Exceptions  + +
+SlickXMLException
+ + + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/package-summary.html b/lib/javadoc/org/newdawn/slick/util/xml/package-summary.html new file mode 100644 index 000000000..c4c506341 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/package-summary.html @@ -0,0 +1,199 @@ + + + + + + +org.newdawn.slick.util.xml (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.newdawn.slick.util.xml +

+Some utilities for reading XML using Java DOM and for mapping XML onto existing data models +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ObjectTreeParserProvides a method of parsing XML into an existing data model.
XMLElementA utility wrapper round the standard DOM XML element.
XMLElementListA simple typed list.
XMLParserA simple utility wrapper around the Java DOM implementation to hopefully + make XML parsing that bit easier without requiring YAL.
+  + +

+ + + + + + + + + +
+Exception Summary
SlickXMLExceptionAn exception to describe failures in XML.
+  + +

+

+Package org.newdawn.slick.util.xml Description +

+ +

+Some utilities for reading XML using Java DOM and for mapping XML onto existing data models +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/package-tree.html b/lib/javadoc/org/newdawn/slick/util/xml/package-tree.html new file mode 100644 index 000000000..ebf00b681 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +org.newdawn.slick.util.xml Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.newdawn.slick.util.xml +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/org/newdawn/slick/util/xml/package-use.html b/lib/javadoc/org/newdawn/slick/util/xml/package-use.html new file mode 100644 index 000000000..a5cb8b6d1 --- /dev/null +++ b/lib/javadoc/org/newdawn/slick/util/xml/package-use.html @@ -0,0 +1,201 @@ + + + + + + +Uses of Package org.newdawn.slick.util.xml (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.newdawn.slick.util.xml

+
+ + + + + + + + + + + + + +
+Packages that use org.newdawn.slick.util.xml
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser 
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models 
+  +

+ + + + + + + + +
+Classes in org.newdawn.slick.util.xml used by org.newdawn.slick.tests.xml
SlickXMLException + +
+          An exception to describe failures in XML.
+  +

+ + + + + + + + + + + + + + +
+Classes in org.newdawn.slick.util.xml used by org.newdawn.slick.util.xml
SlickXMLException + +
+          An exception to describe failures in XML.
XMLElement + +
+          A utility wrapper round the standard DOM XML element.
XMLElementList + +
+          A simple typed list.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/overview-frame.html b/lib/javadoc/overview-frame.html new file mode 100644 index 000000000..a71b375b0 --- /dev/null +++ b/lib/javadoc/overview-frame.html @@ -0,0 +1,98 @@ + + + + + + +Overview List (Slick - The 2D Library) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+org.newdawn.slick +
+org.newdawn.slick.command +
+org.newdawn.slick.fills +
+org.newdawn.slick.font +
+org.newdawn.slick.font.effects +
+org.newdawn.slick.geom +
+org.newdawn.slick.gui +
+org.newdawn.slick.imageout +
+org.newdawn.slick.loading +
+org.newdawn.slick.muffin +
+org.newdawn.slick.openal +
+org.newdawn.slick.opengl +
+org.newdawn.slick.opengl.pbuffer +
+org.newdawn.slick.opengl.renderer +
+org.newdawn.slick.particles +
+org.newdawn.slick.particles.effects +
+org.newdawn.slick.state +
+org.newdawn.slick.state.transition +
+org.newdawn.slick.svg +
+org.newdawn.slick.svg.inkscape +
+org.newdawn.slick.tests +
+org.newdawn.slick.tests.states +
+org.newdawn.slick.tests.xml +
+org.newdawn.slick.tiled +
+org.newdawn.slick.util +
+org.newdawn.slick.util.pathfinding +
+org.newdawn.slick.util.pathfinding.heuristics +
+org.newdawn.slick.util.pathfinding.navmesh +
+org.newdawn.slick.util.xml +
+

+ +

+  + + diff --git a/lib/javadoc/overview-summary.html b/lib/javadoc/overview-summary.html new file mode 100644 index 000000000..70df7a29a --- /dev/null +++ b/lib/javadoc/overview-summary.html @@ -0,0 +1,273 @@ + + + + + + +Overview (Slick - The 2D Library) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+

Slick

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages
org.newdawn.slick 
org.newdawn.slick.commandProvides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract +commands that are relevant to a particular game.
org.newdawn.slick.fillsFill effects used to colour and mogrify shapes during rendering
org.newdawn.slick.font 
org.newdawn.slick.font.effects 
org.newdawn.slick.geomSimple geometric wrappers that can be used for rendering and collision.
org.newdawn.slick.guiSome extremely simple GUI elements which should be used where a game does not require a full GUI
org.newdawn.slick.imageoutSupports saving of slick images to various file types.
org.newdawn.slick.loadingAdds support for deferring loading of resources to a set time to allow loading/progress bar +style effects.
org.newdawn.slick.muffinMuffins for storing local data
org.newdawn.slick.openalThis package contains the nitty gritty sound manipulation code for using OpenAL with standard audio formats.
org.newdawn.slick.openglThis package contains the nitty gritty image manipulation code for using OpenGL with standard image formats.
org.newdawn.slick.opengl.pbuffer 
org.newdawn.slick.opengl.renderer 
org.newdawn.slick.particlesThe particle engine maintains a set of small sprites being controlled +by emitters to give some special effect.
org.newdawn.slick.particles.effectsThis package should contain stock effects for simple particle systems.
org.newdawn.slick.stateState based games allow the game to be broken down into the different activities the player may +take part in, for instance menu, highscores, play and credits.
org.newdawn.slick.state.transition 
org.newdawn.slick.svgDemo/Test SVG area.
org.newdawn.slick.svg.inkscape 
org.newdawn.slick.testsTests for the facilities provided by the library.
org.newdawn.slick.tests.statesStates for the StateBasedGameTest
org.newdawn.slick.tests.xmlTests for the XML Parser and Object Tree Parser
org.newdawn.slick.tiledContains utilities for working with the TilED (http://www.mapeditor.org) +utility for creating tiled maps.
org.newdawn.slick.utilUtilities to support the library.
org.newdawn.slick.util.pathfindingA set of classes to provide configurable A* path finding on tilebased maps
org.newdawn.slick.util.pathfinding.heuristics 
org.newdawn.slick.util.pathfinding.navmesh 
org.newdawn.slick.util.xmlSome utilities for reading XML using Java DOM and for mapping XML onto existing data models
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/overview-tree.html b/lib/javadoc/overview-tree.html new file mode 100644 index 000000000..a1e747f3f --- /dev/null +++ b/lib/javadoc/overview-tree.html @@ -0,0 +1,336 @@ + + + + + + +Class Hierarchy (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.newdawn.slick, org.newdawn.slick.command, org.newdawn.slick.fills, org.newdawn.slick.font, org.newdawn.slick.font.effects, org.newdawn.slick.geom, org.newdawn.slick.gui, org.newdawn.slick.imageout, org.newdawn.slick.loading, org.newdawn.slick.muffin, org.newdawn.slick.openal, org.newdawn.slick.opengl, org.newdawn.slick.opengl.pbuffer, org.newdawn.slick.opengl.renderer, org.newdawn.slick.particles, org.newdawn.slick.particles.effects, org.newdawn.slick.state, org.newdawn.slick.state.transition, org.newdawn.slick.svg, org.newdawn.slick.svg.inkscape, org.newdawn.slick.tests, org.newdawn.slick.tests.states, org.newdawn.slick.tests.xml, org.newdawn.slick.tiled, org.newdawn.slick.util, org.newdawn.slick.util.pathfinding, org.newdawn.slick.util.pathfinding.heuristics, org.newdawn.slick.util.pathfinding.navmesh, org.newdawn.slick.util.xml
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/package-list b/lib/javadoc/package-list new file mode 100644 index 000000000..e65db89d2 --- /dev/null +++ b/lib/javadoc/package-list @@ -0,0 +1,29 @@ +org.newdawn.slick +org.newdawn.slick.command +org.newdawn.slick.fills +org.newdawn.slick.font +org.newdawn.slick.font.effects +org.newdawn.slick.geom +org.newdawn.slick.gui +org.newdawn.slick.imageout +org.newdawn.slick.loading +org.newdawn.slick.muffin +org.newdawn.slick.openal +org.newdawn.slick.opengl +org.newdawn.slick.opengl.pbuffer +org.newdawn.slick.opengl.renderer +org.newdawn.slick.particles +org.newdawn.slick.particles.effects +org.newdawn.slick.state +org.newdawn.slick.state.transition +org.newdawn.slick.svg +org.newdawn.slick.svg.inkscape +org.newdawn.slick.tests +org.newdawn.slick.tests.states +org.newdawn.slick.tests.xml +org.newdawn.slick.tiled +org.newdawn.slick.util +org.newdawn.slick.util.pathfinding +org.newdawn.slick.util.pathfinding.heuristics +org.newdawn.slick.util.pathfinding.navmesh +org.newdawn.slick.util.xml diff --git a/lib/javadoc/resources/inherit.gif b/lib/javadoc/resources/inherit.gif new file mode 100644 index 000000000..c814867a1 Binary files /dev/null and b/lib/javadoc/resources/inherit.gif differ diff --git a/lib/javadoc/serialized-form.html b/lib/javadoc/serialized-form.html new file mode 100644 index 000000000..6232c0ad3 --- /dev/null +++ b/lib/javadoc/serialized-form.html @@ -0,0 +1,1635 @@ + + + + + + +Serialized Form (Slick - The 2D Library) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package org.newdawn.slick
+ +

+ + + + + +
+Class org.newdawn.slick.AppletGameContainer extends java.applet.Applet implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+canvas

+
+AppletGameContainer.ContainerPanel canvas
+
+
The GL Canvas used for this container +

+

+
+
+
+

+container

+
+AppletGameContainer.Container container
+
+
The actual container implementation +

+

+
+
+
+

+displayParent

+
+java.awt.Canvas displayParent
+
+
The parent of the display +

+

+
+
+
+

+gameThread

+
+java.lang.Thread gameThread
+
+
The thread that is looping for the game +

+

+
+
+
+

+alphaSupport

+
+boolean alphaSupport
+
+
Alpha background supported +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.AppletGameContainer.ConsolePanel extends java.awt.Panel implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+textArea

+
+java.awt.TextArea textArea
+
+
The area display the console output +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.CanvasGameContainer extends java.awt.Canvas implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+container

+
+org.newdawn.slick.CanvasGameContainer.Container container
+
+
The actual container implementation +

+

+
+
+
+

+game

+
+Game game
+
+
The game being held in this container +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.Color extends java.lang.Object implements Serializable
+ +

+serialVersionUID: 1393939L + +

+ + + + + +
+Serialized Fields
+ +

+r

+
+float r
+
+
The red component of the colour +

+

+
+
+
+

+g

+
+float g
+
+
The green component of the colour +

+

+
+
+
+

+b

+
+float b
+
+
The blue component of the colour +

+

+
+
+
+

+a

+
+float a
+
+
The alpha component of the colour +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.SlickException extends java.lang.Exception implements Serializable
+ +

+


+ + + + + +
+Package org.newdawn.slick.geom
+ +

+ + + + + +
+Class org.newdawn.slick.geom.BasicTriangulator extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+poly

+
+org.newdawn.slick.geom.BasicTriangulator.PointList poly
+
+
The list of points to be triangulated +

+

+
+
+
+

+tris

+
+org.newdawn.slick.geom.BasicTriangulator.PointList tris
+
+
The list of points describing the triangles +

+

+
+
+
+

+tried

+
+boolean tried
+
+
True if we've tried to triangulate +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Circle extends Ellipse implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+radius

+
+float radius
+
+
The radius of the circle +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Curve extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+p1

+
+Vector2f p1
+
+
The start point of the curve +

+

+
+
+
+

+c1

+
+Vector2f c1
+
+
The first control point +

+

+
+
+
+

+c2

+
+Vector2f c2
+
+
The second control point +

+

+
+
+
+

+p2

+
+Vector2f p2
+
+
The end point of the curve +

+

+
+
+
+

+segments

+
+int segments
+
+
The number of lines segments the curve is built out of +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Ellipse extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+segmentCount

+
+int segmentCount
+
+
The number of segments for graphical representation. +

+

+
+
+
+

+radius1

+
+float radius1
+
+
horizontal radius +

+

+
+
+
+

+radius2

+
+float radius2
+
+
vertical radius +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Line extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+start

+
+Vector2f start
+
+
The start point of the line +

+

+
+
+
+

+end

+
+Vector2f end
+
+
The end point of the line +

+

+
+
+
+

+vec

+
+Vector2f vec
+
+
The vector between the two points +

+

+
+
+
+

+lenSquared

+
+float lenSquared
+
+
The length of the line squared +

+

+
+
+
+

+loc

+
+Vector2f loc
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+v

+
+Vector2f v
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+v2

+
+Vector2f v2
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+proj

+
+Vector2f proj
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+closest

+
+Vector2f closest
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+other

+
+Vector2f other
+
+
Temporary storage - declared globally to reduce GC +

+

+
+
+
+

+outerEdge

+
+boolean outerEdge
+
+
True if this line blocks on the outer edge +

+

+
+
+
+

+innerEdge

+
+boolean innerEdge
+
+
True if this line blocks on the inner edge +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.MannTriangulator extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+contour

+
+MannTriangulator.PointBag contour
+
+
The outer countour of the shape +

+

+
+
+
+

+holes

+
+MannTriangulator.PointBag holes
+
+
The holes defined in the polygon +

+

+
+
+
+

+nextFreePointBag

+
+MannTriangulator.PointBag nextFreePointBag
+
+
The next available point bag +

+

+
+
+
+

+nextFreePoint

+
+org.newdawn.slick.geom.MannTriangulator.Point nextFreePoint
+
+
The next available point +

+

+
+
+
+

+triangles

+
+java.util.List<E> triangles
+
+
The list of triangles created (or rather points in triangles, 3xn) +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.MannTriangulator.PointBag extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+first

+
+org.newdawn.slick.geom.MannTriangulator.Point first
+
+
The first point in the bag - head of the list +

+

+
+
+
+

+next

+
+MannTriangulator.PointBag next
+
+
The next bag in the list of bags +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.MorphShape extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+shapes

+
+java.util.ArrayList<E> shapes
+
+
The shapes to morph between +

+

+
+
+
+

+offset

+
+float offset
+
+
The offset between the shapes +

+

+
+
+
+

+current

+
+Shape current
+
+
The current shape +

+

+
+
+
+

+next

+
+Shape next
+
+
The next shape +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.NeatTriangulator extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+pointsX

+
+float[] pointsX
+
+
The x coordinates +

+

+
+
+
+

+pointsY

+
+float[] pointsY
+
+
The y coordiantes +

+

+
+
+
+

+numPoints

+
+int numPoints
+
+
The number of points that have been added +

+

+
+
+
+

+edges

+
+org.newdawn.slick.geom.NeatTriangulator.Edge[] edges
+
+
The edges defines by triangulation +

+

+
+
+
+

+V

+
+int[] V
+
+
Voroni +

+

+
+
+
+

+numEdges

+
+int numEdges
+
+
The number of edges found +

+

+
+
+
+

+triangles

+
+org.newdawn.slick.geom.NeatTriangulator.Triangle[] triangles
+
+
The triangles that have been found +

+

+
+
+
+

+numTriangles

+
+int numTriangles
+
+
The number of triangles found +

+

+
+
+
+

+offset

+
+float offset
+
+
The current offset +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.OverTriangulator extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+triangles

+
+float[][] triangles
+
+
The triangles data +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Path extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+localPoints

+
+java.util.ArrayList<E> localPoints
+
+
The local list of points +

+

+
+
+
+

+cx

+
+float cx
+
+
The current x coordinate +

+

+
+
+
+

+cy

+
+float cy
+
+
The current y coordiante +

+

+
+
+
+

+closed

+
+boolean closed
+
+
True if the path has been closed +

+

+
+
+
+

+holes

+
+java.util.ArrayList<E> holes
+
+
The list of holes placed +

+

+
+
+
+

+hole

+
+java.util.ArrayList<E> hole
+
+
The current hole being built +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Point extends Shape implements Serializable
+ +

+ +

+ + + + + +
+Class org.newdawn.slick.geom.Polygon extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+allowDups

+
+boolean allowDups
+
+
Allow duplicated points +

+

+
+
+
+

+closed

+
+boolean closed
+
+
True if the polygon is closed +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Rectangle extends Shape implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+width

+
+float width
+
+
The width of the box +

+

+
+
+
+

+height

+
+float height
+
+
The height of the box +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.RoundedRectangle extends Rectangle implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+cornerRadius

+
+float cornerRadius
+
+
radius of each corner +

+

+
+
+
+

+segmentCount

+
+int segmentCount
+
+
number of segments for each corner +

+

+
+
+
+

+cornerFlags

+
+int cornerFlags
+
+
The flags indicating which corners should be rounded +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Shape extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+points

+
+float[] points
+
+
The points representing this polygon. +

+

+
+
+
+

+center

+
+float[] center
+
+
Center point of the polygon. +

+

+
+
+
+

+x

+
+float x
+
+
The left most point of this shape. +

+

+
+
+
+

+y

+
+float y
+
+
The top most point of this shape. +

+

+
+
+
+

+maxX

+
+float maxX
+
+
The right most point of this shape +

+

+
+
+
+

+maxY

+
+float maxY
+
+
The bottom most point of this shape +

+

+
+
+
+

+minX

+
+float minX
+
+
The left most point of this shape. +

+

+
+
+
+

+minY

+
+float minY
+
+
The top most point of this shape. +

+

+
+
+
+

+boundingCircleRadius

+
+float boundingCircleRadius
+
+
Radius of a circle that can completely enclose this shape. +

+

+
+
+
+

+pointsDirty

+
+boolean pointsDirty
+
+
Flag to tell whether points need to be generated +

+

+
+
+
+

+trianglesDirty

+
+boolean trianglesDirty
+
+
True if the triangles need updating +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.geom.Vector2f extends java.lang.Object implements Serializable
+ +

+serialVersionUID: 1339934L + +

+ + + + + +
+Serialized Fields
+ +

+x

+
+float x
+
+
The x component of this vector +

+

+
+
+
+

+y

+
+float y
+
+
The y component of this vector +

+

+
+
+
+ + + + + +
+Package org.newdawn.slick.opengl
+ +

+ + + + + +
+Class org.newdawn.slick.opengl.CompositeIOException extends java.io.IOException implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+exceptions

+
+java.util.ArrayList<E> exceptions
+
+
The list of exceptions causing this one +

+

+
+
+
+ + + + + +
+Package org.newdawn.slick.svg
+ +

+ + + + + +
+Class org.newdawn.slick.svg.ParsingException extends SlickException implements Serializable
+ +

+


+ + + + + +
+Package org.newdawn.slick.util
+ +

+ + + + + +
+Class org.newdawn.slick.util.OperationNotSupportedException extends java.lang.RuntimeException implements Serializable
+ +

+


+ + + + + +
+Package org.newdawn.slick.util.pathfinding
+ +

+ + + + + +
+Class org.newdawn.slick.util.pathfinding.Path extends java.lang.Object implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+steps

+
+java.util.ArrayList<E> steps
+
+
The list of steps building up this path +

+

+
+
+ +

+ + + + + +
+Class org.newdawn.slick.util.pathfinding.Path.Step extends java.lang.Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+x

+
+int x
+
+
The x coordinate at the given step +

+

+
+
+
+

+y

+
+int y
+
+
The y coordinate at the given step +

+

+
+
+
+ + + + + +
+Package org.newdawn.slick.util.xml
+ +

+ + + + + +
+Class org.newdawn.slick.util.xml.SlickXMLException extends SlickException implements Serializable
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2006 New Dawn Software. All Rights Reserved. + + diff --git a/lib/javadoc/stylesheet.css b/lib/javadoc/stylesheet.css new file mode 100644 index 000000000..6ea9e5161 --- /dev/null +++ b/lib/javadoc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/lib/jbox2d-library-2.1.2.jar b/lib/jbox2d-library-2.1.2.jar new file mode 100755 index 000000000..10e21c948 Binary files /dev/null and b/lib/jbox2d-library-2.1.2.jar differ diff --git a/lib/jinput.jar b/lib/jinput.jar new file mode 100644 index 000000000..7c2b6b06f Binary files /dev/null and b/lib/jinput.jar differ diff --git a/lib/jnlp.jar b/lib/jnlp.jar new file mode 100644 index 000000000..8fd98f28f Binary files /dev/null and b/lib/jnlp.jar differ diff --git a/lib/jogg-0.0.7.jar b/lib/jogg-0.0.7.jar new file mode 100644 index 000000000..ecb026034 Binary files /dev/null and b/lib/jogg-0.0.7.jar differ diff --git a/lib/jorbis-0.0.15.jar b/lib/jorbis-0.0.15.jar new file mode 100644 index 000000000..4cf51f90e Binary files /dev/null and b/lib/jorbis-0.0.15.jar differ diff --git a/lib/lwjgl.jar b/lib/lwjgl.jar new file mode 100644 index 000000000..e2fa09652 Binary files /dev/null and b/lib/lwjgl.jar differ diff --git a/lib/lwjgl_util.jar b/lib/lwjgl_util.jar new file mode 100644 index 000000000..237a1d77c Binary files /dev/null and b/lib/lwjgl_util.jar differ diff --git a/lib/native/OpenAL32.dll b/lib/native/OpenAL32.dll new file mode 100644 index 000000000..1f69e9454 Binary files /dev/null and b/lib/native/OpenAL32.dll differ diff --git a/lib/native/OpenAL64.dll b/lib/native/OpenAL64.dll new file mode 100644 index 000000000..6f2a2fe13 Binary files /dev/null and b/lib/native/OpenAL64.dll differ diff --git a/lib/native/jinput-dx8.dll b/lib/native/jinput-dx8.dll new file mode 100644 index 000000000..6d27ad5eb Binary files /dev/null and b/lib/native/jinput-dx8.dll differ diff --git a/lib/native/jinput-dx8_64.dll b/lib/native/jinput-dx8_64.dll new file mode 100644 index 000000000..67305896d Binary files /dev/null and b/lib/native/jinput-dx8_64.dll differ diff --git a/lib/native/jinput-raw.dll b/lib/native/jinput-raw.dll new file mode 100644 index 000000000..ce1d16201 Binary files /dev/null and b/lib/native/jinput-raw.dll differ diff --git a/lib/native/jinput-raw_64.dll b/lib/native/jinput-raw_64.dll new file mode 100644 index 000000000..3d2b3ada9 Binary files /dev/null and b/lib/native/jinput-raw_64.dll differ diff --git a/lib/native/libjinput-linux.so b/lib/native/libjinput-linux.so new file mode 100644 index 000000000..3cdc43973 Binary files /dev/null and b/lib/native/libjinput-linux.so differ diff --git a/lib/native/libjinput-linux64.so b/lib/native/libjinput-linux64.so new file mode 100644 index 000000000..de1ee5f3c Binary files /dev/null and b/lib/native/libjinput-linux64.so differ diff --git a/lib/native/libjinput-osx.dylib b/lib/native/libjinput-osx.dylib new file mode 100644 index 000000000..59a3eab5e Binary files /dev/null and b/lib/native/libjinput-osx.dylib differ diff --git a/lib/native/liblwjgl.dylib b/lib/native/liblwjgl.dylib new file mode 100644 index 000000000..a6083b95e Binary files /dev/null and b/lib/native/liblwjgl.dylib differ diff --git a/lib/native/liblwjgl.so b/lib/native/liblwjgl.so new file mode 100644 index 000000000..ba6e7f696 Binary files /dev/null and b/lib/native/liblwjgl.so differ diff --git a/lib/native/liblwjgl64.so b/lib/native/liblwjgl64.so new file mode 100644 index 000000000..8ed0992b3 Binary files /dev/null and b/lib/native/liblwjgl64.so differ diff --git a/lib/native/libopenal.so b/lib/native/libopenal.so new file mode 100644 index 000000000..0a3a619b4 Binary files /dev/null and b/lib/native/libopenal.so differ diff --git a/lib/native/libopenal64.so b/lib/native/libopenal64.so new file mode 100644 index 000000000..e0693c01a Binary files /dev/null and b/lib/native/libopenal64.so differ diff --git a/lib/native/lwjgl.dll b/lib/native/lwjgl.dll new file mode 100644 index 000000000..b26da56c1 Binary files /dev/null and b/lib/native/lwjgl.dll differ diff --git a/lib/native/lwjgl64.dll b/lib/native/lwjgl64.dll new file mode 100644 index 000000000..ac5aecd5c Binary files /dev/null and b/lib/native/lwjgl64.dll differ diff --git a/lib/native/openal.dylib b/lib/native/openal.dylib new file mode 100644 index 000000000..3c6d0f7f4 Binary files /dev/null and b/lib/native/openal.dylib differ diff --git a/lib/natives-linux.jar b/lib/natives-linux.jar new file mode 100644 index 000000000..a543ee021 Binary files /dev/null and b/lib/natives-linux.jar differ diff --git a/lib/natives-mac.jar b/lib/natives-mac.jar new file mode 100644 index 000000000..220012ba0 Binary files /dev/null and b/lib/natives-mac.jar differ diff --git a/lib/natives-windows.jar b/lib/natives-windows.jar new file mode 100644 index 000000000..2fb036fb1 Binary files /dev/null and b/lib/natives-windows.jar differ diff --git a/lib/slick.jar b/lib/slick.jar new file mode 100644 index 000000000..1d3d07578 Binary files /dev/null and b/lib/slick.jar differ diff --git a/out/production/Terrarum_renewed/com/Torvald/ColourUtil/Col12.class b/out/production/Terrarum_renewed/com/Torvald/ColourUtil/Col12.class new file mode 100644 index 000000000..3dd25f212 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/ColourUtil/Col12.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/ColourUtil/HSV.class b/out/production/Terrarum_renewed/com/Torvald/ColourUtil/HSV.class new file mode 100644 index 000000000..61ea50dcd Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/ColourUtil/HSV.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBase.class b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBase.class new file mode 100644 index 000000000..283e8fce2 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBase.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBlack.class b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBlack.class new file mode 100644 index 000000000..3edf9b678 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontBlack.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontWhite.class b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontWhite.class new file mode 100644 index 000000000..20cf2ea02 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/ImageFont/GameFontWhite.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Point/Point2f.class b/out/production/Terrarum_renewed/com/Torvald/Point/Point2f.class new file mode 100644 index 000000000..4f6737644 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Point/Point2f.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Rand/Fudge3.class b/out/production/Terrarum_renewed/com/Torvald/Rand/Fudge3.class new file mode 100644 index 000000000..63b7d3819 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Rand/Fudge3.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Rand/FudgeDice.class b/out/production/Terrarum_renewed/com/Torvald/Rand/FudgeDice.class new file mode 100644 index 000000000..763f0d282 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Rand/FudgeDice.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Rand/HighQualityRandom.class b/out/production/Terrarum_renewed/com/Torvald/Rand/HighQualityRandom.class new file mode 100644 index 000000000..5f4b32050 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Rand/HighQualityRandom.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Rand/MTRandom.class b/out/production/Terrarum_renewed/com/Torvald/Rand/MTRandom.class new file mode 100644 index 000000000..2eb97fdea Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Rand/MTRandom.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ABOUT b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ABOUT new file mode 100644 index 000000000..e75ed5a6c --- /dev/null +++ b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ABOUT @@ -0,0 +1,139 @@ +== CHALLENGING, NOT PUNISHING https://www.youtube.com/watch?v=ea6UuRTjkKs + +1. CONSISTENT RULES + - No arbitrary unstoppable death + +2. Player's skill involved + - Can play around, not restart + +3. Usability of in-game tools + - Players should be able to 'regret' their strategy and adjust. + +4. Comfortable control + +5. Make players overcome the challenge, not defeating them + +6. Let players have "aha" moment when they failed. + - Make them hungry to retry with new strategies. + - Some small things they've could done differently + - e.g. "One-big-hit didn't worked, may I should've picked up high DPS one" + + +== MORE DEPTH, LESS COMPLEXITY https://www.youtube.com/watch?v=jVL4st0blGU + +1. Memorise less! + - Less burden to, even starting the game + - Start with gentle learning curve, getting slowly steep + - Intuitive UX (UI, control, ...) + - Good tutorial = lessens complexity + +2. Intuitive! + +3. Calculations per second + - reduce! + +4. Players have to know everything to even begin the play == FAIL (irreducible complexity) + - Make them get familiar with rules of the game + - Dwarf Fortress failed this! + + +== Lots of things players play with (aka don't make them bored) + - Combat, battle, building, mechanics, adventure, dungeon explore, spelunking + - Not scaled; easy combat, tough combat, tedious combat, etc. + + +== Achieving perfect imbalance https://www.youtube.com/watch?v=e31OSVZF77w + - Make sure no matter how you skilled, your playable character cannot be good at everything + - Give players __wide pool of options__ to solve problem + (kill the boss, defend their adobe, fast transportation, etc.) + + + +==================================== + + +* Friendlier version of Dwarf Fortress Adventure mode +- Yet _lots of fun_ +- Add Fortress mode features by 'make your own settling' +- Hard to actually die, but once you die, you're done. + + Config: imtooyoungtodie for easy mode + + + +* Side view + +* Interact menu w/ mouse right + +* Pixelated sprites + - Use 2x sprites if rotating does not work well + + + +### User experience ### + +* Indicative mouse cursor + + + +### Game mechanics ### + +* 24 pixels == 1 metre + + + +### Purpose of the game ### + +* Boss + - Will be mentioned/shown as absolute _evil_. + - But actually is not. + +* Theme + - Is an evil really really is what we think? + - Is there a thing as 'absolute evil'? + +* Boss character + - From debugger character + - Name key: "Sigriðr hinn Dróttningin" (can be changed) + * Little setting + - A ruler, hated by people + +* Mechanics + - Beating boss does not ends the game, but grants an ability to + create new character as it. + + + +### Making sprite ### + +* Layers + - (Optional) Hair foreground + - Right arm dress + - Right arm body + - Dress + - Boot right + - Boot left + - Body + - (Optional) Hair accessory + - Hair + - Head + - Left arm dress + - Left arm body + - (Optional) SFX + +* Size + - Regular sprite 'height': 40 px + - Apparent height may vary + + + +### Chargen ### + +* Select hair, colours, then compile them into single spritesheet + +* NO gender distinction, but have masculine/neutral/feminine designs (in clothing, hairstyles, etc.) + +* Colour: 4096 colours (12-bit 0x000 - 0xFFF) + +* Height variation option (.85 - .90 - .95 - 1 - 1.05 - 1.10 - 1.15) + +* Base mass: 60 kg diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/AIControlled.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/AIControlled.class new file mode 100644 index 000000000..410ac4e2b Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/AIControlled.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Actor.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Actor.class new file mode 100644 index 000000000..e78b82e0a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Actor.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorInventory.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorInventory.class new file mode 100644 index 000000000..d173b1c06 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorInventory.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorValue.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorValue.class new file mode 100644 index 000000000..49cdfe14a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorValue.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorWithBody.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorWithBody.class new file mode 100644 index 000000000..58820e8e9 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ActorWithBody.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.class new file mode 100644 index 000000000..3501172c8 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Controllable.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Controllable.class new file mode 100644 index 000000000..7e6fe67b7 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Controllable.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Glowing.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Glowing.class new file mode 100644 index 000000000..a262d8065 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Glowing.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Hitbox.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Hitbox.class new file mode 100644 index 000000000..7777e3c25 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Hitbox.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ItemTangible.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ItemTangible.class new file mode 100644 index 000000000..91e0f5d17 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/ItemTangible.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PBFSigrid.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PBFSigrid.class new file mode 100644 index 000000000..cb8ef6f20 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PBFSigrid.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Player.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Player.class new file mode 100644 index 000000000..cc9007d5b Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Player.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerBuildFactory.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerBuildFactory.class new file mode 100644 index 000000000..42c276dd2 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerBuildFactory.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerDebugger.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerDebugger.class new file mode 100644 index 000000000..720c76c88 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/PlayerDebugger.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Pocketed.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Pocketed.class new file mode 100644 index 000000000..4be5bb35c Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Pocketed.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC$1.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC$1.class new file mode 100644 index 000000000..41f3c681a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC$1.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC.class new file mode 100644 index 000000000..f218c038f Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/TestNPC.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Visible.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Visible.class new file mode 100644 index 000000000..e797b856f Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Actors/Visible.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/COPYING b/out/production/Terrarum_renewed/com/Torvald/Terrarum/COPYING new file mode 100644 index 000000000..e78cbe395 --- /dev/null +++ b/out/production/Terrarum_renewed/com/Torvald/Terrarum/COPYING @@ -0,0 +1,6 @@ +* Terrarum by Torvald + Copyright 2015-2016 Torvald. All rights reserved. + mailto: alswo9628 *at* !gmail! *dot* !com! + +* Simplex Noise Generator, version 2012-03-09 by Stefan Gustavson + Released as public domain diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.class new file mode 100644 index 000000000..6ed48dfa8 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandDict.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandDict.class new file mode 100644 index 000000000..66e8fc0df Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandDict.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInput.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInput.class new file mode 100644 index 000000000..f703e838c Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInput.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.class new file mode 100644 index 000000000..0ae8a7208 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.class new file mode 100644 index 000000000..c5bb76b6d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Echo.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Echo.class new file mode 100644 index 000000000..26fbda6a3 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Echo.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ExportMap.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ExportMap.class new file mode 100644 index 000000000..d631736c4 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ExportMap.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ForceGC.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ForceGC.class new file mode 100644 index 000000000..2460b1288 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ForceGC.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetAV.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetAV.class new file mode 100644 index 000000000..b1e8089c2 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetAV.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetLocale.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetLocale.class new file mode 100644 index 000000000..9630d6db1 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/GetLocale.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/QuitApp.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/QuitApp.class new file mode 100644 index 000000000..dcc8dc709 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/QuitApp.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetAV.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetAV.class new file mode 100644 index 000000000..e7a6b0d25 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetAV.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.class new file mode 100644 index 000000000..b374bbaa8 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetLocale.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetLocale.class new file mode 100644 index 000000000..0a4d7d99f Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/SetLocale.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.class new file mode 100644 index 000000000..7269cc9bb Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.class new file mode 100644 index 000000000..6eb0593d5 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Zoom.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Zoom.class new file mode 100644 index 000000000..504fba979 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/ConsoleCommand/Zoom.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Exceptions/InvalidValueException.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Exceptions/InvalidValueException.class new file mode 100644 index 000000000..fcfd5ccc3 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Exceptions/InvalidValueException.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Game.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Game.class new file mode 100644 index 000000000..21696859d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Game.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameConfig.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameConfig.class new file mode 100644 index 000000000..a8e21a255 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameConfig.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/EnumKeyFunc.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/EnumKeyFunc.class new file mode 100644 index 000000000..91bab597d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/EnumKeyFunc.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/GameController.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/GameController.class new file mode 100644 index 000000000..a20dfd5dc Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/GameController.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/Key.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/Key.class new file mode 100644 index 000000000..1a427d216 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/Key.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyMap.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyMap.class new file mode 100644 index 000000000..d17ab2e3f Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyMap.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyToggler.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyToggler.class new file mode 100644 index 000000000..4bfba1240 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameControl/KeyToggler.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameItem/InventoryItem.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameItem/InventoryItem.class new file mode 100644 index 000000000..c120d386d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameItem/InventoryItem.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/GameMap.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/GameMap.class new file mode 100644 index 000000000..e3df3243c Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/GameMap.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer$1.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer$1.class new file mode 100644 index 000000000..0a91bfa1d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer$1.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer.class new file mode 100644 index 000000000..5ae2a6817 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapLayer.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapPoint.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapPoint.class new file mode 100644 index 000000000..bc1dc4194 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/GameMap/MapPoint.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/LangPack/Lang.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/LangPack/Lang.class new file mode 100644 index 000000000..494d47c53 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/LangPack/Lang.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MECHNANICS b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MECHNANICS new file mode 100644 index 000000000..0173ddd57 --- /dev/null +++ b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MECHNANICS @@ -0,0 +1,28 @@ + +* Weapon tier + +Natural / Common Stone > Copper > Iron > Silver > Titanium +Forging ------------> Steel -------^ +Exotic ('elven') Glass Aurichalcum +Special (something 'adamant') ??? (Use material spec of CNT, tensile strength 180 GPa) + + +* Metal graphics + +Gold: Hue 43, low Saturation +Aurichalcum: Hue 43, mid-high Saturation +Copper: Hue 33, +Copper rust: Hue 160 +Iron rust: Hue 15 + + +* Size variation + +Race base weapon/tool size <- 10 [kg] +Size tolerance <- (50% * str/1000), or say, 20% + +If the size is bigger than tolerable, weapon speed severely slows down, tools become unusable + if use time >= 0.75 second, the weapon/tool cannot be equipped. +Small weapons gains no (dis)advantage, tools become unusable + +Crafted tool/weapon size is dependent on the baseRaceMass. \ No newline at end of file diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapLantern.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapLantern.class new file mode 100644 index 000000000..22c868640 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapLantern.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.class new file mode 100644 index 000000000..d64fc48ae Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapCamera.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapCamera.class new file mode 100644 index 000000000..9423ef2d8 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapCamera.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapDrawer.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapDrawer.class new file mode 100644 index 000000000..03a14ddec Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapDrawer/MapDrawer.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.class new file mode 100644 index 000000000..1bbecc634 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.class new file mode 100644 index 000000000..096079db7 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.class new file mode 100644 index 000000000..9c713bf9a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.class new file mode 100644 index 000000000..cf79df7ed Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.class new file mode 100644 index 000000000..bf0b36e91 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.class new file mode 100644 index 000000000..dec7d5056 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/MapGenerator.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/MapGenerator.class new file mode 100644 index 000000000..ecc8ff832 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/MapGenerator.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise.class new file mode 100644 index 000000000..1c5115e6d Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave$Grad.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave$Grad.class new file mode 100644 index 000000000..121fca2e9 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave$Grad.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.class new file mode 100644 index 000000000..8ba17518b Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png new file mode 100644 index 000000000..1d5e9ff95 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png new file mode 100644 index 000000000..4d436d822 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png new file mode 100644 index 000000000..530a94a9c Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png new file mode 100644 index 000000000..09cc75133 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png new file mode 100644 index 000000000..9d6bd1481 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/Terrarum.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Terrarum.class new file mode 100644 index 000000000..f11129121 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/Terrarum.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.csv b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.csv new file mode 100644 index 000000000..801a2c473 --- /dev/null +++ b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.csv @@ -0,0 +1,19 @@ +"type: excel"; + "id";"name" ;"opacity";"strength";"isFluid";"viscosity";"isSolid";"isWall";"luminance";"drops" ; + "0";"TILE_AIR" ; "0"; "0"; "0"; "0"; "0"; "0"; "0";"NULL" ; + "1";"TILE_STONE" ; "8"; "25"; "0"; "0"; "1"; "1"; "0";"TILE_STONE" ; + "2";"TILE_DIRT" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_DIRT" ; + "3";"TILE_GRASS" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_DIRT" ; + "4";"TILE_PLANK_NORMAL" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_NORMAL" ; + "5";"TILE_PLANK_EBONY" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_EBONY" ; + "6";"TILE_PLANK_BIRCH" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_BIRCH" ; + "7";"TILE_PLANK_ROSEWOOD" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_ROSEWOOD" ; + "8";"TILE_TRUNK_NORMAL" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_NORMAL" ; + "9";"TILE_TRUNK_EBONY" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_EBONY" ; + "10";"TILE_TRUNK_BIRCH" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_BIRCH" ; + "11";"TILE_TRUNK_ROSEWOOD" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_ROSEWOOD" ; + + "32";"TILE_SNOW" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_SNOW" ; + "33";"TILE_ICE_FRAGILE" ; "1"; "1"; "0"; "0"; "1"; "0"; "0";"NULL" ; + "34";"TILE_ICE_NATURAL" ; "6"; "25"; "0"; "0"; "1"; "1"; "0";"TILE_ICE_NATURAL" ; + "35";"TILE_ICE_CLEAR_MAGICAL"; "8"; "25"; "0"; "0"; "1"; "1"; "1";"TILE_ICE_CLEAR_MAGICAL"; diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.json b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.json new file mode 100644 index 000000000..7bf52ea2d --- /dev/null +++ b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileProperties/propdata.json @@ -0,0 +1,22 @@ +{ + "0": { + "name": "TILE_AIR", + "opacity": 0, + "strength": 0, + "isFluid": 0, + "fluidViscocity": 0, + "drop": "__null", + "isSolid": 0, + "isAlsoWall": 0 + }, + "1": { + "name": "TILE_STONE", + "opacity": 8, + "strength": 25, + "isFluid": 0, + "fluidViscocity": 0, + "drop": "item.stone", + "isSolid": 0, + "isAlsoWall": 0 + } +} \ No newline at end of file diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileStat/TileStat.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileStat/TileStat.class new file mode 100644 index 000000000..328f1bf1c Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/TileStat/TileStat.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.class new file mode 100644 index 000000000..553aa7b1e Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Bulletin.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Bulletin.class new file mode 100644 index 000000000..7d87d177a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Bulletin.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/ConsoleWindow.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/ConsoleWindow.class new file mode 100644 index 000000000..fceff5a9a Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/ConsoleWindow.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Message.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Message.class new file mode 100644 index 000000000..453176606 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/Message.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UICanvas.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UICanvas.class new file mode 100644 index 000000000..7ac923afb Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UICanvas.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIHandler.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIHandler.class new file mode 100644 index 000000000..c38e5f4bd Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIHandler.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIItem.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIItem.class new file mode 100644 index 000000000..0aef34b8e Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/UserInterface/UIItem.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/Terrarum/WorldTime.class b/out/production/Terrarum_renewed/com/Torvald/Terrarum/WorldTime.class new file mode 100644 index 000000000..38da21ca7 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/Terrarum/WorldTime.class differ diff --git a/out/production/Terrarum_renewed/com/Torvald/spriteAnimation/SpriteAnimation.class b/out/production/Terrarum_renewed/com/Torvald/spriteAnimation/SpriteAnimation.class new file mode 100644 index 000000000..33095ef67 Binary files /dev/null and b/out/production/Terrarum_renewed/com/Torvald/spriteAnimation/SpriteAnimation.class differ diff --git a/out/production/Terrarum_renewed/com/jme3/math/FastMath.class b/out/production/Terrarum_renewed/com/jme3/math/FastMath.class new file mode 100644 index 000000000..a9d0dbbd2 Binary files /dev/null and b/out/production/Terrarum_renewed/com/jme3/math/FastMath.class differ diff --git a/out/production/Terrarum_renewed/com/jme3/math/Vector2f.class b/out/production/Terrarum_renewed/com/jme3/math/Vector2f.class new file mode 100644 index 000000000..454ba59ed Binary files /dev/null and b/out/production/Terrarum_renewed/com/jme3/math/Vector2f.class differ diff --git a/out/production/Terrarum_renewed/com/jme3/math/Vector3f.class b/out/production/Terrarum_renewed/com/jme3/math/Vector3f.class new file mode 100644 index 000000000..fe5edf3d9 Binary files /dev/null and b/out/production/Terrarum_renewed/com/jme3/math/Vector3f.class differ diff --git a/out/production/Terrarum_renewed/shader/MultiTex.class b/out/production/Terrarum_renewed/shader/MultiTex.class new file mode 100644 index 000000000..7d4dfd167 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/MultiTex.class differ diff --git a/out/production/Terrarum_renewed/shader/Shader.class b/out/production/Terrarum_renewed/shader/Shader.class new file mode 100644 index 000000000..f133d0fa2 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/Shader.class differ diff --git a/out/production/Terrarum_renewed/shader/ShaderResourceManager.class b/out/production/Terrarum_renewed/shader/ShaderResourceManager.class new file mode 100644 index 000000000..2c24f4d32 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/ShaderResourceManager.class differ diff --git a/out/production/Terrarum_renewed/shader/ShaderResourceManagerImpl.class b/out/production/Terrarum_renewed/shader/ShaderResourceManagerImpl.class new file mode 100644 index 000000000..9f974fa82 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/ShaderResourceManagerImpl.class differ diff --git a/out/production/Terrarum_renewed/shader/ShaderVariable$Qualifier.class b/out/production/Terrarum_renewed/shader/ShaderVariable$Qualifier.class new file mode 100644 index 000000000..06a30cd4e Binary files /dev/null and b/out/production/Terrarum_renewed/shader/ShaderVariable$Qualifier.class differ diff --git a/out/production/Terrarum_renewed/shader/ShaderVariable$Type.class b/out/production/Terrarum_renewed/shader/ShaderVariable$Type.class new file mode 100644 index 000000000..4bb9352e4 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/ShaderVariable$Type.class differ diff --git a/out/production/Terrarum_renewed/shader/ShaderVariable.class b/out/production/Terrarum_renewed/shader/ShaderVariable.class new file mode 100644 index 000000000..3088ac821 Binary files /dev/null and b/out/production/Terrarum_renewed/shader/ShaderVariable.class differ diff --git a/res/4096.frg b/res/4096.frg new file mode 100644 index 000000000..1a9f88268 --- /dev/null +++ b/res/4096.frg @@ -0,0 +1,37 @@ +varying vec2 texcoord; + +uniform sampler2D renderTexture; +uniform mat4 Bayer; +uniform int pixelSize; + +void main(void) { + // create texture coordinates based on pixelSize // + + // vec2 discrete = (gl_FragCoord.xy + 0.001) / texcoord / pixelSize; // + + vec2 pixelSizeVec = vec2(float(pixelSize), float(pixelSize)); + + vec2 discrete = (gl_FragCoord.xy + 0.001) / texcoord / pixelSizeVec; + + discrete = floor(discrete * texcoord) / discrete; + + vec3 color = texture2D(renderTexture, discrete).rgb; + + // increase contrast (Bayer matrix operation reduces it) // + float contrast = 1.65; + color = mix(vec3(0.5), color, contrast); + + // add Bayer matrix entry to current pixel // + // vec2 entry = mod(gl_FragCoord.xy / pixelSizeVec, vec2(4, 4)); + + // color.r = color.r + Bayer[int(entry.x)][int(entry.y)] / 17.0 - 0.5; + // color.g = color.g + Bayer[int(entry.x)][int(entry.y)] / 17.0 - 0.5; + // color.b = color.b + Bayer[int(entry.x)][int(entry.y)] / 17.0 - 0.5; + + // find nearest 8-bit color // + color.r = floor(8.0 * color.r + 0.5) / 8.0; + color.g = floor(8.0 * color.g + 0.5) / 8.0; + color.b = floor(4.0 * color.b + 0.5) / 4.0; + + gl_FragColor = vec4(color, 1.0); +} \ No newline at end of file diff --git a/res/4096.vrt b/res/4096.vrt new file mode 100644 index 000000000..263070a46 --- /dev/null +++ b/res/4096.vrt @@ -0,0 +1,7 @@ +varying vec2 texcoord; + +void main(void) { // fairly usual fullscreen quad setup // + vec2 corners = sign(gl_Vertex.xy); + texcoord = 0.5 * corners + vec2(0.5); + gl_Position = vec4(corners, 0.0, 1.0); +} \ No newline at end of file diff --git a/res/blur.frg b/res/blur.frg new file mode 100644 index 000000000..a90ab3034 --- /dev/null +++ b/res/blur.frg @@ -0,0 +1,26 @@ +// precision mediump float; + +uniform sampler2D s_texture; + +varying vec2 v_texCoord; +varying vec2 v_blurTexCoords[14]; + +void main() +{ + gl_FragColor = vec4(0.0); + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 0])*0.0044299121055113265; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 1])*0.00895781211794; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 2])*0.0215963866053; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 3])*0.0443683338718; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 4])*0.0776744219933; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 5])*0.115876621105; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 6])*0.147308056121; + gl_FragColor += texture2D(s_texture, v_texCoord )*0.159576912161; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 7])*0.147308056121; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 8])*0.115876621105; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[ 9])*0.0776744219933; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[10])*0.0443683338718; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[11])*0.0215963866053; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[12])*0.00895781211794; + gl_FragColor += texture2D(s_texture, v_blurTexCoords[13])*0.0044299121055113265; +} \ No newline at end of file diff --git a/res/blurH.vrt b/res/blurH.vrt new file mode 100644 index 000000000..aeb8ca268 --- /dev/null +++ b/res/blurH.vrt @@ -0,0 +1,25 @@ +attribute vec4 a_position; +attribute vec2 a_texCoord; + +varying vec2 v_texCoord; +varying vec2 v_blurTexCoords[14]; + +void main() +{ + gl_Position = a_position; + v_texCoord = a_texCoord; + v_blurTexCoords[ 0] = v_texCoord + vec2(-0.028, 0.0); + v_blurTexCoords[ 1] = v_texCoord + vec2(-0.024, 0.0); + v_blurTexCoords[ 2] = v_texCoord + vec2(-0.020, 0.0); + v_blurTexCoords[ 3] = v_texCoord + vec2(-0.016, 0.0); + v_blurTexCoords[ 4] = v_texCoord + vec2(-0.012, 0.0); + v_blurTexCoords[ 5] = v_texCoord + vec2(-0.008, 0.0); + v_blurTexCoords[ 6] = v_texCoord + vec2(-0.004, 0.0); + v_blurTexCoords[ 7] = v_texCoord + vec2( 0.004, 0.0); + v_blurTexCoords[ 8] = v_texCoord + vec2( 0.008, 0.0); + v_blurTexCoords[ 9] = v_texCoord + vec2( 0.012, 0.0); + v_blurTexCoords[10] = v_texCoord + vec2( 0.016, 0.0); + v_blurTexCoords[11] = v_texCoord + vec2( 0.020, 0.0); + v_blurTexCoords[12] = v_texCoord + vec2( 0.024, 0.0); + v_blurTexCoords[13] = v_texCoord + vec2( 0.028, 0.0); +} \ No newline at end of file diff --git a/res/blurV.vrt b/res/blurV.vrt new file mode 100644 index 000000000..4c635c172 --- /dev/null +++ b/res/blurV.vrt @@ -0,0 +1,25 @@ +attribute vec4 a_position; +attribute vec2 a_texCoord; + +varying vec2 v_texCoord; +varying vec2 v_blurTexCoords[14]; + +void main() +{ + gl_Position = a_position; + v_texCoord = a_texCoord; + v_blurTexCoords[ 0] = v_texCoord + vec2(0.0, -0.028); + v_blurTexCoords[ 1] = v_texCoord + vec2(0.0, -0.024); + v_blurTexCoords[ 2] = v_texCoord + vec2(0.0, -0.020); + v_blurTexCoords[ 3] = v_texCoord + vec2(0.0, -0.016); + v_blurTexCoords[ 4] = v_texCoord + vec2(0.0, -0.012); + v_blurTexCoords[ 5] = v_texCoord + vec2(0.0, -0.008); + v_blurTexCoords[ 6] = v_texCoord + vec2(0.0, -0.004); + v_blurTexCoords[ 7] = v_texCoord + vec2(0.0, 0.004); + v_blurTexCoords[ 8] = v_texCoord + vec2(0.0, 0.008); + v_blurTexCoords[ 9] = v_texCoord + vec2(0.0, 0.012); + v_blurTexCoords[10] = v_texCoord + vec2(0.0, 0.016); + v_blurTexCoords[11] = v_texCoord + vec2(0.0, 0.020); + v_blurTexCoords[12] = v_texCoord + vec2(0.0, 0.024); + v_blurTexCoords[13] = v_texCoord + vec2(0.0, 0.028); +} \ No newline at end of file diff --git a/res/books/Blacksmith_s_handbook.txt b/res/books/Blacksmith_s_handbook.txt new file mode 100755 index 000000000..8490b563e --- /dev/null +++ b/res/books/Blacksmith_s_handbook.txt @@ -0,0 +1,26 @@ + +§cBlacksmith’s handbook + + +§cBy Anonymous +§p +To smith weapon, armour, or whatever you want, you need to build your own forge. +Get 8 cobblestone, 3 iron ingots, and 4 coals. Then use a workbench to create your first forge. + +Almost every weapon and armour needs leather for the strips and bindings. So be sure to get some leathers before attempt to forge any items. + +Iron is easy to work. Just heat them up and make a shape. The heat of the forge is not that critical. + +Steel is made from iron and a bit of charcoal. It is still easy to work, although it is harder than iron. + +Cobalt is made from cobalt ore, melded with a bit of iron. Working with it requires a skill. Heat should be used sparingly, lest it become brittle. + +Titanium can only be worked when heated. It will develop small cracks and eventually shattered. Titanium will not alloy with iron. It must be used pure. + +For some blacksmiths who want to forge elven weapons and armour, here is some details. + +Typical elven weapons and armours use a large amount of orichalcum. The technique of smelting it from it’s ore is not known, only elven blacksmiths shares the secret. + +Advanced elven stuffs involve using of elven glass. This glass is not a one that composes your house window. The technique of smelting it is also the elven secret. + +I can only tell you tales of adamantine. It is a legendary metal which is known for its superb quality. It is the best material for forging weapons and armours. The story says only dwarves know how it can be found, or forged. And some say that even dwarves lost their knowledge of forging stuffs with it. \ No newline at end of file diff --git a/res/books/Book_writing_guide.txt b/res/books/Book_writing_guide.txt new file mode 100755 index 000000000..ada5cc63f --- /dev/null +++ b/res/books/Book_writing_guide.txt @@ -0,0 +1,20 @@ +§cBook writing guide + + +§cBy Anonymous +§p +Writing a book is different from writing a simple text. +The features that make difference are the usage of a ‘tokens’ for editing a book. + +Tokens have a fixed form. they are always consisted of section mark(§§) and one alphanumeric character. + +Available tokens are: +§§p: Indicates page start or force turn to the next page. +§§c: Align text to centre. +§§b: Make text §bbold. +§§i: Make text §iitalic. +§§u: §uUnderline §xtext. +§§x: Remove bold/italic/underline effect. +§§: Write section mark(§§). + +Please note that effect of token will only affect single line. \ No newline at end of file diff --git a/res/books/runic_short_1.txt b/res/books/runic_short_1.txt new file mode 100644 index 000000000..c45f37af0 --- /dev/null +++ b/res/books/runic_short_1.txt @@ -0,0 +1,16 @@ +An obscure text in runic letters from +unknown book. The book was +severely damaged and could only a few page were able to be retrieved. +\prompt +ᛂᚾᛋᚴᛅ᛬ᛏᛅᛚᛅᚦ + +᛭ᚢᚾᛏᛁᚱᛋᛏᚯᚦᚢ᛭ + +᛬ᚼᛂᛁᛚ᛬ +᛬ᚼᛂᛚᚢ᛬ +᛬ᚼᚢᛂᚱᚾᛁᚴ᛬ᚼᛂᚠᚢᚱᚦᚢ᛬ᚦᛅᛏ᛬ +᛬ᚼᚯᚢ᛬ᛅᚱ᛬ᛁᚢ᛬ +᛬ᚼᚢᛅᛏ᛬ᚼᛂᛁᛏᛁᚱ᛬ᚦᚢ᛬ +᛬ᚼᚢᛅᛏ᛬ᛁᛋᛁᚢᚱ᛬ᚾᛅᛘ᛬ +᛬ᛂᚴ᛬ᚼᛂᛁᛏᛁ᛬ᛒᛅᛚᛏᛦ᛬ +᛬ᛁ᛬ᛅᛘ᛬ᛒᛅᛚᛏᛦ᛬ \ No newline at end of file diff --git a/res/books/runic_short_2.txt b/res/books/runic_short_2.txt new file mode 100644 index 000000000..950189836 --- /dev/null +++ b/res/books/runic_short_2.txt @@ -0,0 +1,16 @@ +᛭ᚱᛂᚴᛋ᛬ᛏᛂᛁᚢᚯᛋ᛬ᚴᚢᛂ᛭ + +᛬ᚱᚽᚴᛋ᛬ᚽᛋᛏ᛬ᛋᚢ᛬ᚾᛒᚢᛏᛚᚢᛋ᛬ +᛬ᚱᚽᚴᛋ᛬ᛋᚢᚼᚾᚢᛉ᛬ᚢᛚᚾᛏᚢ᛬ +᛬ᛏᚢᛋᛁᚢ᛬ᚴᚽᚢᛏᚢᚱᛉ᛬ᛒᚱᚽᚴᛋᛏ᛬ +᛫ᛋᚢᚼᚾᚢᛋ᛬ᛉᚬᛁ᛬ᚴᚾᛁᚽᛏᚢᛏ᛫ +᛬ᚴᛂᛁᛏᚯᚱ᛬ᛏᚯᛘ᛬ᚱᛂᚴᛘ᛬ᚢᛂᚢᚴᛂᛏ᛬ +᛫ᛁᛅᚴᛂᛋᚢᚯ᛬ᛏᛂᛁᚢᚯᛘ᛬ᚢᛂᚱᚢᚾᚯᛘ᛫ +᛬ᚢᛒᚢ᛬ᚱᛂᚴᛋ᛬ᛏᛂᛁᚢᚯᛘ᛬ᚢᛂᚱᚢᚾᚢᛘ᛬ᛋᛂᛋᚢᛚᛂ᛬ᚾᚢ᛬ᛏᛂᛁᚢᚯᛘ᛬ᛁᛅᚴᛂᛏᚢ᛬ +᛫ᚴᛚᚢᛏᛁ᛬ᛘᚯᛁ᛬ᛒᛏᛂᚱ᛬ᚢᛂᚱᚢᚾᛂ᛫ +᛬ᛏᛂᛁᚢᚯᛋ᛬ᚢᛂᚱᚢᚾᚯᛋ᛬ᛏᛁᚢᛂᛋ᛬ᚾᛘᛏᛅ᛬ᚴᚢᛅᛏ᛬ +᛫ᚴᚢᛁᛏ᛬ᚢᛂᛚᛋᛁ᛫ +᛫ᛋᚢᚼᚾᚢᛘ᛬ᚢᛂᛚᛘᛁ᛫ +᛫ᛏᚢᛏ᛬ᛂᛋᛏᚢ᛫ +᛬ᚢᛂᚢᚴᛂᛏ᛬ᛚᛂᚢᚴᚢᛋ᛬ᛏᛂᛁᚢᚯᛋ᛬ᚢᛂᚱᚢᚾᚯᛋ᛬ +᛬ᚾᚢ᛬ᚱᛂᚴᛋ᛬ᛒᚯᛏᚾᛁ᛬ᛋᚢᚼᚾᚢᛘ᛬ᚴᛂᚴᚢᚾᛂ᛬ \ No newline at end of file diff --git a/res/books/userguide_ENG.aux b/res/books/userguide_ENG.aux new file mode 100644 index 000000000..3e2b649a8 --- /dev/null +++ b/res/books/userguide_ENG.aux @@ -0,0 +1,36 @@ +\relax +\providecommand\hyper@newdestlabel[2]{} +\providecommand*{\memsetcounter}[2]{} +\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument} +\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined +\global\let\oldcontentsline\contentsline +\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} +\global\let\oldnewlabel\newlabel +\gdef\newlabel#1#2{\newlabelxx{#1}#2} +\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} +\AtEndDocument{\ifx\hyper@anchor\@undefined +\let\contentsline\oldcontentsline +\let\newlabel\oldnewlabel +\fi} +\fi} +\global\let\hyper@last\relax +\gdef\HyperFirstAtBeginDocument#1{#1} +\providecommand\HyField@AuxAddToFields[1]{} +\providecommand\HyField@AuxAddToCoFields[2]{} +\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{4}{section.0.1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Luggage preparation}{4}{subsection.0.1.1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Moving around}{5}{section.0.2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Your first toddling}{5}{subsection.0.2.1}} +\@writefile{toc}{\contentsline {subsubsection}{ISO/\penalty \exhyphenpenalty ANSI/\penalty \exhyphenpenalty JIS pedalboards}{5}{section*.1}} +\@writefile{toc}{\contentsline {subsubsection}{Joypads}{6}{section*.2}} +\@writefile{toc}{\contentsline {section}{\numberline {3}World}{6}{section.0.3}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Geograghy}{7}{subsection.0.3.1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Day and night}{7}{subsection.0.3.2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Biome}{8}{subsection.0.3.3}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}Vegetation}{8}{subsection.0.3.4}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}Races and their civilisations}{8}{subsection.0.3.5}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6}Common animals}{8}{subsection.0.3.6}} +\@writefile{toc}{\contentsline {section}{\numberline {4}World creation}{8}{section.0.4}} +\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}World Size}{9}{subsection.0.4.1}} +\memsetcounter{lastsheet}{9} +\memsetcounter{lastpage}{9} diff --git a/res/books/userguide_ENG.log b/res/books/userguide_ENG.log new file mode 100644 index 000000000..6a5d92e3c --- /dev/null +++ b/res/books/userguide_ENG.log @@ -0,0 +1,1409 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2015.3.31) 16 JUN 2015 18:28 +entering extended mode + restricted \write18 enabled. + file:line:error style messages enabled. + %&-line parsing enabled. +**userguide_ENG.tex +(./userguide_ENG.tex +LaTeX2e <2014/05/01> +Babel <3.9l> and hyphenation patterns for 79 languages loaded. +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls +Document Class: oblivoir +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls +Document Class: xoblivoir 2014/06/12 +(/usr/local/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty +Package: xkeyval 2014/12/03 v2.7a package option processing (HA) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex +\XKV@toks=\toks14 +\XKV@tempa@toks=\toks15 + +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/keyval.tex)) +\XKV@depth=\count79 +File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) +)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/iftex/iftex.sty +Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, +and LuaTeX +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-base.cls +Document Class: oblivoir-base 2014/06/12 v0.6 article-like class to typeset UTF +-8 korean using memoir. +(/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty +Package: etex 2015/03/02 v2.1 eTeX basic definition package (PEB,DPC) +\et@xins=\count80 +) +\fa@setheight=\skip41 +\fa@setwidth=\skip42 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/memoir.cls +Document Class: memoir 2015/03/05 v3.7c configurable book, report, article docu +ment class +\onelineskip=\skip43 +\lxvchars=\skip44 +\xlvchars=\skip45 +\@memcnta=\count81 +\c@@memmarkcntra=\count82 +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifpdf.sty +Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) +Package ifpdf Info: pdfTeX in PDF mode is detected. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/ifetex/ifetex.sty +Package: ifetex 2011/12/15 v1.2 ifetex + +(/usr/local/texlive/2014/texmf-dist/tex/plain/ifetex/ifetex.tex)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/ifxetex/ifxetex.sty +Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifluatex.sty +Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) +Package ifluatex Info: LuaTeX not detected. +) +\stockheight=\skip46 +\stockwidth=\skip47 +\trimtop=\skip48 +\trimedge=\skip49 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/mem9.clo +File: mem9.clo 2008/01/30 v0.4 memoir class 9pt size option +) +\binding=\skip50 +\spinemargin=\skip51 +\foremargin=\skip52 +\uppermargin=\skip53 +\lowermargin=\skip54 +\headdrop=\skip55 +\normalrulethickness=\skip56 +\mem@maxheadheight=\skip57 +\mem@maxfootheight=\skip58 +\headwidth=\skip59 +\c@storedpagenumber=\count83 +\memPD=\dimen102 +\m@mabparskip=\skip60 +\thanksmarkwidth=\skip61 +\thanksmarksep=\skip62 +\droptitle=\skip63 +\c@book=\count84 +\c@part=\count85 +\c@chapter=\count86 +\c@section=\count87 +\c@subsection=\count88 +\c@subsubsection=\count89 +\c@paragraph=\count90 +\c@subparagraph=\count91 +\beforechapskip=\skip64 +\midchapskip=\skip65 +\afterchapskip=\skip66 +\chapindent=\skip67 +\bottomsectionskip=\skip68 +\secindent=\skip69 +\beforesecskip=\skip70 +\aftersecskip=\skip71 +\subsecindent=\skip72 +\beforesubsecskip=\skip73 +\aftersubsecskip=\skip74 +\subsubsecindent=\skip75 +\beforesubsubsecskip=\skip76 +\aftersubsubsecskip=\skip77 +\paraindent=\skip78 +\beforeparaskip=\skip79 +\afterparaskip=\skip80 +\subparaindent=\skip81 +\beforesubparaskip=\skip82 +\aftersubparaskip=\skip83 +\pfbreakskip=\skip84 +\c@@ppsavesec=\count92 +\c@@ppsaveapp=\count93 +\ragrparindent=\dimen103 +\everylistparindent=\dimen104 +\parsepi=\skip85 +\topsepi=\skip86 +\itemsepi=\skip87 +\parsepii=\skip88 +\topsepii=\skip89 +\topsepiii=\skip90 +\itemsepii=\skip91 +\itemsepiii=\skip92 +\partopsepii=\skip93 +\partopsepiii=\skip94 +\m@msavetopsep=\skip95 +\m@msavepartopsep=\skip96 +\@enLab=\toks16 +\abstitleskip=\skip97 +\absleftindent=\skip98 +\abs@leftindent=\dimen105 +\absrightindent=\skip99 +\absparindent=\skip100 +\absparsep=\skip101 +\c@vslineno=\count94 +\c@poemline=\count95 +\c@modulo@vs=\count96 +\c@memfvsline=\count97 +\vleftskip=\skip102 +\vrightskip=\skip103 +\stanzaskip=\skip104 +\versewidth=\skip105 +\vgap=\skip106 +\vindent=\skip107 +\vleftmargin=\dimen106 +\c@verse=\count98 +\c@chrsinstr=\count99 +\beforepoemtitleskip=\skip108 +\afterpoemtitleskip=\skip109 +\c@poem=\count100 +\beforePoemTitleskip=\skip110 +\midPoemTitleskip=\skip111 +\afterPoemTitleskip=\skip112 +\col@sep=\dimen107 +\extrarowheight=\dimen108 +\NC@list=\toks17 +\extratabsurround=\skip113 +\backup@length=\skip114 +\TX@col@width=\dimen109 +\TX@old@table=\dimen110 +\TX@old@col=\dimen111 +\TX@target=\dimen112 +\TX@delta=\dimen113 +\TX@cols=\count101 +\TX@ftn=\toks18 +\heavyrulewidth=\dimen114 +\lightrulewidth=\dimen115 +\cmidrulewidth=\dimen116 +\belowrulesep=\dimen117 +\belowbottomsep=\dimen118 +\aboverulesep=\dimen119 +\abovetopsep=\dimen120 +\cmidrulesep=\dimen121 +\cmidrulekern=\dimen122 +\defaultaddspace=\dimen123 +\@cmidla=\count102 +\@cmidlb=\count103 +\@aboverulesep=\dimen124 +\@belowrulesep=\dimen125 +\@thisruleclass=\count104 +\@lastruleclass=\count105 +\@thisrulewidth=\dimen126 +\ctableftskip=\skip115 +\ctabrightskip=\skip116 +\abovecolumnspenalty=\count106 +\@linestogo=\count107 +\@cellstogo=\count108 +\@cellsincolumn=\count109 +\crtok=\toks19 +\@mincolumnwidth=\dimen127 +\c@newflo@tctr=\count110 +\mem@margin@floatbox=\box26 +\@contcwidth=\skip117 +\@contindw=\skip118 +\abovecaptionskip=\skip119 +\belowcaptionskip=\skip120 +\subfloattopskip=\skip121 +\subfloatcapskip=\skip122 +\subfloatcaptopadj=\skip123 +\subfloatbottomskip=\skip124 +\subfloatlabelskip=\skip125 +\subfloatcapmargin=\dimen128 +\c@@contsubnum=\count111 +\m@mscap@capbox=\box27 +\m@mscap@fbox=\box28 +\sidecapsep=\dimen129 +\sidecapwidth=\dimen130 +\m@m@tempdima=\dimen131 +\m@mscapraise=\dimen132 +\sidecapraise=\dimen133 +\m@mscapmainwidth=\dimen134 +\m@mscaplkern=\dimen135 +\beforeepigraphskip=\skip126 +\afterepigraphskip=\skip127 +\epigraphwidth=\skip128 +\epigraphrule=\skip129 +LaTeX Info: Redefining \em on input line 7514. +LaTeX Info: Redefining \emph on input line 7522. +\tocentryskip=\skip130 +\tocbaseline=\skip131 +\cftparskip=\skip132 +\cftbeforebookskip=\skip133 +\cftbookindent=\dimen136 +\cftbooknumwidth=\dimen137 +\cftbeforepartskip=\skip134 +\cftpartindent=\skip135 +\cftpartnumwidth=\skip136 +\cftbeforechapterskip=\skip137 +\cftchapterindent=\skip138 +\cftchapternumwidth=\skip139 +\cftbeforesectionskip=\skip140 +\cftsectionindent=\skip141 +\cftsectionnumwidth=\skip142 +\cftbeforesubsectionskip=\skip143 +\cftsubsectionindent=\skip144 +\cftsubsectionnumwidth=\skip145 +\cftbeforesubsubsectionskip=\skip146 +\cftsubsubsectionindent=\skip147 +\cftsubsubsectionnumwidth=\skip148 +\cftbeforeparagraphskip=\skip149 +\cftparagraphindent=\skip150 +\cftparagraphnumwidth=\skip151 +\cftbeforesubparagraphskip=\skip152 +\cftsubparagraphindent=\skip153 +\cftsubparagraphnumwidth=\skip154 +\prechapterprecisshift=\dimen138 +\c@maxsecnumdepth=\count112 +\bibindent=\dimen139 +\bibitemsep=\skip155 +\indexcolsep=\skip156 +\indexrule=\skip157 +\indexmarkstyle=\toks20 +\@indexbox=\insert233 +\glossarycolsep=\dimen140 +\glossaryrule=\dimen141 +\sideparvshift=\skip158 +\sideins=\insert232 +\sidebartopsep=\skip159 +\sidebarhsep=\skip160 +\sidebarvsep=\skip161 +\sidebarwidth=\skip162 +\footmarkwidth=\skip163 +\footmarksep=\skip164 +\footparindent=\skip165 +\footinsdim=\skip166 +\footinsv@r=\insert231 +\@mpfootinsv@r=\insert230 +\m@m@k=\count113 +\m@m@h=\dimen142 +\m@mipn@skip=\skip167 +\sidefootins=\insert229 +\sidefootadjust=\skip168 +\sidefootheight=\skip169 +\sidefoothsep=\skip170 +\sidefootvsep=\skip171 +\sidefootwidth=\skip172 +\m@mdownsf=\skip173 +\c@sidefootnote=\count114 +\sidefootmarkwidth=\skip174 +\sidefootmarksep=\skip175 +\sidefootparindent=\skip176 +\c@pagenote=\count115 +\c@pagenoteshadow=\count116 +\mem@pn@lastkern=\skip177 +\every@verbatim=\toks21 +\afterevery@verbatim=\toks22 +\verbatim@line=\toks23 +\tab@position=\count117 +\verbatim@in@stream=\read1 +\verbatimindent=\skip178 +\verbatim@out=\write3 +\bvboxsep=\skip179 +\c@memfbvline=\count118 +\c@bvlinectr=\count119 +\bvnumlength=\skip180 +\fb@frw=\dimen143 +\fb@frh=\dimen144 +\FrameRule=\dimen145 +\FrameSep=\dimen146 +\c@cp@cntr=\count120 +LaTeX Info: Redefining \: on input line 11980. +LaTeX Info: Redefining \! on input line 11982. +\c@ism@mctr=\count121 +\c@xsm@mctr=\count122 +\c@csm@mctr=\count123 +\c@ksm@mctr=\count124 +\c@xksm@mctr=\count125 +\c@cksm@mctr=\count126 +\c@msm@mctr=\count127 +\c@xmsm@mctr=\count128 +\c@cmsm@mctr=\count129 +\c@bsm@mctr=\count130 +\c@workm@mctr=\count131 +\c@sheetsequence=\count132 +\c@lastsheet=\count133 +\c@lastpage=\count134 +\c@figure=\count135 +\c@lofdepth=\count136 +\cftbeforefigureskip=\skip181 +\cftfigureindent=\skip182 +\cftfigurenumwidth=\skip183 +\c@table=\count137 +\c@lotdepth=\count138 +\cftbeforetableskip=\skip184 +\cfttableindent=\skip185 +\cfttablenumwidth=\skip186 +Package abstract [2008/07/23] emulated by memoir. +Package appendix [2008/07/23] emulated by memoir. +Package array [2008/09/09] emulated by memoir. +Package booktabs [2008/07/23] emulated by memoir. +Package ccaption [2008/07/23] emulated by memoir. +Package changepage [2008/07/23] emulated by memoir. +Package chngcntr [2008/07/23] emulated by memoir. +Package chngpage [2008/07/23] emulated by memoir. +Package crop emulated by memoir. +Package dcolumn [2008/07/23] emulated by memoir. +Package delarray [2008/07/23] emulated by memoir. +Package enumerate [2008/07/23] emulated by memoir. +Package epigraph [2008/07/23] emulated by memoir. +Package ifmtarg [2008/07/23] emulated by memoir. +Package index [2008/07/23] emulated by memoir. +Package makeidx [2008/07/23] emulated by memoir. +Package moreverb [2008/07/23] emulated by memoir. +Package mparhack [2008/07/23] emulated by memoir. +Package needspace [2008/07/23] emulated by memoir. +Package newfile [2008/07/23] emulated by memoir. +Package nextpage [2008/07/23] emulated by memoir. +Package pagenote [2008/07/23] emulated by memoir. +Package parskip [2008/07/23] emulated by memoir. +Package patchcmd [2008/07/23] emulated by memoir. +Package setspace [2008/07/23] emulated by memoir. +Package shortvrb [2008/07/23] emulated by memoir. +Package showidx [2008/07/23] emulated by memoir. +Package tabularx [2008/07/23] emulated by memoir. +Package titleref [2008/07/23] emulated by memoir. +Package titling [2008/07/23] emulated by memoir. +Package tocbibind [2008/07/23] emulated by memoir. +Package tocloft [2008/07/23] emulated by memoir. +Package tocvsec2 [2008/07/23] emulated by memoir. +Package verbatim [2008/07/23] emulated by memoir. +Package verse [2008/07/23] emulated by memoir. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/mempatch.sty +Package: mempatch 2009/07/24 v6.0f Patches for memoir class v1.6180339 +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-ucs.sty +Package: memhangul-ucs 2014/06/12UCS Hangul Package for memoir class + +memhangul-ucs v1.7.7 2014/06/12 +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/dhucs.sty +Package: dhucs 2012/11/08 v5.3.2 typesetting UTF-8 Korean documents + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/kotexutf.sty +Package: kotexutf 2013/10/20 v1.5 typesetting UTF-8 Korean documents + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/inputenc.sty +Package: inputenc 2014/04/30 v1.2b Input encoding file +\inpenc@prehook=\toks24 +\inpenc@posthook=\toks25 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/utf8.def +File: utf8.def 2014/09/29 v1.1m UTF-8 support for inputenc +Now handling font encoding OML ... +... no UTF-8 mapping file for font encoding OML +Now handling font encoding T1 ... +... processing UTF-8 mapping file for font encoding T1 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.dfu +File: t1enc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A1 (decimal 161) + defining Unicode char U+00A3 (decimal 163) + defining Unicode char U+00AB (decimal 171) + defining Unicode char U+00BB (decimal 187) + defining Unicode char U+00BF (decimal 191) + defining Unicode char U+00C0 (decimal 192) + defining Unicode char U+00C1 (decimal 193) + defining Unicode char U+00C2 (decimal 194) + defining Unicode char U+00C3 (decimal 195) + defining Unicode char U+00C4 (decimal 196) + defining Unicode char U+00C5 (decimal 197) + defining Unicode char U+00C6 (decimal 198) + defining Unicode char U+00C7 (decimal 199) + defining Unicode char U+00C8 (decimal 200) + defining Unicode char U+00C9 (decimal 201) + defining Unicode char U+00CA (decimal 202) + defining Unicode char U+00CB (decimal 203) + defining Unicode char U+00CC (decimal 204) + defining Unicode char U+00CD (decimal 205) + defining Unicode char U+00CE (decimal 206) + defining Unicode char U+00CF (decimal 207) + defining Unicode char U+00D0 (decimal 208) + defining Unicode char U+00D1 (decimal 209) + defining Unicode char U+00D2 (decimal 210) + defining Unicode char U+00D3 (decimal 211) + defining Unicode char U+00D4 (decimal 212) + defining Unicode char U+00D5 (decimal 213) + defining Unicode char U+00D6 (decimal 214) + defining Unicode char U+00D8 (decimal 216) + defining Unicode char U+00D9 (decimal 217) + defining Unicode char U+00DA (decimal 218) + defining Unicode char U+00DB (decimal 219) + defining Unicode char U+00DC (decimal 220) + defining Unicode char U+00DD (decimal 221) + defining Unicode char U+00DE (decimal 222) + defining Unicode char U+00DF (decimal 223) + defining Unicode char U+00E0 (decimal 224) + defining Unicode char U+00E1 (decimal 225) + defining Unicode char U+00E2 (decimal 226) + defining Unicode char U+00E3 (decimal 227) + defining Unicode char U+00E4 (decimal 228) + defining Unicode char U+00E5 (decimal 229) + defining Unicode char U+00E6 (decimal 230) + defining Unicode char U+00E7 (decimal 231) + defining Unicode char U+00E8 (decimal 232) + defining Unicode char U+00E9 (decimal 233) + defining Unicode char U+00EA (decimal 234) + defining Unicode char U+00EB (decimal 235) + defining Unicode char U+00EC (decimal 236) + defining Unicode char U+00ED (decimal 237) + defining Unicode char U+00EE (decimal 238) + defining Unicode char U+00EF (decimal 239) + defining Unicode char U+00F0 (decimal 240) + defining Unicode char U+00F1 (decimal 241) + defining Unicode char U+00F2 (decimal 242) + defining Unicode char U+00F3 (decimal 243) + defining Unicode char U+00F4 (decimal 244) + defining Unicode char U+00F5 (decimal 245) + defining Unicode char U+00F6 (decimal 246) + defining Unicode char U+00F8 (decimal 248) + defining Unicode char U+00F9 (decimal 249) + defining Unicode char U+00FA (decimal 250) + defining Unicode char U+00FB (decimal 251) + defining Unicode char U+00FC (decimal 252) + defining Unicode char U+00FD (decimal 253) + defining Unicode char U+00FE (decimal 254) + defining Unicode char U+00FF (decimal 255) + defining Unicode char U+0102 (decimal 258) + defining Unicode char U+0103 (decimal 259) + defining Unicode char U+0104 (decimal 260) + defining Unicode char U+0105 (decimal 261) + defining Unicode char U+0106 (decimal 262) + defining Unicode char U+0107 (decimal 263) + defining Unicode char U+010C (decimal 268) + defining Unicode char U+010D (decimal 269) + defining Unicode char U+010E (decimal 270) + defining Unicode char U+010F (decimal 271) + defining Unicode char U+0110 (decimal 272) + defining Unicode char U+0111 (decimal 273) + defining Unicode char U+0118 (decimal 280) + defining Unicode char U+0119 (decimal 281) + defining Unicode char U+011A (decimal 282) + defining Unicode char U+011B (decimal 283) + defining Unicode char U+011E (decimal 286) + defining Unicode char U+011F (decimal 287) + defining Unicode char U+0130 (decimal 304) + defining Unicode char U+0131 (decimal 305) + defining Unicode char U+0132 (decimal 306) + defining Unicode char U+0133 (decimal 307) + defining Unicode char U+0139 (decimal 313) + defining Unicode char U+013A (decimal 314) + defining Unicode char U+013D (decimal 317) + defining Unicode char U+013E (decimal 318) + defining Unicode char U+0141 (decimal 321) + defining Unicode char U+0142 (decimal 322) + defining Unicode char U+0143 (decimal 323) + defining Unicode char U+0144 (decimal 324) + defining Unicode char U+0147 (decimal 327) + defining Unicode char U+0148 (decimal 328) + defining Unicode char U+014A (decimal 330) + defining Unicode char U+014B (decimal 331) + defining Unicode char U+0150 (decimal 336) + defining Unicode char U+0151 (decimal 337) + defining Unicode char U+0152 (decimal 338) + defining Unicode char U+0153 (decimal 339) + defining Unicode char U+0154 (decimal 340) + defining Unicode char U+0155 (decimal 341) + defining Unicode char U+0158 (decimal 344) + defining Unicode char U+0159 (decimal 345) + defining Unicode char U+015A (decimal 346) + defining Unicode char U+015B (decimal 347) + defining Unicode char U+015E (decimal 350) + defining Unicode char U+015F (decimal 351) + defining Unicode char U+0160 (decimal 352) + defining Unicode char U+0161 (decimal 353) + defining Unicode char U+0162 (decimal 354) + defining Unicode char U+0163 (decimal 355) + defining Unicode char U+0164 (decimal 356) + defining Unicode char U+0165 (decimal 357) + defining Unicode char U+016E (decimal 366) + defining Unicode char U+016F (decimal 367) + defining Unicode char U+0170 (decimal 368) + defining Unicode char U+0171 (decimal 369) + defining Unicode char U+0178 (decimal 376) + defining Unicode char U+0179 (decimal 377) + defining Unicode char U+017A (decimal 378) + defining Unicode char U+017B (decimal 379) + defining Unicode char U+017C (decimal 380) + defining Unicode char U+017D (decimal 381) + defining Unicode char U+017E (decimal 382) + defining Unicode char U+200C (decimal 8204) + defining Unicode char U+2013 (decimal 8211) + defining Unicode char U+2014 (decimal 8212) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201A (decimal 8218) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) + defining Unicode char U+201E (decimal 8222) + defining Unicode char U+2030 (decimal 8240) + defining Unicode char U+2031 (decimal 8241) + defining Unicode char U+2039 (decimal 8249) + defining Unicode char U+203A (decimal 8250) + defining Unicode char U+2423 (decimal 9251) +) +Now handling font encoding OT1 ... +... processing UTF-8 mapping file for font encoding OT1 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ot1enc.dfu +File: ot1enc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A1 (decimal 161) + defining Unicode char U+00A3 (decimal 163) + defining Unicode char U+00B8 (decimal 184) + defining Unicode char U+00BF (decimal 191) + defining Unicode char U+00C5 (decimal 197) + defining Unicode char U+00C6 (decimal 198) + defining Unicode char U+00D8 (decimal 216) + defining Unicode char U+00DF (decimal 223) + defining Unicode char U+00E6 (decimal 230) + defining Unicode char U+00EC (decimal 236) + defining Unicode char U+00ED (decimal 237) + defining Unicode char U+00EE (decimal 238) + defining Unicode char U+00EF (decimal 239) + defining Unicode char U+00F8 (decimal 248) + defining Unicode char U+0131 (decimal 305) + defining Unicode char U+0141 (decimal 321) + defining Unicode char U+0142 (decimal 322) + defining Unicode char U+0152 (decimal 338) + defining Unicode char U+0153 (decimal 339) + defining Unicode char U+2013 (decimal 8211) + defining Unicode char U+2014 (decimal 8212) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) +) +Now handling font encoding OMS ... +... processing UTF-8 mapping file for font encoding OMS + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/omsenc.dfu +File: omsenc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A7 (decimal 167) + defining Unicode char U+00B6 (decimal 182) + defining Unicode char U+00B7 (decimal 183) + defining Unicode char U+2020 (decimal 8224) + defining Unicode char U+2021 (decimal 8225) + defining Unicode char U+2022 (decimal 8226) +) +Now handling font encoding OMX ... +... no UTF-8 mapping file for font encoding OMX +Now handling font encoding U ... +... no UTF-8 mapping file for font encoding U + defining Unicode char U+00A9 (decimal 169) + defining Unicode char U+00AA (decimal 170) + defining Unicode char U+00AE (decimal 174) + defining Unicode char U+00BA (decimal 186) + defining Unicode char U+02C6 (decimal 710) + defining Unicode char U+02DC (decimal 732) + defining Unicode char U+200C (decimal 8204) + defining Unicode char U+2026 (decimal 8230) + defining Unicode char U+2122 (decimal 8482) + defining Unicode char U+2423 (decimal 9251) +)) +(/usr/local/texlive/2014/texmf-dist/tex/plain/kotex-plain/kotexutf-core.tex +\unih@ngulpoint=\count139 +\dhucs@emph@raise=\dimen147 +) +Now handling font encoding LUC ... +... processing UTF-8 mapping file for font encoding LUC + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/lucenc.dfu +File: lucenc.dfu 2007/09/05 UTF-8 support for dhucs + defining Unicode char U+00B7 (decimal 183) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) + defining Unicode char U+3001 (decimal 12289) + defining Unicode char U+3002 (decimal 12290) + defining Unicode char U+3008 (decimal 12296) + defining Unicode char U+3009 (decimal 12297) + defining Unicode char U+300A (decimal 12298) + defining Unicode char U+300B (decimal 12299) + defining Unicode char U+300C (decimal 12300) + defining Unicode char U+300D (decimal 12301) + defining Unicode char U+300E (decimal 12302) + defining Unicode char U+300F (decimal 12303) + defining Unicode char U+3010 (decimal 12304) + defining Unicode char U+3011 (decimal 12305) + defining Unicode char U+3014 (decimal 12308) + defining Unicode char U+3015 (decimal 12309) + defining Unicode char U+3016 (decimal 12310) + defining Unicode char U+3017 (decimal 12311) + defining Unicode char U+3018 (decimal 12312) + defining Unicode char U+3019 (decimal 12313) + defining Unicode char U+301A (decimal 12314) + defining Unicode char U+301B (decimal 12315) + defining Unicode char U+FF01 (decimal 65281) + defining Unicode char U+FF08 (decimal 65288) + defining Unicode char U+FF09 (decimal 65289) + defining Unicode char U+FF0C (decimal 65292) + defining Unicode char U+FF0E (decimal 65294) + defining Unicode char U+FF1A (decimal 65306) + defining Unicode char U+FF1B (decimal 65307) + defining Unicode char U+FF1C (decimal 65308) + defining Unicode char U+FF1D (decimal 65309) + defining Unicode char U+FF1E (decimal 65310) + defining Unicode char U+FF1F (decimal 65311) + defining Unicode char U+FF3B (decimal 65339) + defining Unicode char U+FF3D (decimal 65341) + defining Unicode char U+FF5B (decimal 65371) + defining Unicode char U+FF5D (decimal 65373) + defining Unicode char U+FF61 (decimal 65377) + defining Unicode char U+FF62 (decimal 65378) + defining Unicode char U+FF63 (decimal 65379) + defining Unicode char U+FF64 (decimal 65380) + defining Unicode char U+FF65 (decimal 65381) +) +\@josa=\count140 +\josatoks=\toks26 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/cjk-ko/kolabels-utf.sty +Package: kolabels-utf 2015/03/20 v1.5 UTF-8 Hangul item labels +))) +\memh@hu=\dimen148 +\t@nch@ars=\skip187 +\tmp@XXbox=\box29 +\tmp@XXdim=\dimen149 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-common.sty +Package: memhangul-common 2014/06/12 +\pghgheadwidth=\dimen150 +\c@APPchapter=\count141 +\c@APPsection=\count142 +\c@APPsubsection=\count143 +\togetheightoffont=\box30 +\htoffnt=\skip188 +\divnoteskip=\skip189 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-patch.sty) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3packages/xparse/xparse.sty +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3.sty +Package: expl3 2015/03/01 v5547 L3 programming layer (loader) + +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex +Package: expl3 2015/03/01 v5547 L3 programming layer (code) +L3 Module: l3bootstrap 2015/02/28 v5542 L3 Bootstrap code +L3 Module: l3names 2015/02/24 v5535 L3 Namespace for primitives +L3 Module: l3basics 2015/01/27 v5500 L3 Basic definitions +L3 Module: l3expan 2014/11/27 v5472 L3 Argument expansion +L3 Module: l3tl 2015/01/27 v5500 L3 Token lists +L3 Module: l3str 2015/03/01 v5545 L3 Strings +L3 Module: l3seq 2014/08/23 v5354 L3 Sequences and stacks +L3 Module: l3int 2015/02/21 v5529 L3 Integers +\c_max_int=\count144 +\l_tmpa_int=\count145 +\l_tmpb_int=\count146 +\g_tmpa_int=\count147 +\g_tmpb_int=\count148 +L3 Module: l3quark 2014/08/23 v5354 L3 Quarks +L3 Module: l3prg 2014/08/23 v5354 L3 Control structures +\g__prg_map_int=\count149 +L3 Module: l3clist 2014/08/23 v5354 L3 Comma separated lists +L3 Module: l3token 2014/09/15 v5422 L3 Experimental token manipulation +L3 Module: l3prop 2014/08/23 v5354 L3 Property lists +L3 Module: l3msg 2015/02/26 v5537 L3 Messages +L3 Module: l3file 2014/08/24 v5369 L3 File and I/O operations +\l_iow_line_count_int=\count150 +\l__iow_target_count_int=\count151 +\l__iow_current_line_int=\count152 +\l__iow_current_word_int=\count153 +\l__iow_current_indentation_int=\count154 +L3 Module: l3skip 2014/08/23 v5354 L3 Dimensions and skips +\c_zero_dim=\dimen151 +\c_max_dim=\dimen152 +\l_tmpa_dim=\dimen153 +\l_tmpb_dim=\dimen154 +\g_tmpa_dim=\dimen155 +\g_tmpb_dim=\dimen156 +\c_zero_skip=\skip190 +\c_max_skip=\skip191 +\l_tmpa_skip=\skip192 +\l_tmpb_skip=\skip193 +\g_tmpa_skip=\skip194 +\g_tmpb_skip=\skip195 +\c_zero_muskip=\muskip10 +\c_max_muskip=\muskip11 +\l_tmpa_muskip=\muskip12 +\l_tmpb_muskip=\muskip13 +\g_tmpa_muskip=\muskip14 +\g_tmpb_muskip=\muskip15 +L3 Module: l3keys 2015/01/27 v5500 L3 Key-value interfaces +\g__keyval_level_int=\count155 +\l_keys_choice_int=\count156 +L3 Module: l3fp 2014/08/22 v5336 L3 Floating points +\c__fp_leading_shift_int=\count157 +\c__fp_middle_shift_int=\count158 +\c__fp_trailing_shift_int=\count159 +\c__fp_big_leading_shift_int=\count160 +\c__fp_big_middle_shift_int=\count161 +\c__fp_big_trailing_shift_int=\count162 +\c__fp_Bigg_leading_shift_int=\count163 +\c__fp_Bigg_middle_shift_int=\count164 +\c__fp_Bigg_trailing_shift_int=\count165 +L3 Module: l3box 2014/08/23 v5354 L3 Experimental boxes +\c_empty_box=\box31 +\l_tmpa_box=\box32 +\l_tmpb_box=\box33 +\g_tmpa_box=\box34 +\g_tmpb_box=\box35 +L3 Module: l3coffins 2014/08/23 v5354 L3 Coffin code layer +\l__coffin_internal_box=\box36 +\l__coffin_internal_dim=\dimen157 +\l__coffin_offset_x_dim=\dimen158 +\l__coffin_offset_y_dim=\dimen159 +\l__coffin_x_dim=\dimen160 +\l__coffin_y_dim=\dimen161 +\l__coffin_x_prime_dim=\dimen162 +\l__coffin_y_prime_dim=\dimen163 +\c_empty_coffin=\box37 +\l__coffin_aligned_coffin=\box38 +\l__coffin_aligned_internal_coffin=\box39 +\l_tmpa_coffin=\box40 +\l_tmpb_coffin=\box41 +\l__coffin_display_coffin=\box42 +\l__coffin_display_coord_coffin=\box43 +\l__coffin_display_pole_coffin=\box44 +\l__coffin_display_offset_dim=\dimen164 +\l__coffin_display_x_dim=\dimen165 +\l__coffin_display_y_dim=\dimen166 +L3 Module: l3color 2014/08/23 v5354 L3 Experimental color support +L3 Module: l3candidates 2015/03/01 v5544 L3 Experimental additions to l3kernel +\l__box_top_dim=\dimen167 +\l__box_bottom_dim=\dimen168 +\l__box_left_dim=\dimen169 +\l__box_right_dim=\dimen170 +\l__box_top_new_dim=\dimen171 +\l__box_bottom_new_dim=\dimen172 +\l__box_left_new_dim=\dimen173 +\l__box_right_new_dim=\dimen174 +\l__box_internal_box=\box45 +\l__coffin_bounding_shift_dim=\dimen175 +\l__coffin_left_corner_dim=\dimen176 +\l__coffin_right_corner_dim=\dimen177 +\l__coffin_bottom_corner_dim=\dimen178 +\l__coffin_top_corner_dim=\dimen179 +\l__coffin_scaled_total_height_dim=\dimen180 +\l__coffin_scaled_width_dim=\dimen181 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3unicode-data.def +File: l3unicode-data.def 2015/03/01 v5544 L3 Unicode data +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3pdfmode.def +File: l3pdfmode.def 2015/03/01 v5544 L3 Experimental driver: PDF mode +\l__driver_color_stack_int=\count166 +)) +Package: xparse 2014/11/25 v5471 L3 Experimental document command parser +\l__xparse_current_arg_int=\count167 +\l__xparse_m_args_int=\count168 +\l__xparse_mandatory_args_int=\count169 +\l__xparse_processor_int=\count170 +\l__xparse_v_nesting_int=\count171 +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hologo.sty +Package: hologo 2012/04/26 v1.10 A logo collection with bookmark support (HO) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty +Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty +Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty +Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/etexcmds.sty +Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) +Package etexcmds Info: Could not find \expanded. +(etexcmds) That can mean that you are not using pdfTeX 1.50 or +(etexcmds) that some package has redefined \expanded. +(etexcmds) In the latter case, load this package earlier. +)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty +Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty +Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO +) +Package pdftexcmds Info: LuaTeX not detected. +Package pdftexcmds Info: \pdf@primitive is available. +Package pdftexcmds Info: \pdf@ifprimitive is available. +Package pdftexcmds Info: \pdfdraftmode found. +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifvtex.sty +Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO) +Package ifvtex Info: VTeX not detected. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/kvoptions.sty +Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO) +) +Package hologo Info: Using driver `pdftex'. +) +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \XeTeX with sig. '' on line 1132. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \XeLaTeX with sig. '' on line 1132. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \LuaTeX with sig. '' on line 1138. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \LuaLaTeX with sig. '' on line 1138. +................................................. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-interword.sty +Package: memucs-interword 2007/09/22 +\BASE@FONTsize=\dimen182 +\ORIG@spaceskip=\skip196 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-setspace.sty +Package: memucs-setspace 2007/09/21 6.7-memucs8 Contributed and Supported LaTeX +2e package + +Package: `memucs-setspace', a modified version of `setspace', 6.7-memucs8 <2007 +/09/21> +) + defining Unicode char U+00BC (decimal 188) + defining Unicode char U+00BD (decimal 189) + defining Unicode char U+00BE (decimal 190) + defining Unicode char U+02D0 (decimal 720) + defining Unicode char U+2025 (decimal 8229) + defining Unicode char U+2026 (decimal 8230) + defining Unicode char U+2015 (decimal 8213) + defining Unicode char U+2312 (decimal 8978) +\raisedotdim=\dimen183 +\dhucs@emph@width=\dimen184 +\useremphraisedim=\dimen185 +\tmp_user_emph_dim=\dimen186 +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \useremph with sig. 'oom' on line 541. +................................................. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/nanu +mfontsel.sty +Package: nanumfontsel +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/pdftex/glyphtounicode.tex) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty +Package: dhucs-cmap 2007/06/16 searchable PDF for dhucs upon pdftex +) +\ob@hu=\dimen187 +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hyperref.sty +Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty +Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO) + + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty +Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO) +Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO) +Package hobsub Info: Skipping package `infwarerr' (already loaded). +Package hobsub Info: Skipping package `ltxcmds' (already loaded). +Package hobsub Info: Skipping package `ifluatex' (already loaded). +Package hobsub Info: Skipping package `ifvtex' (already loaded). +Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO) +Package hobsub Info: Skipping package `ifpdf' (already loaded). +Package hobsub Info: Skipping package `etexcmds' (already loaded). +Package hobsub Info: Skipping package `kvsetkeys' (already loaded). +Package hobsub Info: Skipping package `kvdefinekeys' (already loaded). +Package hobsub Info: Skipping package `pdftexcmds' (already loaded). +Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO) +Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO +) +Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO) +Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO) +) +Package hobsub Info: Skipping package `hobsub' (already loaded). +Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO) +Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO) +Package: xcolor-patch 2011/01/30 xcolor patch +Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO) +Package atveryend Info: \enddocument detected (standard20110627). +Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO) +Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO) +Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/auxhook.sty +Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO) +) +\@linkdim=\dimen188 +\Hy@linkcounter=\count172 +\Hy@pagecounter=\count173 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/pd1enc.def +File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO) +Now handling font encoding PD1 ... +... no UTF-8 mapping file for font encoding PD1 +) +\Hy@SavedSpaceFactor=\count174 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/hyperref.cfg +File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive +) +Package hyperref Info: Option `unicode' set `true' on input line 4319. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/puenc.def +File: puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO) +Now handling font encoding PU ... +... no UTF-8 mapping file for font encoding PU +) +Package hyperref Info: Hyper figures OFF on input line 4443. +Package hyperref Info: Link nesting OFF on input line 4448. +Package hyperref Info: Hyper index ON on input line 4451. +Package hyperref Info: Plain pages OFF on input line 4458. +Package hyperref Info: Backreferencing OFF on input line 4463. +Package hyperref Info: Implicit mode ON; LaTeX internals redefined. +Package hyperref Info: Bookmarks ON on input line 4688. +\c@Hy@tempcnt=\count175 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/url/url.sty +\Urlmuskip=\muskip16 +Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. +) +LaTeX Info: Redefining \url on input line 5041. +\XeTeXLinkMargin=\dimen189 +\Fld@menulength=\count176 +\Field@Width=\dimen190 +\Fld@charsize=\dimen191 +Package hyperref Info: Hyper figures OFF on input line 6295. +Package hyperref Info: Link nesting OFF on input line 6300. +Package hyperref Info: Hyper index ON on input line 6303. +Package hyperref Info: backreferencing OFF on input line 6310. +Package hyperref Info: Link coloring OFF on input line 6315. +Package hyperref Info: Link coloring with OCG OFF on input line 6320. +Package hyperref Info: PDF/A mode OFF on input line 6325. +LaTeX Info: Redefining \ref on input line 6365. +LaTeX Info: Redefining \pageref on input line 6369. +\Hy@abspage=\count177 +\c@Item=\count178 +\c@Hfootnote=\count179 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/memhfixc.sty +Package: memhfixc 2013/05/30 v1.17 nameref/hyperref package fixes for memoir cl +ass +\c@memhycontfloat=\count180 +\c@Hpagenote=\count181 +) + +Package hyperref Message: Driver: hpdftex. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def +File: hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX +\Fld@listcount=\count182 +\c@bookmark@seq@number=\count183 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty +Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO) +Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 +82. +) +Normal \skip register pool exhausted, switching to extended pool. +\Hy@SectionHShift=\skip256 +) +\@ensp=\skip257 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-t +oclof.sty) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-k +oreanappendix.sty)) +HANGUL DRIVER: kotex-utf +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/fapa +persize.sty +Package: fapapersize +\fa@stockheight=\skip258 +\fa@stockwidth=\skip259 +\fa@paperheight=\skip260 +\fa@paperwidth=\skip261 +\fa@leftmargin=\skip262 +\fa@rightmargin=\skip263 +\fa@uppermargin=\skip264 +\fa@lowermargin=\skip265 +\fa@tmplenwd=\skip266 +\fa@tmplenht=\skip267 +\tmp@dim=\dimen192 +) + +****************************************************** +Stock height and width: 325.215pt by 216.81pt +Top and edge trims: 0pt and 0pt +Page height and width: 325.215pt by 216.81pt +Text height and width: 275.59851pt by 168pt +Spine and edge margins: 24.06537pt and 24.06537pt +Upper and lower margins: 24.06537pt and 25.55112pt +Headheight and headsep: 11.22011pt and 10pt +Footskip: 11.22011pt +Columnsep and columnseprule: 10pt and 0pt +Marginparsep and marginparwidth: 7pt and 10.06537pt +Sidecapsep and sidecapwidth: 7pt and 85pt +Sidebarhsep and sidebarwidth: 7pt and 85pt +Sidebarvsep and sidebartopsep: 10pt and 0pt +Sidebarheight: 546.99997pt +Sidefoothsep and sidefootwidth: 7pt and 85pt +Sidefootvsep and sidefootheight: 10pt and 546.99997pt +****************************************************** + +(/usr/local/texlive/2014/texmf-dist/tex/latex/was/gensymb.sty +Package: gensymb 2003/07/02 v1.0 (WaS) +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype.sty +Package: microtype 2013/05/23 v2.5a Micro-typographical refinements (RS) +\MT@toks=\toks27 +\MT@count=\count184 +LaTeX Info: Redefining \textls on input line 766. +\MT@outer@kern=\dimen193 +LaTeX Info: Redefining \textmicrotypecontext on input line 1285. +\MT@listname@count=\count185 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype-pdftex.def +File: microtype-pdftex.def 2013/05/23 v2.5a Definitions specific to pdftex (RS) + +LaTeX Info: Redefining \lsstyle on input line 915. +LaTeX Info: Redefining \lslig on input line 915. +\MT@outer@space=\skip268 +) +Package microtype Info: Loading configuration file microtype.cfg. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype.cfg +File: microtype.cfg 2013/05/23 v2.5a microtype main configuration file (RS) +)) + +LaTeX Warning: Unused global option(s): + [nohan]. + +(./userguide_ENG.aux) +\openout1 = `userguide_ENG.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for LUC/nanummj/m/n on input line 39. +LaTeX Font Info: Try loading font information for LUC+nanummj on input line +39. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/nanumtype1/lucnanummj.fd +File: lucnanummj.fd 2013/02/12 v0.1 Nanum Myeongjo font definitions +) +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. +LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 39. +LaTeX Font Info: ... okay on input line 39. + defining Unicode char U+00B7 (decimal 183) + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-gremph.sty +Package: memucs-gremph +LaTeX Info: Redefining \itshape on input line 74. +LaTeX Info: Redefining \slshape on input line 78. +) +\AtBeginShipoutBox=\box46 +Package hyperref Info: Link coloring OFF on input line 39. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/nameref.sty +Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/gettitlestring.sty +Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO) +) +\c@section@level=\count186 +) +Redoing nameref's sectioning +Redoing nameref's label +LaTeX Info: Redefining \nameref on input line 39. +LaTeX Info: Redefining \ref on input line 39. +LaTeX Info: Redefining \pageref on input line 39. +LaTeX Info: Redefining \nameref on input line 39. +(./userguide_ENG.out) (./userguide_ENG.out) +\@outlinefile=\write4 +\openout4 = `userguide_ENG.out'. + +LaTeX Info: Redefining \celsius on input line 39. +Package gensymb Info: Faking symbols for \degree and \celsius on input line 39. + + + +Package gensymb Warning: Not defining \perthousand. + +LaTeX Info: Redefining \ohm on input line 39. +Package gensymb Info: Using \Omega for \ohm on input line 39. + +Package gensymb Warning: Not defining \micro. + + +Package microtype Warning: Command \pickup@font is not defined as expected. +(microtype) Patching it anyway. Some things may break. +(microtype) Double-check whether micro-typography is indeed +(microtype) applied to the document. +(microtype) (Hint: Turn on `verbose' mode). + +LaTeX Info: Redefining \microtypecontext on input line 39. +Package microtype Info: Generating PDF output. +Package microtype Info: Character protrusion enabled (level 2). +Package microtype Info: Using default protrusion set `alltext'. +Package microtype Info: Automatic font expansion enabled (level 2), +(microtype) stretch: 20, shrink: 20, step: 1, non-selected. +Package microtype Info: Using default expansion set `basictext'. +Package microtype Info: No adjustment of tracking. +Package microtype Info: No adjustment of interword spacing. +Package microtype Info: No adjustment of character kerning. +Package microtype Info: ... Loading configuration file mt-cmr.cfg. +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/mt-cmr.cfg +File: mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman +(RS) +) +Package microtype Info: Setting up font `OT1/cmr/m/n/9' on input line 39. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/12' on input line 42. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OT1/cmr/m/n/8' on input line 42. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: ... No configuration file mt-cmss.cfg. +Package microtype Info: Setting up font `OT1/cmss/m/n/8' on input line 42. +Package microtype Info: ... Loading protrusion list `OT1-default'. +Package microtype Info: Loading generic settings for font family +(microtype) `cmss' (encoding: OT1). +(microtype) For optimal results, create family-specific settings. +(microtype) See the microtype manual for details. +Package microtype Info: ... : First loading protrusion list `default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/10' on input line 42. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/7' on input line 42. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/5' on input line 42. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmm.cfg. +Package microtype Info: Setting up font `OML/cmm/m/it/10' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/7' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/5' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmsy.cfg. +Package microtype Info: Setting up font `OMS/cmsy/m/n/10' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/7' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/5' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmex.cfg. +Package microtype Info: Setting up font `OMX/cmex/m/n/10' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line 42. +Package microtype Info: Setting up font `OMX/cmex/m/n/7' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 42. +Package microtype Info: Setting up font `OMX/cmex/m/n/5' on input line 42. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. + [1 + +{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] +Package microtype Info: Setting up font `OT1/cmr/m/n/6' on input line 47. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/8' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/6' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/8' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/6' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 47. +Package microtype Info: Setting up font `OMX/cmex/m/n/8' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 47. +Package microtype Info: Setting up font `OMX/cmex/m/n/6' on input line 47. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OT1/cmr/m/n/10.95' on input line 49. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OT1/cmr/bx/n/10.95' on input line 49. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. + +(./userguide_ENG.toc +Package microtype Info: Setting up font `OML/cmm/m/it/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 1. +Package microtype Info: Setting up font `OMX/cmex/m/n/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. + [2]) [3] +Overfull \hbox (2.87178pt too wide) in paragraph at lines 56--57 +\OT1/cmr/m/n/9 (-20) Terrarum is a rogue-like world which things + [] + +Package microtype Info: Setting up font `OT1/cmr/bx/n/10' on input line 58. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. + +Overfull \hbox (8.91882pt too wide) in paragraph at lines 59--61 +\OT1/cmr/m/n/9 (-20) any proper wagon, which should be equipped + [] + +LaTeX Font Info: Try loading font information for OMS+cmr on input line 61. +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/omscmr.fd +File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions +) +LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <9> not available +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 61. +Package microtype Info: Setting up font `OT1/cmr/m/it/9' on input line 68. +Package microtype Info: ... Loading protrusion list `cmr-it-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... Applying non-selected expansion (list `default'). + [4] +Package microtype Info: Setting up font `OT1/cmr/bx/n/9' on input line 71. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. + +Overfull \hbox (0.13977pt too wide) in paragraph at lines 72--73 +\OT1/cmr/m/n/9 (-20) (qw-erty)/FRST (cole-mak)/.OEW (dvo-rak) + [] + + +Overfull \hbox (1.80681pt too wide) in paragraph at lines 72--73 +\OT1/cmr/m/n/9 (-20) you to pro-vide more mod-i-fier pedals---QAZ + [] + +[5] +Overfull \hbox (14.09688pt too wide) in paragraph at lines 78--79 +\OT1/cmr/m/n/9 (-20) The world is com-posed with \OT1/cmr/m/it/9 (-20) three-di +mensional + [] + + +Overfull \hbox (2.53613pt too wide) in paragraph at lines 78--79 +\OT1/cmr/m/n/9 (-20) average-height man should oc-cupy two tiles + [] + +Package microtype Info: Setting up font `OT1/cmr/m/it/6' on input line 82. +Package microtype Info: ... Loading protrusion list `cmr-it-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OT1/cmr/m/it/5' on input line 82. +Package microtype Info: ... Loading protrusion list `cmr-it-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... No expansion. + +Overfull \hbox (2.68578pt too wide) in paragraph at lines 85--86 +[]\OT1/cmr/m/n/9 (-20) i.e. The man men-tioned above can climb + [] + +[6] +Overfull \hbox (10.13351pt too wide) in paragraph at lines 90--91 +[]\OT1/cmr/m/n/9 (-20) There are sev-eral con-ti-nents on the planet, + [] + +Package microtype Info: Setting up font `OT1/cmr/m/it/7' on input line 92. +Package microtype Info: ... Loading protrusion list `cmr-it-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <7> not available +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 92. +[7] [8] [9] +\tf@toc=\write5 +\openout5 = `userguide_ENG.toc'. + +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 123. +Package atveryend Info: Empty hook `AfterLastShipout' on input line 123. + (./userguide_ENG.aux) +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 123. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 123. +Package rerunfilecheck Info: File `userguide_ENG.out' has not changed. +(rerunfilecheck) Checksum: 737E53831C5110811A9860057020378C;1629. +Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 123. + ) +Here is how much of TeX's memory you used: + 20113 strings out of 493109 + 332895 string characters out of 6135004 + 441006 words of memory out of 5000000 + 23302 multiletter control sequences out of 15000+600000 + 11903 words of font info for 70 fonts, out of 8000000 for 9000 + 1141 hyphenation exceptions out of 8191 + 76i,11n,51p,10423b,432s stack positions out of 5000i,500n,10000p,200000b,80000s +< +/usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi6.pfb> +Output written on userguide_ENG.pdf (9 pages, 191250 bytes). +PDF statistics: + 206 PDF objects out of 1000 (max. 8388607) + 161 compressed objects within 2 object streams + 28 named destinations out of 1000 (max. 500000) + 19049 words of extra memory for PDF output out of 20736 (max. 10000000) + diff --git a/res/books/userguide_ENG.out b/res/books/userguide_ENG.out new file mode 100644 index 000000000..085a8d88a --- /dev/null +++ b/res/books/userguide_ENG.out @@ -0,0 +1,13 @@ +\BOOKMARK [1][-]{section.0.1}{\376\377\000I\000n\000t\000r\000o\000d\000u\000c\000t\000i\000o\000n}{}% 1 +\BOOKMARK [2][-]{subsection.0.1.1}{\376\377\000L\000u\000g\000g\000a\000g\000e\000\040\000p\000r\000e\000p\000a\000r\000a\000t\000i\000o\000n}{section.0.1}% 2 +\BOOKMARK [1][-]{section.0.2}{\376\377\000M\000o\000v\000i\000n\000g\000\040\000a\000r\000o\000u\000n\000d}{}% 3 +\BOOKMARK [2][-]{subsection.0.2.1}{\376\377\000Y\000o\000u\000r\000\040\000f\000i\000r\000s\000t\000\040\000t\000o\000d\000d\000l\000i\000n\000g}{section.0.2}% 4 +\BOOKMARK [1][-]{section.0.3}{\376\377\000W\000o\000r\000l\000d}{}% 5 +\BOOKMARK [2][-]{subsection.0.3.1}{\376\377\000G\000e\000o\000g\000r\000a\000g\000h\000y}{section.0.3}% 6 +\BOOKMARK [2][-]{subsection.0.3.2}{\376\377\000D\000a\000y\000\040\000a\000n\000d\000\040\000n\000i\000g\000h\000t}{section.0.3}% 7 +\BOOKMARK [2][-]{subsection.0.3.3}{\376\377\000B\000i\000o\000m\000e}{section.0.3}% 8 +\BOOKMARK [2][-]{subsection.0.3.4}{\376\377\000V\000e\000g\000e\000t\000a\000t\000i\000o\000n}{section.0.3}% 9 +\BOOKMARK [2][-]{subsection.0.3.5}{\376\377\000R\000a\000c\000e\000s\000\040\000a\000n\000d\000\040\000t\000h\000e\000i\000r\000\040\000c\000i\000v\000i\000l\000i\000s\000a\000t\000i\000o\000n\000s}{section.0.3}% 10 +\BOOKMARK [2][-]{subsection.0.3.6}{\376\377\000C\000o\000m\000m\000o\000n\000\040\000a\000n\000i\000m\000a\000l\000s}{section.0.3}% 11 +\BOOKMARK [1][-]{section.0.4}{\376\377\000W\000o\000r\000l\000d\000\040\000c\000r\000e\000a\000t\000i\000o\000n}{}% 12 +\BOOKMARK [2][-]{subsection.0.4.1}{\376\377\000W\000o\000r\000l\000d\000\040\000S\000i\000z\000e}{section.0.4}% 13 diff --git a/res/books/userguide_ENG.pdf b/res/books/userguide_ENG.pdf new file mode 100644 index 000000000..89b3464f6 Binary files /dev/null and b/res/books/userguide_ENG.pdf differ diff --git a/res/books/userguide_ENG.synctex.gz b/res/books/userguide_ENG.synctex.gz new file mode 100644 index 000000000..4de82c6ea Binary files /dev/null and b/res/books/userguide_ENG.synctex.gz differ diff --git a/res/books/userguide_ENG.tex b/res/books/userguide_ENG.tex new file mode 100644 index 000000000..829405d15 --- /dev/null +++ b/res/books/userguide_ENG.tex @@ -0,0 +1,123 @@ +\documentclass[stock,9pt,nohan]{oblivoir} + +\usepackage{fapapersize} +\usefapapersize{3in,4.5in,.333in,*,.333in,.333in} +\usepackage{gensymb} + +\linespread{1.25} +\frenchspacing + +\usepackage[verbose=true]{microtype} + +\renewcommand{\contentsname}{Table of Contents} + +\newcommand{\gamever}{Alpha 1} + +\newcommand{\titleEN}{A Pocket Guide to the Terrarum World \vskip1ex \small\textsf{English edition} \normalsize} +\newcommand{\titleKO}{\textsf{Terrarum} 간편 여행 안내서 \vskip1ex \small\sffamily 한국어판} + +\newcommand{\authorEN}{\small By \sffamily{}Terrarum developers} +\newcommand{\authorKO}{\small 개발진 일동} + +\newcommand{\dateEN}{\small\sffamily Corresponds to world version \gamever} +\newcommand{\dateKO}{\small\sffamily \gamever{}판 기준} + +\newcommand{\tocEN}{Table of Contents} +\newcommand{\tocKO}{목 \ 차} + +\renewcommand{\contentsname}{\tocEN} + +\title{\titleEN} +\author{\authorEN} +\date{\dateEN} + +\epigraphposition{center} +\setlength{\epigraphrule}{0pt} +\setlength{\epigraphwidth}{2in} +\setlength{\beforeepigraphskip}{72pt} + +\begin{document} + +\maketitle + +\newpage + +\epigraph{ +Welcome! You are most likely an explorer, or a brave and courageous traveller who seeks uncharted planet in the universe, or an aspiring ruler-to-be who want rule your own world. We hope this little book to be an useful guide for whatever ambitious work you are up to. +}{Writers} + +\tableofcontents* + +\newpage + +\newpage + +\section{Introduction} +Terrarum is a rogue-like world which things are happening on real-time basis as in real-time role-playing games. + + \subsection{Luggage preparation} + Trip to Terrarum can be achieved with any proper wagon, which should be equipped with: + \begin{itemize} + \item 64-bit wagon engine + \item Java Roving Environs 8 or higher + \item A wagon engine with cylinder volume of 2 GB. 4 GB or more is recommended + \item Free luggage space of 4 GB or more + \end{itemize} + +\section{Moving around} +The control is omnidirectional. In other words, \emph{not} cell-based. + + \subsection{Your first toddling} + \subsubsection{ISO\slash ANSI\slash JIS pedalboards} + Your default moving around uses ESDF (qwerty)\slash FRST (colemak)\slash .OEW (dvorak) pedals for default `WASD', in order for you to provide more modifier pedals---QAZ (qwerty\slash colemak), /A; (dvorak)---that are pressed with your little finger and more comfort to some pedalboards with Topre actuators.\footnote{Writers of this book would recommend you to use pedalboard with Cherry MX Red actuators, though any decent pedalboard should be sufficient.} + + \subsubsection{Joypads} + Your moving around uses left stick, and direction of the movement is \emph{not} limited to 8 directions, hence the term, “omni\-direc\-tion\-al”. + +\section{World} +The world is composed with \emph{three-dimensional} blocks, which is the feature you should keep in mind during your trip. Each block is a metre-size and a metre-high, so an average-height man should occupy two tiles vertically, thus he is two-tile-high in the world. + +Cliffs are treated as a stair, and you---as well as any living things in the world---can climb the tile as you would use a stair. Climbable cliff height is calculated as +\begin{equation} +floor( \frac{height_{you}}{height_{\mathit{cliff}}} ) +\end{equation} + +i.e. The man mentioned above can climb one-tile-high cliff as a stair. + + \subsection{Geograghy} + The world---the continent you play on---features mountains, valleys, rivers, lakes, ocean, caves, etc. + + There are several continents on the planet, which are created by you. While there are multiple continents, however, your wagon cannot travel to others. + + Each time you create a continent, unless you specified a \emph{seed}\footnote{Refer to \S 4.}, will never be the same. + + \subsection{Day and night} + A day in Terrarum world---the planet---is 72 000 seconds. A second in Earth would be equivalent to 60 (depends on the operational speed of your wagon) planetary seconds, which consists a planetary minute. + + \subsection{Biome} + Average temperature in meadows\slash forests\slash mountains are kept to pleasant 298 K\slash 25 \degree{}C\slash 77 \degree{}F. However, some sovereign territories are will not be as pleasant. Some governor of such biomes, though will not hinder any access, will not be pleased with your ruling. + + \subsection{Vegetation} + + + \subsection{Races and their civilisations} + + + \subsection{Common animals} + + +\section{World creation} + You can specify some parameters when you create a continent. Controllable parameters are: + \begin{itemize} + \item World size (affects distance between tribes) + \item Ore amount (affects civilisation) + \item Vegetation (more trees means more building materials) + \item Seed (each randomly-created continent has its own \emph{seed} for landform. Leave it blank to randomise) + \end{itemize} + + You can name your continent while in creation, so try to come up with a good name! + + \subsection{World Size} + There are two size options available. \emph{Normal} gives $2048\times2048$ metres in size, \emph{Huge} gives $4096\times4096$ metres. Depth of the world is limited to 128 metres for all options. + +\end{document} \ No newline at end of file diff --git a/res/books/userguide_ENG.toc b/res/books/userguide_ENG.toc new file mode 100644 index 000000000..ac89bafcb --- /dev/null +++ b/res/books/userguide_ENG.toc @@ -0,0 +1,15 @@ +\contentsline {section}{\numberline {1}Introduction}{4}{section.0.1} +\contentsline {subsection}{\numberline {1.1}Luggage preparation}{4}{subsection.0.1.1} +\contentsline {section}{\numberline {2}Moving around}{5}{section.0.2} +\contentsline {subsection}{\numberline {2.1}Your first toddling}{5}{subsection.0.2.1} +\contentsline {subsubsection}{ISO/\penalty \exhyphenpenalty ANSI/\penalty \exhyphenpenalty JIS pedalboards}{5}{section*.1} +\contentsline {subsubsection}{Joypads}{6}{section*.2} +\contentsline {section}{\numberline {3}World}{6}{section.0.3} +\contentsline {subsection}{\numberline {3.1}Geograghy}{7}{subsection.0.3.1} +\contentsline {subsection}{\numberline {3.2}Day and night}{7}{subsection.0.3.2} +\contentsline {subsection}{\numberline {3.3}Biome}{8}{subsection.0.3.3} +\contentsline {subsection}{\numberline {3.4}Vegetation}{8}{subsection.0.3.4} +\contentsline {subsection}{\numberline {3.5}Races and their civilisations}{8}{subsection.0.3.5} +\contentsline {subsection}{\numberline {3.6}Common animals}{8}{subsection.0.3.6} +\contentsline {section}{\numberline {4}World creation}{8}{section.0.4} +\contentsline {subsection}{\numberline {4.1}World Size}{9}{subsection.0.4.1} diff --git a/res/books/userguide_NON.aux b/res/books/userguide_NON.aux new file mode 100644 index 000000000..4d3fae00e --- /dev/null +++ b/res/books/userguide_NON.aux @@ -0,0 +1,33 @@ +\relax +\providecommand\hyper@newdestlabel[2]{} +\providecommand*{\memsetcounter}[2]{} +\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument} +\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined +\global\let\oldcontentsline\contentsline +\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} +\global\let\oldnewlabel\newlabel +\gdef\newlabel#1#2{\newlabelxx{#1}#2} +\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} +\AtEndDocument{\ifx\hyper@anchor\@undefined +\let\contentsline\oldcontentsline +\let\newlabel\oldnewlabel +\fi} +\fi} +\global\let\hyper@last\relax +\gdef\HyperFirstAtBeginDocument#1{#1} +\providecommand\HyField@AuxAddToFields[1]{} +\providecommand\HyField@AuxAddToCoFields[2]{} +\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{4}{section.0.1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Luggage preparation}{4}{subsection.0.1.1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Moving around}{5}{section.0.2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Your first toddling}{5}{subsection.0.2.1}} +\@writefile{toc}{\contentsline {section}{\numberline {3}World}{5}{section.0.3}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Geograghy}{6}{subsection.0.3.1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Day and night}{7}{subsection.0.3.2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Biome}{7}{subsection.0.3.3}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}Vegetation}{8}{subsection.0.3.4}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}Races and their civilisations}{8}{subsection.0.3.5}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6}Common animals}{8}{subsection.0.3.6}} +\@writefile{toc}{\contentsline {section}{\numberline {4}World creation}{8}{section.0.4}} +\memsetcounter{lastsheet}{9} +\memsetcounter{lastpage}{9} diff --git a/res/books/userguide_NON.log b/res/books/userguide_NON.log new file mode 100644 index 000000000..31180edfa --- /dev/null +++ b/res/books/userguide_NON.log @@ -0,0 +1,1480 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2015.3.31) 16 JUN 2015 00:28 +entering extended mode + restricted \write18 enabled. + file:line:error style messages enabled. + %&-line parsing enabled. +**userguide_NON.tex +(./userguide_NON.tex +LaTeX2e <2014/05/01> +Babel <3.9l> and hyphenation patterns for 79 languages loaded. +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/oblivoir.cls +Document Class: oblivoir +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/xoblivoir.cls +Document Class: xoblivoir 2014/06/12 +(/usr/local/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty +Package: xkeyval 2014/12/03 v2.7a package option processing (HA) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex +\XKV@toks=\toks14 +\XKV@tempa@toks=\toks15 + +(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/keyval.tex)) +\XKV@depth=\count79 +File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) +)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/iftex/iftex.sty +Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, +and LuaTeX +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/oblivoir-base.cls +Document Class: oblivoir-base 2014/06/12 v0.6 article-like class to typeset UTF +-8 korean using memoir. +(/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty +Package: etex 2015/03/02 v2.1 eTeX basic definition package (PEB,DPC) +\et@xins=\count80 +) +\fa@setheight=\skip41 +\fa@setwidth=\skip42 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/memoir.cls +Document Class: memoir 2015/03/05 v3.7c configurable book, report, article docu +ment class +\onelineskip=\skip43 +\lxvchars=\skip44 +\xlvchars=\skip45 +\@memcnta=\count81 +\c@@memmarkcntra=\count82 +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifpdf.sty +Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) +Package ifpdf Info: pdfTeX in PDF mode is detected. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/ifetex/ifetex.sty +Package: ifetex 2011/12/15 v1.2 ifetex + +(/usr/local/texlive/2014/texmf-dist/tex/plain/ifetex/ifetex.tex)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/ifxetex/ifxetex.sty +Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifluatex.sty +Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) +Package ifluatex Info: LuaTeX not detected. +) +\stockheight=\skip46 +\stockwidth=\skip47 +\trimtop=\skip48 +\trimedge=\skip49 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/mem9.clo +File: mem9.clo 2008/01/30 v0.4 memoir class 9pt size option +) +\binding=\skip50 +\spinemargin=\skip51 +\foremargin=\skip52 +\uppermargin=\skip53 +\lowermargin=\skip54 +\headdrop=\skip55 +\normalrulethickness=\skip56 +\mem@maxheadheight=\skip57 +\mem@maxfootheight=\skip58 +\headwidth=\skip59 +\c@storedpagenumber=\count83 +\memPD=\dimen102 +\m@mabparskip=\skip60 +\thanksmarkwidth=\skip61 +\thanksmarksep=\skip62 +\droptitle=\skip63 +\c@book=\count84 +\c@part=\count85 +\c@chapter=\count86 +\c@section=\count87 +\c@subsection=\count88 +\c@subsubsection=\count89 +\c@paragraph=\count90 +\c@subparagraph=\count91 +\beforechapskip=\skip64 +\midchapskip=\skip65 +\afterchapskip=\skip66 +\chapindent=\skip67 +\bottomsectionskip=\skip68 +\secindent=\skip69 +\beforesecskip=\skip70 +\aftersecskip=\skip71 +\subsecindent=\skip72 +\beforesubsecskip=\skip73 +\aftersubsecskip=\skip74 +\subsubsecindent=\skip75 +\beforesubsubsecskip=\skip76 +\aftersubsubsecskip=\skip77 +\paraindent=\skip78 +\beforeparaskip=\skip79 +\afterparaskip=\skip80 +\subparaindent=\skip81 +\beforesubparaskip=\skip82 +\aftersubparaskip=\skip83 +\pfbreakskip=\skip84 +\c@@ppsavesec=\count92 +\c@@ppsaveapp=\count93 +\ragrparindent=\dimen103 +\everylistparindent=\dimen104 +\parsepi=\skip85 +\topsepi=\skip86 +\itemsepi=\skip87 +\parsepii=\skip88 +\topsepii=\skip89 +\topsepiii=\skip90 +\itemsepii=\skip91 +\itemsepiii=\skip92 +\partopsepii=\skip93 +\partopsepiii=\skip94 +\m@msavetopsep=\skip95 +\m@msavepartopsep=\skip96 +\@enLab=\toks16 +\abstitleskip=\skip97 +\absleftindent=\skip98 +\abs@leftindent=\dimen105 +\absrightindent=\skip99 +\absparindent=\skip100 +\absparsep=\skip101 +\c@vslineno=\count94 +\c@poemline=\count95 +\c@modulo@vs=\count96 +\c@memfvsline=\count97 +\vleftskip=\skip102 +\vrightskip=\skip103 +\stanzaskip=\skip104 +\versewidth=\skip105 +\vgap=\skip106 +\vindent=\skip107 +\vleftmargin=\dimen106 +\c@verse=\count98 +\c@chrsinstr=\count99 +\beforepoemtitleskip=\skip108 +\afterpoemtitleskip=\skip109 +\c@poem=\count100 +\beforePoemTitleskip=\skip110 +\midPoemTitleskip=\skip111 +\afterPoemTitleskip=\skip112 +\col@sep=\dimen107 +\extrarowheight=\dimen108 +\NC@list=\toks17 +\extratabsurround=\skip113 +\backup@length=\skip114 +\TX@col@width=\dimen109 +\TX@old@table=\dimen110 +\TX@old@col=\dimen111 +\TX@target=\dimen112 +\TX@delta=\dimen113 +\TX@cols=\count101 +\TX@ftn=\toks18 +\heavyrulewidth=\dimen114 +\lightrulewidth=\dimen115 +\cmidrulewidth=\dimen116 +\belowrulesep=\dimen117 +\belowbottomsep=\dimen118 +\aboverulesep=\dimen119 +\abovetopsep=\dimen120 +\cmidrulesep=\dimen121 +\cmidrulekern=\dimen122 +\defaultaddspace=\dimen123 +\@cmidla=\count102 +\@cmidlb=\count103 +\@aboverulesep=\dimen124 +\@belowrulesep=\dimen125 +\@thisruleclass=\count104 +\@lastruleclass=\count105 +\@thisrulewidth=\dimen126 +\ctableftskip=\skip115 +\ctabrightskip=\skip116 +\abovecolumnspenalty=\count106 +\@linestogo=\count107 +\@cellstogo=\count108 +\@cellsincolumn=\count109 +\crtok=\toks19 +\@mincolumnwidth=\dimen127 +\c@newflo@tctr=\count110 +\mem@margin@floatbox=\box26 +\@contcwidth=\skip117 +\@contindw=\skip118 +\abovecaptionskip=\skip119 +\belowcaptionskip=\skip120 +\subfloattopskip=\skip121 +\subfloatcapskip=\skip122 +\subfloatcaptopadj=\skip123 +\subfloatbottomskip=\skip124 +\subfloatlabelskip=\skip125 +\subfloatcapmargin=\dimen128 +\c@@contsubnum=\count111 +\m@mscap@capbox=\box27 +\m@mscap@fbox=\box28 +\sidecapsep=\dimen129 +\sidecapwidth=\dimen130 +\m@m@tempdima=\dimen131 +\m@mscapraise=\dimen132 +\sidecapraise=\dimen133 +\m@mscapmainwidth=\dimen134 +\m@mscaplkern=\dimen135 +\beforeepigraphskip=\skip126 +\afterepigraphskip=\skip127 +\epigraphwidth=\skip128 +\epigraphrule=\skip129 +LaTeX Info: Redefining \em on input line 7514. +LaTeX Info: Redefining \emph on input line 7522. +\tocentryskip=\skip130 +\tocbaseline=\skip131 +\cftparskip=\skip132 +\cftbeforebookskip=\skip133 +\cftbookindent=\dimen136 +\cftbooknumwidth=\dimen137 +\cftbeforepartskip=\skip134 +\cftpartindent=\skip135 +\cftpartnumwidth=\skip136 +\cftbeforechapterskip=\skip137 +\cftchapterindent=\skip138 +\cftchapternumwidth=\skip139 +\cftbeforesectionskip=\skip140 +\cftsectionindent=\skip141 +\cftsectionnumwidth=\skip142 +\cftbeforesubsectionskip=\skip143 +\cftsubsectionindent=\skip144 +\cftsubsectionnumwidth=\skip145 +\cftbeforesubsubsectionskip=\skip146 +\cftsubsubsectionindent=\skip147 +\cftsubsubsectionnumwidth=\skip148 +\cftbeforeparagraphskip=\skip149 +\cftparagraphindent=\skip150 +\cftparagraphnumwidth=\skip151 +\cftbeforesubparagraphskip=\skip152 +\cftsubparagraphindent=\skip153 +\cftsubparagraphnumwidth=\skip154 +\prechapterprecisshift=\dimen138 +\c@maxsecnumdepth=\count112 +\bibindent=\dimen139 +\bibitemsep=\skip155 +\indexcolsep=\skip156 +\indexrule=\skip157 +\indexmarkstyle=\toks20 +\@indexbox=\insert233 +\glossarycolsep=\dimen140 +\glossaryrule=\dimen141 +\sideparvshift=\skip158 +\sideins=\insert232 +\sidebartopsep=\skip159 +\sidebarhsep=\skip160 +\sidebarvsep=\skip161 +\sidebarwidth=\skip162 +\footmarkwidth=\skip163 +\footmarksep=\skip164 +\footparindent=\skip165 +\footinsdim=\skip166 +\footinsv@r=\insert231 +\@mpfootinsv@r=\insert230 +\m@m@k=\count113 +\m@m@h=\dimen142 +\m@mipn@skip=\skip167 +\sidefootins=\insert229 +\sidefootadjust=\skip168 +\sidefootheight=\skip169 +\sidefoothsep=\skip170 +\sidefootvsep=\skip171 +\sidefootwidth=\skip172 +\m@mdownsf=\skip173 +\c@sidefootnote=\count114 +\sidefootmarkwidth=\skip174 +\sidefootmarksep=\skip175 +\sidefootparindent=\skip176 +\c@pagenote=\count115 +\c@pagenoteshadow=\count116 +\mem@pn@lastkern=\skip177 +\every@verbatim=\toks21 +\afterevery@verbatim=\toks22 +\verbatim@line=\toks23 +\tab@position=\count117 +\verbatim@in@stream=\read1 +\verbatimindent=\skip178 +\verbatim@out=\write3 +\bvboxsep=\skip179 +\c@memfbvline=\count118 +\c@bvlinectr=\count119 +\bvnumlength=\skip180 +\fb@frw=\dimen143 +\fb@frh=\dimen144 +\FrameRule=\dimen145 +\FrameSep=\dimen146 +\c@cp@cntr=\count120 +LaTeX Info: Redefining \: on input line 11980. +LaTeX Info: Redefining \! on input line 11982. +\c@ism@mctr=\count121 +\c@xsm@mctr=\count122 +\c@csm@mctr=\count123 +\c@ksm@mctr=\count124 +\c@xksm@mctr=\count125 +\c@cksm@mctr=\count126 +\c@msm@mctr=\count127 +\c@xmsm@mctr=\count128 +\c@cmsm@mctr=\count129 +\c@bsm@mctr=\count130 +\c@workm@mctr=\count131 +\c@sheetsequence=\count132 +\c@lastsheet=\count133 +\c@lastpage=\count134 +\c@figure=\count135 +\c@lofdepth=\count136 +\cftbeforefigureskip=\skip181 +\cftfigureindent=\skip182 +\cftfigurenumwidth=\skip183 +\c@table=\count137 +\c@lotdepth=\count138 +\cftbeforetableskip=\skip184 +\cfttableindent=\skip185 +\cfttablenumwidth=\skip186 +Package abstract [2008/07/23] emulated by memoir. +Package appendix [2008/07/23] emulated by memoir. +Package array [2008/09/09] emulated by memoir. +Package booktabs [2008/07/23] emulated by memoir. +Package ccaption [2008/07/23] emulated by memoir. +Package changepage [2008/07/23] emulated by memoir. +Package chngcntr [2008/07/23] emulated by memoir. +Package chngpage [2008/07/23] emulated by memoir. +Package crop emulated by memoir. +Package dcolumn [2008/07/23] emulated by memoir. +Package delarray [2008/07/23] emulated by memoir. +Package enumerate [2008/07/23] emulated by memoir. +Package epigraph [2008/07/23] emulated by memoir. +Package ifmtarg [2008/07/23] emulated by memoir. +Package index [2008/07/23] emulated by memoir. +Package makeidx [2008/07/23] emulated by memoir. +Package moreverb [2008/07/23] emulated by memoir. +Package mparhack [2008/07/23] emulated by memoir. +Package needspace [2008/07/23] emulated by memoir. +Package newfile [2008/07/23] emulated by memoir. +Package nextpage [2008/07/23] emulated by memoir. +Package pagenote [2008/07/23] emulated by memoir. +Package parskip [2008/07/23] emulated by memoir. +Package patchcmd [2008/07/23] emulated by memoir. +Package setspace [2008/07/23] emulated by memoir. +Package shortvrb [2008/07/23] emulated by memoir. +Package showidx [2008/07/23] emulated by memoir. +Package tabularx [2008/07/23] emulated by memoir. +Package titleref [2008/07/23] emulated by memoir. +Package titling [2008/07/23] emulated by memoir. +Package tocbibind [2008/07/23] emulated by memoir. +Package tocloft [2008/07/23] emulated by memoir. +Package tocvsec2 [2008/07/23] emulated by memoir. +Package verbatim [2008/07/23] emulated by memoir. +Package verse [2008/07/23] emulated by memoir. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/mempatch.sty +Package: mempatch 2009/07/24 v6.0f Patches for memoir class v1.6180339 +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-ucs.sty +Package: memhangul-ucs 2014/06/12UCS Hangul Package for memoir class + +memhangul-ucs v1.7.7 2014/06/12 +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/dhucs.sty +Package: dhucs 2012/11/08 v5.3.2 typesetting UTF-8 Korean documents + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/kotexutf.sty +Package: kotexutf 2013/10/20 v1.5 typesetting UTF-8 Korean documents + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/inputenc.sty +Package: inputenc 2014/04/30 v1.2b Input encoding file +\inpenc@prehook=\toks24 +\inpenc@posthook=\toks25 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/utf8.def +File: utf8.def 2014/09/29 v1.1m UTF-8 support for inputenc +Now handling font encoding OML ... +... no UTF-8 mapping file for font encoding OML +Now handling font encoding T1 ... +... processing UTF-8 mapping file for font encoding T1 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.dfu +File: t1enc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A1 (decimal 161) + defining Unicode char U+00A3 (decimal 163) + defining Unicode char U+00AB (decimal 171) + defining Unicode char U+00BB (decimal 187) + defining Unicode char U+00BF (decimal 191) + defining Unicode char U+00C0 (decimal 192) + defining Unicode char U+00C1 (decimal 193) + defining Unicode char U+00C2 (decimal 194) + defining Unicode char U+00C3 (decimal 195) + defining Unicode char U+00C4 (decimal 196) + defining Unicode char U+00C5 (decimal 197) + defining Unicode char U+00C6 (decimal 198) + defining Unicode char U+00C7 (decimal 199) + defining Unicode char U+00C8 (decimal 200) + defining Unicode char U+00C9 (decimal 201) + defining Unicode char U+00CA (decimal 202) + defining Unicode char U+00CB (decimal 203) + defining Unicode char U+00CC (decimal 204) + defining Unicode char U+00CD (decimal 205) + defining Unicode char U+00CE (decimal 206) + defining Unicode char U+00CF (decimal 207) + defining Unicode char U+00D0 (decimal 208) + defining Unicode char U+00D1 (decimal 209) + defining Unicode char U+00D2 (decimal 210) + defining Unicode char U+00D3 (decimal 211) + defining Unicode char U+00D4 (decimal 212) + defining Unicode char U+00D5 (decimal 213) + defining Unicode char U+00D6 (decimal 214) + defining Unicode char U+00D8 (decimal 216) + defining Unicode char U+00D9 (decimal 217) + defining Unicode char U+00DA (decimal 218) + defining Unicode char U+00DB (decimal 219) + defining Unicode char U+00DC (decimal 220) + defining Unicode char U+00DD (decimal 221) + defining Unicode char U+00DE (decimal 222) + defining Unicode char U+00DF (decimal 223) + defining Unicode char U+00E0 (decimal 224) + defining Unicode char U+00E1 (decimal 225) + defining Unicode char U+00E2 (decimal 226) + defining Unicode char U+00E3 (decimal 227) + defining Unicode char U+00E4 (decimal 228) + defining Unicode char U+00E5 (decimal 229) + defining Unicode char U+00E6 (decimal 230) + defining Unicode char U+00E7 (decimal 231) + defining Unicode char U+00E8 (decimal 232) + defining Unicode char U+00E9 (decimal 233) + defining Unicode char U+00EA (decimal 234) + defining Unicode char U+00EB (decimal 235) + defining Unicode char U+00EC (decimal 236) + defining Unicode char U+00ED (decimal 237) + defining Unicode char U+00EE (decimal 238) + defining Unicode char U+00EF (decimal 239) + defining Unicode char U+00F0 (decimal 240) + defining Unicode char U+00F1 (decimal 241) + defining Unicode char U+00F2 (decimal 242) + defining Unicode char U+00F3 (decimal 243) + defining Unicode char U+00F4 (decimal 244) + defining Unicode char U+00F5 (decimal 245) + defining Unicode char U+00F6 (decimal 246) + defining Unicode char U+00F8 (decimal 248) + defining Unicode char U+00F9 (decimal 249) + defining Unicode char U+00FA (decimal 250) + defining Unicode char U+00FB (decimal 251) + defining Unicode char U+00FC (decimal 252) + defining Unicode char U+00FD (decimal 253) + defining Unicode char U+00FE (decimal 254) + defining Unicode char U+00FF (decimal 255) + defining Unicode char U+0102 (decimal 258) + defining Unicode char U+0103 (decimal 259) + defining Unicode char U+0104 (decimal 260) + defining Unicode char U+0105 (decimal 261) + defining Unicode char U+0106 (decimal 262) + defining Unicode char U+0107 (decimal 263) + defining Unicode char U+010C (decimal 268) + defining Unicode char U+010D (decimal 269) + defining Unicode char U+010E (decimal 270) + defining Unicode char U+010F (decimal 271) + defining Unicode char U+0110 (decimal 272) + defining Unicode char U+0111 (decimal 273) + defining Unicode char U+0118 (decimal 280) + defining Unicode char U+0119 (decimal 281) + defining Unicode char U+011A (decimal 282) + defining Unicode char U+011B (decimal 283) + defining Unicode char U+011E (decimal 286) + defining Unicode char U+011F (decimal 287) + defining Unicode char U+0130 (decimal 304) + defining Unicode char U+0131 (decimal 305) + defining Unicode char U+0132 (decimal 306) + defining Unicode char U+0133 (decimal 307) + defining Unicode char U+0139 (decimal 313) + defining Unicode char U+013A (decimal 314) + defining Unicode char U+013D (decimal 317) + defining Unicode char U+013E (decimal 318) + defining Unicode char U+0141 (decimal 321) + defining Unicode char U+0142 (decimal 322) + defining Unicode char U+0143 (decimal 323) + defining Unicode char U+0144 (decimal 324) + defining Unicode char U+0147 (decimal 327) + defining Unicode char U+0148 (decimal 328) + defining Unicode char U+014A (decimal 330) + defining Unicode char U+014B (decimal 331) + defining Unicode char U+0150 (decimal 336) + defining Unicode char U+0151 (decimal 337) + defining Unicode char U+0152 (decimal 338) + defining Unicode char U+0153 (decimal 339) + defining Unicode char U+0154 (decimal 340) + defining Unicode char U+0155 (decimal 341) + defining Unicode char U+0158 (decimal 344) + defining Unicode char U+0159 (decimal 345) + defining Unicode char U+015A (decimal 346) + defining Unicode char U+015B (decimal 347) + defining Unicode char U+015E (decimal 350) + defining Unicode char U+015F (decimal 351) + defining Unicode char U+0160 (decimal 352) + defining Unicode char U+0161 (decimal 353) + defining Unicode char U+0162 (decimal 354) + defining Unicode char U+0163 (decimal 355) + defining Unicode char U+0164 (decimal 356) + defining Unicode char U+0165 (decimal 357) + defining Unicode char U+016E (decimal 366) + defining Unicode char U+016F (decimal 367) + defining Unicode char U+0170 (decimal 368) + defining Unicode char U+0171 (decimal 369) + defining Unicode char U+0178 (decimal 376) + defining Unicode char U+0179 (decimal 377) + defining Unicode char U+017A (decimal 378) + defining Unicode char U+017B (decimal 379) + defining Unicode char U+017C (decimal 380) + defining Unicode char U+017D (decimal 381) + defining Unicode char U+017E (decimal 382) + defining Unicode char U+200C (decimal 8204) + defining Unicode char U+2013 (decimal 8211) + defining Unicode char U+2014 (decimal 8212) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201A (decimal 8218) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) + defining Unicode char U+201E (decimal 8222) + defining Unicode char U+2030 (decimal 8240) + defining Unicode char U+2031 (decimal 8241) + defining Unicode char U+2039 (decimal 8249) + defining Unicode char U+203A (decimal 8250) + defining Unicode char U+2423 (decimal 9251) +) +Now handling font encoding OT1 ... +... processing UTF-8 mapping file for font encoding OT1 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ot1enc.dfu +File: ot1enc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A1 (decimal 161) + defining Unicode char U+00A3 (decimal 163) + defining Unicode char U+00B8 (decimal 184) + defining Unicode char U+00BF (decimal 191) + defining Unicode char U+00C5 (decimal 197) + defining Unicode char U+00C6 (decimal 198) + defining Unicode char U+00D8 (decimal 216) + defining Unicode char U+00DF (decimal 223) + defining Unicode char U+00E6 (decimal 230) + defining Unicode char U+00EC (decimal 236) + defining Unicode char U+00ED (decimal 237) + defining Unicode char U+00EE (decimal 238) + defining Unicode char U+00EF (decimal 239) + defining Unicode char U+00F8 (decimal 248) + defining Unicode char U+0131 (decimal 305) + defining Unicode char U+0141 (decimal 321) + defining Unicode char U+0142 (decimal 322) + defining Unicode char U+0152 (decimal 338) + defining Unicode char U+0153 (decimal 339) + defining Unicode char U+2013 (decimal 8211) + defining Unicode char U+2014 (decimal 8212) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) +) +Now handling font encoding OMS ... +... processing UTF-8 mapping file for font encoding OMS + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/omsenc.dfu +File: omsenc.dfu 2014/09/29 v1.1m UTF-8 support for inputenc + defining Unicode char U+00A7 (decimal 167) + defining Unicode char U+00B6 (decimal 182) + defining Unicode char U+00B7 (decimal 183) + defining Unicode char U+2020 (decimal 8224) + defining Unicode char U+2021 (decimal 8225) + defining Unicode char U+2022 (decimal 8226) +) +Now handling font encoding OMX ... +... no UTF-8 mapping file for font encoding OMX +Now handling font encoding U ... +... no UTF-8 mapping file for font encoding U + defining Unicode char U+00A9 (decimal 169) + defining Unicode char U+00AA (decimal 170) + defining Unicode char U+00AE (decimal 174) + defining Unicode char U+00BA (decimal 186) + defining Unicode char U+02C6 (decimal 710) + defining Unicode char U+02DC (decimal 732) + defining Unicode char U+200C (decimal 8204) + defining Unicode char U+2026 (decimal 8230) + defining Unicode char U+2122 (decimal 8482) + defining Unicode char U+2423 (decimal 9251) +)) +(/usr/local/texlive/2014/texmf-dist/tex/plain/kotex-plain/kotexutf-core.tex +\unih@ngulpoint=\count139 +\dhucs@emph@raise=\dimen147 +) +Now handling font encoding LUC ... +... processing UTF-8 mapping file for font encoding LUC + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/lucenc.dfu +File: lucenc.dfu 2007/09/05 UTF-8 support for dhucs + defining Unicode char U+00B7 (decimal 183) + defining Unicode char U+2018 (decimal 8216) + defining Unicode char U+2019 (decimal 8217) + defining Unicode char U+201C (decimal 8220) + defining Unicode char U+201D (decimal 8221) + defining Unicode char U+3001 (decimal 12289) + defining Unicode char U+3002 (decimal 12290) + defining Unicode char U+3008 (decimal 12296) + defining Unicode char U+3009 (decimal 12297) + defining Unicode char U+300A (decimal 12298) + defining Unicode char U+300B (decimal 12299) + defining Unicode char U+300C (decimal 12300) + defining Unicode char U+300D (decimal 12301) + defining Unicode char U+300E (decimal 12302) + defining Unicode char U+300F (decimal 12303) + defining Unicode char U+3010 (decimal 12304) + defining Unicode char U+3011 (decimal 12305) + defining Unicode char U+3014 (decimal 12308) + defining Unicode char U+3015 (decimal 12309) + defining Unicode char U+3016 (decimal 12310) + defining Unicode char U+3017 (decimal 12311) + defining Unicode char U+3018 (decimal 12312) + defining Unicode char U+3019 (decimal 12313) + defining Unicode char U+301A (decimal 12314) + defining Unicode char U+301B (decimal 12315) + defining Unicode char U+FF01 (decimal 65281) + defining Unicode char U+FF08 (decimal 65288) + defining Unicode char U+FF09 (decimal 65289) + defining Unicode char U+FF0C (decimal 65292) + defining Unicode char U+FF0E (decimal 65294) + defining Unicode char U+FF1A (decimal 65306) + defining Unicode char U+FF1B (decimal 65307) + defining Unicode char U+FF1C (decimal 65308) + defining Unicode char U+FF1D (decimal 65309) + defining Unicode char U+FF1E (decimal 65310) + defining Unicode char U+FF1F (decimal 65311) + defining Unicode char U+FF3B (decimal 65339) + defining Unicode char U+FF3D (decimal 65341) + defining Unicode char U+FF5B (decimal 65371) + defining Unicode char U+FF5D (decimal 65373) + defining Unicode char U+FF61 (decimal 65377) + defining Unicode char U+FF62 (decimal 65378) + defining Unicode char U+FF63 (decimal 65379) + defining Unicode char U+FF64 (decimal 65380) + defining Unicode char U+FF65 (decimal 65381) +) +\@josa=\count140 +\josatoks=\toks26 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/cjk-ko/kolabels-utf.sty +Package: kolabels-utf 2015/03/20 v1.5 UTF-8 Hangul item labels +))) +\memh@hu=\dimen148 +\t@nch@ars=\skip187 +\tmp@XXbox=\box29 +\tmp@XXdim=\dimen149 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-common.sty +Package: memhangul-common 2014/06/12 +\pghgheadwidth=\dimen150 +\c@APPchapter=\count141 +\c@APPsection=\count142 +\c@APPsubsection=\count143 +\togetheightoffont=\box30 +\htoffnt=\skip188 +\divnoteskip=\skip189 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memh +angul-patch.sty) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3packages/xparse/xparse.sty +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3.sty +Package: expl3 2015/03/01 v5547 L3 programming layer (loader) + +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex +Package: expl3 2015/03/01 v5547 L3 programming layer (code) +L3 Module: l3bootstrap 2015/02/28 v5542 L3 Bootstrap code +L3 Module: l3names 2015/02/24 v5535 L3 Namespace for primitives +L3 Module: l3basics 2015/01/27 v5500 L3 Basic definitions +L3 Module: l3expan 2014/11/27 v5472 L3 Argument expansion +L3 Module: l3tl 2015/01/27 v5500 L3 Token lists +L3 Module: l3str 2015/03/01 v5545 L3 Strings +L3 Module: l3seq 2014/08/23 v5354 L3 Sequences and stacks +L3 Module: l3int 2015/02/21 v5529 L3 Integers +\c_max_int=\count144 +\l_tmpa_int=\count145 +\l_tmpb_int=\count146 +\g_tmpa_int=\count147 +\g_tmpb_int=\count148 +L3 Module: l3quark 2014/08/23 v5354 L3 Quarks +L3 Module: l3prg 2014/08/23 v5354 L3 Control structures +\g__prg_map_int=\count149 +L3 Module: l3clist 2014/08/23 v5354 L3 Comma separated lists +L3 Module: l3token 2014/09/15 v5422 L3 Experimental token manipulation +L3 Module: l3prop 2014/08/23 v5354 L3 Property lists +L3 Module: l3msg 2015/02/26 v5537 L3 Messages +L3 Module: l3file 2014/08/24 v5369 L3 File and I/O operations +\l_iow_line_count_int=\count150 +\l__iow_target_count_int=\count151 +\l__iow_current_line_int=\count152 +\l__iow_current_word_int=\count153 +\l__iow_current_indentation_int=\count154 +L3 Module: l3skip 2014/08/23 v5354 L3 Dimensions and skips +\c_zero_dim=\dimen151 +\c_max_dim=\dimen152 +\l_tmpa_dim=\dimen153 +\l_tmpb_dim=\dimen154 +\g_tmpa_dim=\dimen155 +\g_tmpb_dim=\dimen156 +\c_zero_skip=\skip190 +\c_max_skip=\skip191 +\l_tmpa_skip=\skip192 +\l_tmpb_skip=\skip193 +\g_tmpa_skip=\skip194 +\g_tmpb_skip=\skip195 +\c_zero_muskip=\muskip10 +\c_max_muskip=\muskip11 +\l_tmpa_muskip=\muskip12 +\l_tmpb_muskip=\muskip13 +\g_tmpa_muskip=\muskip14 +\g_tmpb_muskip=\muskip15 +L3 Module: l3keys 2015/01/27 v5500 L3 Key-value interfaces +\g__keyval_level_int=\count155 +\l_keys_choice_int=\count156 +L3 Module: l3fp 2014/08/22 v5336 L3 Floating points +\c__fp_leading_shift_int=\count157 +\c__fp_middle_shift_int=\count158 +\c__fp_trailing_shift_int=\count159 +\c__fp_big_leading_shift_int=\count160 +\c__fp_big_middle_shift_int=\count161 +\c__fp_big_trailing_shift_int=\count162 +\c__fp_Bigg_leading_shift_int=\count163 +\c__fp_Bigg_middle_shift_int=\count164 +\c__fp_Bigg_trailing_shift_int=\count165 +L3 Module: l3box 2014/08/23 v5354 L3 Experimental boxes +\c_empty_box=\box31 +\l_tmpa_box=\box32 +\l_tmpb_box=\box33 +\g_tmpa_box=\box34 +\g_tmpb_box=\box35 +L3 Module: l3coffins 2014/08/23 v5354 L3 Coffin code layer +\l__coffin_internal_box=\box36 +\l__coffin_internal_dim=\dimen157 +\l__coffin_offset_x_dim=\dimen158 +\l__coffin_offset_y_dim=\dimen159 +\l__coffin_x_dim=\dimen160 +\l__coffin_y_dim=\dimen161 +\l__coffin_x_prime_dim=\dimen162 +\l__coffin_y_prime_dim=\dimen163 +\c_empty_coffin=\box37 +\l__coffin_aligned_coffin=\box38 +\l__coffin_aligned_internal_coffin=\box39 +\l_tmpa_coffin=\box40 +\l_tmpb_coffin=\box41 +\l__coffin_display_coffin=\box42 +\l__coffin_display_coord_coffin=\box43 +\l__coffin_display_pole_coffin=\box44 +\l__coffin_display_offset_dim=\dimen164 +\l__coffin_display_x_dim=\dimen165 +\l__coffin_display_y_dim=\dimen166 +L3 Module: l3color 2014/08/23 v5354 L3 Experimental color support +L3 Module: l3candidates 2015/03/01 v5544 L3 Experimental additions to l3kernel +\l__box_top_dim=\dimen167 +\l__box_bottom_dim=\dimen168 +\l__box_left_dim=\dimen169 +\l__box_right_dim=\dimen170 +\l__box_top_new_dim=\dimen171 +\l__box_bottom_new_dim=\dimen172 +\l__box_left_new_dim=\dimen173 +\l__box_right_new_dim=\dimen174 +\l__box_internal_box=\box45 +\l__coffin_bounding_shift_dim=\dimen175 +\l__coffin_left_corner_dim=\dimen176 +\l__coffin_right_corner_dim=\dimen177 +\l__coffin_bottom_corner_dim=\dimen178 +\l__coffin_top_corner_dim=\dimen179 +\l__coffin_scaled_total_height_dim=\dimen180 +\l__coffin_scaled_width_dim=\dimen181 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3unicode-data.def +File: l3unicode-data.def 2015/03/01 v5544 L3 Unicode data +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3pdfmode.def +File: l3pdfmode.def 2015/03/01 v5544 L3 Experimental driver: PDF mode +\l__driver_color_stack_int=\count166 +)) +Package: xparse 2014/11/25 v5471 L3 Experimental document command parser +\l__xparse_current_arg_int=\count167 +\l__xparse_m_args_int=\count168 +\l__xparse_mandatory_args_int=\count169 +\l__xparse_processor_int=\count170 +\l__xparse_v_nesting_int=\count171 +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hologo.sty +Package: hologo 2012/04/26 v1.10 A logo collection with bookmark support (HO) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty +Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty +Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty +Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO) + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/etexcmds.sty +Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) +Package etexcmds Info: Could not find \expanded. +(etexcmds) That can mean that you are not using pdfTeX 1.50 or +(etexcmds) that some package has redefined \expanded. +(etexcmds) In the latter case, load this package earlier. +)) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty +Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty +Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO +) +Package pdftexcmds Info: LuaTeX not detected. +Package pdftexcmds Info: \pdf@primitive is available. +Package pdftexcmds Info: \pdf@ifprimitive is available. +Package pdftexcmds Info: \pdfdraftmode found. +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifvtex.sty +Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO) +Package ifvtex Info: VTeX not detected. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/kvoptions.sty +Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO) +) +Package hologo Info: Using driver `pdftex'. +) +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \XeTeX with sig. '' on line 1132. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \XeLaTeX with sig. '' on line 1132. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \LuaTeX with sig. '' on line 1138. +................................................. +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \LuaLaTeX with sig. '' on line 1138. +................................................. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-interword.sty +Package: memucs-interword 2007/09/22 +\BASE@FONTsize=\dimen182 +\ORIG@spaceskip=\skip196 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-setspace.sty +Package: memucs-setspace 2007/09/21 6.7-memucs8 Contributed and Supported LaTeX +2e package + +Package: `memucs-setspace', a modified version of `setspace', 6.7-memucs8 <2007 +/09/21> +) + defining Unicode char U+00BC (decimal 188) + defining Unicode char U+00BD (decimal 189) + defining Unicode char U+00BE (decimal 190) + defining Unicode char U+02D0 (decimal 720) + defining Unicode char U+2025 (decimal 8229) + defining Unicode char U+2026 (decimal 8230) + defining Unicode char U+2015 (decimal 8213) + defining Unicode char U+2312 (decimal 8978) +\raisedotdim=\dimen183 +\dhucs@emph@width=\dimen184 +\useremphraisedim=\dimen185 +\tmp_user_emph_dim=\dimen186 +................................................. +. LaTeX info: "xparse/define-command" +. +. Defining command \useremph with sig. 'oom' on line 541. +................................................. +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/nanu +mfontsel.sty +Package: nanumfontsel +) +(/usr/local/texlive/2014/texmf-dist/tex/generic/pdftex/glyphtounicode.tex) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-utf/contrib/dhucs-cmap.sty +Package: dhucs-cmap 2007/06/16 searchable PDF for dhucs upon pdftex +) +\ob@hu=\dimen187 +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hyperref.sty +Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty +Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO) + + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty +Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO) +Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO) +Package hobsub Info: Skipping package `infwarerr' (already loaded). +Package hobsub Info: Skipping package `ltxcmds' (already loaded). +Package hobsub Info: Skipping package `ifluatex' (already loaded). +Package hobsub Info: Skipping package `ifvtex' (already loaded). +Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO) +Package hobsub Info: Skipping package `ifpdf' (already loaded). +Package hobsub Info: Skipping package `etexcmds' (already loaded). +Package hobsub Info: Skipping package `kvsetkeys' (already loaded). +Package hobsub Info: Skipping package `kvdefinekeys' (already loaded). +Package hobsub Info: Skipping package `pdftexcmds' (already loaded). +Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO) +Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO +) +Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO) +Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO) +) +Package hobsub Info: Skipping package `hobsub' (already loaded). +Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO) +Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO) +Package: xcolor-patch 2011/01/30 xcolor patch +Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO) +Package atveryend Info: \enddocument detected (standard20110627). +Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO) +Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO) +Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO) +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/auxhook.sty +Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO) +) +\@linkdim=\dimen188 +\Hy@linkcounter=\count172 +\Hy@pagecounter=\count173 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/pd1enc.def +File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO) +Now handling font encoding PD1 ... +... no UTF-8 mapping file for font encoding PD1 +) +\Hy@SavedSpaceFactor=\count174 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/hyperref.cfg +File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive +) +Package hyperref Info: Option `unicode' set `true' on input line 4319. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/puenc.def +File: puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO) +Now handling font encoding PU ... +... no UTF-8 mapping file for font encoding PU +) +Package hyperref Info: Hyper figures OFF on input line 4443. +Package hyperref Info: Link nesting OFF on input line 4448. +Package hyperref Info: Hyper index ON on input line 4451. +Package hyperref Info: Plain pages OFF on input line 4458. +Package hyperref Info: Backreferencing OFF on input line 4463. +Package hyperref Info: Implicit mode ON; LaTeX internals redefined. +Package hyperref Info: Bookmarks ON on input line 4688. +\c@Hy@tempcnt=\count175 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/url/url.sty +\Urlmuskip=\muskip16 +Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. +) +LaTeX Info: Redefining \url on input line 5041. +\XeTeXLinkMargin=\dimen189 +\Fld@menulength=\count176 +\Field@Width=\dimen190 +\Fld@charsize=\dimen191 +Package hyperref Info: Hyper figures OFF on input line 6295. +Package hyperref Info: Link nesting OFF on input line 6300. +Package hyperref Info: Hyper index ON on input line 6303. +Package hyperref Info: backreferencing OFF on input line 6310. +Package hyperref Info: Link coloring OFF on input line 6315. +Package hyperref Info: Link coloring with OCG OFF on input line 6320. +Package hyperref Info: PDF/A mode OFF on input line 6325. +LaTeX Info: Redefining \ref on input line 6365. +LaTeX Info: Redefining \pageref on input line 6369. +\Hy@abspage=\count177 +\c@Item=\count178 +\c@Hfootnote=\count179 +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/memoir/memhfixc.sty +Package: memhfixc 2013/05/30 v1.17 nameref/hyperref package fixes for memoir cl +ass +\c@memhycontfloat=\count180 +\c@Hpagenote=\count181 +) + +Package hyperref Message: Driver: hpdftex. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def +File: hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX +\Fld@listcount=\count182 +\c@bookmark@seq@number=\count183 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty +Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO) +Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 +82. +) +Normal \skip register pool exhausted, switching to extended pool. +\Hy@SectionHShift=\skip256 +) +\@ensp=\skip257 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-t +oclof.sty) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-k +oreanappendix.sty)) +HANGUL DRIVER: kotex-utf +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/fapa +persize.sty +Package: fapapersize +\fa@stockheight=\skip258 +\fa@stockwidth=\skip259 +\fa@paperheight=\skip260 +\fa@paperwidth=\skip261 +\fa@leftmargin=\skip262 +\fa@rightmargin=\skip263 +\fa@uppermargin=\skip264 +\fa@lowermargin=\skip265 +\fa@tmplenwd=\skip266 +\fa@tmplenht=\skip267 +\tmp@dim=\dimen192 +) + +****************************************************** +Stock height and width: 325.215pt by 216.81pt +Top and edge trims: 0pt and 0pt +Page height and width: 325.215pt by 216.81pt +Text height and width: 275.59851pt by 168pt +Spine and edge margins: 24.06537pt and 24.06537pt +Upper and lower margins: 24.06537pt and 25.55112pt +Headheight and headsep: 11.22011pt and 10pt +Footskip: 11.22011pt +Columnsep and columnseprule: 10pt and 0pt +Marginparsep and marginparwidth: 7pt and 10.06537pt +Sidecapsep and sidecapwidth: 7pt and 85pt +Sidebarhsep and sidebarwidth: 7pt and 85pt +Sidebarvsep and sidebartopsep: 10pt and 0pt +Sidebarheight: 546.99997pt +Sidefoothsep and sidefootwidth: 7pt and 85pt +Sidefootvsep and sidefootheight: 10pt and 546.99997pt +****************************************************** + +(/usr/local/texlive/2014/texmf-dist/tex/latex/was/gensymb.sty +Package: gensymb 2003/07/02 v1.0 (WaS) +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/allrunes.sty +Package: allrunes 2004/01/06 v2.1 allrunes package. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty +Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC) +) +LaTeX Info: Redefining \mdseries on input line 43. +LaTeX Info: Redefining \bfseries on input line 55. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/arc.fd +Now handling font encoding LRC ... +... no UTF-8 mapping file for font encoding LRC +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/ara.fd +Now handling font encoding LRA ... +... no UTF-8 mapping file for font encoding LRA +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/arn.fd +Now handling font encoding LRN ... +... no UTF-8 mapping file for font encoding LRN +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/art.fd +Now handling font encoding LRT ... +... no UTF-8 mapping file for font encoding LRT +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/arl.fd +Now handling font encoding LRL ... +... no UTF-8 mapping file for font encoding LRL +) +(/usr/local/texlive/2014/texmf-dist/tex/latex/allrunes/arm.fd +Now handling font encoding LRM ... +... no UTF-8 mapping file for font encoding LRM +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty +Package: fontenc 2005/09/27 v1.99g Standard LaTeX package + +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.def +File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file +LaTeX Font Info: Redeclaring font encoding T1 on input line 43. +)) +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype.sty +Package: microtype 2013/05/23 v2.5a Micro-typographical refinements (RS) +\MT@toks=\toks27 +\MT@count=\count184 +LaTeX Info: Redefining \textls on input line 766. +\MT@outer@kern=\dimen193 +LaTeX Info: Redefining \textmicrotypecontext on input line 1285. +\MT@listname@count=\count185 + +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype-pdftex.def +File: microtype-pdftex.def 2013/05/23 v2.5a Definitions specific to pdftex (RS) + +LaTeX Info: Redefining \lsstyle on input line 915. +LaTeX Info: Redefining \lslig on input line 915. +\MT@outer@space=\skip268 +) +Package microtype Info: Loading configuration file microtype.cfg. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/microtype.cfg +File: microtype.cfg 2013/05/23 v2.5a microtype main configuration file (RS) +)) + +LaTeX Warning: Unused global option(s): + [nohan]. + +(./userguide_NON.aux) +\openout1 = `userguide_NON.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LUC/nanummj/m/n on input line 35. +LaTeX Font Info: Try loading font information for LUC+nanummj on input line +35. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/nanumtype1/lucnanummj.fd +File: lucnanummj.fd 2013/02/12 v0.1 Nanum Myeongjo font definitions +) +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRC/fruc/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRA/frua/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRN/frun/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRT/frut/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRL/frul/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. +LaTeX Font Info: Checking defaults for LRM/frum/m/n on input line 35. +LaTeX Font Info: ... okay on input line 35. + defining Unicode char U+00B7 (decimal 183) + +(/usr/local/texlive/2014/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/memu +cs-gremph.sty +Package: memucs-gremph +LaTeX Info: Redefining \itshape on input line 74. +LaTeX Info: Redefining \slshape on input line 78. +) +\AtBeginShipoutBox=\box46 +Package hyperref Info: Link coloring OFF on input line 35. + +(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/nameref.sty +Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section + +(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/gettitlestring.sty +Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO) +) +\c@section@level=\count186 +) +Redoing nameref's sectioning +Redoing nameref's label +LaTeX Info: Redefining \nameref on input line 35. +LaTeX Info: Redefining \ref on input line 35. +LaTeX Info: Redefining \pageref on input line 35. +LaTeX Info: Redefining \nameref on input line 35. +(./userguide_NON.out) (./userguide_NON.out) +\@outlinefile=\write4 +\openout4 = `userguide_NON.out'. + +LaTeX Info: Redefining \celsius on input line 35. +Package gensymb Info: Faking symbols for \degree and \celsius on input line 35. + + + +Package gensymb Warning: Not defining \perthousand. + +LaTeX Info: Redefining \ohm on input line 35. +Package gensymb Info: Using \Omega for \ohm on input line 35. + +Package gensymb Warning: Not defining \micro. + + +Package microtype Warning: Command \pickup@font is not defined as expected. +(microtype) Patching it anyway. Some things may break. +(microtype) Double-check whether micro-typography is indeed +(microtype) applied to the document. +(microtype) (Hint: Turn on `verbose' mode). + +LaTeX Info: Redefining \microtypecontext on input line 35. +Package microtype Info: Generating PDF output. +Package microtype Info: Character protrusion enabled (level 2). +Package microtype Info: Using default protrusion set `alltext'. +Package microtype Info: Automatic font expansion enabled (level 2), +(microtype) stretch: 20, shrink: 20, step: 1, non-selected. +Package microtype Info: Using default expansion set `basictext'. +Package microtype Info: No adjustment of tracking. +Package microtype Info: No adjustment of interword spacing. +Package microtype Info: No adjustment of character kerning. +Package microtype Info: ... Loading configuration file mt-cmr.cfg. +(/usr/local/texlive/2014/texmf-dist/tex/latex/microtype/mt-cmr.cfg +File: mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman +(RS) +) +Package microtype Info: Setting up font `T1/cmr/m/n/9' on input line 35. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `T1/cmr/m/n/12' on input line 38. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-frun.cfg. +Package microtype Info: Setting up font `LRN/frun/m/n/12' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `LRN/frun/m/n/8' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `LRN/frun/m/n/9' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `T1/cmr/m/n/10' on input line 38. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/10' on input line 38. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/7' on input line 38. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/5' on input line 38. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmm.cfg. +Package microtype Info: Setting up font `OML/cmm/m/it/10' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/7' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/5' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmsy.cfg. +Package microtype Info: Setting up font `OMS/cmsy/m/n/10' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/7' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/5' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: ... No configuration file mt-cmex.cfg. +Package microtype Info: Setting up font `OMX/cmex/m/n/10' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line 38. +Package microtype Info: Setting up font `OMX/cmex/m/n/7' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 38. +Package microtype Info: Setting up font `OMX/cmex/m/n/5' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `LRN/frun/m/n/10' on input line 38. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. + [1 + +{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] +Package microtype Info: Setting up font `T1/cmr/m/n/8' on input line 43. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/8' on input line 43. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OT1/cmr/m/n/6' on input line 43. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/8' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OML/cmm/m/it/6' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/8' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/6' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 43. +Package microtype Info: Setting up font `OMX/cmex/m/n/8' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 43. +Package microtype Info: Setting up font `OMX/cmex/m/n/6' on input line 43. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `T1/cmr/m/n/10.95' on input line 45. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `T1/cmr/bx/n/10.95' on input line 45. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `LRN/frun/m/n/10.95' on input line 45. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. + +(./userguide_NON.toc +Package microtype Info: Setting up font `OT1/cmr/m/n/9' on input line 1. +Package microtype Info: ... Loading protrusion list `cmr-OT1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `OML/cmm/m/it/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `OMS/cmsy/m/n/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 1. +Package microtype Info: Setting up font `OMX/cmex/m/n/9' on input line 1. +Package microtype Info: ... No protrusion. +Package microtype Info: ... No expansion. +) [2] [3] +Package microtype Info: Setting up font `T1/cmr/m/it/9' on input line 52. +Package microtype Info: ... Loading protrusion list `cmr-it-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... Applying non-selected expansion (list `default'). + +Overfull \hbox (2.66536pt too wide) in paragraph at lines 52--53 +\T1/cmr/m/it/9 (-20) Terrarum \T1/cmr/m/n/9 (-20) is a rogue-like world which t +hings + [] + +Package microtype Info: Setting up font `T1/cmr/bx/n/10' on input line 54. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. + +Overfull \hbox (8.8805pt too wide) in paragraph at lines 55--57 +\T1/cmr/m/n/9 (-20) any proper wagon, which should be equipped + [] + +LaTeX Font Info: Try loading font information for OMS+cmr on input line 57. +(/usr/local/texlive/2014/texmf-dist/tex/latex/base/omscmr.fd +File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions +) +LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <9> not available +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 57. + [4] +Package microtype Info: Setting up font `T1/cmr/m/n/6' on input line 67. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `T1/cmr/m/n/7' on input line 67. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... Applying non-selected expansion (list `default'). +Package microtype Info: Setting up font `T1/cmr/m/n/5' on input line 67. +Package microtype Info: ... Loading protrusion list `cmr-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-default'. +Package microtype Info: ... No expansion. +Package microtype Info: Setting up font `T1/cmr/m/it/7' on input line 67. +Package microtype Info: ... Loading protrusion list `cmr-it-T1'. +Package microtype Info: ... : First loading protrusion list `cmr-it'. +Package microtype Info: ... Applying non-selected expansion (list `default'). + +Overfull \hbox (0.10089pt too wide) in paragraph at lines 67--68 +\T1/cmr/m/n/9 (-20) (qw-erty)/FRST (cole-mak)/.OEW (dvo-rak) + [] + + +Overfull \hbox (1.53387pt too wide) in paragraph at lines 67--68 +\T1/cmr/m/n/9 (-20) are pressed with your lit-tle fin-ger and more + [] + + +Overfull \hbox (14.0552pt too wide) in paragraph at lines 70--71 +\T1/cmr/m/n/9 (-20) The world is com-posed with \T1/cmr/m/it/9 (-20) three-dime +nsional + [] + + +Overfull \hbox (2.49854pt too wide) in paragraph at lines 70--71 +\T1/cmr/m/n/9 (-20) average-height man should oc-cupy two tiles + [] + +[5] +Overfull \hbox (2.65175pt too wide) in paragraph at lines 74--75 +[]\T1/cmr/m/n/9 (-20) i.e. The man men-tioned above can climb + [] + + +Overfull \hbox (10.09767pt too wide) in paragraph at lines 79--80 +[]\T1/cmr/m/n/9 (-20) There are sev-eral con-ti-nents on the planet, + [] + +[6] [7] [8] [9] +\tf@toc=\write5 +\openout5 = `userguide_NON.toc'. + +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 110. +Package atveryend Info: Empty hook `AfterLastShipout' on input line 110. + (./userguide_NON.aux) +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 110. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 110. +Package rerunfilecheck Info: File `userguide_NON.out' has not changed. +(rerunfilecheck) Checksum: EACEFCDFBD0E641FA0F45916ED9CA16C;1514. +Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 110. + ) +Here is how much of TeX's memory you used: + 21734 strings out of 493109 + 367180 string characters out of 6135004 + 447351 words of memory out of 5000000 + 24886 multiletter control sequences out of 15000+600000 + 21684 words of font info for 76 fonts, out of 8000000 for 9000 + 1141 hyphenation exceptions out of 8191 + 76i,11n,51p,10423b,444s stack positions out of 5000i,500n,10000p,200000b,80000s +{/usr/local/texlive/2014/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc} + +Output written on userguide_NON.pdf (9 pages, 239486 bytes). +PDF statistics: + 193 PDF objects out of 1000 (max. 8388607) + 150 compressed objects within 2 object streams + 24 named destinations out of 1000 (max. 500000) + 24673 words of extra memory for PDF output out of 24883 (max. 10000000) + diff --git a/res/books/userguide_NON.out b/res/books/userguide_NON.out new file mode 100644 index 000000000..0d5c71d38 --- /dev/null +++ b/res/books/userguide_NON.out @@ -0,0 +1,12 @@ +\BOOKMARK [1][-]{section.0.1}{\376\377\000I\000n\000t\000r\000o\000d\000u\000c\000t\000i\000o\000n}{}% 1 +\BOOKMARK [2][-]{subsection.0.1.1}{\376\377\000L\000u\000g\000g\000a\000g\000e\000\040\000p\000r\000e\000p\000a\000r\000a\000t\000i\000o\000n}{section.0.1}% 2 +\BOOKMARK [1][-]{section.0.2}{\376\377\000M\000o\000v\000i\000n\000g\000\040\000a\000r\000o\000u\000n\000d}{}% 3 +\BOOKMARK [2][-]{subsection.0.2.1}{\376\377\000Y\000o\000u\000r\000\040\000f\000i\000r\000s\000t\000\040\000t\000o\000d\000d\000l\000i\000n\000g}{section.0.2}% 4 +\BOOKMARK [1][-]{section.0.3}{\376\377\000W\000o\000r\000l\000d}{}% 5 +\BOOKMARK [2][-]{subsection.0.3.1}{\376\377\000G\000e\000o\000g\000r\000a\000g\000h\000y}{section.0.3}% 6 +\BOOKMARK [2][-]{subsection.0.3.2}{\376\377\000D\000a\000y\000\040\000a\000n\000d\000\040\000n\000i\000g\000h\000t}{section.0.3}% 7 +\BOOKMARK [2][-]{subsection.0.3.3}{\376\377\000B\000i\000o\000m\000e}{section.0.3}% 8 +\BOOKMARK [2][-]{subsection.0.3.4}{\376\377\000V\000e\000g\000e\000t\000a\000t\000i\000o\000n}{section.0.3}% 9 +\BOOKMARK [2][-]{subsection.0.3.5}{\376\377\000R\000a\000c\000e\000s\000\040\000a\000n\000d\000\040\000t\000h\000e\000i\000r\000\040\000c\000i\000v\000i\000l\000i\000s\000a\000t\000i\000o\000n\000s}{section.0.3}% 10 +\BOOKMARK [2][-]{subsection.0.3.6}{\376\377\000C\000o\000m\000m\000o\000n\000\040\000a\000n\000i\000m\000a\000l\000s}{section.0.3}% 11 +\BOOKMARK [1][-]{section.0.4}{\376\377\000W\000o\000r\000l\000d\000\040\000c\000r\000e\000a\000t\000i\000o\000n}{}% 12 diff --git a/res/books/userguide_NON.pdf b/res/books/userguide_NON.pdf new file mode 100644 index 000000000..2f822ab51 Binary files /dev/null and b/res/books/userguide_NON.pdf differ diff --git a/res/books/userguide_NON.synctex.gz b/res/books/userguide_NON.synctex.gz new file mode 100644 index 000000000..3ca99691b Binary files /dev/null and b/res/books/userguide_NON.synctex.gz differ diff --git a/res/books/userguide_NON.tex b/res/books/userguide_NON.tex new file mode 100644 index 000000000..d78484522 --- /dev/null +++ b/res/books/userguide_NON.tex @@ -0,0 +1,110 @@ +\documentclass[stock,9pt,nohan]{oblivoir} + +\usepackage{fapapersize} +\usefapapersize{3in,4.5in,.333in,*,.333in,.333in} +\usepackage{gensymb} +\usepackage{allrunes} +\usepackage[T1]{fontenc} + +\linespread{1.25} +\frenchspacing + +\usepackage[verbose=true]{microtype} + +\renewcommand{\contentsname}{\arnfamily efnisifirlit} + +\newcommand{\gamever}{\arnfamily alfa:f} + +\newcommand{\Terrarumemph}{\arnfamily +iArþin+} + +\newcommand{\boktitle}{\arnfamily ferþahantbukin:furiR \\ \Terrarumemph himR \vskip1ex \small nurAna:utkafa \normalsize} + +\newcommand{\bokauthor}{\arnfamily \small fra\Terrarumemph hAfuntum} + +\newcommand{\bokdate}{\arnfamily\small basa:uiþ:\gamever} + +\title{\boktitle} +\author{\bokauthor} +\date{\bokdate} + +\epigraphposition{center} +\setlength{\epigraphrule}{0pt} +\setlength{\epigraphwidth}{2in} +\setlength{\beforeepigraphskip}{72pt} + +\begin{document} + +\maketitle + +\newpage + +\epigraph{ +Uilkumin! You are most likely an explorer, or a brave and courageous traveller who seeks uncharted planet in the universe, or an aspiring ruler-to-be who want rule your own world. We hope this little book to be an useful guide for whatever ambitious work you are up to. +}{Writers} + +\tableofcontents* + +\newpage + +\newpage + +\section{Introduction} +\emph{Terrarum} is a rogue-like world which things are happening on real-time basis as in real-time role-playing games. + + \subsection{Luggage preparation} + Trip to \emph{Terrarum} can be achieved with any proper wagon, which should be equipped with: + \begin{itemize} + \item 64-bit wagon engine + \item \emph{Java Roving Environs 8} or higher + \item A wagon engine with cylinder size of 2 GB, 4 GB or more is recommended + \item Free luggage space of 4 GB or more + \end{itemize} + +\section{Moving around} +The control is omnidirectional. In other words, \emph{not} cell-based. + + \subsection{Your first toddling} + Your default moving around uses ESDF (qwerty)\slash FRST (colemak)\slash .OEW (dvorak) pedals for default `WASD', in order for you to provide more modifier pedals that are pressed with your little finger and more comfort to pedalboards with \emph{Topre} actuators.\footnote{Writers of this book recommend you to use pedalboard with \emph{Cherry MX Red} actuators.} + +\section{World} +The world is composed with \emph{three-dimensional} blocks, which is the feature you should keep in mind during your trip. Each block is a metre-size and a metre-high, so an average-height man should occupy two tiles vertically, thus he is two-tile-high in the world. + +Cliffs are treated as a stair, and you---as well as any living things in the world---can climb the tile as you would use a stair. Climbable cliff height is calculated as $$ floor( \frac{height_{you}}{height_{cliff}} ) $$ + +i.e. The man mentioned above can climb one-tile-high cliff as a stair. + + \subsection{Geograghy} + The world---the continent you play on---features mountains, valleys, rivers, lakes, ocean, caves, etc. + + There are several continents on the planet, which are created by you. While there are multiple continents, however, your wagon cannot travel interplanetary. + + Each time you create a continent, unless you specified a \emph{seed}\footnote{Refer to Section 4.}, will never be the same. + + \subsection{Day and night} + A day in \emph{Terrarum} world---the planet---is 72 000 seconds. A second in Earth would be equivalent to 60 (depends on the operational speed of your wagon) planetary seconds, which consists a planetary minute. + + \subsection{Biome} + Average temperature in meadows\slash forests\slash mountains are kept to pleasant 298 K\slash 25 \degree{}C\slash 77 \degree{}F. However, you might want to re-think before setting your feet on the snowy area, unless you are prepared well. While the Snow Queen % ---one of the devteam +will not hinder any access to her territory, in the same time she will not be welcoming. + + \subsection{Vegetation} + + + \subsection{Races and their civilisations} + + + \subsection{Common animals} + + +\section{World creation} + You can specify some parameters when you create a continent. Controllable parameters are: + \begin{itemize} + \item World size (affects distance between tribes) + \item Ore amount (affects civilisation) + \item Vegetation (more trees means more building materials) + \item Seed (each randomly-created continent has its own \emph{seed} for landform. Leave it blank to randomise) + \end{itemize} + + You can name your continent while in creation, so try to come up with a good name! + +\end{document} \ No newline at end of file diff --git a/res/books/userguide_NON.toc b/res/books/userguide_NON.toc new file mode 100644 index 000000000..eafafaca8 --- /dev/null +++ b/res/books/userguide_NON.toc @@ -0,0 +1,12 @@ +\contentsline {section}{\numberline {1}Introduction}{4}{section.0.1} +\contentsline {subsection}{\numberline {1.1}Luggage preparation}{4}{subsection.0.1.1} +\contentsline {section}{\numberline {2}Moving around}{5}{section.0.2} +\contentsline {subsection}{\numberline {2.1}Your first toddling}{5}{subsection.0.2.1} +\contentsline {section}{\numberline {3}World}{5}{section.0.3} +\contentsline {subsection}{\numberline {3.1}Geograghy}{6}{subsection.0.3.1} +\contentsline {subsection}{\numberline {3.2}Day and night}{7}{subsection.0.3.2} +\contentsline {subsection}{\numberline {3.3}Biome}{7}{subsection.0.3.3} +\contentsline {subsection}{\numberline {3.4}Vegetation}{8}{subsection.0.3.4} +\contentsline {subsection}{\numberline {3.5}Races and their civilisations}{8}{subsection.0.3.5} +\contentsline {subsection}{\numberline {3.6}Common animals}{8}{subsection.0.3.6} +\contentsline {section}{\numberline {4}World creation}{8}{section.0.4} diff --git a/res/graphics/art/.gitattributes b/res/graphics/art/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/res/graphics/art/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/res/graphics/backgroundGradientColour.png b/res/graphics/backgroundGradientColour.png new file mode 100755 index 000000000..9b1677fba Binary files /dev/null and b/res/graphics/backgroundGradientColour.png differ diff --git a/res/graphics/background_black.png b/res/graphics/background_black.png new file mode 100755 index 000000000..2468e31f8 Binary files /dev/null and b/res/graphics/background_black.png differ diff --git a/res/graphics/background_white.png b/res/graphics/background_white.png new file mode 100755 index 000000000..06db969a5 Binary files /dev/null and b/res/graphics/background_white.png differ diff --git a/res/graphics/black_body_col_1000_40000_K b/res/graphics/black_body_col_1000_40000_K new file mode 100644 index 000000000..0b0071c40 Binary files /dev/null and b/res/graphics/black_body_col_1000_40000_K differ diff --git a/res/graphics/breakAnim.png b/res/graphics/breakAnim.png new file mode 100755 index 000000000..eb0d46c03 Binary files /dev/null and b/res/graphics/breakAnim.png differ diff --git a/res/graphics/environment_color_overlay.png b/res/graphics/environment_color_overlay.png new file mode 100644 index 000000000..a79f39f49 Binary files /dev/null and b/res/graphics/environment_color_overlay.png differ diff --git a/res/graphics/fonts/.gitattributes b/res/graphics/fonts/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/res/graphics/fonts/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/res/graphics/fonts/Braille.png b/res/graphics/fonts/Braille.png new file mode 100755 index 000000000..2fd4ee11a Binary files /dev/null and b/res/graphics/fonts/Braille.png differ diff --git a/res/graphics/fonts/NanumMyeongjoBold.otf b/res/graphics/fonts/NanumMyeongjoBold.otf new file mode 100755 index 000000000..e72f33b2a Binary files /dev/null and b/res/graphics/fonts/NanumMyeongjoBold.otf differ diff --git a/res/graphics/fonts/OSXBSD8x16.png b/res/graphics/fonts/OSXBSD8x16.png new file mode 100755 index 000000000..03ec53a76 Binary files /dev/null and b/res/graphics/fonts/OSXBSD8x16.png differ diff --git a/res/graphics/fonts/SpoqaHanSans_original/LICENSE.txt b/res/graphics/fonts/SpoqaHanSans_original/LICENSE.txt new file mode 100644 index 000000000..f1a20ac1a --- /dev/null +++ b/res/graphics/fonts/SpoqaHanSans_original/LICENSE.txt @@ -0,0 +1,97 @@ +Copyright (c) , (), +with Reserved Font Name . +Copyright (c) , (), +with Reserved Font Name . +Copyright (c) , (). + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Bold.ttf.REMOVED.git-id b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Bold.ttf.REMOVED.git-id new file mode 100644 index 000000000..e92a90686 --- /dev/null +++ b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Bold.ttf.REMOVED.git-id @@ -0,0 +1 @@ +3790f323e7b580e4a3e9cef26971ef6fefa3c115 \ No newline at end of file diff --git a/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Regular.ttf.REMOVED.git-id b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Regular.ttf.REMOVED.git-id new file mode 100644 index 000000000..04dbc95b1 --- /dev/null +++ b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Regular.ttf.REMOVED.git-id @@ -0,0 +1 @@ +51c019d06edb995f50384896092d2a2b688413e5 \ No newline at end of file diff --git a/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Thin.ttf.REMOVED.git-id b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Thin.ttf.REMOVED.git-id new file mode 100644 index 000000000..f0f2c4d02 --- /dev/null +++ b/res/graphics/fonts/SpoqaHanSans_original/Spoqa Han Sans Thin.ttf.REMOVED.git-id @@ -0,0 +1 @@ +e52e9cde33e9c7beaf219e61ed73ff0e9a4960a4 \ No newline at end of file diff --git a/res/graphics/fonts/ascii_majuscule.png b/res/graphics/fonts/ascii_majuscule.png new file mode 100644 index 000000000..4a9db6787 Binary files /dev/null and b/res/graphics/fonts/ascii_majuscule.png differ diff --git a/res/graphics/fonts/ascii_majuscule_black.png b/res/graphics/fonts/ascii_majuscule_black.png new file mode 100644 index 000000000..4ed95f6a0 Binary files /dev/null and b/res/graphics/fonts/ascii_majuscule_black.png differ diff --git a/res/graphics/fonts/ascii_special_ef.png b/res/graphics/fonts/ascii_special_ef.png new file mode 100644 index 000000000..f964a5226 Binary files /dev/null and b/res/graphics/fonts/ascii_special_ef.png differ diff --git a/res/graphics/fonts/ascii_special_ef_black.png b/res/graphics/fonts/ascii_special_ef_black.png new file mode 100644 index 000000000..b1f14a604 Binary files /dev/null and b/res/graphics/fonts/ascii_special_ef_black.png differ diff --git a/res/graphics/fonts/dovah_cuneiform.ttf b/res/graphics/fonts/dovah_cuneiform.ttf new file mode 100755 index 000000000..ad6c7296a Binary files /dev/null and b/res/graphics/fonts/dovah_cuneiform.ttf differ diff --git a/res/graphics/fonts/futhark.png b/res/graphics/fonts/futhark.png new file mode 100644 index 000000000..a76e4ceb2 Binary files /dev/null and b/res/graphics/fonts/futhark.png differ diff --git a/res/graphics/fonts/futhark_black.png b/res/graphics/fonts/futhark_black.png new file mode 100644 index 000000000..03b28e9bd Binary files /dev/null and b/res/graphics/fonts/futhark_black.png differ diff --git a/res/graphics/fonts/han_atlas.png b/res/graphics/fonts/han_atlas.png new file mode 100644 index 000000000..f2521c2aa Binary files /dev/null and b/res/graphics/fonts/han_atlas.png differ diff --git a/res/graphics/fonts/han_atlas_black.png b/res/graphics/fonts/han_atlas_black.png new file mode 100644 index 000000000..57cd7e2e6 Binary files /dev/null and b/res/graphics/fonts/han_atlas_black.png differ diff --git a/res/graphics/fonts/latin_0xff.png b/res/graphics/fonts/latin_0xff.png new file mode 100644 index 000000000..a307abef7 Binary files /dev/null and b/res/graphics/fonts/latin_0xff.png differ diff --git a/res/graphics/fonts/numberSmallBulky.png b/res/graphics/fonts/numberSmallBulky.png new file mode 100755 index 000000000..a689aed71 Binary files /dev/null and b/res/graphics/fonts/numberSmallBulky.png differ diff --git a/res/graphics/fonts/numberSmallStandard.png b/res/graphics/fonts/numberSmallStandard.png new file mode 100755 index 000000000..908ddd964 Binary files /dev/null and b/res/graphics/fonts/numberSmallStandard.png differ diff --git a/res/graphics/fonts/theleagueofmovabletype/Junction.otf b/res/graphics/fonts/theleagueofmovabletype/Junction.otf new file mode 100755 index 000000000..a28926bbf Binary files /dev/null and b/res/graphics/fonts/theleagueofmovabletype/Junction.otf differ diff --git a/res/graphics/fonts/theleagueofmovabletype/LeagueGothic-Regular.otf b/res/graphics/fonts/theleagueofmovabletype/LeagueGothic-Regular.otf new file mode 100755 index 000000000..6cd753faf Binary files /dev/null and b/res/graphics/fonts/theleagueofmovabletype/LeagueGothic-Regular.otf differ diff --git a/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM-Italic.otf b/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM-Italic.otf new file mode 100755 index 000000000..ff085371f Binary files /dev/null and b/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM-Italic.otf differ diff --git a/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM.otf b/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM.otf new file mode 100755 index 000000000..5f1e91f85 Binary files /dev/null and b/res/graphics/fonts/theleagueofmovabletype/OFLGoudyStM.otf differ diff --git a/res/graphics/fonts/theleagueofmovabletype/Open Font License FAQ.markdown b/res/graphics/fonts/theleagueofmovabletype/Open Font License FAQ.markdown new file mode 100755 index 000000000..fb857fdf1 --- /dev/null +++ b/res/graphics/fonts/theleagueofmovabletype/Open Font License FAQ.markdown @@ -0,0 +1,317 @@ + Version 1.1-update2 - 23 August 2010 | (See http://scripts.sil.org/OFL for updates) + +Frequently Asked Questions +================================================================== + +### About the SIL Open Font License (OFL) + + +Contents of This FAQ +--------------------- + +1. Using and Distributing Fonts Licensed Under the OFL + +2. Using OFL Fonts for Web Pages and Online Webfont Services + +3. Modifying OFL-Licensed Fonts + +4. Licensing Your Original Fonts Under the OFL + +5. Choosing Reserved Font Names + +6. About the Fontlog + +7. Making Contributions to OFL Projects + +8. About the License Itself + +9. About SIL International + + +1. Using and Distributing Fonts Licensed Under the OFL +========================================================== + +### 1.1 Can I use the fonts for a book or other print publication? +>> Yes. You can mention the font and author in the book's colophon if you wish, but that is not required. + +### 1.2 Can the fonts be included with Free/Libre and Open Source Software collections such as GNU/Linux and BSD distributions? +>> Yes! Fonts licensed under the OFL can be freely included alongside other software under FLOSS (Free/Libre and Open Source Software) licenses. Since fonts are typically aggregated with, not merged into, existing software, there is little need to be concerned about incompatibility with existing software licenses. You may also repackage the fonts and the accompanying components in a .rpm or .deb package and include them in distribution CD/DVDs and online repositories. (Also see section 5.9 about rebuilding from source.) + +### 1.3 I want to distribute the fonts with my program. Does this mean my program also has to be Free/Libre and Open Source Software? +>> No. Only the portions based on the Font Software are required to be released under the OFL. The intent of the license is to allow aggregation or bundling with software under restricted licensing as well. + +### 1.4 Can I sell a software package that includes these fonts? +>> Yes, you can do this with both the Original Version and a Modified Version of the fonts. Examples of bundling made possible by the OFL would include: word processors, design and publishing applications, training and educational software, games and entertainment software, mobile device applications, etc. + +### 1.5 Can I include the fonts on a CD of freeware or commercial fonts? +>> Yes, as long some other font or software is also on the disk, so the OFL font is not sold by itself. + +### 1.6 Why won't the OFL let me sell the fonts alone? +>> The intent is to keep people from making money by simply redistributing the fonts. The only people who ought to profit directly from the fonts should be the original authors, and those authors have kindly given up potential direct income to distribute their fonts under the OFL. Please honour and respect their contribution! + +### 1.7 What about sharing OFL fonts with friends on a CD, DVD or USB stick? +>> You are very welcome to share open fonts with friends, family and colleagues through removable media. Just remember to include the full font package, including any copyright notices and licensing information as available in OFL.txt. In the case where you sell the font, it has to come bundled with software. + +### 1.8 Can I host the fonts on a web site for others to use? +>> Yes, as long as you make the full font package available. In most cases it may be best to point users to the main site that distributes the Original Version so they always get the most recent stable and complete version. See also discussion of webfonts in Section 2. + +### 1.9 Can I host the fonts on a server for use over our internal network? +>> Yes. If the fonts are transferred from the server to the client computer by means that allow them to be used even if the computer is no longer attached to the network, the full package (copyright notices, licensing information, etc.) should be included. + +### 1.10 Does the full OFL license text always need to accompany the font? +>> The only situation in which an OFL font can be distributed without the text of the OFL (either in a separate file or in font metadata), is when a font is embedded in a document or bundled within a program. In the case of metadata included within a font, it is legally sufficient to include only a link to the text of the OFL on http://scripts.sil.org/OFL, but we strongly recommend against this. Most modern font formats include metadata fields that will accept the full OFL text, and full inclusion increases the likelihood that users will understand and properly apply the license. + +### 1.11 What do you mean by 'embedding'? How does that differ from other means of distribution? +>> By 'embedding' we mean inclusion of the font in a document or file in a way that makes extraction (and redistribution) difficult or clearly discouraged. In many cases the names of embedded fonts might also not be obvious to those reading the document, the font data format might be altered, and only a subset of the font - only the glyphs required for the text - might be included. Any other means of delivering a font to another person is considered 'distribution', and needs to be accompanied by any copyright notices and licensing information available in OFL.txt. + +### 1.12 So can I embed OFL fonts in my document? +>> Yes, either in full or a subset. The restrictions regarding font modification and redistribution do not apply, as the font is not intended for use outside the document. + +### 1.13 Does embedding alter the license of the document itself? +>> No. Referencing or embedding an OFL font in any document does not change the license of the document itself. The requirement for fonts to remain under the OFL does not apply to any document created using the fonts and their derivatives. Similarly, creating any kind of graphic using a font under OFL does not make the resulting artwork subject to the OFL. + +### 1.14 If OFL fonts are extracted from a document in which they are embedded (such as a PDF file), what can be done with them? Is this a risk to author(s)? +>> The few utilities that can extract fonts embedded in a PDF will typically output limited amounts of outlines - not a complete font. To create a working font from this method is much more difficult and time consuming than finding the source of the original OFL font. So there is little chance that an OFL font would be extracted and redistributed inappropriately through this method. Even so, copyright laws address any misrepresentation of authorship. All Font Software released under the OFL and marked as such by the author(s) is intended to remain under this license regardless of the distribution method, and cannot be redistributed under any other license. We strongly discourage any font extraction - we recommend directly using the font sources instead - but if you extract font outlines from a document, please be considerate: use your common sense and respect the work of the author(s) and the licensing model. + +### 1.15 What about distributing fonts with a document? Within a compressed folder structure? Is it distribution, bundling or embedding? +>> Certain document formats may allow the inclusion of an unmodified font within their file structure which consists of a compressed folder containing the various resources forming the document (such as pictures and thumbnails). Including fonts within such a structure is understood as being different from embedding but rather similar to bundling (or mere aggregation) which the license explicitly allows. In this case the font is conveyed unchanged whereas embedding a font usually transforms it from the original format. The OFL does not allow anyone to extract the font from such a structure to then redistribute it under another license. The explicit permission to redistribute and embed does not cancel the requirement for the Font Software to remain under the license chosen by its author(s). + +### 1.16 What about ebooks shipping with open fonts? +>> The requirements differ depending on whether the fonts are linked, embedded or distributed (bundled or aggregated). Some ebook formats use web technologies to do font linking via @font-face, others are designed for font embedding, some use fonts distributed with the document or reading software, and a few rely solely on the fonts already present on the target system. The license requirements depend on the type of inclusion as discussed in 1.15. + +### 1.17 Can Font Software released under the OFL be subject to URL-based access restrictions methods or DRM (Digital Rights Management) mechanisms? +>> Yes, but these issues are out-of-scope for the OFL. The license itself neither encourages their use nor prohibits them since such mechanisms are not implemented in the components of the Font Software but through external software. Such restrictions are put in place for many different purposes corresponding to various usage scenarios. One common example is to limit potentially dangerous cross-site scripting attacks. However, in the spirit of libre/open fonts and unrestricted writing systems, we strongly encourage open sharing and reuse of OFL fonts, and the establishment of an environment where such restrictions are unnecessary. Note that whether you wish to use such mechanisms or you prefer not to, you must still abide by the rules set forth by the OFL when using fonts released by their authors under this license. Derivative fonts must be licensed under the OFL, even if they are part of a service for which you charge fees and/or for which access to source code is restricted. You may not sell the fonts on their own - they must be part of a larger software package, bundle or subscription plan. For example, even if the OFL font is distributed in a software package or via an online service using a DRM mechanism, the user would still have the right to extract that font, use, study, modify and redistribute it under the OFL. + +### 1.18 I've come across a font released under the OFL. How can I easily get more information about the Original Version? How can I know where it stands compared to the Original Version or other Modified Versions? +>> Consult the copyright statement(s) in the license for ways to contact the original authors. Consult the FONTLOG for information on how the font differs from the Original Version, and get in touch with the various contributors via the information in the acknowledgement section. Please consider using the Original Versions of the fonts whenever possible. + +### 1.19 What do you mean in condition 4? Can you provide examples of abusive promotion / endorsement / advertisement vs. normal acknowledgement? +>> The intent is that the goodwill and reputation of the author(s) should not be used in a way that makes it sound like the original author(s) endorse or approve of a specific Modified Version or software bundle. For example, it would not be right to advertise a word processor by naming the author(s) in a listing of software features, or to promote a Modified Version on a web site by saying "designed by ...". However, it would be appropriate to acknowledge the author(s) if your software package has a list of people who deserve thanks. We realize that this can seem to be a grey area, but the standard used to judge an acknowledgement is that if the acknowledgement benefits the author(s) it is allowed, but if it primarily benefits other parties, or could reflect poorly on the author(s), then it is not. + +2. Using OFL Fonts for Webpages and Online Webfont Services +=============================================================== + +### 2.1 Can I make webpages using these fonts? +>> Yes! Go ahead! Using CSS (Cascading Style Sheets) is recommended. Your three best options: +>> - referring directly in your stylesheet to open fonts which may be available on the user's system +>> - providing links to download the full package of the font - either from your own website or from elsewhere - so users can install it themselves +>> - using @font-face to distribute the font directly to browsers. This is recommended and explicitly allowed by the licensing model because it is distribution. The font file itself is distributed with other components of the webpage. It is not embedded in the webpage but referenced through a web address which will cause the browser to retrieve and use the corresponding font to render the webpage (see 1.11 and 1.15 for details related to embedding fonts into documents). As you take advantage of the @font-face cross-platform standard, be aware that webfonts are often tuned for a web environment and not intended for installation and use outside a browser. The reasons in favour of using webfonts are to allow design of dynamic text elements instead of static graphics, to make it easier for content to be localized and translated, indexed and searched, and all this with cross-platform open standards without depending on restricted extensions or plugins. You should check the CSS cascade (the order in which fonts are being called or delivered to your users) when testing. + +### 2.2 Can I make and use WOFF (Web Open Font Format) versions of OFL fonts? +>> Yes, but you need to be careful. A change in font format normally is considered modification, and Reserved Font Names (RFNs) cannot be used. Because of the design of the WOFF format, however, it is possible to create a WOFF version that is not considered modification, and so would not require a name change. You are allowed to create, use and distribute a WOFF version of an OFL font without changing the font name, but only if: + +>> - the original font data remains unchanged except for WOFF compression, and +>> - WOFF-specific metadata is either omitted altogether or present and includes, unaltered, the contents of all equivalent metadata in the original font. + +>> If the original font data or metadata is changed, or the WOFF-specific metadata is incomplete, the font must be considered a Modified Version, the OFL restrictions would apply and the name of the font must be changed: any RFNs cannot be used and copyright notices and licensing information must be included and cannot be deleted or modified. You must come up with a unique name - we recommend one corresponding to your domain or your particular web application. Be aware that only the original author(s) can use RFNs. This is to prevent collisions between a derivative tuned to your audience and the original upstream version and so to reduce confusion. + +>> Please note that most WOFF conversion tools and online services do not meet the two requirements listed above, and so their output must be considered a Modified Version. So be very careful and check to be sure that the tool or service you're using is compressing unchanged data and completely and accurately reflecting the original font metadata. + +### 2.3 What about other webfont formats such as EOT/EOTLite/CWT/etc.? +>> In most cases these formats alter the original font data more than WOFF, and do not completely support appropriate metadata, so their use must be considered modification and RFNs may not be used. + +### 2.4 Can I make OFL fonts available through webfont online services? +>> Yes, you are welcome to include OFL fonts in online webfont services as long as you properly meet all the conditions of the license. The origin and open status of the font should be clear among the other fonts you are hosting. Authorship, copyright notices and license information must be sufficiently visible to your users or subscribers so they know where the font comes from and the rights granted by the author(s). Make sure the font file contains the needed copyright notice(s) and licensing information in its metadata. Please double-check the accuracy of every field to prevent contradictory information. Other font formats, including EOT/EOTLite/CWT and superior alternatives like WOFF, already provide fields for this information. Remember that if you modify the font within your library or convert it to another format for any reason the OFL restrictions apply and you need to change the names accordingly. Please respect the author's wishes as expressed in the OFL and do not misrepresent original designers and their work. Don't lump quality open fonts together with dubious freeware or public domain fonts. Consider how you can best work with the original designers and foundries, support their efforts and generate goodwill that will benefit your service. (See 1.17 for details related to URL-based access restrictions methods or DRM mechanisms). + +### 2.5 Can I make and publish CMS themes or templates that use OFL fonts? Can I include the fonts themselves in the themes or templates? Can I sell the whole package? +>> Yes, you are very welcome to integrate open fonts into themes and templates for your preferred CMS and make them more widely available. Be aware that you can only sell the fonts and your CMS add-on as part of a software bundle. (See 1.4 for details and examples about selling bundles). + +### 2.6 Some webfont formats and services provide ways of "optimising" the font for a particular website or web application; is that allowed? +>> Yes, it is permitted, but remember that these optimised versions are Modified Versions and so must follow OFL requirements like appropriate renaming. Also you need to bear in mind the other important parameters beyond compression, speed and responsiveness: you need to consider the audience of your particular website or web application, as choosing some optimisation parameters may turn out to be less than ideal for them. Subsetting by removing certain glyphs or features may seriously limit functionality of the font in various languages used by your users. It may also introduce degradation of quality in the rendering or specific bugs on the various platforms compared to the original font. In other words, remember that one person's optimised font may be another person's missing feature. Various advanced typographic features are also available through CSS and may provide the desired effects without the need to modify the font. + + +3. Modifying OFL-Licensed Fonts +==================================== + +### 3.1 Can I change the fonts? Are there any limitations to what things I can and cannot change? +>> You are allowed to change anything, as long as such changes do not violate the terms of the license. In other words, you are not allowed to remove the copyright statement(s) from the font, but you could put additional information into it that covers your contribution. + +### 3.2 I have a font that needs a few extra glyphs - can I take them from an OFL licensed font and copy them into mine? +>> Yes, but if you distribute that font to others it must be under the OFL, and include the information mentioned in condition 2 of the license. + +### 3.3 Can I charge people for my additional work? In other words, if I add a bunch of special glyphs and/or OpenType/Graphite code, can I sell the enhanced font? +>> Not by itself. Derivative fonts must be released under the OFL and cannot be sold by themselves. It is permitted, however, to include them in a larger software package (such as text editors, office suites or operating systems), even if the larger package is sold. In that case, you are strongly encouraged, but not required, to also make that derived font easily and freely available outside of the larger package. + +### 3.4 Can I pay someone to enhance the fonts for my use and distribution? +>> Yes. This is a good way to fund the further development of the fonts. Keep in mind, however, that if the font is distributed to others it must be under the OFL. You won't be able to recover your investment by exclusively selling the font, but you will be making a valuable contribution to the community. Please remember how you have benefited from the contributions of others. + +### 3.5 I need to make substantial revisions to the font to make it work with my program. It will be a lot of work, and a big investment, and I want to be sure that it can only be distributed with my program. Can I restrict its use? +>> No. If you redistribute a Modified Version of the font it must be under the OFL. You may not restrict it in any way beyond what the OFL permits and requires. This is intended to ensure that all released improvements to the fonts become available to everyone. But you will likely get an edge over competitors by being the first to distribute a bundle with the enhancements. Again, please remember how you have benefited from the contributions of others. + +### 3.6 Do I have to make any derivative fonts (including extended source files, build scripts, documentation, etc.) publicly available? +>> No, but please consider sharing your improvements with others. You may find that you receive in return more than what you gave. + +### 3.7 If a trademark is claimed in the OFL font, does that trademark need to remain in modified fonts? +>> Yes, any trademark notices must remain in any derivative fonts to respect trademark laws, but you may add any additional trademarks you claim, officially registered or not. For example if an OFL font called "Foo" contains a notice that "Foo is a trademark of Acme", then if you rename the font to "Bar" when creating a Modified Version, the new trademark notice could say "Foo is a trademark of Acme Inc. - Bar is a trademark of Roadrunner Technologies Ltd.". Trademarks work alongside the OFL and are not subject to the terms of the licensing agreement. Please refer to the appropriate trademark laws. + +4. Licensing Your Original Fonts Under the OFL +=================================================== + +### 4.1 Can I use the SIL OFL for my own fonts? +>> Yes! We heartily encourage everyone to use the OFL to distribute their own original fonts. It is a carefully constructed license that allows great freedom along with enough artistic integrity protection for the work of the authors as well as clear rules for other contributors and those who redistribute the fonts. The licensing model is used successfully by various organisations, both for-profit and not-for-profit, to release fonts of varying levels of scope and complexity. + +### 4.2 What do I have to do to apply the OFL to my font? +>> If you want to release your fonts under the OFL, we recommend you do the following: + +>> - **4.2.1** Put your copyright and Reserved Font Names information at the beginning of the main OFL.txt file in place of the dedicated placeholders. Include this file in your release package. + +>> - **4.2.2** Put your copyright and the OFL text with Reserved Font Names into your font files (the copyright and license fields). A link to the OFL text on the OFL web site is an acceptable (but not recommended) alternative. Also add this information to any other components (build scripts, glyph databases, documentation, test files, etc). Depending on the format of your fonts and sources, you can use template human-readable headers or machine-readable metadata. + +>> - **4.2.3** Write an initial FONTLOG.txt for your font and include it in the release package. + +>> - **4.2.4** Include the relevant practical documentation on the license by including the OFL-FAQ.txt in your package. + +### 4.3 Will you make my font OFL for me? +>> We won't do the work for you. We can, however, try to answer your questions, unfortunately we do not have the resources to review and check your font packages for correct use of the OFL. + +### 4.4 Will you distribute my OFL font for me? +>> No, although if the font is of sufficient quality and general interest we may include a link to it on our partial list of OFL fonts on the OFL web site. You may wish to consider other open font catalogs or hosting services, such as the Unifont Font Guide (http://unifont.org/fontguide), The League of Movable Type (http://theleagueofmovabletype.com), Kernest (http://kernest.com/) or the Open Font Library (http://openfontlibrary.org/), which despite the name has no direct relationship to the OFL or SIL. We do not endorse any particular catalog or hosting service - it is your responsibility to determine if the service is right for you. + +### 4.5 Why should I use the OFL for my fonts? +>> - to meet needs for fonts that can be modified to support minority languages +>> - to provide a legal and clear way for people to respect your work but still use it (and reduce piracy) +>> - to involve others in your font project +>> - to enable your fonts to be expanded with new weights and improved writing system/language support +>> - to allow more technical font developers to add features to your design (such as OpenType and Graphite support) +>> - to renew the life of an old font lying on your hard drive with no business model +>> - to allow your font to be included in Libre Software operating systems like Ubuntu +>> - to give your font world status and wide, unrestricted distribution +>> - to educate students about quality typeface and font design +>> - to expand your test base and get more useful feedback +>> - to extend your reach to new markets when users see your metadata and go to your website +>> - to get your font more easily into one of the webfont online services +>> - to attract attention for your commercial fonts +>> - to make money through webfont services +>> - to make money by bundling fonts with applications +>> - to make money adjusting and extending existing open fonts +>> - to get a better chance that foundations/NGOs/charities/companies who commission fonts will pick you +>> - to be part of a sharing design and development community +>> - to give back and contribute to a growing body of font sources + + +5. Choosing Reserved Font Names +=================================== + +### 5.1 What are Reserved Font Names? +>> These are font names, or portions of font names, that the author has chosen to reserve for use only with the Original Version of the font, or for Modified Version(s) created by the original author. + +### 5.2 Why can't I use the Reserved Font Names in my derivative font names? I'd like people to know where the design came from. +>> The best way to acknowledge the source of the design is to thank the original authors and any other contributors in the files that are distributed with your revised font (although no acknowledgement is required). The FONTLOG is a natural place to do this. Reserved Font Names ensure that the only fonts that have the original names are the unmodified Original Versions. This allows designers to maintain artistic integrity while allowing collaboration to happen. It eliminates potential confusion and name conflicts. When choosing a name, be creative and avoid names that reuse almost all the same letters in the same order or sound like the original. It will help everyone if Original Versions and Modified Versions can easily be distinguished from one another and from other derivatives. Any substitution and matching mechanism is outside the scope of the license. + +### 5.3 What do you mean by "primary name as presented to the user"? Are you referring to the font menu name? +>> Yes, this applies to the font menu name and other mechanisms that specify a font in a document. It would be fine, however, to keep a text reference to the original fonts in the description field, in your modified source file or in documentation provided alongside your derivative as long as no one could be confused that your modified source is the original. But you cannot use the Reserved Font Names in any way to identify the font to the user (unless the Copyright Holder(s) allow(s) it through a separate agreement). Users who install derivatives (Modified Versions) on their systems should not see any of the original Reserved Font Names in their font menus, for example. Again, this is to ensure that users are not confused and do not mistake one font for another and so expect features only another derivative or the Original Version can actually offer. + +### 5.4 Am I not allowed to use any part of the Reserved Font Names? +>> You may not use individual words from the Reserved Font Names, but you would be allowed to use parts of words, as long as you do not use any word from the Reserved Font Names entirely. We do not recommend using parts of words because of potential confusion, but it is allowed. For example, if "Foobar" was a Reserved Font Name, you would be allowed to use "Foo" or "bar", although we would not recommend it. Such an unfortunate choice would confuse the users of your fonts as well as make it harder for other designers to contribute. + +### 5.5 So what should I, as an author, identify as Reserved Font Names? +>> Original authors are encouraged to name their fonts using clear, distinct names, and only declare the unique parts of the name as Reserved Font Names. For example, the author of a font called "Foobar Sans" would declare "Foobar" as a Reserved Font Name, but not "Sans", as that is a common typographical term, and may be a useful word to use in a derivative font name. Reserved Font Names should also be single words. A font called "Flowing River" should have Reserved Font Names "Flowing" and "River", not "Flowing River". You also need to be very careful about reserving font names which are already linked to trademarks (whether registered or not) which you do not own. + +### 5.6 Do I, as an author, have to identify any Reserved Font Names? +>> No, but we strongly encourage you to do so. This is to avoid confusion between your work and Modified Versions. + +### 5.7 Are any names (such as the main font name) reserved by default? +>> No. That is a change to the license as of version 1.1. If you want any names to be Reserved Font Names, they must be specified after the copyright statement(s). + +### 5.8 Is there any situation in which I can use Reserved Font Names for a Modified Version? +>> The Copyright Holder(s) can give certain trusted parties the right to use any of the Reserved Font Names through separate written agreements. For example, even if "Foobar" is a RFN, you could write up an agreement to give company "XYZ" the right to distribute a modified version with a name that includes "Foobar". This allows for freedom without confusion. + +### 5.9 Do font rebuilds require a name change? Do I have to change the name of the font when my packaging workflow includes a full rebuild from source? +>> Yes, all rebuilds which change the font data and the smart code are Modified Versions and the requirements of the OFL apply: you need to respect what the Author(s) have chosen in terms of Reserved Font Names. However if a package (or installer) is simply a wrapper or a compressed structure around the final font - leaving them intact on the inside - then no name change is required. Please get in touch with the author(s) and copyright holder(s) to inquire about the presence of font sources beyond the final font file(s) and the recommended build path. That build path may very well be non-trivial and hard to reproduce accurately by the maintainer. If a full font build path is made available by the upstream author(s) please be aware that any regressions and changes you may introduce when doing a rebuild for packaging purposes is your responsibility as a package maintainer since you are effectively creating a separate branch. You should make it very clear to your users that your rebuilt version is not the canonical one from upstream. + +### 5.10 Can I add other Reserved Font Names when making a derivative font? +>> Yes. List your additional Reserved Font Names after your additional copyright statement, as indicated with example placeholders at the top of the OFL.txt file. Be sure you do not remove any exiting RFNs but only add your own. + + +6. About the Fontlog +======================== + +### 6.1 What is this FONTLOG thing exactly? +>> It has three purposes: 1) to provide basic information on the font to users and other developers, 2) to document changes that have been made to the font or accompanying files, either by the original authors or others, and 3) to provide a place to acknowledge authors and other contributors. Please use it! + +### 6.2 Is the FONTLOG required? +>> It is not a requirement of the license, but we strongly recommend you have one. + +### 6.3 Am I required to update the FONTLOG when making Modified Versions? +>> No, but users, designers and other developers might get very frustrated with you if you don't. People need to know how derivative fonts differ from the original, and how to take advantage of the changes, or build on them. There are utilities that can help create and maintain a FONTLOG, such as the FONTLOG support in FontForge. + +### 6.4 What should the FONTLOG look like? +>> It is typically a separate text file (FONTLOG.txt), but can take other formats. It commonly includes these four sections: + +>> - brief header describing the FONTLOG itself and name of the font family +>> - Basic Font Information - description of the font family, purpose and breadth +>> - ChangeLog - chronological listing of changes +>> - Acknowledgements - list of authors and contributors with contact information + +>> It could also include other sections, such as: where to find documentation, how to make contributions, information on contributing organizations, source code details, and a short design guide. + +7. Making Contributions to OFL Projects +=========================================== + +### 7.1 Can I contribute work to OFL projects? +>> In many cases, yes. It is common for OFL fonts to be developed by a team of people who welcome contributions from the wider community. Contact the original authors for specific information on how to participate in their projects. + +### 7.2 Why should I contribute my changes back to the original authors? +>> It would benefit many people if you contributed back in response to what you've received. Your contributions and improvements to the fonts and other components could be a tremendous help and would encourage others to contribute as well and 'give back'. You will then benefit from other people's contributions as well. Sometimes maintaining your own separate version takes more effort than merging back with the original. Be aware that any contributions, however, must be either your own original creation or work that you own, and you may be asked to affirm that clearly when you contribute. + +### 7.3 I've made some very nice improvements to the font. Will you consider adopting them and putting them into future Original Versions? +>> Most authors would be very happy to receive such contributions. Keep in mind that it is unlikely that they would want to incorporate major changes that would require additional work on their end. Any contributions would likely need to be made for all the fonts in a family and match the overall design and style. Authors are encouraged to include a guide to the design with the fonts. It would also help to have contributions submitted as patches or clearly marked changes - the use of smart source revision control systems like subversion, svk, mercurial, git or bzr is a good idea. Please follow the recommendations given by the author(s) in terms of preferred source formats and configuration parameters for sending contributions. If this is not indicated in a FONTLOG or other documentation of the font, consider asking them directly. Examples of useful contributions are bug fixes, additional glyphs, stylistic alternates (and the smart font code to access them) or improved hinting. Keep in mind that some kinds of changes (esp. hinting) may be technically difficult to integrate. + +### 7.4 How can I financially support the development of OFL fonts? +>> It is likely that most authors of OFL fonts would accept financial contributions - contact them for instructions on how to do this. Such contributions would support future development. You can also pay for others to enhance the fonts and contribute the results back to the original authors for inclusion in the Original Version. + +8. About the License Itself +=============================== + +### 8.1 I see that this is version 1.1 of the license. Will there be later changes? +>> Version 1.1 is the first minor revision of the OFL. We are confident that version 1.1 will meet most needs, but are open to future improvements. Any revisions would be for future font releases, and previously existing licenses would remain in effect. No retroactive changes are possible, although the Copyright Holder(s) can re-release the font under a revised OFL. All versions will be available on our web site: http://scripts.sil.org/OFL. + +### 8.2 Does this license restrict the rights of the Copyright Holder(s)? +>> No. The Copyright Holder(s) still retain(s) all the rights to their creation; they are only releasing a portion of it for use in a specific way. For example, the Copyright Holder(s) may choose to release a 'basic' version of their font under the OFL, but sell a restricted 'enhanced' version. Only the Copyright Holder(s) can do this. + +### 8.3 Is the OFL a contract or a license? +>> The OFL is a license and not a contract and so does not require you to sign it to have legal validity. By using, modifying and redistributing components under the OFL you indicate that you accept the license. + +### 8.4 I really like the terms of the OFL, but want to change it a little. Am I allowed to take ideas and actual wording from the OFL and put them into my own custom license for distributing my fonts? +>> We strongly recommend against creating your very own unique open licensing model. Using a modified or derivative license will likely cut you off - along with the font(s) under that license - from the community of designers using the OFL, potentially expose you and your users to legal liabilities, and possibly put your work and rights at risk. The OFL went though a community and legal review process that took years of effort, and that review is only applicable to an unmodified OFL. The text of the OFL has been written by SIL (with review and consultation from the community) and is copyright (c) 2005-2010 SIL International. You may re-use the ideas and wording (in part, not in whole) in another non-proprietary license provided that you call your license by another unambiguous name, that you do not use the preamble, that you do not mention SIL and that you clearly present your license as different from the OFL so as not to cause confusion by being too similar to the original. If you feel the OFL does not meet your needs for an open license, please contact us. + +### 8.5 Can I translate the license and the FAQ into other languages? +>> SIL certainly recognises the need for people who are not familiar with English to be able to understand the OFL and its use. Making the license very clear and readable has been a key goal for the OFL, but we know that people understand their own language best. + +>> If you are an experienced translator, you are very welcome to translate the OFL and OFL-FAQ so that designers and users in your language community can understand the license better. But only the original English version of the license has legal value and has been approved by the community. Translations do not count as legal substitutes and should only serve as a way to explain the original license. SIL - as the author and steward of the license for the community at large - does not approve any translation of the OFL as legally valid because even small translation ambiguities could be abused and create problems. + +>> SIL gives permission to publish unofficial translations into other languages provided that they comply with the following guidelines: + +>> - Put the following disclaimer in both English and the target language stating clearly that the translation is unofficial: + +>> "This is an unofficial translation of the SIL Open Font License into ``. It was not published by SIL International, and does not legally state the distribution terms for fonts that use the OFL. A release under the OFL is only valid when using the original English text. However, we recognize that this unofficial translation will help users and designers not familiar with English to better understand and use the OFL. We encourage designers who consider releasing their creation under the OFL to read the OFL-FAQ in their own language if it is available. Please go to http://scripts.sil.org/OFL for the official version of the license and the accompanying OFL-FAQ." + +>> - Keep your unofficial translation current and update it at our request if needed, for example if there is any ambiguity which could lead to confusion. + +>> If you start such a unofficial translation effort of the OFL and OFL-FAQ please let us know. + +9. About SIL International +============================== + +### 9.1 Who is SIL International and what do they do? +>> SIL serves language communities worldwide, building their capacity for sustainable language development, by means of research, translation, training and materials development. SIL makes its services available to all without regard to religious belief, political ideology, gender, race, or ethnic background. SIL's members and volunteers share a Christian commitment. + +### 9.2 What does this have to do with font licensing? +>> The ability to read, write, type and publish in one's own language is one of the most critical needs for millions of people around the world. This requires fonts that are widely available and support lesser-known languages. SIL develops - and encourages others to develop - a complete stack of writing systems implementation components available under open licenses. This open stack includes input methods, smart fonts, smart rendering libraries and smart applications. There has been a need for a common open license that is specifically applicable to fonts and related software (a crucial component of this stack), so SIL developed the SIL Open Font License with the help of the Free/Libre and Open Source Software community. + +### 9.3 How can I contact SIL? +>> Our main web site is: http://www.sil.org/ +Our site about complex scripts is: http://scripts.sil.org/ +Information about this license (and contact information) is at: http://scripts.sil.org/OFL + + +## Acknowledgements + + - OFL License modified to Markdown + + N: Micah Rich + E: micah@micahrich.com + W: http://www.theleagueofmoveabletype.com + + - The League of Moveable Type is an open-source font foundry, working to make the world of typography a better place. + diff --git a/res/graphics/fonts/theleagueofmovabletype/Open Font License.markdown b/res/graphics/fonts/theleagueofmovabletype/Open Font License.markdown new file mode 100755 index 000000000..97e95ad2f --- /dev/null +++ b/res/graphics/fonts/theleagueofmovabletype/Open Font License.markdown @@ -0,0 +1,105 @@ + Copyright (c) 2010, Caroline Hadilaksono , with Reserved Font Name: "Junction". + + This Font Software is licensed under the SIL Open Font License, Version 1.1. + This license is copied below, and is also available with a FAQ at: + http://scripts.sil.org/OFL + + Version 1.1 - 26 February 2007 + + +SIL Open Font License +==================================================== + + +Preamble +---------- + +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +Definitions +------------- + +`"Font Software"` refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +`"Reserved Font Name"` refers to any names specified as such after the +copyright statement(s). + +`"Original Version"` refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +`"Modified Version"` refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +`"Author"` refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +Permission & Conditions +------------------------ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1. Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2. Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3. No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5. The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +Termination +----------- + +This license becomes null and void if any of the above conditions are +not met. + + + DISCLAIMER + + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT + OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE + COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL + DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM + OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/res/graphics/gui/StoneGUITex.png b/res/graphics/gui/StoneGUITex.png new file mode 100755 index 000000000..f49c3675e Binary files /dev/null and b/res/graphics/gui/StoneGUITex.png differ diff --git a/res/graphics/gui/creativeInventory/.gitattributes b/res/graphics/gui/creativeInventory/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/res/graphics/gui/creativeInventory/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/res/graphics/gui/creativeInventory/creativePalette.png b/res/graphics/gui/creativeInventory/creativePalette.png new file mode 100755 index 000000000..d32ce96ee Binary files /dev/null and b/res/graphics/gui/creativeInventory/creativePalette.png differ diff --git a/res/graphics/gui/cursor_black_over.png b/res/graphics/gui/cursor_black_over.png new file mode 100644 index 000000000..d38f243f5 Binary files /dev/null and b/res/graphics/gui/cursor_black_over.png differ diff --git a/res/graphics/gui/cursor_over.png b/res/graphics/gui/cursor_over.png new file mode 100644 index 000000000..d03b8a9e9 Binary files /dev/null and b/res/graphics/gui/cursor_over.png differ diff --git a/res/graphics/gui/cursor_pressed.png b/res/graphics/gui/cursor_pressed.png new file mode 100644 index 000000000..34f18010f Binary files /dev/null and b/res/graphics/gui/cursor_pressed.png differ diff --git a/res/graphics/gui/hotbar/hotbar.png b/res/graphics/gui/hotbar/hotbar.png new file mode 100755 index 000000000..74e9ea1d0 Binary files /dev/null and b/res/graphics/gui/hotbar/hotbar.png differ diff --git a/res/graphics/gui/hotbar/hotbarIndicator.png b/res/graphics/gui/hotbar/hotbarIndicator.png new file mode 100755 index 000000000..d1a811f31 Binary files /dev/null and b/res/graphics/gui/hotbar/hotbarIndicator.png differ diff --git a/res/graphics/gui/hotbar/slot_separator.png b/res/graphics/gui/hotbar/slot_separator.png new file mode 100755 index 000000000..ff1e90c50 Binary files /dev/null and b/res/graphics/gui/hotbar/slot_separator.png differ diff --git a/res/graphics/gui/hotbar/topbar_creative.png b/res/graphics/gui/hotbar/topbar_creative.png new file mode 100755 index 000000000..6ba963129 Binary files /dev/null and b/res/graphics/gui/hotbar/topbar_creative.png differ diff --git a/res/graphics/gui/message_twoline_black_body 복사본.png b/res/graphics/gui/message_twoline_black_body 복사본.png new file mode 100644 index 000000000..f743fedb3 Binary files /dev/null and b/res/graphics/gui/message_twoline_black_body 복사본.png differ diff --git a/res/graphics/gui/message_twoline_black_body.png b/res/graphics/gui/message_twoline_black_body.png new file mode 100644 index 000000000..67c251fdf Binary files /dev/null and b/res/graphics/gui/message_twoline_black_body.png differ diff --git a/res/graphics/gui/message_twoline_black_left 복사본.png b/res/graphics/gui/message_twoline_black_left 복사본.png new file mode 100644 index 000000000..872da039f Binary files /dev/null and b/res/graphics/gui/message_twoline_black_left 복사본.png differ diff --git a/res/graphics/gui/message_twoline_black_left.png b/res/graphics/gui/message_twoline_black_left.png new file mode 100644 index 000000000..f2a93064b Binary files /dev/null and b/res/graphics/gui/message_twoline_black_left.png differ diff --git a/res/graphics/gui/message_twoline_black_right 복사본.png b/res/graphics/gui/message_twoline_black_right 복사본.png new file mode 100644 index 000000000..50068347d Binary files /dev/null and b/res/graphics/gui/message_twoline_black_right 복사본.png differ diff --git a/res/graphics/gui/message_twoline_black_right.png b/res/graphics/gui/message_twoline_black_right.png new file mode 100644 index 000000000..47bb835fd Binary files /dev/null and b/res/graphics/gui/message_twoline_black_right.png differ diff --git a/res/graphics/gui/message_twoline_white_body.png b/res/graphics/gui/message_twoline_white_body.png new file mode 100644 index 000000000..e3055c68c Binary files /dev/null and b/res/graphics/gui/message_twoline_white_body.png differ diff --git a/res/graphics/gui/message_twoline_white_left.png b/res/graphics/gui/message_twoline_white_left.png new file mode 100644 index 000000000..ef6f35cad Binary files /dev/null and b/res/graphics/gui/message_twoline_white_left.png differ diff --git a/res/graphics/gui/message_twoline_white_right.png b/res/graphics/gui/message_twoline_white_right.png new file mode 100644 index 000000000..13531965c Binary files /dev/null and b/res/graphics/gui/message_twoline_white_right.png differ diff --git a/res/graphics/gui/tooltip_black_body.png b/res/graphics/gui/tooltip_black_body.png new file mode 100644 index 000000000..9ef216d04 Binary files /dev/null and b/res/graphics/gui/tooltip_black_body.png differ diff --git a/res/graphics/gui/tooltip_black_left.png b/res/graphics/gui/tooltip_black_left.png new file mode 100644 index 000000000..3ce1ca350 Binary files /dev/null and b/res/graphics/gui/tooltip_black_left.png differ diff --git a/res/graphics/gui/tooltip_black_right.png b/res/graphics/gui/tooltip_black_right.png new file mode 100644 index 000000000..31286fa85 Binary files /dev/null and b/res/graphics/gui/tooltip_black_right.png differ diff --git a/res/graphics/gui/tooltip_white_body.png b/res/graphics/gui/tooltip_white_body.png new file mode 100644 index 000000000..ec465e8e5 Binary files /dev/null and b/res/graphics/gui/tooltip_white_body.png differ diff --git a/res/graphics/gui/tooltip_white_left.png b/res/graphics/gui/tooltip_white_left.png new file mode 100644 index 000000000..8ac99096b Binary files /dev/null and b/res/graphics/gui/tooltip_white_left.png differ diff --git a/res/graphics/gui/tooltip_white_right.png b/res/graphics/gui/tooltip_white_right.png new file mode 100644 index 000000000..6b0e8dcad Binary files /dev/null and b/res/graphics/gui/tooltip_white_right.png differ diff --git a/res/graphics/gui/ui_background.png b/res/graphics/gui/ui_background.png new file mode 100755 index 000000000..d4a97f6b0 Binary files /dev/null and b/res/graphics/gui/ui_background.png differ diff --git a/res/graphics/gui/ui_corners.png b/res/graphics/gui/ui_corners.png new file mode 100755 index 000000000..e91dcf927 Binary files /dev/null and b/res/graphics/gui/ui_corners.png differ diff --git a/res/graphics/gui/ui_separator.png b/res/graphics/gui/ui_separator.png new file mode 100755 index 000000000..57e0511f4 Binary files /dev/null and b/res/graphics/gui/ui_separator.png differ diff --git a/res/graphics/gui/ui_sides.png b/res/graphics/gui/ui_sides.png new file mode 100755 index 000000000..dd994e3ea Binary files /dev/null and b/res/graphics/gui/ui_sides.png differ diff --git a/res/graphics/items/items.png b/res/graphics/items/items.png new file mode 100755 index 000000000..fcfb90d7b Binary files /dev/null and b/res/graphics/items/items.png differ diff --git a/res/graphics/items/items24.png b/res/graphics/items/items24.png new file mode 100755 index 000000000..8cecc9d40 Binary files /dev/null and b/res/graphics/items/items24.png differ diff --git a/res/graphics/items/items48.png b/res/graphics/items/items48.png new file mode 100755 index 000000000..ef9eb3b43 Binary files /dev/null and b/res/graphics/items/items48.png differ diff --git a/res/graphics/logo_placeholder.png b/res/graphics/logo_placeholder.png new file mode 100755 index 000000000..f1aeb9614 Binary files /dev/null and b/res/graphics/logo_placeholder.png differ diff --git a/res/graphics/logo_placeholder_noreflection.png b/res/graphics/logo_placeholder_noreflection.png new file mode 100644 index 000000000..aca408a1a Binary files /dev/null and b/res/graphics/logo_placeholder_noreflection.png differ diff --git a/res/graphics/placeholder.png b/res/graphics/placeholder.png new file mode 100755 index 000000000..b572aa814 Binary files /dev/null and b/res/graphics/placeholder.png differ diff --git a/res/graphics/sprites/slime.png b/res/graphics/sprites/slime.png new file mode 100755 index 000000000..9054f20b6 Binary files /dev/null and b/res/graphics/sprites/slime.png differ diff --git a/res/graphics/sprites/slime_1.png b/res/graphics/sprites/slime_1.png new file mode 100755 index 000000000..0a26150bd Binary files /dev/null and b/res/graphics/sprites/slime_1.png differ diff --git a/res/graphics/sprites/sprite_placeholder_24_48.png b/res/graphics/sprites/sprite_placeholder_24_48.png new file mode 100755 index 000000000..681c57e03 Binary files /dev/null and b/res/graphics/sprites/sprite_placeholder_24_48.png differ diff --git a/res/graphics/sprites/test_player.png b/res/graphics/sprites/test_player.png new file mode 100644 index 000000000..5e45254ad Binary files /dev/null and b/res/graphics/sprites/test_player.png differ diff --git a/res/graphics/sprites/test_player_glow.png b/res/graphics/sprites/test_player_glow.png new file mode 100644 index 000000000..54edbd935 Binary files /dev/null and b/res/graphics/sprites/test_player_glow.png differ diff --git a/res/graphics/sprites/test_player_raw.raw b/res/graphics/sprites/test_player_raw.raw new file mode 100644 index 000000000..b5eb438cc Binary files /dev/null and b/res/graphics/sprites/test_player_raw.raw differ diff --git a/res/graphics/terrain/fluid.png b/res/graphics/terrain/fluid.png new file mode 100755 index 000000000..c86589cc9 Binary files /dev/null and b/res/graphics/terrain/fluid.png differ diff --git a/res/graphics/terrain/grassplusplus.png b/res/graphics/terrain/grassplusplus.png new file mode 100644 index 000000000..f8ec62495 Binary files /dev/null and b/res/graphics/terrain/grassplusplus.png differ diff --git a/res/graphics/terrain/terrain.png b/res/graphics/terrain/terrain.png new file mode 100755 index 000000000..07c70a886 Binary files /dev/null and b/res/graphics/terrain/terrain.png differ diff --git a/res/graphics/terrain/terrain_4.png b/res/graphics/terrain/terrain_4.png new file mode 100644 index 000000000..43a2b3f28 Binary files /dev/null and b/res/graphics/terrain/terrain_4.png differ diff --git a/res/graphics/terrain/terrain_8.png b/res/graphics/terrain/terrain_8.png new file mode 100755 index 000000000..fdcc3f9b3 Binary files /dev/null and b/res/graphics/terrain/terrain_8.png differ diff --git a/res/graphics/terrain/terrain_ref.png b/res/graphics/terrain/terrain_ref.png new file mode 100755 index 000000000..746e42401 Binary files /dev/null and b/res/graphics/terrain/terrain_ref.png differ diff --git a/res/graphics/terrain/terrainplusplus.png b/res/graphics/terrain/terrainplusplus.png new file mode 100644 index 000000000..019e10da0 Binary files /dev/null and b/res/graphics/terrain/terrainplusplus.png differ diff --git a/res/graphics/terrain/wall.png b/res/graphics/terrain/wall.png new file mode 100755 index 000000000..3881823a8 Binary files /dev/null and b/res/graphics/terrain/wall.png differ diff --git a/res/graphics/terrain/wall_4.png b/res/graphics/terrain/wall_4.png new file mode 100644 index 000000000..39438bf04 Binary files /dev/null and b/res/graphics/terrain/wall_4.png differ diff --git a/res/graphics/terrain/wall_8.png b/res/graphics/terrain/wall_8.png new file mode 100644 index 000000000..14afceff7 Binary files /dev/null and b/res/graphics/terrain/wall_8.png differ diff --git a/res/graphics/terrain/wire.png b/res/graphics/terrain/wire.png new file mode 100755 index 000000000..cc0b4afec Binary files /dev/null and b/res/graphics/terrain/wire.png differ diff --git a/res/locales/en.lang b/res/locales/en.lang new file mode 100755 index 000000000..8e3a0c9e1 --- /dev/null +++ b/res/locales/en.lang @@ -0,0 +1,166 @@ +MENU_LANGUAGE_THIS_EN=English +MENU_LANGUAGE_THIS=English + +COPYRIGHT_MSG=All rights reserved. + + + +########################### +## Application messages # +########################### + +APP_CALIBRATE_YOUR_MONITOR=Best player experience can be achieved with properly calibrated monitor. If you have not, please do it before you play. + + + +############### +## Gameplay # +############### + +GAME_ACTION_ATTACK=Attack +GAME_ACTION_BOOST=Boost +GAME_ACTION_BUILD=Build +GAME_ACTION_CAST_FISHING=Cast +GAME_ACTION_CAST_SPELL=Cast +GAME_ACTION_CLAIM=Claim +GAME_ACTION_CLIMB=Climb +GAME_ACTION_CLOSE=Close +GAME_ACTION_COLLECT=Collect +GAME_ACTION_COOK=Cook +GAME_ACTION_CRAFT=Craft +GAME_ACTION_CROUCH=Crouch +GAME_ACTION_DODGE=Dodge +GAME_ACTION_DRIVE=Drive +GAME_ACTION_FLY=Fly +GAME_ACTION_FULL_SPEED=Full Speed +GAME_ACTION_GO=Go +GAME_ACTION_GO_TO_PLACE=Go to +GAME_ACTION_HALF_SPEED=Half Speed +GAME_ACTION_HEAL=Heal +GAME_ACTION_JUMP=Jump +GAME_ACTION_LAND=Landing +GAME_ACTION_LOOK=Look +GAME_ACTION_MIX=Mix +GAME_ACTION_OPEN=Open +GAME_ACTION_PICK_UP=Pick up +GAME_ACTION_RACE=Race +GAME_ACTION_READ=Read +GAME_ACTION_REPLACE=Replace +GAME_ACTION_RUN=Run +GAME_ACTION_RUN_AWAY=Run away +GAME_ACTION_SHOOT=Shoot +GAME_ACTION_SNEAK=Sneak +GAME_ACTION_SPIN=Spin +GAME_ACTION_SPRINT=Sprint +GAME_ACTION_STEER=Steer +GAME_ACTION_TAKE_OFF=Takeoff +GAME_ACTION_TALK=Talk +GAME_ACTION_THROW=Throw +GAME_ACTION_WALK=Walk + +GAME_CHARACTER_ENDURANCE=Endurance +GAME_CHARACTER_EXP=Experience points +GAME_CHARACTER_HEALTH=Health +GAME_CHARACTER_HEART=Heart +GAME_CHARACTER_HEART_PLURAL=Hearts +GAME_CHARACTER_LEVEL=Level +GAME_CHARACTER_LEVEL_UP=Level up! +GAME_CHARACTER_RESPAWN=Respawn +GAME_CHARACTER_RESPAWN_IN=Respawn in: +GAME_CHARACTER_RESPAWN_QUESTION=Respawn? +GAME_CHARACTER_RESPAWNING=Respawning +GAME_CHARACTER_SKILL=Skill +GAME_CHARACTER_SPAWN_POINT=Spawn Point + +GAME_INVENTORY=Inventory +GAME_INVENTORY_AMMO=Ammo +GAME_INVENTORY_AMMUNITION=Ammunition +GAME_INVENTORY_BULLET=Bullet +GAME_INVENTORY_BULLET_PLURAL=Bullets +GAME_INVENTORY_BUY=Buy +GAME_INVENTORY_CAPACITY=Inventory Capacity +GAME_INVENTORY_DROP=Drop +GAME_INVENTORY_ENCUMBRANCE=Encumbrance +GAME_INVENTORY_FULL=Inventory Full +GAME_INVENTORY_ITEM=Item +GAME_INVENTORY_KEY=Key +GAME_INVENTORY_POWERUP=Power-up +GAME_INVENTORY_SELL=Sell +GAME_INVENTORY_USE=Use +GAME_INVENTORY_WEAPON=Weapon +GAME_INVENTORY_WEAPONS=Weapons +GAME_INVENTORY_YOU_CANNOT_CARRY=You cannot carry any more. + + + +############ +## Tiles # +############ + +TILE_AIR=You are not supposed to see this +TILE_STONE=Stone +TILE_DIRT=Dirt +TILE_GRASS=Grass +TILE_PLANK_NORMAL=Wooden plank +TILE_PLANK_EBONY=Ebony plank +TILE_PLANK_BIRCH=Birch plank +TILE_PLANK_ROSEWOOD=Rosewood plank +TILE_TRUNK_NORMAL=Oak log +TILE_TRUNK_EBONY=Ebony log +TILE_TRUNK_BIRCH=Birch log +TILE_TRUNK_ROSEWOOD=Rosewood log + +TILE_SNOW=Snow +TILE_ICE_FRAGILE=Thin ice +TILE_ICE_NATURAL=Ice +TILE_ICE_CLEAR_MAGICAL=Clear ice + + + +#################### +## Terminologies # +#################### + +TERM_PHYS_MASS=mass + + + +########## +## Dev # +########## + +DEV_MEMORY_SHORT_CAP=MEM +DEV_MEMORY_A_OF_B=%1$sM out of %2$sM + +DEV_COLOUR_LEGEND_GREEN= GREEN +DEV_COLOUR_LEGEND_BLUE= BLUE +DEV_COLOUR_LEGEND_ORANGE=ORANGE +DEV_COLOUR_LEGEND_RED= RED + +DEV_MESSAGE_CONSOLE_CODEX=Type 'codex' for available commands. + + + +############### +## Debugger # +############### + +DBG_TOTAL_ACCEL_X=total X-accel + + + +############## +## Credits # +############## + +CREDITS_POLYGLOT=Translated by the Polyglot Project. + + + +################ +## Languages # +################ + +LANGUAGE_ENGLISH=English +LANGUAGE_FRENCH=French +LANGUAGE_KOREAN=Korean diff --git a/res/locales/fonts.txt b/res/locales/fonts.txt new file mode 100755 index 000000000..b259eb1cf --- /dev/null +++ b/res/locales/fonts.txt @@ -0,0 +1,7 @@ +en_US=theleagueofmovabletype/Junction.otf +en_UK=theleagueofmovabletype/Junction.otf +ko_KR=NanumBarunGothic.otf + +en_US.serif=theleagueofmovabletype/OFLGoudyStM.otf +en_UK.serif=theleagueofmovabletype/OFLGoudyStM.otf +ko_KR.serif=NanumMyeongjoBold.otf \ No newline at end of file diff --git a/res/locales/fr.lang b/res/locales/fr.lang new file mode 100644 index 000000000..f759e435a --- /dev/null +++ b/res/locales/fr.lang @@ -0,0 +1,166 @@ +MENU_LANGUAGE_THIS_EN=French +MENU_LANGUAGE_THIS=Français + +COPYRIGHT_MSG=Tous les droits sont réservés. + + + +########################### +## Application messages # +########################### + +APP_CALIBRATE_YOUR_MONITOR=Meilleure expérience de joueur peut être réalisé avec écran correctement calibré. Si vous ne l'avez pas, s.v.p. le calibrez avant de jouer. + + + +############### +## Gameplay # +############### + +GAME_ACTION_ATTACK=Attaquer +GAME_ACTION_BOOST=Booster +GAME_ACTION_BUILD=Construire +GAME_ACTION_CAST_FISHING=Lancer +GAME_ACTION_CAST_SPELL=Lancer +GAME_ACTION_CLAIM=Obtenir +GAME_ACTION_CLIMB=Escalader +GAME_ACTION_CLOSE=Fermer +GAME_ACTION_COLLECT=Collecter +GAME_ACTION_COOK=Cuisiner +GAME_ACTION_CRAFT=Fabriquer +GAME_ACTION_CROUCH=S'accroupir +GAME_ACTION_DODGE=Esquiver +GAME_ACTION_DRIVE=Conduire +GAME_ACTION_FLY=Voler +GAME_ACTION_FULL_SPEED=Vitesse Max +GAME_ACTION_GO=Aller +GAME_ACTION_GO_TO_PLACE=Aller à +GAME_ACTION_HALF_SPEED=Mi-Vitesse +GAME_ACTION_HEAL=Soigner +GAME_ACTION_JUMP=Sauter +GAME_ACTION_LAND=Atterrir +GAME_ACTION_LOOK=Regarder +GAME_ACTION_MIX=Mélanger +GAME_ACTION_OPEN=Ouvrir +GAME_ACTION_PICK_UP=Prendre +GAME_ACTION_RACE=Faire la course +GAME_ACTION_READ=Lire +GAME_ACTION_REPLACE=Remplacer +GAME_ACTION_RUN=Courir +GAME_ACTION_RUN_AWAY=S'enfuir +GAME_ACTION_SHOOT=Tirer +GAME_ACTION_SNEAK=Se faufiler +GAME_ACTION_SPIN=Tourner +GAME_ACTION_SPRINT=Sprinter +GAME_ACTION_STEER=Tourner +GAME_ACTION_TAKE_OFF=Décoller +GAME_ACTION_TALK=Parler +GAME_ACTION_THROW=Jeter +GAME_ACTION_WALK=Marcher + +GAME_CHARACTER_ENDURANCE=Endurance +GAME_CHARACTER_EXP=Points d'expérience +GAME_CHARACTER_HEALTH=Santé +GAME_CHARACTER_HEART=Coeur +GAME_CHARACTER_HEART_PLURAL=Coeurs +GAME_CHARACTER_LEVEL=Niveau +GAME_CHARACTER_LEVEL_UP=Niveau suivant ! +GAME_CHARACTER_RESPAWN=Réapparaître +GAME_CHARACTER_RESPAWN_IN=Réapparition dans : +GAME_CHARACTER_RESPAWN_QUESTION=Réapparaître ? +GAME_CHARACTER_RESPAWNING=Réapparition +GAME_CHARACTER_SKILL=Compétence +GAME_CHARACTER_SPAWN_POINT=Point d'Apparition + +GAME_INVENTORY=Inventaire +GAME_INVENTORY_AMMO=Munitions +GAME_INVENTORY_AMMUNITION=Munitions +GAME_INVENTORY_BULLET=Balle +GAME_INVENTORY_BULLET_PLURAL=Balles +GAME_INVENTORY_BUY=Acheter +GAME_INVENTORY_CAPACITY=Capacité de l'inventaire +GAME_INVENTORY_DROP=Jeter +GAME_INVENTORY_ENCUMBRANCE=Encombrement +GAME_INVENTORY_FULL=Inventaire plein +GAME_INVENTORY_ITEM=Objet +GAME_INVENTORY_KEY=Clé +GAME_INVENTORY_POWERUP=Amélioration +GAME_INVENTORY_SELL=Vendre +GAME_INVENTORY_USE=Utiliser +GAME_INVENTORY_WEAPON=Arme +GAME_INVENTORY_WEAPONS=Armes +GAME_INVENTORY_YOU_CANNOT_CARRY=Vous ne pouvez pas transporter plus + + + +############ +## Tiles # +############ + +TILE_AIR=Vous n'êtes pas censé voir ce +TILE_STONE=Roche +TILE_DIRT=Terre +TILE_GRASS=Herbe +TILE_PLANK_NORMAL=Planches +TILE_PLANK_EBONY=Planches ébène +TILE_PLANK_BIRCH=Planches bouleau +TILE_PLANK_ROSEWOOD=Planches palissandre +TILE_TRUNK_NORMAL=Bûche +TILE_TRUNK_EBONY=Bûche ébène +TILE_TRUNK_BIRCH=Bûche bouleau +TILE_TRUNK_ROSEWOOD=Bûche rouge + +TILE_SNOW=Neige +TILE_ICE_FRAGILE=Glace mance +TILE_ICE_NATURAL=Glace +TILE_ICE_CLEAR_MAGICAL=Glace claire + + + +#################### +## Terminologies # +#################### + +TERM_PHYS_MASS=masse + + + +########## +## Dev # +########## + +DEV_MEMORY_SHORT_CAP=MEM +DEV_MEMORY_A_OF_B=%1$sM sur %2$sM + +DEV_COLOUR_LEGEND_GREEN= VERT +DEV_COLOUR_LEGEND_BLUE= BLEU +DEV_COLOUR_LEGEND_ORANGE=ORANGE +DEV_COLOUR_LEGEND_RED= ROUGE + +DEV_MESSAGE_CONSOLE_CODEX=Tapez «codex» pour commandes disponibles. + + + +############### +## Debugger # +############### + +DBG_TOTAL_ACCEL_X=total X-accel + + + +############## +## Credits # +############## + +CREDITS_POLYGLOT=Traduit par le Polyglot Projet. + + + +################ +## Languages # +################ + +LANGUAGE_ENGLISH=Anglais +LANGUAGE_FRENCH=Français +LANGUAGE_KOREAN=Coréen diff --git a/res/locales/ko.lang b/res/locales/ko.lang new file mode 100755 index 000000000..71395ae7b --- /dev/null +++ b/res/locales/ko.lang @@ -0,0 +1,165 @@ +MENU_LANGUAGE_THIS_EN=Korean +MENU_LANGUAGE_THIS=한국어 + +COPYRIGHT_MSG=모든 권리 보유. + + + +########################### +## Application messages # +########################### + +APP_CALIBRATE_YOUR_MONITOR=본 게임은 적절히 보정된 모니터에서 최상으로 즐길 수 있습니다. 모니터를 보정하지 않았다면 플레이하기 전에 보정해 주십시오. + + + +############### +## Gameplay # +############### + +GAME_ACTION_ATTACK=공격 +GAME_ACTION_BOOST=가속하기 +GAME_ACTION_BUILD=짓기 +GAME_ACTION_CAST_FISHING=던지기 +GAME_ACTION_CAST_SPELL=사용하기 +GAME_ACTION_CLAIM=갖기 +GAME_ACTION_CLIMB=오르기 +GAME_ACTION_CLOSE=닫기 +GAME_ACTION_COLLECT=모으기 +GAME_ACTION_COOK=요리하기 +GAME_ACTION_CRAFT=만들기 +GAME_ACTION_CROUCH=조용히 걷기 +GAME_ACTION_DODGE=피하기 +GAME_ACTION_DRIVE=운전하기 +GAME_ACTION_FLY=날기 +GAME_ACTION_FULL_SPEED=최고 속도 +GAME_ACTION_GO=가기 +GAME_ACTION_GO_TO_PLACE=(으)로 가기 +GAME_ACTION_HALF_SPEED=중간 속도 +GAME_ACTION_HEAL=치료 +GAME_ACTION_JUMP=점프 +GAME_ACTION_LAND=착륙 +GAME_ACTION_LOOK=보기 +GAME_ACTION_MIX=섞기 +GAME_ACTION_OPEN=열기 +GAME_ACTION_PICK_UP=줍기 +GAME_ACTION_RACE=경주하기 +GAME_ACTION_READ=읽기 +GAME_ACTION_REPLACE=대치하기 +GAME_ACTION_RUN=달리기 +GAME_ACTION_RUN_AWAY=도망치기 +GAME_ACTION_SHOOT=쏘기 +GAME_ACTION_SNEAK=몰래 가기 +GAME_ACTION_SPIN=회전시키기 +GAME_ACTION_SPRINT=달리기 +GAME_ACTION_STEER=조종하기 +GAME_ACTION_TAKE_OFF=이륙하기 +GAME_ACTION_TALK=대화하기 +GAME_ACTION_THROW=던지기 +GAME_ACTION_WALK=걷기 + +GAME_CHARACTER_ENDURANCE=지구력 +GAME_CHARACTER_EXP=경험치 +GAME_CHARACTER_HEALTH=체력 +GAME_CHARACTER_HEART=하트 +GAME_CHARACTER_HEART_PLURAL=하트 +GAME_CHARACTER_LEVEL=레벨 +GAME_CHARACTER_LEVEL_UP=레벨 업! +GAME_CHARACTER_RESPAWN=부활 +GAME_CHARACTER_RESPAWN_IN=부활 장소: +GAME_CHARACTER_RESPAWN_QUESTION=부활하시겠습니까? +GAME_CHARACTER_RESPAWNING=부활하는 중 +GAME_CHARACTER_SKILL=기술 +GAME_CHARACTER_SPAWN_POINT=소환 지점 + +GAME_INVENTORY=인벤토리 +GAME_INVENTORY_AMMO=탄환 +GAME_INVENTORY_AMMUNITION=탄환 +GAME_INVENTORY_BULLET=탄 +GAME_INVENTORY_BULLET_PLURAL=탄 +GAME_INVENTORY_BUY=사기 +GAME_INVENTORY_CAPACITY=인벤토리 용량 +GAME_INVENTORY_DROP=버리기 +GAME_INVENTORY_ENCUMBRANCE=인벤토리 무게 +GAME_INVENTORY_FULL=인벤토리 꽉 참 +GAME_INVENTORY_ITEM=아이템 +GAME_INVENTORY_KEY=열쇠 +GAME_INVENTORY_POWERUP=파워 업 +GAME_INVENTORY_SELL=팔기 +GAME_INVENTORY_USE=사용하기 +GAME_INVENTORY_WEAPON=무기 +GAME_INVENTORY_WEAPONS=무기 +GAME_INVENTORY_YOU_CANNOT_CARRY=더 지닐 수 없습니다. + + + +############ +## Tiles # +############ + +TILE_AIR=이게 보이면 안 되는데 말입니다 +TILE_STONE=돌 +TILE_DIRT=흙 +TILE_GRASS=잔디 +TILE_PLANK_NORMAL=나무판자 +TILE_PLANK_EBONY=흑단 +TILE_PLANK_BIRCH=백단 +TILE_PLANK_ROSEWOOD=자단 +TILE_TRUNK_NORMAL=통나무 +TILE_TRUNK_EBONY=흑단나무 +TILE_TRUNK_BIRCH=자작나무 +TILE_TRUNK_ROSEWOOD=자단나무 + +TILE_SNOW=눈 +TILE_ICE_FRAGILE=살얼음 +TILE_ICE_NATURAL=얼음 +TILE_ICE_CLEAR_MAGICAL=깨끗한 얼음 + + +#################### +## Terminologies # +#################### + +TERM_PHYS_MASS=질량 + + + +########## +## Dev # +########## + +DEV_MEMORY_SHORT_CAP=메모리 +DEV_MEMORY_A_OF_B=%2$sM 중 %1$sM + +DEV_COLOUR_LEGEND_GREEN= 녹 +DEV_COLOUR_LEGEND_BLUE= 청 +DEV_COLOUR_LEGEND_ORANGE= 황 +DEV_COLOUR_LEGEND_RED= 적 + +DEV_MESSAGE_CONSOLE_CODEX=사용 가능한 명령어 목록을 보려면 'codex'를 입력해 주십시오. + + + +############### +## Debugger # +############### + +DBG_TOTAL_ACCEL_X=X축 총 가속 + + + +############## +## Credits # +############## + +CREDITS_POLYGLOT=번역 제공: Polyglot Project + + + +################ +## Languages # +################ + +LANGUAGE_ENGLISH=영어 +LANGUAGE_FRENCH=프랑스어 +LANGUAGE_KOREAN=한국어 diff --git a/res/locales/russian-alph.name b/res/locales/russian-alph.name new file mode 100755 index 000000000..25654f053 --- /dev/null +++ b/res/locales/russian-alph.name @@ -0,0 +1,124 @@ +# Nameset - Russian +# Data taken from www.behindthename.com + +NAMESET_RUSSIAN_MALE_001=Abram +NAMESET_RUSSIAN_MALE_002=Adam +NAMESET_RUSSIAN_MALE_003=Adrian +NAMESET_RUSSIAN_MALE_004=Albert +NAMESET_RUSSIAN_MALE_005=Alexey +NAMESET_RUSSIAN_MALE_006=Anton +NAMESET_RUSSIAN_MALE_007=Artur +NAMESET_RUSSIAN_MALE_008=Benedikt +NAMESET_RUSSIAN_MALE_009=Boris +NAMESET_RUSSIAN_MALE_010=David +NAMESET_RUSSIAN_MALE_011=Denis +NAMESET_RUSSIAN_MALE_012=Dmitriy +NAMESET_RUSSIAN_MALE_013=Eduard +NAMESET_RUSSIAN_MALE_014=Fyodor +NAMESET_RUSSIAN_MALE_015=Genya +NAMESET_RUSSIAN_MALE_016=Grigoriy +NAMESET_RUSSIAN_MALE_017=Igor +NAMESET_RUSSIAN_MALE_018=Iona +NAMESET_RUSSIAN_MALE_019=Iosif +NAMESET_RUSSIAN_MALE_020=Isaak +NAMESET_RUSSIAN_MALE_021=Isidor +NAMESET_RUSSIAN_MALE_022=Ivan +NAMESET_RUSSIAN_MALE_023=Kenya +NAMESET_RUSSIAN_MALE_024=Konstantin +NAMESET_RUSSIAN_MALE_025=Luka +NAMESET_RUSSIAN_MALE_026=Maks +NAMESET_RUSSIAN_MALE_027=Maksim +NAMESET_RUSSIAN_MALE_028=Mark +NAMESET_RUSSIAN_MALE_029=Marlen +NAMESET_RUSSIAN_MALE_030=Martin +NAMESET_RUSSIAN_MALE_031=Maxim +NAMESET_RUSSIAN_MALE_032=Mikhail +NAMESET_RUSSIAN_MALE_033=Milan +NAMESET_RUSSIAN_MALE_034=Nestor +NAMESET_RUSSIAN_MALE_035=Nika +NAMESET_RUSSIAN_MALE_036=Nikita +NAMESET_RUSSIAN_MALE_037=Nikolay +NAMESET_RUSSIAN_MALE_038=Pavel +NAMESET_RUSSIAN_MALE_039=Pyotr +NAMESET_RUSSIAN_MALE_040=Robert +NAMESET_RUSSIAN_MALE_041=Roma +NAMESET_RUSSIAN_MALE_042=Roman +NAMESET_RUSSIAN_MALE_043=Rudolf +NAMESET_RUSSIAN_MALE_044=Sasha +NAMESET_RUSSIAN_MALE_045=Sergey +NAMESET_RUSSIAN_MALE_046=Stas +NAMESET_RUSSIAN_MALE_047=Vadim +NAMESET_RUSSIAN_MALE_048=Valentin +NAMESET_RUSSIAN_MALE_049=Valeriy +NAMESET_RUSSIAN_MALE_050=Viktor +NAMESET_RUSSIAN_MALE_051=Vladimir +NAMESET_RUSSIAN_MALE_052=Yegor +NAMESET_RUSSIAN_MALE_053=Yuriy +NAMESET_RUSSIAN_MALE_054=Zhenya + + +NAMESET_RUSSIAN_FEMALE_001=Agata +NAMESET_RUSSIAN_FEMALE_002=Aleksandra +NAMESET_RUSSIAN_FEMALE_003=Alisa +NAMESET_RUSSIAN_FEMALE_004=Alla +NAMESET_RUSSIAN_FEMALE_005=Anastasia +NAMESET_RUSSIAN_FEMALE_006=Angela +NAMESET_RUSSIAN_FEMALE_007=Angelina +NAMESET_RUSSIAN_FEMALE_008=Anna +NAMESET_RUSSIAN_FEMALE_009=Antonina +NAMESET_RUSSIAN_FEMALE_010=Anya +NAMESET_RUSSIAN_FEMALE_011=Adriana +NAMESET_RUSSIAN_FEMALE_012=Asya +NAMESET_RUSSIAN_FEMALE_013=Diana +NAMESET_RUSSIAN_FEMALE_014=Dominika +NAMESET_RUSSIAN_FEMALE_015=Dunya +NAMESET_RUSSIAN_FEMALE_016=Elena +NAMESET_RUSSIAN_FEMALE_017=Eva +NAMESET_RUSSIAN_FEMALE_018=Filippa +NAMESET_RUSSIAN_FEMALE_019=Gala +NAMESET_RUSSIAN_FEMALE_020=Inga +NAMESET_RUSSIAN_FEMALE_021=Ira +NAMESET_RUSSIAN_FEMALE_022=Irina +NAMESET_RUSSIAN_FEMALE_023=Isidora +NAMESET_RUSSIAN_FEMALE_024=Ivanna +NAMESET_RUSSIAN_FEMALE_025=Karina +NAMESET_RUSSIAN_FEMALE_026=Katerina +NAMESET_RUSSIAN_FEMALE_027=Katia +NAMESET_RUSSIAN_FEMALE_028=Kira +NAMESET_RUSSIAN_FEMALE_029=Klara +NAMESET_RUSSIAN_FEMALE_030=Kristina +NAMESET_RUSSIAN_FEMALE_031=Lana +NAMESET_RUSSIAN_FEMALE_032=Lara +NAMESET_RUSSIAN_FEMALE_033=Larisa +NAMESET_RUSSIAN_FEMALE_034=Lena +NAMESET_RUSSIAN_FEMALE_035=Lilia +NAMESET_RUSSIAN_FEMALE_036=Lilya +NAMESET_RUSSIAN_FEMALE_037=Liza +NAMESET_RUSSIAN_FEMALE_038=Margarita +NAMESET_RUSSIAN_FEMALE_039=Marina +NAMESET_RUSSIAN_FEMALE_040=Milena +NAMESET_RUSSIAN_FEMALE_041=Natalya +NAMESET_RUSSIAN_FEMALE_042=Natasha +NAMESET_RUSSIAN_FEMALE_043=Nika +NAMESET_RUSSIAN_FEMALE_044=Nina +NAMESET_RUSSIAN_FEMALE_045=Olga +NAMESET_RUSSIAN_FEMALE_046=Roksana +NAMESET_RUSSIAN_FEMALE_047=Sabina +NAMESET_RUSSIAN_FEMALE_048=Sasha +NAMESET_RUSSIAN_FEMALE_049=Selena +NAMESET_RUSSIAN_FEMALE_050=Sonya +NAMESET_RUSSIAN_FEMALE_051=Susanna +NAMESET_RUSSIAN_FEMALE_052=Tamara +NAMESET_RUSSIAN_FEMALE_053=Tanya +NAMESET_RUSSIAN_FEMALE_054=Tasha +NAMESET_RUSSIAN_FEMALE_055=Tatiana +NAMESET_RUSSIAN_FEMALE_056=Tatyana +NAMESET_RUSSIAN_FEMALE_057=Toma +NAMESET_RUSSIAN_FEMALE_058=Valentina +NAMESET_RUSSIAN_FEMALE_059=Vera +NAMESET_RUSSIAN_FEMALE_060=Veronika +NAMESET_RUSSIAN_FEMALE_061=Violetta +NAMESET_RUSSIAN_FEMALE_062=Yana +NAMESET_RUSSIAN_FEMALE_063=Yuliana +NAMESET_RUSSIAN_FEMALE_064=Zina +NAMESET_RUSSIAN_FEMALE_065=Zoya \ No newline at end of file diff --git a/res/locales/scandinavian-alph.name b/res/locales/scandinavian-alph.name new file mode 100755 index 000000000..407a71f30 --- /dev/null +++ b/res/locales/scandinavian-alph.name @@ -0,0 +1,334 @@ +# Nameset - Scandinavian +# Data taken from www.behindthename.com +# Translator note: this nameset does not contain name that has [ɹ](american english 'r') sound (except '-er'). i.e. for Korean, 'Carl' should be '카를', 'Aleksander' should be '알렉산더'. + +NAMESET_SCANDINAVIAN_MALE_001=Adam +NAMESET_SCANDINAVIAN_MALE_002=Adrian +NAMESET_SCANDINAVIAN_MALE_003=Aksel +NAMESET_SCANDINAVIAN_MALE_004=Albert +NAMESET_SCANDINAVIAN_MALE_005=Albin +NAMESET_SCANDINAVIAN_MALE_006=Alek +NAMESET_SCANDINAVIAN_MALE_007=Alexander +NAMESET_SCANDINAVIAN_MALE_008=Alfred +NAMESET_SCANDINAVIAN_MALE_009=Amund +NAMESET_SCANDINAVIAN_MALE_010=Andreas +NAMESET_SCANDINAVIAN_MALE_011=Anton +NAMESET_SCANDINAVIAN_MALE_012=Aron +NAMESET_SCANDINAVIAN_MALE_013=Alvard +NAMESET_SCANDINAVIAN_MALE_014=August +NAMESET_SCANDINAVIAN_MALE_015=Axel +NAMESET_SCANDINAVIAN_MALE_016=Björn +NAMESET_SCANDINAVIAN_MALE_017=Bjørn +NAMESET_SCANDINAVIAN_MALE_018=Carl +NAMESET_SCANDINAVIAN_MALE_019=Casper +NAMESET_SCANDINAVIAN_MALE_020=Christian +NAMESET_SCANDINAVIAN_MALE_021=Christoffer +NAMESET_SCANDINAVIAN_MALE_022=Daniel +NAMESET_SCANDINAVIAN_MALE_023=David +# pronounced as [dɑvid], not [deivɪd] +NAMESET_SCANDINAVIAN_MALE_024=Edmund +NAMESET_SCANDINAVIAN_MALE_025=Edvard +NAMESET_SCANDINAVIAN_MALE_026=Edvin +NAMESET_SCANDINAVIAN_MALE_027=Eirik +NAMESET_SCANDINAVIAN_MALE_028=Elias +NAMESET_SCANDINAVIAN_MALE_029=Elis +NAMESET_SCANDINAVIAN_MALE_030=Emanuel +NAMESET_SCANDINAVIAN_MALE_031=Emil +NAMESET_SCANDINAVIAN_MALE_032=Endre +NAMESET_SCANDINAVIAN_MALE_033=Erik +NAMESET_SCANDINAVIAN_MALE_034=Erlend +NAMESET_SCANDINAVIAN_MALE_035=Espen +NAMESET_SCANDINAVIAN_MALE_036=Fabian +NAMESET_SCANDINAVIAN_MALE_037=Felix +NAMESET_SCANDINAVIAN_MALE_038=Filip +NAMESET_SCANDINAVIAN_MALE_039=Frederik +NAMESET_SCANDINAVIAN_MALE_040=Gabriel +NAMESET_SCANDINAVIAN_MALE_041=Gustav +NAMESET_SCANDINAVIAN_MALE_042=Haakon +NAMESET_SCANDINAVIAN_MALE_043=Hákon +NAMESET_SCANDINAVIAN_MALE_044=Håkon +NAMESET_SCANDINAVIAN_MALE_045=Hampus +NAMESET_SCANDINAVIAN_MALE_046=Hanne +NAMESET_SCANDINAVIAN_MALE_047=Hans +NAMESET_SCANDINAVIAN_MALE_048=Håvard +NAMESET_SCANDINAVIAN_MALE_049=Henrik +NAMESET_SCANDINAVIAN_MALE_050=Herman +NAMESET_SCANDINAVIAN_MALE_051=Hjalmar +NAMESET_SCANDINAVIAN_MALE_052=Hugo +NAMESET_SCANDINAVIAN_MALE_053=Isak +NAMESET_SCANDINAVIAN_MALE_054=Ivar +NAMESET_SCANDINAVIAN_MALE_055=Jacob +NAMESET_SCANDINAVIAN_MALE_056=Jakob +NAMESET_SCANDINAVIAN_MALE_057=Jan +NAMESET_SCANDINAVIAN_MALE_058=Jens +NAMESET_SCANDINAVIAN_MALE_059=Jeppe +NAMESET_SCANDINAVIAN_MALE_060=Jesper +NAMESET_SCANDINAVIAN_MALE_061=Joakim +# pronounced as [joakim], not [hoakim] as this is scandinavian section. +NAMESET_SCANDINAVIAN_MALE_062=Joel +NAMESET_SCANDINAVIAN_MALE_063=Johan +NAMESET_SCANDINAVIAN_MALE_064=Jóhannes +NAMESET_SCANDINAVIAN_MALE_065=Jón +NAMESET_SCANDINAVIAN_MALE_066=Jon +NAMESET_SCANDINAVIAN_MALE_067=Jónas +NAMESET_SCANDINAVIAN_MALE_068=Jonas +NAMESET_SCANDINAVIAN_MALE_069=Jonathan +NAMESET_SCANDINAVIAN_MALE_070=Jörgen +NAMESET_SCANDINAVIAN_MALE_071=Jørgen +NAMESET_SCANDINAVIAN_MALE_072=Josef +NAMESET_SCANDINAVIAN_MALE_073=Kalle +NAMESET_SCANDINAVIAN_MALE_074=Kasper +NAMESET_SCANDINAVIAN_MALE_075=Kevin +NAMESET_SCANDINAVIAN_MALE_076=Kim +NAMESET_SCANDINAVIAN_MALE_077=Knut +# pronounced as [knut] +NAMESET_SCANDINAVIAN_MALE_078=Kristian +NAMESET_SCANDINAVIAN_MALE_079=Kristoffer +NAMESET_SCANDINAVIAN_MALE_080=Lars +NAMESET_SCANDINAVIAN_MALE_081=Lasse +NAMESET_SCANDINAVIAN_MALE_082=Laurits +NAMESET_SCANDINAVIAN_MALE_083=Leo +NAMESET_SCANDINAVIAN_MALE_084=Linus +# pronounced as [linus], not [lainəs] as this is scandinavian section. +NAMESET_SCANDINAVIAN_MALE_085=Loke +NAMESET_SCANDINAVIAN_MALE_086=Love +# NOT pronounced as [ləv]! +NAMESET_SCANDINAVIAN_MALE_087=Ludvig +NAMESET_SCANDINAVIAN_MALE_088=Lukas +NAMESET_SCANDINAVIAN_MALE_089=Mads +NAMESET_SCANDINAVIAN_MALE_090=Magnus +NAMESET_SCANDINAVIAN_MALE_091=Malte +NAMESET_SCANDINAVIAN_MALE_092=Malthe +NAMESET_SCANDINAVIAN_MALE_093=Marcus +NAMESET_SCANDINAVIAN_MALE_094=Maria +NAMESET_SCANDINAVIAN_MALE_095=Marius +NAMESET_SCANDINAVIAN_MALE_096=Markus +NAMESET_SCANDINAVIAN_MALE_097=Martin +NAMESET_SCANDINAVIAN_MALE_098=Cyrus +# need more exotic name starting with 'C'... +NAMESET_SCANDINAVIAN_MALE_099=Mats +NAMESET_SCANDINAVIAN_MALE_100=Mattias +NAMESET_SCANDINAVIAN_MALE_101=Max +NAMESET_SCANDINAVIAN_MALE_102=Maximillian +NAMESET_SCANDINAVIAN_MALE_103=Melker +NAMESET_SCANDINAVIAN_MALE_104=Michael +NAMESET_SCANDINAVIAN_MALE_105=Mikael +NAMESET_SCANDINAVIAN_MALE_106=Mikkel +NAMESET_SCANDINAVIAN_MALE_107=Morten +NAMESET_SCANDINAVIAN_MALE_108=Niklas +NAMESET_SCANDINAVIAN_MALE_109=Nikolaj +NAMESET_SCANDINAVIAN_MALE_110=Nils +NAMESET_SCANDINAVIAN_MALE_111=Odin +NAMESET_SCANDINAVIAN_MALE_112=Ola +NAMESET_SCANDINAVIAN_MALE_113=Olaf +NAMESET_SCANDINAVIAN_MALE_114=Olav +NAMESET_SCANDINAVIAN_MALE_115=Ole +NAMESET_SCANDINAVIAN_MALE_116=Oliver +NAMESET_SCANDINAVIAN_MALE_117=Olle +NAMESET_SCANDINAVIAN_MALE_118=Olof +NAMESET_SCANDINAVIAN_MALE_119=Oscar +NAMESET_SCANDINAVIAN_MALE_120=Óskar +NAMESET_SCANDINAVIAN_MALE_121=Oskar +NAMESET_SCANDINAVIAN_MALE_122=Otto +NAMESET_SCANDINAVIAN_MALE_123=Patrik +NAMESET_SCANDINAVIAN_MALE_124=Peder +NAMESET_SCANDINAVIAN_MALE_125=Per +NAMESET_SCANDINAVIAN_MALE_126=Petter +NAMESET_SCANDINAVIAN_MALE_127=Philip +NAMESET_SCANDINAVIAN_MALE_128=Pontus +NAMESET_SCANDINAVIAN_MALE_129=Preben +NAMESET_SCANDINAVIAN_MALE_130=Rafael +NAMESET_SCANDINAVIAN_MALE_131=Reid +NAMESET_SCANDINAVIAN_MALE_132=Robert +NAMESET_SCANDINAVIAN_MALE_133=Robin +NAMESET_SCANDINAVIAN_MALE_134=Samuel +NAMESET_SCANDINAVIAN_MALE_135=Sander +NAMESET_SCANDINAVIAN_MALE_136=Sebastian +NAMESET_SCANDINAVIAN_MALE_137=Sigge +NAMESET_SCANDINAVIAN_MALE_138=Sigurd +NAMESET_SCANDINAVIAN_MALE_139=Simen +NAMESET_SCANDINAVIAN_MALE_140=Simon +NAMESET_SCANDINAVIAN_MALE_141=Sindre +NAMESET_SCANDINAVIAN_MALE_142=Sixten +NAMESET_SCANDINAVIAN_MALE_143=Stefan +NAMESET_SCANDINAVIAN_MALE_144=Steffen +NAMESET_SCANDINAVIAN_MALE_145=Stian +NAMESET_SCANDINAVIAN_MALE_146=Svante +NAMESET_SCANDINAVIAN_MALE_147=Sven +NAMESET_SCANDINAVIAN_MALE_148=Teodor +NAMESET_SCANDINAVIAN_MALE_149=Theodor +NAMESET_SCANDINAVIAN_MALE_150=Thomas +NAMESET_SCANDINAVIAN_MALE_151=Tim +NAMESET_SCANDINAVIAN_MALE_152=Tobias +NAMESET_SCANDINAVIAN_MALE_153=Tor +NAMESET_SCANDINAVIAN_MALE_154=Truls +NAMESET_SCANDINAVIAN_MALE_155=Ulrik +NAMESET_SCANDINAVIAN_MALE_156=Valdemar +NAMESET_SCANDINAVIAN_MALE_157=Valter +NAMESET_SCANDINAVIAN_MALE_158=Vidar +NAMESET_SCANDINAVIAN_MALE_159=Viggo +NAMESET_SCANDINAVIAN_MALE_160=Viktor +NAMESET_SCANDINAVIAN_MALE_161=Ville +NAMESET_SCANDINAVIAN_MALE_162=Vincent + +# feminine names + +NAMESET_SCANDINAVIAN_FEMALE_001=Agnes +NAMESET_SCANDINAVIAN_FEMALE_002=Alberte +NAMESET_SCANDINAVIAN_FEMALE_003=Alexandra +NAMESET_SCANDINAVIAN_FEMALE_004=Alva +NAMESET_SCANDINAVIAN_FEMALE_005=Amanda +NAMESET_SCANDINAVIAN_FEMALE_006=Andrea +NAMESET_SCANDINAVIAN_FEMALE_007=Ane +NAMESET_SCANDINAVIAN_FEMALE_008=Anna +NAMESET_SCANDINAVIAN_FEMALE_009=Anne +NAMESET_SCANDINAVIAN_FEMALE_010=Anniken +NAMESET_SCANDINAVIAN_FEMALE_011=Asta +NAMESET_SCANDINAVIAN_FEMALE_012=Astrid +NAMESET_SCANDINAVIAN_FEMALE_013=Beatrice +NAMESET_SCANDINAVIAN_FEMALE_014=Camilla +NAMESET_SCANDINAVIAN_FEMALE_015=Carolina +NAMESET_SCANDINAVIAN_FEMALE_016=Caroline +NAMESET_SCANDINAVIAN_FEMALE_017=Cecilia +NAMESET_SCANDINAVIAN_FEMALE_018=Celina +NAMESET_SCANDINAVIAN_FEMALE_019=Charlotte +NAMESET_SCANDINAVIAN_FEMALE_020=Christina +NAMESET_SCANDINAVIAN_FEMALE_021=Christine +NAMESET_SCANDINAVIAN_FEMALE_022=Ebba +NAMESET_SCANDINAVIAN_FEMALE_023=Edith +NAMESET_SCANDINAVIAN_FEMALE_024=Elin +NAMESET_SCANDINAVIAN_FEMALE_025=Elina +NAMESET_SCANDINAVIAN_FEMALE_026=Elisabeth +NAMESET_SCANDINAVIAN_FEMALE_027=Elise +NAMESET_SCANDINAVIAN_FEMALE_028=Ella +NAMESET_SCANDINAVIAN_FEMALE_029=Ellinor +NAMESET_SCANDINAVIAN_FEMALE_030=Elsa +NAMESET_SCANDINAVIAN_FEMALE_031=Emelie +NAMESET_SCANDINAVIAN_FEMALE_032=Emilia +NAMESET_SCANDINAVIAN_FEMALE_033=Emilie +NAMESET_SCANDINAVIAN_FEMALE_034=Emma +NAMESET_SCANDINAVIAN_FEMALE_035=Erika +NAMESET_SCANDINAVIAN_FEMALE_036=Erle +NAMESET_SCANDINAVIAN_FEMALE_037=Ester +NAMESET_SCANDINAVIAN_FEMALE_038=Eva +NAMESET_SCANDINAVIAN_FEMALE_039=Evelina +NAMESET_SCANDINAVIAN_FEMALE_040=Felicia +NAMESET_SCANDINAVIAN_FEMALE_041=Filippa +NAMESET_SCANDINAVIAN_FEMALE_042=Frederikke +NAMESET_SCANDINAVIAN_FEMALE_043=Freja +NAMESET_SCANDINAVIAN_FEMALE_044=Frida +NAMESET_SCANDINAVIAN_FEMALE_045=Gabriella +NAMESET_SCANDINAVIAN_FEMALE_046=Greta +NAMESET_SCANDINAVIAN_FEMALE_047=Hanna +NAMESET_SCANDINAVIAN_FEMALE_048=Hanne +NAMESET_SCANDINAVIAN_FEMALE_049=Hedda +NAMESET_SCANDINAVIAN_FEMALE_050=Hedvig +NAMESET_SCANDINAVIAN_FEMALE_051=Helena +NAMESET_SCANDINAVIAN_FEMALE_052=Helene +NAMESET_SCANDINAVIAN_FEMALE_053=Helle +NAMESET_SCANDINAVIAN_FEMALE_054=Henriette +NAMESET_SCANDINAVIAN_FEMALE_055=Hilda +NAMESET_SCANDINAVIAN_FEMALE_056=Ida +NAMESET_SCANDINAVIAN_FEMALE_057=Ina +NAMESET_SCANDINAVIAN_FEMALE_058=Ingeborg +NAMESET_SCANDINAVIAN_FEMALE_059=Ingrid +NAMESET_SCANDINAVIAN_FEMALE_060=Ingvild +NAMESET_SCANDINAVIAN_FEMALE_061=Iris +NAMESET_SCANDINAVIAN_FEMALE_062=Isabella +NAMESET_SCANDINAVIAN_FEMALE_063=Jessica +NAMESET_SCANDINAVIAN_FEMALE_064=Jóhanna +NAMESET_SCANDINAVIAN_FEMALE_065=Johanna +NAMESET_SCANDINAVIAN_FEMALE_066=Johanne +NAMESET_SCANDINAVIAN_FEMALE_067=Jonna +NAMESET_SCANDINAVIAN_FEMALE_068=Julia +# pronounced as [julia], not [d͡ʒulia] +NAMESET_SCANDINAVIAN_FEMALE_069=Kaja +NAMESET_SCANDINAVIAN_FEMALE_070=Kajsa +NAMESET_SCANDINAVIAN_FEMALE_071=Kamilla +NAMESET_SCANDINAVIAN_FEMALE_072=Karen +NAMESET_SCANDINAVIAN_FEMALE_073=Karin +NAMESET_SCANDINAVIAN_FEMALE_074=Karoline +NAMESET_SCANDINAVIAN_FEMALE_075=Katrine +NAMESET_SCANDINAVIAN_FEMALE_076=Klara +NAMESET_SCANDINAVIAN_FEMALE_077=Kristín +NAMESET_SCANDINAVIAN_FEMALE_078=Kristin +NAMESET_SCANDINAVIAN_FEMALE_079=Kristina +NAMESET_SCANDINAVIAN_FEMALE_080=Kristine +NAMESET_SCANDINAVIAN_FEMALE_081=Lærke +NAMESET_SCANDINAVIAN_FEMALE_082=Laura +NAMESET_SCANDINAVIAN_FEMALE_083=Lea +NAMESET_SCANDINAVIAN_FEMALE_084=Lene +NAMESET_SCANDINAVIAN_FEMALE_085=Lilly +NAMESET_SCANDINAVIAN_FEMALE_086=Lina +NAMESET_SCANDINAVIAN_FEMALE_087=Linda +NAMESET_SCANDINAVIAN_FEMALE_088=Line +NAMESET_SCANDINAVIAN_FEMALE_089=Linn +NAMESET_SCANDINAVIAN_FEMALE_090=Linnéa +NAMESET_SCANDINAVIAN_FEMALE_091=Lisa +NAMESET_SCANDINAVIAN_FEMALE_092=Liv +NAMESET_SCANDINAVIAN_FEMALE_093=Lotte +NAMESET_SCANDINAVIAN_FEMALE_094=Lovisa +NAMESET_SCANDINAVIAN_FEMALE_095=Lykke +NAMESET_SCANDINAVIAN_FEMALE_096=Maiken +NAMESET_SCANDINAVIAN_FEMALE_097=Maja +NAMESET_SCANDINAVIAN_FEMALE_098=Majken +NAMESET_SCANDINAVIAN_FEMALE_099=Malene +NAMESET_SCANDINAVIAN_FEMALE_100=Malin +NAMESET_SCANDINAVIAN_FEMALE_101=Maren +NAMESET_SCANDINAVIAN_FEMALE_102=Mari +NAMESET_SCANDINAVIAN_FEMALE_103=Maria +NAMESET_SCANDINAVIAN_FEMALE_104=Marie +NAMESET_SCANDINAVIAN_FEMALE_105=Märta +NAMESET_SCANDINAVIAN_FEMALE_106=Marta +NAMESET_SCANDINAVIAN_FEMALE_107=Marte +NAMESET_SCANDINAVIAN_FEMALE_108=Mathilde +NAMESET_SCANDINAVIAN_FEMALE_109=Matilda +NAMESET_SCANDINAVIAN_FEMALE_110=Mia +NAMESET_SCANDINAVIAN_FEMALE_111=Mikaela +NAMESET_SCANDINAVIAN_FEMALE_112=Milla +NAMESET_SCANDINAVIAN_FEMALE_113=Moa +NAMESET_SCANDINAVIAN_FEMALE_114=My +NAMESET_SCANDINAVIAN_FEMALE_115=Nanna +NAMESET_SCANDINAVIAN_FEMALE_116=Nora +NAMESET_SCANDINAVIAN_FEMALE_117=Olivia +NAMESET_SCANDINAVIAN_FEMALE_118=Paulina +NAMESET_SCANDINAVIAN_FEMALE_119=Pernille +NAMESET_SCANDINAVIAN_FEMALE_120=Pia +NAMESET_SCANDINAVIAN_FEMALE_121=Ragnhild +NAMESET_SCANDINAVIAN_FEMALE_122=Rebecca +NAMESET_SCANDINAVIAN_FEMALE_123=Rebecka +NAMESET_SCANDINAVIAN_FEMALE_124=Rebekka +NAMESET_SCANDINAVIAN_FEMALE_125=Rikke +NAMESET_SCANDINAVIAN_FEMALE_126=Robin +NAMESET_SCANDINAVIAN_FEMALE_127=Ronja +NAMESET_SCANDINAVIAN_FEMALE_128=Rosa +NAMESET_SCANDINAVIAN_FEMALE_129=Rut +NAMESET_SCANDINAVIAN_FEMALE_130=Saga +NAMESET_SCANDINAVIAN_FEMALE_131=Sandra +NAMESET_SCANDINAVIAN_FEMALE_132=Sanna +NAMESET_SCANDINAVIAN_FEMALE_133=Sara +NAMESET_SCANDINAVIAN_FEMALE_134=Semla +NAMESET_SCANDINAVIAN_FEMALE_135=Signe +NAMESET_SCANDINAVIAN_FEMALE_136=Sigrid +NAMESET_SCANDINAVIAN_FEMALE_137=Silje +NAMESET_SCANDINAVIAN_FEMALE_138=Sille +NAMESET_SCANDINAVIAN_FEMALE_139=Siri +NAMESET_SCANDINAVIAN_FEMALE_140=Sofia +NAMESET_SCANDINAVIAN_FEMALE_141=Sofie +NAMESET_SCANDINAVIAN_FEMALE_142=Solveig +NAMESET_SCANDINAVIAN_FEMALE_143=Stina +NAMESET_SCANDINAVIAN_FEMALE_144=Stine +NAMESET_SCANDINAVIAN_FEMALE_145=Sunniva +NAMESET_SCANDINAVIAN_FEMALE_146=Susanne +NAMESET_SCANDINAVIAN_FEMALE_147=Svea +NAMESET_SCANDINAVIAN_FEMALE_148=Thea +NAMESET_SCANDINAVIAN_FEMALE_149=Therese +NAMESET_SCANDINAVIAN_FEMALE_150=Tilda +NAMESET_SCANDINAVIAN_FEMALE_151=Tova +NAMESET_SCANDINAVIAN_FEMALE_152=Tove +NAMESET_SCANDINAVIAN_FEMALE_153=Tuva +NAMESET_SCANDINAVIAN_FEMALE_154=Tyra +NAMESET_SCANDINAVIAN_FEMALE_155=Vendela +NAMESET_SCANDINAVIAN_FEMALE_156=Vera +NAMESET_SCANDINAVIAN_FEMALE_157=Viktoria +NAMESET_SCANDINAVIAN_FEMALE_158=Ylva diff --git a/res/locales/scandinavian-hangul.name b/res/locales/scandinavian-hangul.name new file mode 100755 index 000000000..8ff2322ea --- /dev/null +++ b/res/locales/scandinavian-hangul.name @@ -0,0 +1,335 @@ +# Nameset - Scandinavian +# Data taken from www.behindthename.com +# Translator note: this nameset does not contain name that has [ɹ](american english 'r') sound (except '-er'). i.e. for Korean, 'Carl' should be '카를', 'Aleksander' should be '알렉산더'. +# Hangul version author: Torvald (main dev) 한글 전사: 토르발드 (개발진) + +NAMESET_SCANDINAVIAN_MALE_001=아담 +NAMESET_SCANDINAVIAN_MALE_002=아드리안 +NAMESET_SCANDINAVIAN_MALE_003=악셀 +NAMESET_SCANDINAVIAN_MALE_004=알베르 +NAMESET_SCANDINAVIAN_MALE_005=알빈 +NAMESET_SCANDINAVIAN_MALE_006=알렉 +NAMESET_SCANDINAVIAN_MALE_007=알렉산더 +NAMESET_SCANDINAVIAN_MALE_008=알프레드 +NAMESET_SCANDINAVIAN_MALE_009=아문드 +NAMESET_SCANDINAVIAN_MALE_010=안드레아스 +NAMESET_SCANDINAVIAN_MALE_011=안톤 +NAMESET_SCANDINAVIAN_MALE_012=아론 +NAMESET_SCANDINAVIAN_MALE_013=알바르 +NAMESET_SCANDINAVIAN_MALE_014=아우구스트 +NAMESET_SCANDINAVIAN_MALE_015=악셀 +NAMESET_SCANDINAVIAN_MALE_016=비외른 +NAMESET_SCANDINAVIAN_MALE_017=비외른 +NAMESET_SCANDINAVIAN_MALE_018=카를 +NAMESET_SCANDINAVIAN_MALE_019=카스퍼 +NAMESET_SCANDINAVIAN_MALE_020=크리스티안 +NAMESET_SCANDINAVIAN_MALE_021=크리스토퍼 +NAMESET_SCANDINAVIAN_MALE_022=다니엘 +NAMESET_SCANDINAVIAN_MALE_023=다비드 +# pronounced as [dɑvid], not [deivɪd] +NAMESET_SCANDINAVIAN_MALE_024=에드문드 +NAMESET_SCANDINAVIAN_MALE_025=에드바르 +NAMESET_SCANDINAVIAN_MALE_026=에드빈 +NAMESET_SCANDINAVIAN_MALE_027=에릭 +NAMESET_SCANDINAVIAN_MALE_028=엘리아스 +NAMESET_SCANDINAVIAN_MALE_029=엘리스 +NAMESET_SCANDINAVIAN_MALE_030=에마누엘 +NAMESET_SCANDINAVIAN_MALE_031=에밀 +NAMESET_SCANDINAVIAN_MALE_032=에인드리 +NAMESET_SCANDINAVIAN_MALE_033=에릭 +NAMESET_SCANDINAVIAN_MALE_034=에를렌드 +NAMESET_SCANDINAVIAN_MALE_035=에스펜 +NAMESET_SCANDINAVIAN_MALE_036=파비안 +NAMESET_SCANDINAVIAN_MALE_037=펠릭스 +NAMESET_SCANDINAVIAN_MALE_038=필립 +NAMESET_SCANDINAVIAN_MALE_039=프레데릭 +NAMESET_SCANDINAVIAN_MALE_040=가브리엘 +NAMESET_SCANDINAVIAN_MALE_041=구스타프 +NAMESET_SCANDINAVIAN_MALE_042=하콘 +NAMESET_SCANDINAVIAN_MALE_043=하콘 +NAMESET_SCANDINAVIAN_MALE_044=호콘 +NAMESET_SCANDINAVIAN_MALE_045=함푸스 +NAMESET_SCANDINAVIAN_MALE_046=한네 +NAMESET_SCANDINAVIAN_MALE_047=한스 +NAMESET_SCANDINAVIAN_MALE_048=호바르 +NAMESET_SCANDINAVIAN_MALE_049=헨릭 +NAMESET_SCANDINAVIAN_MALE_050=헤르만 +NAMESET_SCANDINAVIAN_MALE_051=히알마르 +NAMESET_SCANDINAVIAN_MALE_052=휴고 +NAMESET_SCANDINAVIAN_MALE_053=이삭 +NAMESET_SCANDINAVIAN_MALE_054=이바르 +NAMESET_SCANDINAVIAN_MALE_055=야콥 +NAMESET_SCANDINAVIAN_MALE_056=야콥 +NAMESET_SCANDINAVIAN_MALE_057=얀 +NAMESET_SCANDINAVIAN_MALE_058=옌스 +NAMESET_SCANDINAVIAN_MALE_059=예프 +NAMESET_SCANDINAVIAN_MALE_060=예스퍼 +NAMESET_SCANDINAVIAN_MALE_061=요아킴 +# pronounced as [joakim], not [hoakim] as this is scandinavian section. +NAMESET_SCANDINAVIAN_MALE_062=요엘 +NAMESET_SCANDINAVIAN_MALE_063=요한 +NAMESET_SCANDINAVIAN_MALE_064=요한네스 +NAMESET_SCANDINAVIAN_MALE_065=욘 +NAMESET_SCANDINAVIAN_MALE_066=욘 +NAMESET_SCANDINAVIAN_MALE_067=요나스 +NAMESET_SCANDINAVIAN_MALE_068=요나스 +NAMESET_SCANDINAVIAN_MALE_069=요나단 +NAMESET_SCANDINAVIAN_MALE_070=이외르겐 +NAMESET_SCANDINAVIAN_MALE_071=이외르겐 +NAMESET_SCANDINAVIAN_MALE_072=요세프 +NAMESET_SCANDINAVIAN_MALE_073=칼 +NAMESET_SCANDINAVIAN_MALE_074=카스퍼 +NAMESET_SCANDINAVIAN_MALE_075=케빈 +NAMESET_SCANDINAVIAN_MALE_076=킴 +NAMESET_SCANDINAVIAN_MALE_077=크누트 +# pronounced as [knut] +NAMESET_SCANDINAVIAN_MALE_078=크리스티안 +NAMESET_SCANDINAVIAN_MALE_079=크리스토퍼 +NAMESET_SCANDINAVIAN_MALE_080=라르스 +NAMESET_SCANDINAVIAN_MALE_081=라세 +NAMESET_SCANDINAVIAN_MALE_082=라우리츠 +NAMESET_SCANDINAVIAN_MALE_083=레오 +NAMESET_SCANDINAVIAN_MALE_084=리누스 +# pronounced as [linus], not [lainəs] as this is scandinavian section. +NAMESET_SCANDINAVIAN_MALE_085=로케 +NAMESET_SCANDINAVIAN_MALE_086=로베 +# NOT pronounced as [ləv]! +NAMESET_SCANDINAVIAN_MALE_087=루드빅 +NAMESET_SCANDINAVIAN_MALE_088=루카스 +NAMESET_SCANDINAVIAN_MALE_089=마드스 +NAMESET_SCANDINAVIAN_MALE_090=마그누스 +NAMESET_SCANDINAVIAN_MALE_091=말테 +NAMESET_SCANDINAVIAN_MALE_092=말테 +NAMESET_SCANDINAVIAN_MALE_093=마르쿠스 +NAMESET_SCANDINAVIAN_MALE_094=마리아 +NAMESET_SCANDINAVIAN_MALE_095=마리우스 +NAMESET_SCANDINAVIAN_MALE_096=마르쿠스 +NAMESET_SCANDINAVIAN_MALE_097=마르틴 +NAMESET_SCANDINAVIAN_MALE_098=키루스 +# need more exotic name starting with 'C'... +NAMESET_SCANDINAVIAN_MALE_099=마츠 +NAMESET_SCANDINAVIAN_MALE_100=마티아스 +NAMESET_SCANDINAVIAN_MALE_101=막스 +NAMESET_SCANDINAVIAN_MALE_102=막시밀리안 +NAMESET_SCANDINAVIAN_MALE_103=멜케르 +NAMESET_SCANDINAVIAN_MALE_104=미카엘 +NAMESET_SCANDINAVIAN_MALE_105=미카엘 +NAMESET_SCANDINAVIAN_MALE_106=미켈 +NAMESET_SCANDINAVIAN_MALE_107=모르텐 +NAMESET_SCANDINAVIAN_MALE_108=니클라스 +NAMESET_SCANDINAVIAN_MALE_109=니콜라이 +NAMESET_SCANDINAVIAN_MALE_110=닐스 +NAMESET_SCANDINAVIAN_MALE_111=오딘 +NAMESET_SCANDINAVIAN_MALE_112=올라 +NAMESET_SCANDINAVIAN_MALE_113=올라프 +NAMESET_SCANDINAVIAN_MALE_114=올라브 +NAMESET_SCANDINAVIAN_MALE_115=올레 +NAMESET_SCANDINAVIAN_MALE_116=올리버 +NAMESET_SCANDINAVIAN_MALE_117=올레 +NAMESET_SCANDINAVIAN_MALE_118=올로프 +NAMESET_SCANDINAVIAN_MALE_119=오스카르 +NAMESET_SCANDINAVIAN_MALE_120=오스카르 +NAMESET_SCANDINAVIAN_MALE_121=오스카르 +NAMESET_SCANDINAVIAN_MALE_122=오토 +NAMESET_SCANDINAVIAN_MALE_123=파트릭 +NAMESET_SCANDINAVIAN_MALE_124=페더 +NAMESET_SCANDINAVIAN_MALE_125=페르 +NAMESET_SCANDINAVIAN_MALE_126=페터 +NAMESET_SCANDINAVIAN_MALE_127=필립 +NAMESET_SCANDINAVIAN_MALE_128=폰투스 +NAMESET_SCANDINAVIAN_MALE_129=프레벤 +NAMESET_SCANDINAVIAN_MALE_130=라파엘 +NAMESET_SCANDINAVIAN_MALE_131=리드 +NAMESET_SCANDINAVIAN_MALE_132=로베르트 +NAMESET_SCANDINAVIAN_MALE_133=로빈 +NAMESET_SCANDINAVIAN_MALE_134=사무엘 +NAMESET_SCANDINAVIAN_MALE_135=산더 +NAMESET_SCANDINAVIAN_MALE_136=세바스티안 +NAMESET_SCANDINAVIAN_MALE_137=시게 +NAMESET_SCANDINAVIAN_MALE_138=시구르 +NAMESET_SCANDINAVIAN_MALE_139=시멘 +NAMESET_SCANDINAVIAN_MALE_140=시몬 +NAMESET_SCANDINAVIAN_MALE_141=신드레 +NAMESET_SCANDINAVIAN_MALE_142=시그스텐 +NAMESET_SCANDINAVIAN_MALE_143=스테판 +NAMESET_SCANDINAVIAN_MALE_144=스테펜 +NAMESET_SCANDINAVIAN_MALE_145=스티안 +NAMESET_SCANDINAVIAN_MALE_146=스반테 +NAMESET_SCANDINAVIAN_MALE_147=스벤 +NAMESET_SCANDINAVIAN_MALE_148=테오도르 +NAMESET_SCANDINAVIAN_MALE_149=테오도르 +NAMESET_SCANDINAVIAN_MALE_150=토마스 +NAMESET_SCANDINAVIAN_MALE_151=팀 +NAMESET_SCANDINAVIAN_MALE_152=토비아스 +NAMESET_SCANDINAVIAN_MALE_153=토드 +NAMESET_SCANDINAVIAN_MALE_154=트룰스 +NAMESET_SCANDINAVIAN_MALE_155=울프릭 +NAMESET_SCANDINAVIAN_MALE_156=발데마르 +NAMESET_SCANDINAVIAN_MALE_157=발터 +NAMESET_SCANDINAVIAN_MALE_158=비다르 +NAMESET_SCANDINAVIAN_MALE_159=비고 +NAMESET_SCANDINAVIAN_MALE_160=빅토르 +NAMESET_SCANDINAVIAN_MALE_161=빌레 +NAMESET_SCANDINAVIAN_MALE_162=빈센트 + +# feminine names + +NAMESET_SCANDINAVIAN_FEMALE_001=아그네스 +NAMESET_SCANDINAVIAN_FEMALE_002=알베르테 +NAMESET_SCANDINAVIAN_FEMALE_003=알렉산드라 +NAMESET_SCANDINAVIAN_FEMALE_004=알바 +NAMESET_SCANDINAVIAN_FEMALE_005=아만다 +NAMESET_SCANDINAVIAN_FEMALE_006=안드레아 +NAMESET_SCANDINAVIAN_FEMALE_007=아네 +NAMESET_SCANDINAVIAN_FEMALE_008=안나 +NAMESET_SCANDINAVIAN_FEMALE_009=안네 +NAMESET_SCANDINAVIAN_FEMALE_010=안니켄 +NAMESET_SCANDINAVIAN_FEMALE_011=아스타 +NAMESET_SCANDINAVIAN_FEMALE_012=아스트리드 +NAMESET_SCANDINAVIAN_FEMALE_013=베아트리케 +NAMESET_SCANDINAVIAN_FEMALE_014=카밀라 +NAMESET_SCANDINAVIAN_FEMALE_015=카롤리나 +NAMESET_SCANDINAVIAN_FEMALE_016=카롤리네 +NAMESET_SCANDINAVIAN_FEMALE_017=세실리아 +NAMESET_SCANDINAVIAN_FEMALE_018=첼리나 +NAMESET_SCANDINAVIAN_FEMALE_019=카를로테 +NAMESET_SCANDINAVIAN_FEMALE_020=크리스티나 +NAMESET_SCANDINAVIAN_FEMALE_021=크리스티네 +NAMESET_SCANDINAVIAN_FEMALE_022=에바 +NAMESET_SCANDINAVIAN_FEMALE_023=에디스 +NAMESET_SCANDINAVIAN_FEMALE_024=엘린 +NAMESET_SCANDINAVIAN_FEMALE_025=엘리나 +NAMESET_SCANDINAVIAN_FEMALE_026=엘리사베스 +NAMESET_SCANDINAVIAN_FEMALE_027=엘리세 +NAMESET_SCANDINAVIAN_FEMALE_028=엘라 +NAMESET_SCANDINAVIAN_FEMALE_029=엘리노르 +NAMESET_SCANDINAVIAN_FEMALE_030=엘사 +NAMESET_SCANDINAVIAN_FEMALE_031=에밀리에 +NAMESET_SCANDINAVIAN_FEMALE_032=에밀리아 +NAMESET_SCANDINAVIAN_FEMALE_033=에밀리에 +NAMESET_SCANDINAVIAN_FEMALE_034=엠마 +NAMESET_SCANDINAVIAN_FEMALE_035=에리카 +NAMESET_SCANDINAVIAN_FEMALE_036=에를레 +NAMESET_SCANDINAVIAN_FEMALE_037=에스테르 +NAMESET_SCANDINAVIAN_FEMALE_038=에바 +NAMESET_SCANDINAVIAN_FEMALE_039=에벨리나 +NAMESET_SCANDINAVIAN_FEMALE_040=펠리시아 +NAMESET_SCANDINAVIAN_FEMALE_041=필리파 +NAMESET_SCANDINAVIAN_FEMALE_042=프레데리케 +NAMESET_SCANDINAVIAN_FEMALE_043=프레야 +NAMESET_SCANDINAVIAN_FEMALE_044=프리다 +NAMESET_SCANDINAVIAN_FEMALE_045=가브리엘라 +NAMESET_SCANDINAVIAN_FEMALE_046=그레타 +NAMESET_SCANDINAVIAN_FEMALE_047=한나 +NAMESET_SCANDINAVIAN_FEMALE_048=한네 +NAMESET_SCANDINAVIAN_FEMALE_049=헤다 +NAMESET_SCANDINAVIAN_FEMALE_050=헤드비그 +NAMESET_SCANDINAVIAN_FEMALE_051=헬레나 +NAMESET_SCANDINAVIAN_FEMALE_052=헬레네 +NAMESET_SCANDINAVIAN_FEMALE_053=헬레 +NAMESET_SCANDINAVIAN_FEMALE_054=헨리에트 +NAMESET_SCANDINAVIAN_FEMALE_055=힐다 +NAMESET_SCANDINAVIAN_FEMALE_056=이다 +NAMESET_SCANDINAVIAN_FEMALE_057=이나 +NAMESET_SCANDINAVIAN_FEMALE_058=잉게보리 +NAMESET_SCANDINAVIAN_FEMALE_059=잉그리 +NAMESET_SCANDINAVIAN_FEMALE_060=잉그빌드 +NAMESET_SCANDINAVIAN_FEMALE_061=이리스 +NAMESET_SCANDINAVIAN_FEMALE_062=이사벨라 +NAMESET_SCANDINAVIAN_FEMALE_063=예시카 +NAMESET_SCANDINAVIAN_FEMALE_064=요한나 +NAMESET_SCANDINAVIAN_FEMALE_065=요한나 +NAMESET_SCANDINAVIAN_FEMALE_066=요한네 +NAMESET_SCANDINAVIAN_FEMALE_067=요나 +NAMESET_SCANDINAVIAN_FEMALE_068=율리아 +# pronounced as [julia], not [d͡ʒulia] +NAMESET_SCANDINAVIAN_FEMALE_069=카야 +NAMESET_SCANDINAVIAN_FEMALE_070=카트리나 +NAMESET_SCANDINAVIAN_FEMALE_071=카밀라 +NAMESET_SCANDINAVIAN_FEMALE_072=카렌 +NAMESET_SCANDINAVIAN_FEMALE_073=카린 +NAMESET_SCANDINAVIAN_FEMALE_074=카롤리네 +NAMESET_SCANDINAVIAN_FEMALE_075=카트리네 +NAMESET_SCANDINAVIAN_FEMALE_076=클라라 +NAMESET_SCANDINAVIAN_FEMALE_077=크리스틴 +NAMESET_SCANDINAVIAN_FEMALE_078=크리스틴 +NAMESET_SCANDINAVIAN_FEMALE_079=크리스티나 +NAMESET_SCANDINAVIAN_FEMALE_080=크리스티네 +NAMESET_SCANDINAVIAN_FEMALE_081=레르케 +NAMESET_SCANDINAVIAN_FEMALE_082=라우라 +NAMESET_SCANDINAVIAN_FEMALE_083=레아 +NAMESET_SCANDINAVIAN_FEMALE_084=레네 +NAMESET_SCANDINAVIAN_FEMALE_085=릴리 +NAMESET_SCANDINAVIAN_FEMALE_086=리나 +NAMESET_SCANDINAVIAN_FEMALE_087=린다 +NAMESET_SCANDINAVIAN_FEMALE_088=리네 +NAMESET_SCANDINAVIAN_FEMALE_089=린 +NAMESET_SCANDINAVIAN_FEMALE_090=린네아 +NAMESET_SCANDINAVIAN_FEMALE_091=리사 +NAMESET_SCANDINAVIAN_FEMALE_092=리브 +NAMESET_SCANDINAVIAN_FEMALE_093=로테 +NAMESET_SCANDINAVIAN_FEMALE_094=로비사 +NAMESET_SCANDINAVIAN_FEMALE_095=리케 +NAMESET_SCANDINAVIAN_FEMALE_096=마이켄 +NAMESET_SCANDINAVIAN_FEMALE_097=마야 +NAMESET_SCANDINAVIAN_FEMALE_098=마이켄 +NAMESET_SCANDINAVIAN_FEMALE_099=말레네 +NAMESET_SCANDINAVIAN_FEMALE_100=말린 +NAMESET_SCANDINAVIAN_FEMALE_101=마렌 +NAMESET_SCANDINAVIAN_FEMALE_102=마리 +NAMESET_SCANDINAVIAN_FEMALE_103=마리아 +NAMESET_SCANDINAVIAN_FEMALE_104=마리에 +NAMESET_SCANDINAVIAN_FEMALE_105=메르타 +NAMESET_SCANDINAVIAN_FEMALE_106=마르타 +NAMESET_SCANDINAVIAN_FEMALE_107=마르테 +NAMESET_SCANDINAVIAN_FEMALE_108=마틸데 +NAMESET_SCANDINAVIAN_FEMALE_109=마틸다 +NAMESET_SCANDINAVIAN_FEMALE_110=미아 +NAMESET_SCANDINAVIAN_FEMALE_111=미카엘라 +NAMESET_SCANDINAVIAN_FEMALE_112=밀라 +NAMESET_SCANDINAVIAN_FEMALE_113=모아 +NAMESET_SCANDINAVIAN_FEMALE_114=미 +NAMESET_SCANDINAVIAN_FEMALE_115=난나 +NAMESET_SCANDINAVIAN_FEMALE_116=노라 +NAMESET_SCANDINAVIAN_FEMALE_117=올리비아 +NAMESET_SCANDINAVIAN_FEMALE_118=파울리나 +NAMESET_SCANDINAVIAN_FEMALE_119=페르닐레 +NAMESET_SCANDINAVIAN_FEMALE_120=피아 +NAMESET_SCANDINAVIAN_FEMALE_121=라그닐드 +NAMESET_SCANDINAVIAN_FEMALE_122=레베카 +NAMESET_SCANDINAVIAN_FEMALE_123=레베카 +NAMESET_SCANDINAVIAN_FEMALE_124=레베카 +NAMESET_SCANDINAVIAN_FEMALE_125=리케 +NAMESET_SCANDINAVIAN_FEMALE_126=로빈 +NAMESET_SCANDINAVIAN_FEMALE_127=로냐 +NAMESET_SCANDINAVIAN_FEMALE_128=로사 +NAMESET_SCANDINAVIAN_FEMALE_129=루트 +NAMESET_SCANDINAVIAN_FEMALE_130=사가 +NAMESET_SCANDINAVIAN_FEMALE_131=산드리아 +NAMESET_SCANDINAVIAN_FEMALE_132=산나 +NAMESET_SCANDINAVIAN_FEMALE_133=사라 +NAMESET_SCANDINAVIAN_FEMALE_134=세믈라 +NAMESET_SCANDINAVIAN_FEMALE_135=시그네 +NAMESET_SCANDINAVIAN_FEMALE_136=시그리드 +NAMESET_SCANDINAVIAN_FEMALE_137=실리에 +NAMESET_SCANDINAVIAN_FEMALE_138=실레 +NAMESET_SCANDINAVIAN_FEMALE_139=시리 +NAMESET_SCANDINAVIAN_FEMALE_140=소피아 +NAMESET_SCANDINAVIAN_FEMALE_141=소피에 +NAMESET_SCANDINAVIAN_FEMALE_142=솔비그 +NAMESET_SCANDINAVIAN_FEMALE_143=스티나 +NAMESET_SCANDINAVIAN_FEMALE_144=스티네 +NAMESET_SCANDINAVIAN_FEMALE_145=순니바 +NAMESET_SCANDINAVIAN_FEMALE_146=수잔네 +NAMESET_SCANDINAVIAN_FEMALE_147=스베아 +NAMESET_SCANDINAVIAN_FEMALE_148=테아 +NAMESET_SCANDINAVIAN_FEMALE_149=테레세 +NAMESET_SCANDINAVIAN_FEMALE_150=틸다 +NAMESET_SCANDINAVIAN_FEMALE_151=토바 +NAMESET_SCANDINAVIAN_FEMALE_152=토베 +NAMESET_SCANDINAVIAN_FEMALE_153=투바 +NAMESET_SCANDINAVIAN_FEMALE_154=티라 +NAMESET_SCANDINAVIAN_FEMALE_155=벤델라 +NAMESET_SCANDINAVIAN_FEMALE_156=베라 +NAMESET_SCANDINAVIAN_FEMALE_157=빅토리아 +NAMESET_SCANDINAVIAN_FEMALE_158=일바 diff --git a/res/musicbox_test/dragonborn.mid b/res/musicbox_test/dragonborn.mid new file mode 100755 index 000000000..90e219069 Binary files /dev/null and b/res/musicbox_test/dragonborn.mid differ diff --git a/res/raw/CreatureHuman.json b/res/raw/CreatureHuman.json new file mode 100644 index 000000000..64919fac5 --- /dev/null +++ b/res/raw/CreatureHuman.json @@ -0,0 +1,23 @@ +{ + "racename" : "CONTEXT_RACE_HUMAN", + "racenameplural" : "CONTEXT_RACE_HUMAN_PLURAL", + "baseheight" : 40, + "basemass" : 60.0, + + "toolsize" : 15, + + "strength" : 1000, + "strengthvariable" : [100,100,100,100,100,100,100], + + "speed" : 3.0, + "speedvariable" : [100,100,100,100,100,100,100], + + "jumppower" : 6.0, + "jumppowervariable" : [100,100,100,100,100,100,100], + + "scale" : 1, + "scalevariable" : [100,100,100,100,100,100,100], + + "encumbrance" : 1000, + "basedefence" : "work in progress" +} \ No newline at end of file diff --git a/src/com/Torvald/ColourUtil/Col12.java b/src/com/Torvald/ColourUtil/Col12.java new file mode 100644 index 000000000..caf138d1f --- /dev/null +++ b/src/com/Torvald/ColourUtil/Col12.java @@ -0,0 +1,48 @@ +package com.Torvald.ColourUtil; + +import org.newdawn.slick.Color; + +/** + * Created by minjaesong on 16-01-23. + */ +public class Col12 { + + private short data; + + /** + * Create new Col12 format + * @param data 0x000-0xFFF, in RGB + */ + public Col12(int data) { + this.data = (short) data; + } + + public Color create(int i) { + if (i > 0xFFF || i < 0) { + throw new IllegalArgumentException("Colour range: #000 - #FFF"); + } + int r = (i & 0xF00) >> 8; + int g = (i & 0x0F0) >> 4; + int b = i & 0x00F; + + return new Color( + (r << 4) | r + , (g << 4) | g + , (b << 4) | b + ); + } + + public byte[] toByteArray() { + byte[] ret = new byte[3]; + int r = (data & 0xF00) >> 8; + int g = (data & 0x0F0) >> 4; + int b = data & 0x00F; + + ret[0] = (byte) ((r << 4) | r); + ret[1] = (byte) ((g << 4) | g); + ret[2] = (byte) ((b << 4) | b); + + return ret; + } + +} diff --git a/src/com/Torvald/ColourUtil/HSV.java b/src/com/Torvald/ColourUtil/HSV.java new file mode 100644 index 000000000..9493cb118 --- /dev/null +++ b/src/com/Torvald/ColourUtil/HSV.java @@ -0,0 +1,76 @@ +package com.Torvald.ColourUtil; + +import com.jme3.math.FastMath; +import org.newdawn.slick.Color; + +/** + * Created by minjaesong on 16-01-16. + */ +public class HSV { + + /** + * Convert HSV parameters to RGB color. + * @param h 0-359 Hue + * @param s 0-255 Saturation + * @param v 0-255 Value + * @return org.newdawn.slick.Color + * @link http://www.rapidtables.com/convert/color/hsv-to-rgb.htm + */ + public static Color toRGB(int h, int s, int v) { + int H = h; + if (H < 0 || H >= 360) { + H %= 360; + } + + float S = s / 255f; + float V = v / 255f; + + float C = V * S; + float X = C * (1 - FastMath.abs( + (H / 60f) % 2 - 1 + )); + float m = V - C; + + float R_prime = Float.NaN; + float G_prime = Float.NaN; + float B_prime = Float.NaN; + + if (H < 60) { + R_prime = C; + G_prime = X; + B_prime = 0; + } + else if (H < 120) { + R_prime = X; + G_prime = C; + B_prime = 0; + } + else if (H < 180) { + R_prime = 0; + G_prime = C; + B_prime = X; + } + else if (H < 240) { + R_prime = 0; + G_prime = X; + B_prime = C; + } + else if (H < 300) { + R_prime = X; + G_prime = 0; + B_prime = C; + } + else if (H < 360) { + R_prime = C; + G_prime = 0; + B_prime = X; + } + + return new Color( + (int) ((R_prime + m) * 255) + , (int) ((G_prime + m) * 255) + , (int) ((B_prime + m) * 255) + ); + } + +} diff --git a/src/com/Torvald/ImageFont/GameFontBase.java b/src/com/Torvald/ImageFont/GameFontBase.java new file mode 100644 index 000000000..37aac4bcd --- /dev/null +++ b/src/com/Torvald/ImageFont/GameFontBase.java @@ -0,0 +1,216 @@ +package com.Torvald.ImageFont; + +import com.Torvald.Terrarum.MapDrawer.LightmapRenderer; +import com.Torvald.Terrarum.Terrarum; +import org.lwjgl.opengl.GL11; +import org.newdawn.slick.*; + +import java.util.Arrays; + +/** + * Created by minjaesong on 16-01-27. + */ +public class GameFontBase implements Font { + + static SpriteSheet hangulSheet; + static SpriteSheet asciiSheet; + static SpriteSheet asciiSheetEF; + static SpriteSheet runicSheet; + + static final int JUNG_COUNT = 21; + static final int JONG_COUNT = 28; + + static final int W_CJK = 10; + static final int W_CJK_DRAW = 11; + static final int W_EM = 9; // width of regular letters, including m + static final int W_EF = 5; // width of letter f, t, i, l + static final int H = 20; + static final int H_CJK = 16; + + static final int SHEET_EM = 0; + static final int SHEET_EF = 1; + static final int SHEET_HANGUL = 3; + static final int SHEET_CJKPUNCT = 4; + static final int SHEET_KANA = 5; + static final int SHEET_RUNIC = 6; + + static SpriteSheet[] sheetKey; + static final Character[] EFlist = { + ' ','!','"','\'',',','.','(',')',':',';','I','[',']','`','f','i' + ,'j','l','t','{','|','}' + }; + + /** + * Runic letters list used for game. The set is + * Younger Futhark + Medieval rune 'e' + Punct + Runic Almanac + * + * Examples: + * ᛭ᛋᛁᚴᚱᛁᚦᛦ᛭ + * ᛭ᛂᛚᛋᛅ᛭ᛏᚱᚢᛏᚾᛁᚾᚴᚢᚾᛅ᛬ᛅᚱᚾᛅᛏᛅᛚᛋ + */ + static final Character[] runicList = { + 'ᚠ','ᚢ','ᚦ','ᚯ','ᚱ','ᚴ','ᚼ','ᚾ','ᛁ','ᛅ','ᛋ','ᛏ','ᛒ','ᛘ','ᛚ','ᛦ' + ,'ᛂ','᛬','᛫','᛭','ᛮ','ᛯ','ᛰ' + }; + + + public GameFontBase() throws SlickException { + + } + + private int[] getHan(int hanIndex) { + int han_x = hanIndex % JONG_COUNT; + int han_y = hanIndex / JONG_COUNT; + int[] ret = {han_x, han_y}; + return ret; + } + + private boolean isEF(char c) { + return (Arrays.asList(EFlist).contains(c)); + } + + private boolean isHangul(char c) { + return (c >= 0xAC00 && c < 0xD7A4); + } + + private boolean isAscii(char c) { return (c > 0 && c <= 0xFF); } + + private boolean isRunic(char c) { + return (Arrays.asList(runicList).contains(c)); + } + + private int EFindexX(char c) { + return (Arrays.asList(EFlist).indexOf(c) % 16); + } + + private int EFindexY(char c) { + return (Arrays.asList(EFlist).indexOf(c) / 16); + } + + private int runicIndexX(char c) { + return (Arrays.asList(runicList).indexOf(c) % 16); + } + + private int runicIndexY(char c) { + return (Arrays.asList(runicList).indexOf(c) / 16); + } + + @Override + public int getWidth(String s) { + int len = 0; + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + switch (getSheetType(c)) { + case SHEET_EF: + len += W_EF; break; + case SHEET_HANGUL: + len += W_CJK_DRAW; break; + default: + len += W_EM; + } + } + return len; + } + + @Override + public int getHeight(String s) { + return H; + } + + @Override + public int getLineHeight() { + return H; + } + + @Override + public void drawString(float v, float v1, String s) { + + } + + @Override + public void drawString(float x, float y, String s, Color color) { + // hangul fonts first + hangulSheet.startUse(); + for (int i = 0; i < s.length(); i++) { + char ch = s.charAt(i); + + if (isHangul(ch)) { + int[] hanPos = getHan(ch - 0xAC00); + hangulSheet.renderInUse( + Math.round(x + + getWidth(s.substring(0, i)) + ) + , Math.round((H - H_CJK) + y) + , hanPos[0] + , hanPos[1] + ); + } + } + hangulSheet.endUse(); + + //ascii fonts + int prevInstance = -1; + for (int i = 0; i < s.length(); i++) { + char ch = s.charAt(i); + + if (isAscii(ch)) { + + // if not init, enduse first + if (prevInstance != -1) { + sheetKey[prevInstance].endUse(); + } + sheetKey[getSheetType(ch)].startUse(); + prevInstance = getSheetType(ch); + + int sheetX; + int sheetY; + switch (prevInstance) { + case SHEET_EF: + sheetX = EFindexX(ch); + sheetY = EFindexY(ch); + break; + case SHEET_EM: + default: + sheetX = ch % 16; + sheetY = ch / 16; + break; + } + + sheetKey[prevInstance].renderInUse( + Math.round(x + + getWidth(s.substring(0, i)) + ) + , Math.round(y) + , sheetX + , sheetY + ); + + } + + } + if (prevInstance != -1) { + sheetKey[prevInstance].endUse(); + } + } + + private int getSheetType(char c) { + if (isEF(c)) { + return SHEET_EF; + } + else if (isHangul(c)) { + return SHEET_HANGUL; + } + else if (isRunic(c)) { + return SHEET_RUNIC; + } + else { + return SHEET_EM; + } + } + + @Override + public void drawString(float v, float v1, String s, Color color, int i, int i1) { + + } + +} diff --git a/src/com/Torvald/ImageFont/GameFontBlack.java b/src/com/Torvald/ImageFont/GameFontBlack.java new file mode 100644 index 000000000..21dd22548 --- /dev/null +++ b/src/com/Torvald/ImageFont/GameFontBlack.java @@ -0,0 +1,37 @@ +package com.Torvald.ImageFont; + +import org.newdawn.slick.SlickException; +import org.newdawn.slick.SpriteSheet; + +/** + * Created by minjaesong on 16-01-27. + */ +public class GameFontBlack extends GameFontBase { + + public GameFontBlack() throws SlickException { + super(); + + hangulSheet = new SpriteSheet( + "./res/graphics/fonts/han_atlas_black.png" + , W_CJK + , H_CJK + ); + asciiSheet = new SpriteSheet( + "./res/graphics/fonts/ascii_majuscule_black.png" + , W_EM + , H + ); + asciiSheetEF = new SpriteSheet( + "./res/graphics/fonts/ascii_special_ef_black.png" + , W_EF + , H + ); + + SpriteSheet[] shk = { + asciiSheet + , asciiSheetEF + , hangulSheet + }; + sheetKey = shk; + } +} diff --git a/src/com/Torvald/ImageFont/GameFontWhite.java b/src/com/Torvald/ImageFont/GameFontWhite.java new file mode 100644 index 000000000..bcff0ef1c --- /dev/null +++ b/src/com/Torvald/ImageFont/GameFontWhite.java @@ -0,0 +1,42 @@ +package com.Torvald.ImageFont; + +import com.Torvald.Terrarum.MapDrawer.LightmapRenderer; +import com.Torvald.Terrarum.Terrarum; +import org.lwjgl.opengl.GL11; +import org.newdawn.slick.*; + +import java.util.Arrays; + +/** + * Created by minjaesong on 16-01-20. + */ +public class GameFontWhite extends GameFontBase { + + public GameFontWhite() throws SlickException { + super(); + + hangulSheet = new SpriteSheet( + "./res/graphics/fonts/han_atlas.png" + , W_CJK + , H_CJK + ); + asciiSheet = new SpriteSheet( + "./res/graphics/fonts/ascii_majuscule.png" + , W_EM + , H + ); + asciiSheetEF = new SpriteSheet( + "./res/graphics/fonts/ascii_special_ef.png" + , W_EF + , H + ); + + SpriteSheet[] shk = { + asciiSheet + , asciiSheetEF + , hangulSheet + }; + sheetKey = shk; + } + +} diff --git a/src/com/Torvald/Point/Point2f.java b/src/com/Torvald/Point/Point2f.java new file mode 100644 index 000000000..ad29004b0 --- /dev/null +++ b/src/com/Torvald/Point/Point2f.java @@ -0,0 +1,28 @@ +package com.Torvald.Point; + +/** + * Created by minjaesong on 16-01-15. + */ +public class Point2f { + + private float x; + private float y; + + public Point2f(float x, float y) { + this.x = x; + this.y = y; + } + + public void set(float x, float y) { + this.x = x; + this.y = y; + } + + public float getX() { + return x; + } + + public float getY() { + return y; + } +} diff --git a/src/com/Torvald/Rand/Fudge3.java b/src/com/Torvald/Rand/Fudge3.java new file mode 100644 index 000000000..c16884be9 --- /dev/null +++ b/src/com/Torvald/Rand/Fudge3.java @@ -0,0 +1,14 @@ +package com.Torvald.Rand; + +import java.util.Random; + +/** + * Created by minjaesong on 16-02-03. + */ +public class Fudge3 { + + public FudgeDice create(Random rand) { + return new FudgeDice(rand, 3); + } + +} diff --git a/src/com/Torvald/Rand/FudgeDice.java b/src/com/Torvald/Rand/FudgeDice.java new file mode 100644 index 000000000..e4991896b --- /dev/null +++ b/src/com/Torvald/Rand/FudgeDice.java @@ -0,0 +1,42 @@ +package com.Torvald.Rand; + +import java.util.Random; + +/** + * Created by minjaesong on 16-02-03. + */ +public class FudgeDice { + + private Random randfunc; + private int diceCounts; + + /** + * Define new set of fudge dice with given counts. + * @param randfunc + * @param counts amount of die + */ + public FudgeDice(Random randfunc, int counts) { + this.randfunc = randfunc; + diceCounts = counts; + } + + /** + * Roll dice and get result. Range: [-3, 3] for three dice + * @return + */ + public int roll() { + int diceResult = 0; + for (int c = 0; c < diceCounts; c++) { + diceResult += rollSingleDie(); + } + + return diceResult; + } + + /** + * @return random [-1, 0, 1] + */ + private int rollSingleDie() { + return (randfunc.nextInt(3)) - 1; + } +} diff --git a/src/com/Torvald/Rand/HighQualityRandom.java b/src/com/Torvald/Rand/HighQualityRandom.java new file mode 100644 index 000000000..43c392b0d --- /dev/null +++ b/src/com/Torvald/Rand/HighQualityRandom.java @@ -0,0 +1,59 @@ +package com.Torvald.Rand; + +import java.util.Random; +//import java.util.concurrent.locks.*; + +/** + * This class implements a better random number generator than the standard LCG that is implemented in java.util.Random. + * It is based on Numerical Recipes: The Art of Scientific Computing, + * and gives a good compromise between quality and speed. It is a combined generator: two XORShift generators are combined with an LCG and a multiply with carry generator. + * (Without going into all the details here, notice the two blocks of three shifts each, which are the XORShifts; the first line which is the LCG, similar to the standard + * Java Random algorithm, and the line between the two XORShifts, which is a multiply with carry generator.) + * Note that this version is not thread-safe. In order to make it thread-safe, uncomment the lock-related lines. It is also not cryptographically secure, like the java.security.SecureRandom class. + * @author Numerical Recipes + */ + +public class HighQualityRandom extends Random { + + //private Lock l = new ReentrantLock(); + private long u; + private long v = 4101842887655102017L; + private long w = 1; + + public HighQualityRandom() { + this(System.nanoTime()); + } + public HighQualityRandom(long seed) { + //l.lock(); + u = seed ^ v; + nextLong(); + v = u; + nextLong(); + w = v; + nextLong(); + //l.unlock(); + } + + public long nextLong() { + // l.lock(); + try { + u = u * 2862933555777941757L + 7046029254386353087L; + v ^= v >>> 17; + v ^= v << 31; + v ^= v >>> 8; + w = 4294957665L * (w & 0xffffffff) + (w >>> 32); + long x = u ^ (u << 21); + x ^= x >>> 35; + x ^= x << 4; + long ret = (x + v) ^ w; + return ret; + } finally { + //l.unlock(); + } + } + + protected int next(int bits) { + return (int) (nextLong() >>> (64-bits)); + } + +} \ No newline at end of file diff --git a/src/com/Torvald/Rand/MTRandom.java b/src/com/Torvald/Rand/MTRandom.java new file mode 100644 index 000000000..1dad9e5df --- /dev/null +++ b/src/com/Torvald/Rand/MTRandom.java @@ -0,0 +1,1440 @@ +package com.Torvald.Rand; + +import java.io.*; +import java.util.*; + +/** + *

MersenneTwister and MTRandom

+ *

Version 22, based on version MT199937(99/10/29) + * of the Mersenne Twister algorithm found at + * + * The Mersenne Twister Home Page, with the initialization + * improved using the new 2002/1/26 initialization algorithm + * By Sean Luke, October 2004. + * + *

MersenneTwister is a drop-in subclass replacement + * for java.util.Random. It is properly synchronized and + * can be used in a multithreaded environment. On modern VMs such + * as HotSpot, it is approximately 1/3 slower than java.util.Random. + * + *

MTRandom is not a subclass of java.util.Random. It has + * the same public methods as Random does, however, and it is + * algorithmically identical to MersenneTwister. MTRandom + * has hard-code inlined all of its methods directly, and made all of them + * final (well, the ones of consequence anyway). Further, these + * methods are not synchronized, so the same MTRandom + * instance cannot be shared by multiple threads. But all this helps + * MTRandom achieve well over twice the speed of MersenneTwister. + * java.util.Random is about 1/3 slower than MTRandom. + * + *

About the Mersenne Twister

+ *

This is a Java version of the C-program for MT19937: Integer version. + * The MT19937 algorithm was created by Makoto Matsumoto and Takuji Nishimura, + * who ask: "When you use this, send an email to: matumoto@math.keio.ac.jp + * with an appropriate reference to your work". Indicate that this + * is a translation of their algorithm into Java. + * + *

Reference. + * Makato Matsumoto and Takuji Nishimura, + * "Mersenne Twister: A 623-Dimensionally Equidistributed Uniform + * Pseudo-Random Number Generator", + * ACM Transactions on Modeling and. Computer Simulation, + * Vol. 8, No. 1, January 1998, pp 3--30. + * + *

About this Version

+ * + *

Changes since V21: Minor documentation HTML fixes. + * + *

Changes since V20: Added clearGuassian(). Modified stateEquals() + * to be synchronizd on both objects for MersenneTwister, and changed its + * documentation. Added synchronization to both setSeed() methods, to + * writeState(), and to readState() in MersenneTwister. Removed synchronization + * from readObject() in MersenneTwister. + * + *

Changes since V19: nextFloat(boolean, boolean) now returns float, + * not double. + * + *

Changes since V18: Removed old final declarations, which used to + * potentially speed up the code, but no longer. + * + *

Changes since V17: Removed vestigial references to &= 0xffffffff + * which stemmed from the original C code. The C code could not guarantee that + * ints were 32 bit, hence the masks. The vestigial references in the Java + * code were likely optimized out anyway. + * + *

Changes since V16: Added nextDouble(includeZero, includeOne) and + * nextFloat(includeZero, includeOne) to allow for half-open, fully-closed, and + * fully-open intervals. + * + *

Changes Since V15: Added serialVersionUID to quiet compiler warnings + * from Sun's overly verbose compilers as of JDK 1.5. + * + *

Changes Since V14: made strictfp, with StrictMath.log and StrictMath.sqrt + * in nextGaussian instead of Math.log and Math.sqrt. This is largely just to be safe, + * as it presently makes no difference in the speed, correctness, or results of the + * algorithm. + * + *

Changes Since V13: clone() method CloneNotSupportedException removed. + * + *

Changes Since V12: clone() method added. + * + *

Changes Since V11: stateEquals(...) method added. MTRandom + * is equal to other MTRandoms with identical state; likewise + * MersenneTwister is equal to other MersenneTwister with identical state. + * This isn't equals(...) because that requires a contract of immutability + * to compare by value. + * + *

Changes Since V10: A documentation error suggested that + * setSeed(int[]) required an int[] array 624 long. In fact, the array + * can be any non-zero length. The new version also checks for this fact. + * + *

Changes Since V9: readState(stream) and writeState(stream) + * provided. + * + *

Changes Since V8: setSeed(int) was only using the first 28 bits + * of the seed; it should have been 32 bits. For small-number seeds the + * behavior is identical. + * + *

Changes Since V7: A documentation error in MTRandom + * (but not MersenneTwister) stated that nextDouble selects uniformly from + * the full-open interval [0,1]. It does not. nextDouble's contract is + * identical across MTRandom, MersenneTwister, and java.util.Random, + * namely, selection in the half-open interval [0,1). That is, 1.0 should + * not be returned. A similar contract exists in nextFloat. + * + *

Changes Since V6: License has changed from LGPL to BSD. + * New timing information to compare against + * java.util.Random. Recent versions of HotSpot have helped Random increase + * in speed to the point where it is faster than MersenneTwister but slower + * than MTRandom (which should be the case, as it's a less complex + * algorithm but is synchronized). + * + *

Changes Since V5: New empty constructor made to work the same + * as java.util.Random -- namely, it seeds based on the current time in + * milliseconds. + * + *

Changes Since V4: New initialization algorithms. See + * (see + * http://www.math.keio.ac.jp/matumoto/MT2002/emt19937ar.html) + * + *

The MersenneTwister code is based on standard MT19937 C/C++ + * code by Takuji Nishimura, + * with suggestions from Topher Cooper and Marc Rieffel, July 1997. + * The code was originally translated into Java by Michael Lecuyer, + * January 1999, and the original code is Copyright (c) 1999 by Michael Lecuyer. + * + *

Java notes

+ * + *

This implementation implements the bug fixes made + * in Java 1.2's version of Random, which means it can be used with + * earlier versions of Java. See + * + * the JDK 1.2 java.util.Random documentation for further documentation + * on the random-number generation contracts made. Additionally, there's + * an undocumented bug in the JDK java.util.Random.nextBytes() method, + * which this code fixes. + * + *

Just like java.util.Random, this + * generator accepts a long seed but doesn't use all of it. java.util.Random + * uses 48 bits. The Mersenne Twister instead uses 32 bits (int size). + * So it's best if your seed does not exceed the int range. + * + *

MersenneTwister can be used reliably + * on JDK version 1.1.5 or above. Earlier Java versions have serious bugs in + * java.util.Random; only MTRandom (and not MersenneTwister nor + * java.util.Random) should be used with them. + * + *

License

+ * + * Copyright (c) 2003 by Sean Luke.
+ * Portions copyright (c) 1993 by Michael Lecuyer.
+ * All rights reserved.
+ * + *

Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + *

    + *
  • Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + *
  • Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + *
  • Neither the name of the copyright owners, their employers, nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *
+ *

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + @version 22 + */ + + +// Note: this class is hard-inlined in all of its methods. This makes some of +// the methods well-nigh unreadable in their complexity. In fact, the Mersenne +// Twister is fairly easy code to understand: if you're trying to get a handle +// on the code, I strongly suggest looking at MersenneTwister.java first. +// -- Sean + +public strictfp class MTRandom implements Serializable, Cloneable +{ + // Serialization + private static final long serialVersionUID = -8219700664442619525L; // locked as of Version 15 + + // Period parameters + private static final int N = 624; + private static final int M = 397; + private static final int MATRIX_A = 0x9908b0df; // private static final * constant vector a + private static final int UPPER_MASK = 0x80000000; // most significant w-r bits + private static final int LOWER_MASK = 0x7fffffff; // least significant r bits + + + // Tempering parameters + private static final int TEMPERING_MASK_B = 0x9d2c5680; + private static final int TEMPERING_MASK_C = 0xefc60000; + + private int mt[]; // the array for the state vector + private int mti; // mti==N+1 means mt[N] is not initialized + private int mag01[]; + + // a good initial seed (of int size, though stored in a long) + //private static final long GOOD_SEED = 4357; + + private double __nextNextGaussian; + private boolean __haveNextNextGaussian; + + /* We're overriding all internal data, to my knowledge, so this should be okay */ + public Object clone() + { + try + { + MTRandom f = (MTRandom)(super.clone()); + f.mt = (int[])(mt.clone()); + f.mag01 = (int[])(mag01.clone()); + return f; + } + catch (CloneNotSupportedException e) { throw new InternalError(); } // should never happen + } + + /** Returns true if the MTRandom's current internal state is equal to another MTRandom. + This is roughly the same as equals(other), except that it compares based on value but does not + guarantee the contract of immutability (obviously random number generators are immutable). + Note that this does NOT check to see if the internal gaussian storage is the same + for both. You can guarantee that the internal gaussian storage is the same (and so the + nextGaussian() methods will return the same values) by calling clearGaussian() on both + objects. */ + public boolean stateEquals(MTRandom other) + { + if (other == this) return true; + if (other == null)return false; + + if (mti != other.mti) return false; + for(int x=0;x>> 30)) + mti); + /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ + /* In the previous versions, MSBs of the seed affect */ + /* only MSBs of the array mt[]. */ + /* 2002/01/09 modified by Makoto Matsumoto */ + // mt[mti] &= 0xffffffff; + /* for >32 bit machines */ + } + } + + + /** + * Sets the seed of the MersenneTwister using an array of integers. + * Your array must have a non-zero length. Only the first 624 integers + * in the array are used; if the array is shorter than this then + * integers are repeatedly used in a wrap-around fashion. + */ + + public void setSeed(int[] array) + { + if (array.length == 0) + throw new IllegalArgumentException("Array length must be greater than zero"); + int i, j, k; + setSeed(19650218); + i=1; j=0; + k = (N>array.length ? N : array.length); + for (; k!=0; k--) + { + mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >>> 30)) * 1664525)) + array[j] + j; /* non linear */ + // mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ + i++; + j++; + if (i>=N) { mt[0] = mt[N-1]; i=1; } + if (j>=array.length) j=0; + } + for (k=N-1; k!=0; k--) + { + mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >>> 30)) * 1566083941)) - i; /* non linear */ + // mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ + i++; + if (i>=N) + { + mt[0] = mt[N-1]; i=1; + } + } + mt[0] = 0x80000000; /* MSB is 1; assuring non-zero initial array */ + } + + + public int nextInt() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return y; + } + + + + public short nextShort() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (short)(y >>> 16); + } + + + + public char nextChar() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (char)(y >>> 16); + } + + + public boolean nextBoolean() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (boolean)((y >>> 31) != 0); + } + + + + /** This generates a coin flip with a probability probability + of returning true, else returning false. probability must + be between 0.0 and 1.0, inclusive. Not as precise a random real + event as nextBoolean(double), but twice as fast. To explicitly + use this, remember you may need to cast to float first. */ + + public boolean nextBoolean(float probability) + { + int y; + + if (probability < 0.0f || probability > 1.0f) + throw new IllegalArgumentException ("probability must be between 0.0 and 1.0 inclusive."); + if (probability==0.0f) return false; // fix half-open issues + else if (probability==1.0f) return true; // fix half-open issues + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (y >>> 8) / ((float)(1 << 24)) < probability; + } + + + /** This generates a coin flip with a probability probability + of returning true, else returning false. probability must + be between 0.0 and 1.0, inclusive. */ + + public boolean nextBoolean(double probability) + { + int y; + int z; + + if (probability < 0.0 || probability > 1.0) + throw new IllegalArgumentException ("probability must be between 0.0 and 1.0 inclusive."); + if (probability==0.0) return false; // fix half-open issues + else if (probability==1.0) return true; // fix half-open issues + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + for (; kk < N-1; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + z = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (z >>> 1) ^ mag01[z & 0x1]; + + mti = 0; + } + + z = mt[mti++]; + z ^= z >>> 11; // TEMPERING_SHIFT_U(z) + z ^= (z << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(z) + z ^= (z << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(z) + z ^= (z >>> 18); // TEMPERING_SHIFT_L(z) + + /* derived from nextDouble documentation in jdk 1.2 docs, see top */ + return ((((long)(y >>> 6)) << 27) + (z >>> 5)) / (double)(1L << 53) < probability; + } + + + public byte nextByte() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (byte)(y >>> 24); + } + + + public void nextBytes(byte[] bytes) + { + int y; + + for (int x=0;x= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + bytes[x] = (byte)(y >>> 24); + } + } + + + /** Returns a long drawn uniformly from 0 to n-1. Suffice it to say, + n must be greater than 0, or an IllegalArgumentException is raised. */ + + public long nextLong() + { + int y; + int z; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + for (; kk < N-1; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + z = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (z >>> 1) ^ mag01[z & 0x1]; + + mti = 0; + } + + z = mt[mti++]; + z ^= z >>> 11; // TEMPERING_SHIFT_U(z) + z ^= (z << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(z) + z ^= (z << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(z) + z ^= (z >>> 18); // TEMPERING_SHIFT_L(z) + + return (((long)y) << 32) + (long)z; + } + + + + /** Returns a long drawn uniformly from 0 to n-1. Suffice it to say, + n must be > 0, or an IllegalArgumentException is raised. */ + public long nextLong(long n) + { + if (n<=0) + throw new IllegalArgumentException("n must be positive, got: " + n); + + long bits, val; + do + { + int y; + int z; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + for (; kk < N-1; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + z = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (z >>> 1) ^ mag01[z & 0x1]; + + mti = 0; + } + + z = mt[mti++]; + z ^= z >>> 11; // TEMPERING_SHIFT_U(z) + z ^= (z << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(z) + z ^= (z << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(z) + z ^= (z >>> 18); // TEMPERING_SHIFT_L(z) + + bits = (((((long)y) << 32) + (long)z) >>> 1); + val = bits % n; + } while (bits - val + (n-1) < 0); + return val; + } + + /** Returns a random double in the half-open range from [0.0,1.0). Thus 0.0 is a valid + result but 1.0 is not. */ + public double nextDouble() + { + int y; + int z; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + for (; kk < N-1; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + z = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (z >>> 1) ^ mag01[z & 0x1]; + + mti = 0; + } + + z = mt[mti++]; + z ^= z >>> 11; // TEMPERING_SHIFT_U(z) + z ^= (z << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(z) + z ^= (z << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(z) + z ^= (z >>> 18); // TEMPERING_SHIFT_L(z) + + /* derived from nextDouble documentation in jdk 1.2 docs, see top */ + return ((((long)(y >>> 6)) << 27) + (z >>> 5)) / (double)(1L << 53); + } + + + + /** Returns a double in the range from 0.0 to 1.0, possibly inclusive of 0.0 and 1.0 themselves. Thus: + + + + + + + + +
ExpressionInterval
nextDouble(false, false)(0.0, 1.0)
nextDouble(true, false)[0.0, 1.0)
nextDouble(false, true)(0.0, 1.0]
nextDouble(true, true)[0.0, 1.0]
Table of intervals
+ +

This version preserves all possible random values in the double range. + */ + public double nextDouble(boolean includeZero, boolean includeOne) + { + double d = 0.0; + do + { + d = nextDouble(); // grab a value, initially from half-open [0.0, 1.0) + if (includeOne && nextBoolean()) d += 1.0; // if includeOne, with 1/2 probability, push to [1.0, 2.0) + } + while ( (d > 1.0) || // everything above 1.0 is always invalid + (!includeZero && d == 0.0)); // if we're not including zero, 0.0 is invalid + return d; + } + + + /** + Clears the internal gaussian variable from the RNG. You only need to do this + in the rare case that you need to guarantee that two RNGs have identical internal + state. Otherwise, disregard this method. See stateEquals(other). + */ + public void clearGaussian() { __haveNextNextGaussian = false; } + + + public double nextGaussian() + { + if (__haveNextNextGaussian) + { + __haveNextNextGaussian = false; + return __nextNextGaussian; + } + else + { + double v1, v2, s; + do + { + int y; + int z; + int a; + int b; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + for (; kk < N-1; kk++) + { + z = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (z >>> 1) ^ mag01[z & 0x1]; + } + z = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (z >>> 1) ^ mag01[z & 0x1]; + + mti = 0; + } + + z = mt[mti++]; + z ^= z >>> 11; // TEMPERING_SHIFT_U(z) + z ^= (z << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(z) + z ^= (z << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(z) + z ^= (z >>> 18); // TEMPERING_SHIFT_L(z) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + a = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (a >>> 1) ^ mag01[a & 0x1]; + } + for (; kk < N-1; kk++) + { + a = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (a >>> 1) ^ mag01[a & 0x1]; + } + a = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (a >>> 1) ^ mag01[a & 0x1]; + + mti = 0; + } + + a = mt[mti++]; + a ^= a >>> 11; // TEMPERING_SHIFT_U(a) + a ^= (a << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(a) + a ^= (a << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(a) + a ^= (a >>> 18); // TEMPERING_SHIFT_L(a) + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + b = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (b >>> 1) ^ mag01[b & 0x1]; + } + for (; kk < N-1; kk++) + { + b = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (b >>> 1) ^ mag01[b & 0x1]; + } + b = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (b >>> 1) ^ mag01[b & 0x1]; + + mti = 0; + } + + b = mt[mti++]; + b ^= b >>> 11; // TEMPERING_SHIFT_U(b) + b ^= (b << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(b) + b ^= (b << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(b) + b ^= (b >>> 18); // TEMPERING_SHIFT_L(b) + + /* derived from nextDouble documentation in jdk 1.2 docs, see top */ + v1 = 2 * + (((((long)(y >>> 6)) << 27) + (z >>> 5)) / (double)(1L << 53)) + - 1; + v2 = 2 * (((((long)(a >>> 6)) << 27) + (b >>> 5)) / (double)(1L << 53)) + - 1; + s = v1 * v1 + v2 * v2; + } while (s >= 1 || s==0); + double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s); + __nextNextGaussian = v2 * multiplier; + __haveNextNextGaussian = true; + return v1 * multiplier; + } + } + + + + + + /** Returns a random float in the half-open range from [0.0f,1.0f). Thus 0.0f is a valid + result but 1.0f is not. */ + public float nextFloat() + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (y >>> 8) / ((float)(1 << 24)); + } + + + /** Returns a float in the range from 0.0f to 1.0f, possibly inclusive of 0.0f and 1.0f themselves. Thus: + + + + + + + + +
ExpressionInterval
nextFloat(false, false)(0.0f, 1.0f)
nextFloat(true, false)[0.0f, 1.0f)
nextFloat(false, true)(0.0f, 1.0f]
nextFloat(true, true)[0.0f, 1.0f]
Table of intervals
+ +

This version preserves all possible random values in the float range. + */ + public float nextFloat(boolean includeZero, boolean includeOne) + { + float d = 0.0f; + do + { + d = nextFloat(); // grab a value, initially from half-open [0.0f, 1.0f) + if (includeOne && nextBoolean()) d += 1.0f; // if includeOne, with 1/2 probability, push to [1.0f, 2.0f) + } + while ( (d > 1.0f) || // everything above 1.0f is always invalid + (!includeZero && d == 0.0f)); // if we're not including zero, 0.0f is invalid + return d; + } + + + + /** Returns an integer drawn uniformly from 0 to n-1. Suffice it to say, + n must be > 0, or an IllegalArgumentException is raised. */ + public int nextInt(int n) + { + if (n<=0) + throw new IllegalArgumentException("n must be positive, got: " + n); + + if ((n & -n) == n) // i.e., n is a power of 2 + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + return (int)((n * (long) (y >>> 1) ) >> 31); + } + + int bits, val; + do + { + int y; + + if (mti >= N) // generate N words at one time + { + int kk; + final int[] mt = this.mt; // locals are slightly faster + final int[] mag01 = this.mag01; // locals are slightly faster + + for (kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + for (; kk < N-1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk+1] & LOWER_MASK); + mt[kk] = mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]; + } + y = (mt[N-1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N-1] = mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; + + mti = 0; + } + + y = mt[mti++]; + y ^= y >>> 11; // TEMPERING_SHIFT_U(y) + y ^= (y << 7) & TEMPERING_MASK_B; // TEMPERING_SHIFT_S(y) + y ^= (y << 15) & TEMPERING_MASK_C; // TEMPERING_SHIFT_T(y) + y ^= (y >>> 18); // TEMPERING_SHIFT_L(y) + + bits = (y >>> 1); + val = bits % n; + } while(bits - val + (n-1) < 0); + return val; + } + + + /** + * Tests the code. + */ + public static void main(String args[]) + { + int j; + + MTRandom r; + + // CORRECTNESS TEST + // COMPARE WITH http://www.math.keio.ac.jp/matumoto/CODES/MT2002/mt19937ar.out + + r = new MTRandom(new int[]{0x123, 0x234, 0x345, 0x456}); + System.out.println("Output of MTRandom with new (2002/1/26) seeding mechanism"); + for (j=0;j<1000;j++) + { + // first, convert the int from signed to "unsigned" + long l = (long)r.nextInt(); + if (l < 0 ) l += 4294967296L; // max int value + String s = String.valueOf(l); + while(s.length() < 10) s = " " + s; // buffer + System.out.print(s + " "); + if (j%5==4) System.out.println(); + } + + // SPEED TEST + + final long SEED = 4357; + + int xx; long ms; + System.out.println("\nTime to test grabbing 100000000 ints"); + + Random rr = new Random(SEED); + xx = 0; + ms = System.currentTimeMillis(); + for (j = 0; j < 100000000; j++) + xx += rr.nextInt(); + System.out.println("java.util.Random: " + (System.currentTimeMillis()-ms) + " Ignore this: " + xx); + + r = new MTRandom(SEED); + ms = System.currentTimeMillis(); + xx=0; + for (j = 0; j < 100000000; j++) + xx += r.nextInt(); + System.out.println("Mersenne Twister Fast: " + (System.currentTimeMillis()-ms) + " Ignore this: " + xx); + + // TEST TO COMPARE TYPE CONVERSION BETWEEN + // MTRandom.java AND MersenneTwister.java + + System.out.println("\nGrab the first 1000 booleans"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextBoolean() + " "); + if (j%8==7) System.out.println(); + } + if (!(j%8==7)) System.out.println(); + + System.out.println("\nGrab 1000 booleans of increasing probability using nextBoolean(double)"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextBoolean((double)(j/999.0)) + " "); + if (j%8==7) System.out.println(); + } + if (!(j%8==7)) System.out.println(); + + System.out.println("\nGrab 1000 booleans of increasing probability using nextBoolean(float)"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextBoolean((float)(j/999.0f)) + " "); + if (j%8==7) System.out.println(); + } + if (!(j%8==7)) System.out.println(); + + byte[] bytes = new byte[1000]; + System.out.println("\nGrab the first 1000 bytes using nextBytes"); + r = new MTRandom(SEED); + r.nextBytes(bytes); + for (j = 0; j < 1000; j++) + { + System.out.print(bytes[j] + " "); + if (j%16==15) System.out.println(); + } + if (!(j%16==15)) System.out.println(); + + byte b; + System.out.println("\nGrab the first 1000 bytes -- must be same as nextBytes"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print((b = r.nextByte()) + " "); + if (b!=bytes[j]) System.out.print("BAD "); + if (j%16==15) System.out.println(); + } + if (!(j%16==15)) System.out.println(); + + System.out.println("\nGrab the first 1000 shorts"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextShort() + " "); + if (j%8==7) System.out.println(); + } + if (!(j%8==7)) System.out.println(); + + System.out.println("\nGrab the first 1000 ints"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextInt() + " "); + if (j%4==3) System.out.println(); + } + if (!(j%4==3)) System.out.println(); + + System.out.println("\nGrab the first 1000 ints of different sizes"); + r = new MTRandom(SEED); + int max = 1; + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextInt(max) + " "); + max *= 2; + if (max <= 0) max = 1; + if (j%4==3) System.out.println(); + } + if (!(j%4==3)) System.out.println(); + + System.out.println("\nGrab the first 1000 longs"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextLong() + " "); + if (j%3==2) System.out.println(); + } + if (!(j%3==2)) System.out.println(); + + System.out.println("\nGrab the first 1000 longs of different sizes"); + r = new MTRandom(SEED); + long max2 = 1; + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextLong(max2) + " "); + max2 *= 2; + if (max2 <= 0) max2 = 1; + if (j%4==3) System.out.println(); + } + if (!(j%4==3)) System.out.println(); + + System.out.println("\nGrab the first 1000 floats"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextFloat() + " "); + if (j%4==3) System.out.println(); + } + if (!(j%4==3)) System.out.println(); + + System.out.println("\nGrab the first 1000 doubles"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextDouble() + " "); + if (j%3==2) System.out.println(); + } + if (!(j%3==2)) System.out.println(); + + System.out.println("\nGrab the first 1000 gaussian doubles"); + r = new MTRandom(SEED); + for (j = 0; j < 1000; j++) + { + System.out.print(r.nextGaussian() + " "); + if (j%3==2) System.out.println(); + } + if (!(j%3==2)) System.out.println(); + + } +} diff --git a/src/com/Torvald/Terrarum/ABOUT b/src/com/Torvald/Terrarum/ABOUT new file mode 100644 index 000000000..e75ed5a6c --- /dev/null +++ b/src/com/Torvald/Terrarum/ABOUT @@ -0,0 +1,139 @@ +== CHALLENGING, NOT PUNISHING https://www.youtube.com/watch?v=ea6UuRTjkKs + +1. CONSISTENT RULES + - No arbitrary unstoppable death + +2. Player's skill involved + - Can play around, not restart + +3. Usability of in-game tools + - Players should be able to 'regret' their strategy and adjust. + +4. Comfortable control + +5. Make players overcome the challenge, not defeating them + +6. Let players have "aha" moment when they failed. + - Make them hungry to retry with new strategies. + - Some small things they've could done differently + - e.g. "One-big-hit didn't worked, may I should've picked up high DPS one" + + +== MORE DEPTH, LESS COMPLEXITY https://www.youtube.com/watch?v=jVL4st0blGU + +1. Memorise less! + - Less burden to, even starting the game + - Start with gentle learning curve, getting slowly steep + - Intuitive UX (UI, control, ...) + - Good tutorial = lessens complexity + +2. Intuitive! + +3. Calculations per second + - reduce! + +4. Players have to know everything to even begin the play == FAIL (irreducible complexity) + - Make them get familiar with rules of the game + - Dwarf Fortress failed this! + + +== Lots of things players play with (aka don't make them bored) + - Combat, battle, building, mechanics, adventure, dungeon explore, spelunking + - Not scaled; easy combat, tough combat, tedious combat, etc. + + +== Achieving perfect imbalance https://www.youtube.com/watch?v=e31OSVZF77w + - Make sure no matter how you skilled, your playable character cannot be good at everything + - Give players __wide pool of options__ to solve problem + (kill the boss, defend their adobe, fast transportation, etc.) + + + +==================================== + + +* Friendlier version of Dwarf Fortress Adventure mode +- Yet _lots of fun_ +- Add Fortress mode features by 'make your own settling' +- Hard to actually die, but once you die, you're done. + + Config: imtooyoungtodie for easy mode + + + +* Side view + +* Interact menu w/ mouse right + +* Pixelated sprites + - Use 2x sprites if rotating does not work well + + + +### User experience ### + +* Indicative mouse cursor + + + +### Game mechanics ### + +* 24 pixels == 1 metre + + + +### Purpose of the game ### + +* Boss + - Will be mentioned/shown as absolute _evil_. + - But actually is not. + +* Theme + - Is an evil really really is what we think? + - Is there a thing as 'absolute evil'? + +* Boss character + - From debugger character + - Name key: "Sigriðr hinn Dróttningin" (can be changed) + * Little setting + - A ruler, hated by people + +* Mechanics + - Beating boss does not ends the game, but grants an ability to + create new character as it. + + + +### Making sprite ### + +* Layers + - (Optional) Hair foreground + - Right arm dress + - Right arm body + - Dress + - Boot right + - Boot left + - Body + - (Optional) Hair accessory + - Hair + - Head + - Left arm dress + - Left arm body + - (Optional) SFX + +* Size + - Regular sprite 'height': 40 px + - Apparent height may vary + + + +### Chargen ### + +* Select hair, colours, then compile them into single spritesheet + +* NO gender distinction, but have masculine/neutral/feminine designs (in clothing, hairstyles, etc.) + +* Colour: 4096 colours (12-bit 0x000 - 0xFFF) + +* Height variation option (.85 - .90 - .95 - 1 - 1.05 - 1.10 - 1.15) + +* Base mass: 60 kg diff --git a/src/com/Torvald/Terrarum/Actors/AIControlled.java b/src/com/Torvald/Terrarum/Actors/AIControlled.java new file mode 100644 index 000000000..af4c2a575 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/AIControlled.java @@ -0,0 +1,10 @@ +package com.Torvald.Terrarum.Actors; + +/** + * Created by minjaesong on 16-01-31. + */ +public interface AIControlled { + + void attachAI(); + +} diff --git a/src/com/Torvald/Terrarum/Actors/Actor.java b/src/com/Torvald/Terrarum/Actors/Actor.java new file mode 100644 index 000000000..ad40e3602 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Actor.java @@ -0,0 +1,14 @@ +package com.Torvald.Terrarum.Actors; + +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; + +/** + * Created by minjaesong on 15-12-31. + */ +public interface Actor { + + void update(GameContainer gc, int delta_t); + + long getRefID(); +} diff --git a/src/com/Torvald/Terrarum/Actors/ActorInventory.java b/src/com/Torvald/Terrarum/Actors/ActorInventory.java new file mode 100644 index 000000000..63ecd2e70 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/ActorInventory.java @@ -0,0 +1,107 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Terrarum.GameItem.InventoryItem; +import com.sun.istack.internal.Nullable; + +import java.util.LinkedList; + +/** + * Created by minjaesong on 16-01-15. + */ +public class ActorInventory { + + @Nullable private int capacityByCount; + @Nullable private int capacityByWeight; + private int capacityMode; + + private LinkedList pocket; + + public final int CAPACITY_MODE_COUNT = 1; + public final int CAPACITY_MODE_WEIGHT = 2; + + /** + * Construct new inventory with specified capacity. + * @param capacity if is_weight is true, killogramme value is required, counts of items otherwise. + * @param is_weight + */ + public ActorInventory(int capacity, boolean is_weight) { + if (is_weight) { + capacityByWeight = capacity; + capacityMode = CAPACITY_MODE_WEIGHT; + } + else{ + capacityByCount = capacity; + capacityMode = CAPACITY_MODE_COUNT; + } + } + + /** + * Get capacity of inventory + * @return + */ + public int getCapacity() { + if (capacityMode == CAPACITY_MODE_WEIGHT) { + return capacityByWeight; + } + else { + return capacityByCount; + } + } + + public int getCapacityMode() { + return capacityMode; + } + + /** + * Get reference to the pocket + * @return + */ + public LinkedList getPocket() { + return pocket; + } + + /** + * Get clone of the pocket + * @return + */ + public LinkedList getCopyOfPocket() { + return (LinkedList) (pocket.clone()); + } + + public float getTotalWeight() { + float weight = 0; + + for (InventoryItem item : pocket) { + weight += item.getWeight(); + } + + return weight; + } + + public float getTotalCount() { + int count = 0; + + for (InventoryItem item : pocket) { + count += 1; + } + + return count; + } + + public void appendToPocket(InventoryItem item) { + pocket.add(item); + } + + /** + * Check whether the pocket contains too many items + * @return + */ + public boolean isEncumbered() { + if (getCapacityMode() == CAPACITY_MODE_WEIGHT) { + return (capacityByWeight < getTotalWeight()); + } + else { + return (capacityByCount < getTotalWeight()); + } + } +} diff --git a/src/com/Torvald/Terrarum/Actors/ActorValue.java b/src/com/Torvald/Terrarum/Actors/ActorValue.java new file mode 100644 index 000000000..d7e4112bc --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/ActorValue.java @@ -0,0 +1,41 @@ +package com.Torvald.Terrarum.Actors; + +import java.util.Hashtable; +import java.util.Set; + +/** + * Created by minjaesong on 16-01-03. + */ +public class ActorValue { + + private Hashtable configTable; + + public ActorValue() { + configTable = new Hashtable<>(); + } + + /** + * Add key-value pair to the configuration table. + * + * @param key case insensitive + * @param value + */ + public void set(String key, Object value){ + configTable.put(key.toLowerCase(), value); + } + + /** + * Get value using key from configuration table. + * + * @param key case insensitive + * @return Object value + */ + public Object get(String key){ + return configTable.get(key.toLowerCase()); + } + + public Set getKeySet() { + return configTable.keySet(); + } + +} diff --git a/src/com/Torvald/Terrarum/Actors/ActorWithBody.java b/src/com/Torvald/Terrarum/Actors/ActorWithBody.java new file mode 100644 index 000000000..a6a3244d6 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/ActorWithBody.java @@ -0,0 +1,453 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Rand.HighQualityRandom; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.MapDrawer.MapDrawer; +import com.Torvald.spriteAnimation.SpriteAnimation; +import com.jme3.math.FastMath; +import com.sun.istack.internal.NotNull; +import com.sun.istack.internal.Nullable; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; + +/** + * Created by minjaesong on 16-01-13. + */ +public class ActorWithBody implements Actor, Visible, Glowing { + + private @NotNull float hitboxTranslateX; // relative to spritePosX + private @NotNull float hitboxTranslateY; // relative to spritePosY + private @NotNull int baseHitboxW; + private @NotNull int baseHitboxH; + + /** + * Velocity for newtonian sim. + * Fluctuation in, otherwise still, velocity is equal to acceleration. + * + * Acceleration: used in code like: + * veloY += 3.0 + * +3.0 is acceleration. You __accumulate__ acceleration to the velocity. + */ + private @NotNull float veloX, veloY, veloMax; + + + private boolean grounded = false; + + SpriteAnimation sprite; + @Nullable SpriteAnimation spriteGlow; + private boolean visible = false; + private boolean update = true; + + @NotNull int baseSpriteWidth, baseSpriteHeight; + + /** + * Positions: top-left point + */ + private @NotNull Hitbox hitbox, nextHitbox; + + /** + * Physical properties + */ + private float scale = 1; + private float mass = 1f; + + private static int TSIZE = MapDrawer.TILE_SIZE; + + /** + * Gravitational Constant G. Load from GameMap. + * [m / s^2] + * s^2 = 1/FPS = 1/60 if FPS is targeted to 60 + * meter to pixel : 24/FPS + */ + private final float METER = 24f; + private final float SI_TO_GAME_ACC = METER / (Terrarum.TARGET_FPS * Terrarum.TARGET_FPS); + private final float SI_TO_GAME_VEL = METER / Terrarum.TARGET_FPS; + private float gravitation; + private final float DRAG_COEFF = 1f; + + /** + * A constant to make falling faster so that the game is more playable + */ + private final float G_MUL_PLAYABLE_CONST = 1.4142f; + + long referenceID; + + public ActorWithBody() { + referenceID = new HighQualityRandom(0x7E22A211AAL).nextLong(); + } + + public void setHitboxDimension(int w, int h, int tx, int ty) { + baseHitboxH = h; + baseHitboxW = w; + hitboxTranslateX = tx; + hitboxTranslateY = ty; + } + + /** + * Set hitbox position from bottom-center point + * @param x + * @param y + */ + public void setPosition(float x, float y) { + hitbox = new Hitbox( + x - ((baseHitboxW / 2) - hitboxTranslateX) * scale + , y - (baseHitboxH - hitboxTranslateY) * scale + , baseHitboxW * scale + , baseHitboxH * scale + ); + + nextHitbox = new Hitbox( + x - ((baseHitboxW / 2) - hitboxTranslateX) * scale + , y - (baseHitboxH - hitboxTranslateY) * scale + , baseHitboxW * scale + , baseHitboxH * scale + ); + } + + public void setSprite(SpriteAnimation sprite) {this.sprite = sprite; } + + public void setSpriteGlow(SpriteAnimation sprite) { this.spriteGlow = sprite; } + + public void update(GameContainer gc, int delta_t) { + if (update) { + /** + * Update variables + */ + baseSpriteHeight = sprite.getHeight(); + baseSpriteWidth = sprite.getWidth(); + gravitation = Game.map.getGravitation(); + + applyGravitation(); + + //Set 'next' positions to fiddle with + updateNextHitbox(delta_t); + + updateVerticalPos(); + updateHorizontalPos(); + + // Apply previous fiddling + updateHitbox(); + + + /** + * clamp position + */ + hitbox.setPositionFromPoint( + clampW(hitbox.getPointedX()) + , clampH(hitbox.getPointedY()) + ); + nextHitbox.setPositionFromPoint( + clampW(nextHitbox.getPointedX()) + , clampH(nextHitbox.getPointedY()) + ); + } + } + + @Override + public void drawGlow(GameContainer gc, Graphics g) { + if (visible && spriteGlow != null) { + if (!sprite.flippedHorizontal()) { + spriteGlow.render(g + , Math.round(hitbox.getPosX() - (hitboxTranslateX * scale)) + , Math.round(hitbox.getPosY() - hitboxTranslateY * scale) + - (baseSpriteHeight - baseHitboxH) * scale + + 1 + , scale + ); + } + else { + spriteGlow.render(g + , Math.round(hitbox.getPosX() - scale) + , Math.round(hitbox.getPosY() - hitboxTranslateY * scale) + - (baseSpriteHeight - baseHitboxH) * scale + + 1 + , scale + ); + } + } + } + + @Override + public void drawBody(GameContainer gc, Graphics g) { + if (visible) { + if (!sprite.flippedHorizontal()) { + sprite.render(g + , Math.round(hitbox.getPosX() - (hitboxTranslateX * scale)) + , Math.round(hitbox.getPosY() - hitboxTranslateY * scale) + - (baseSpriteHeight - baseHitboxH) * scale + + 1 + , scale + ); + } + else { + sprite.render(g + , Math.round(hitbox.getPosX() - scale) + , Math.round(hitbox.getPosY() - hitboxTranslateY * scale) + - (baseSpriteHeight - baseHitboxH) * scale + + 1 + , scale + ); + } + } + } + + @Override + public void updateGlowSprite(GameContainer gc, int delta_t) { + if (spriteGlow != null) { + spriteGlow.update(delta_t); + } + } + + @Override + public void updateBodySprite(GameContainer gc, int delta_t) { + sprite.update(delta_t); + } + + boolean collideBottomAndAdjust() { + // noclip off? + if (!(this instanceof Player && ((Player) this).isNoClip())) { + int feetTileX = clampWtile(Math.round((nextHitbox.getPointedX()) / TSIZE)); + int feetTileY = clampHtile(FastMath.floor(nextHitbox.getPointedY() / TSIZE)); + + if (feetTileX < 0) feetTileX = 0; + if (feetTileY < 0) feetTileY = 0; + + int feetTile = Game.map.getTileFromTerrain(feetTileX, feetTileY); + + if (feetTile != 0) { + nextHitbox.setPositionYFromPoint( + feetTileY * TSIZE + ); + return true; + } + else { + return false; + } + } + else { + return false; + } + } + + /** + * Apply gravitation to the every falling body (unless not levitating) + * + * Apply only if not grounded; normal force is not implemented (and redundant) + * so we manually reset G to zero (not applying G. force) if grounded. + */ + private void applyGravitation() { + if (!isGrounded()) { + /** + * weight; gravitational force in action + * W = mass * G (9.8 [m/s^2]) + */ + float W = gravitation * mass; + /** + * Drag of atmosphere + * D = Cd (drag coefficient) * 0.5 * rho (density) * V^2 (velocity) * A (area) + */ + float A = scale * scale; + float D = DRAG_COEFF * 0.5f * 1.292f * veloY * veloY * A; + + veloY += ((W - D) / mass) * SI_TO_GAME_ACC * G_MUL_PLAYABLE_CONST; + } + } + + private void updateVerticalPos() { + if (!playerNoClip()) { + if (collideBottomAndAdjust()) { + grounded = true; + veloY = 0; + } + else { + grounded = false; + } + } + else { + grounded = true; + } + } + + private void updateHorizontalPos() { + + } + + private void updateNextHitbox(int delta_t) { + nextHitbox.set( + hitbox.getPosX() + veloX + , hitbox.getPosY() + veloY + , baseHitboxW * scale + , baseHitboxH * scale + ); + } + + private void updateHitbox() { + hitbox.set( + nextHitbox.getPosX() + , nextHitbox.getPosY() + , baseHitboxW * scale + , baseHitboxH * scale + ); + } + + @Override + public long getRefID() { + return referenceID; + } + + public float pointedPosX() { return hitbox.getPointedX(); } + public float pointedPosY() { return hitbox.getPointedY(); } + public float topLeftPosX() { return hitbox.getPosX(); } + public float topLeftPosY() { return hitbox.getPosY(); } + + private static float clampW(float x) { + if (x < 0) { + return 0; + } + else if (x >= Game.map.width * TSIZE) { + return Game.map.width * TSIZE - 1; + } + else { + return x; + } + } + + private static float clampH(float x) { + if (x < 0) { + return 0; + } + else if (x >= Game.map.height * TSIZE) { + return Game.map.height * TSIZE - 1; + } + else { + return x; + } + } + + private static int clampWtile(int x) { + if (x < 0) { + return 0; + } + else if (x >= Game.map.width) { + return Game.map.width - 1; + } + else { + return x; + } + } + + private static int clampHtile(int x) { + if (x < 0) { + return 0; + } + else if (x >= Game.map.height) { + return Game.map.height - 1; + } + else { + return x; + } + } + + private boolean playerNoClip() { + return (this instanceof Player && ((Player) this).isNoClip()); + } + + private static int div16(int x) { + if (x < 0) { throw new IllegalArgumentException("Positive integer only!"); } + return (x & 0x7FFF_FFFF) >> 4; + } + + private static int mod16(int x) { + if (x < 0) { throw new IllegalArgumentException("Positive integer only!"); } + return x & 0b1111; + } + + public void setVisible(boolean visible) { + this.visible = visible; + } + + public void setScale(float scale) { + this.scale = scale; + } + + public void setMass(float mass) { + this.mass = mass; + } + + public void setVeloX(float veloX) { + this.veloX = veloX; + } + + public void setVeloY(float veloY) { + this.veloY = veloY; + } + + public void setVeloMax(float veloMax) { + this.veloMax = veloMax; + } + + public void setGrounded(boolean grounded) { + this.grounded = grounded; + } + + public boolean isVisible() { + return visible; + } + + public float getScale() { + return scale; + } + + public float getMass() { + return mass; + } + + public float getVeloX() { + return veloX; + } + + public float getVeloY() { + return veloY; + } + + public float getVeloMax() { + return veloMax; + } + + public boolean isGrounded() { + return grounded; + } + + public int getBaseHitboxW() { + return baseHitboxW; + } + + public int getBaseHitboxH() { + return baseHitboxH; + } + + public float getHitboxTranslateX() { + return hitboxTranslateX; + } + + public float getHitboxTranslateY() { + return hitboxTranslateY; + } + + public Hitbox getHitbox() { + return hitbox; + } + + public Hitbox getNextHitbox() { + return nextHitbox; + } + + public boolean isUpdate() { + return update; + } + + public void setUpdate(boolean update) { + this.update = update; + } +} diff --git a/src/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.java b/src/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.java new file mode 100644 index 000000000..93d9aa723 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/CanBeStoredAsItem.java @@ -0,0 +1,20 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Terrarum.GameItem.InventoryItem; + +/** + * Created by minjaesong on 16-01-31. + */ +public interface CanBeStoredAsItem { + + void attachItemData(); + + float getItemWeight(); + + void stopUpdateAndDraw(); + + void resumeUpdateAndDraw(); + + InventoryItem getItemData(); + +} diff --git a/src/com/Torvald/Terrarum/Actors/Controllable.java b/src/com/Torvald/Terrarum/Actors/Controllable.java new file mode 100644 index 000000000..0e3ee33f6 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Controllable.java @@ -0,0 +1,17 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.spriteAnimation.SpriteAnimation; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Input; + +/** + * Created by minjaesong on 15-12-31. + */ +public interface Controllable { + + void processInput(Input input); + + void keyPressed(int key, char c); + +} diff --git a/src/com/Torvald/Terrarum/Actors/Glowing.java b/src/com/Torvald/Terrarum/Actors/Glowing.java new file mode 100644 index 000000000..01be025aa --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Glowing.java @@ -0,0 +1,15 @@ +package com.Torvald.Terrarum.Actors; + +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; + +/** + * Created by minjaesong on 16-01-25. + */ +public interface Glowing { + + void drawGlow(GameContainer gc, Graphics g); + + void updateGlowSprite(GameContainer gc, int delta_t); + +} diff --git a/src/com/Torvald/Terrarum/Actors/Hitbox.java b/src/com/Torvald/Terrarum/Actors/Hitbox.java new file mode 100644 index 000000000..f13eec777 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Hitbox.java @@ -0,0 +1,112 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Point.Point2f; + +/** + * Created by minjaesong on 16-01-15. + */ +public class Hitbox { + + private Point2f hitboxStart; + private Point2f hitboxEnd; + private float width; + private float height; + private float pointX; + private float pointY; + + public Hitbox(float x1, float y1, float width, float height) { + hitboxStart = new Point2f(x1, y1); + hitboxEnd = new Point2f(x1 + width, y1 + height); + this.width = width; + this.height = height; + + pointX = x1 + (width / 2); + pointY = y1 + height; + } + + public Point2f getHitboxStart() { + return hitboxStart; + } + + public Point2f getHitboxEnd() { + return hitboxEnd; + } + + public float getWidth() { + return width; + } + + public float getHeight() { + return height; + } + + /** + * Returns bottom-centered point of hitbox. + * @return pointX + */ + public float getPointedX() { + return pointX; + } + + /** + * Returns bottom-centered point of hitbox. + * @return pointY + */ + public float getPointedY() { + return pointY; + } + + /** + * Set to the point top left + * @param x1 + * @param y1 + * @param width + * @param height + */ + public void set(float x1, float y1, float width, float height) { + hitboxStart = new Point2f(x1, y1); + hitboxEnd = new Point2f(x1 + width, y1 + height); + this.width = width; + this.height = height; + + pointX = x1 + (width / 2); + pointY = y1 + height; + } + + public void setPositionFromPoint(float x1, float y1) { + hitboxStart = new Point2f(x1 - (width / 2), y1 - height); + hitboxEnd = new Point2f(hitboxStart.getX() + width, hitboxStart.getY() + height); + pointX = x1; + pointY = y1; + } + + public void setPositionXFromPoint(float x1) { + float y1 = pointY; + hitboxStart = new Point2f(x1 - (width / 2), y1 - height); + hitboxEnd = new Point2f(hitboxStart.getX() + width, hitboxStart.getY() + height); + pointX = x1; + } + + public void setPositionYFromPoint(float y1) { + float x1 = pointX; + hitboxStart = new Point2f(x1 - (width / 2), y1 - height); + hitboxEnd = new Point2f(hitboxStart.getX() + width, hitboxStart.getY() + height); + pointY = y1; + } + + /** + * Returns x value of start point + * @return top-left point posX + */ + public float getPosX() { + return hitboxStart.getX(); + } + + /** + * Returns y value of start point + * @return top-left point posY + */ + public float getPosY() { + return hitboxStart.getY(); + } +} diff --git a/src/com/Torvald/Terrarum/Actors/ItemTangible.java b/src/com/Torvald/Terrarum/Actors/ItemTangible.java new file mode 100644 index 000000000..ef14f1575 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/ItemTangible.java @@ -0,0 +1,28 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.spriteAnimation.SpriteAnimation; +import com.sun.istack.internal.NotNull; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; + +/** + * Created by minjaesong on 16-01-03. + */ +public class ItemTangible extends ActorWithBody { + + @NotNull private float mass; + + public ItemTangible() { + super.setVisible(true); + } + + @Override + public void update(GameContainer gc, int delta_t) { + + } + + @Override + public void drawBody(GameContainer gc, Graphics g) { + super.drawBody(gc, g); + } +} diff --git a/src/com/Torvald/Terrarum/Actors/PBFSigrid.java b/src/com/Torvald/Terrarum/Actors/PBFSigrid.java new file mode 100644 index 000000000..6fe6ceb09 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/PBFSigrid.java @@ -0,0 +1,64 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Terrarum.Game; +import com.Torvald.spriteAnimation.SpriteAnimation; +import org.newdawn.slick.SlickException; + +/** + * Created by minjaesong on 16-02-03. + */ +public class PBFSigrid { + + public Player build() throws SlickException { + Player p = new Player(); + + p.referenceID = Game.PLAYER_REF_ID; + + p.setVisible(true); + + p.sprite = new SpriteAnimation(); + p.sprite.setDimension(28, 50); + p.sprite.setSpriteImage("res/graphics/sprites/test_player.png"); + p.sprite.setDelay(200); + p.sprite.setRowsAndFrames(1, 1); + p.sprite.setAsVisible(); + p.sprite.composeSprite(); + + p.spriteGlow = new SpriteAnimation(); + p.spriteGlow.setDimension(28, 50); + p.spriteGlow.setSpriteImage("res/graphics/sprites/test_player_glow.png"); + p.spriteGlow.setDelay(200); + p.spriteGlow.setRowsAndFrames(1, 1); + p.spriteGlow.setAsVisible(); + p.spriteGlow.composeSprite(); + + + p.actorValue = new ActorValue(); + p.actorValue.set("scale", 1.0f); + p.actorValue.set("speed", 3.0f); + p.actorValue.set("speedmult", 1.0f); + p.actorValue.set("accel", p.WALK_ACCEL_BASE); + p.actorValue.set("accelmult", 1.0f); + + p.actorValue.set("jumppower", 6f); + // in frames + p.actorValue.set("jumplength", 30f); + + p.actorValue.set("basemass", 80f); + + p.actorValue.set("physiquemult", 1); // Constant 1.0 for player, meant to be used by random mobs + /** + * fixed value, or 'base value', from creature strength of Dwarf Fortress. + * Human race uses 1000. (see CreatureHuman.json) + */ + p.actorValue.set("strength", 1250); + p.actorValue.set("encumbrance", 1000); + + p.setHitboxDimension(20, 47, 7, 0); + + p.inventory = new ActorInventory((int) p.actorValue.get("encumbrance"), true); + + return p; + } + +} diff --git a/src/com/Torvald/Terrarum/Actors/Player.java b/src/com/Torvald/Terrarum/Actors/Player.java new file mode 100644 index 000000000..09fc7dd7f --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Player.java @@ -0,0 +1,449 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Terrarum.GameControl.EnumKeyFunc; +import com.Torvald.Terrarum.GameControl.KeyMap; +import com.Torvald.spriteAnimation.SpriteAnimation; +import com.jme3.math.FastMath; +import com.sun.istack.internal.NotNull; +import com.sun.istack.internal.Nullable; +import org.newdawn.slick.*; + +/** + * Created by minjaesong on 15-12-31. + */ +public class Player extends ActorWithBody implements Controllable, Pocketed { + + @Nullable public Controllable vehicleRiding; + + ActorValue actorValue; + + int jumpPowerCounter = 0; + int walkPowerCounter = 0; + private final int WALK_FRAMES_TO_MAX_ACCEL = 6; + + public float readonly_totalX = 0; + + boolean jumping = false; + + @NotNull int walkHeading; + + ActorInventory inventory; + + private final int LEFT = 1; + private final int RIGHT = 2; + + private int prevHMoveKey = -1; + private int prevVMoveKey = -1; + private final int KEY_NULL = -1; + + final float ACCEL_MULT_IN_FLIGHT = 0.45f; + final float WALK_STOP_ACCEL = 0.2f; + final float WALK_ACCEL_BASE = 0.2f; + + private boolean noClip = false; + + /** + * Creates new Player instance with empty elements (sprites, actorvalue, etc.).
+ * + * Use PlayerBuildFactory to build player! + * + * @throws SlickException + */ + public Player() throws SlickException { + super(); + actorValue = new ActorValue(); + } + + @Override + public void update(GameContainer gc, int delta_t) { + updatePhysicalInfos(); + super.update(gc, delta_t); + + updateSprite(delta_t); + + updateMovementControl(); + + if (noClip) { super.setGrounded(true); } + } + + private void updatePhysicalInfos() { + super.setScale((float) actorValue.get("scale")); + super.setMass((float) actorValue.get("basemass") + * FastMath.pow(super.getScale(), 3)); + } + + private void walkHorizontal(boolean left) { + readonly_totalX = super.getVeloX() + + + (float) actorValue.get("accel") + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + * applyAccelRealism(walkPowerCounter) + * (left ? -1 : 1); + + super.setVeloX(readonly_totalX); + + if (walkPowerCounter < WALK_FRAMES_TO_MAX_ACCEL) { + walkPowerCounter += 1; + } + + // Clamp veloX + super.setVeloX( + absClamp(super.getVeloX() + , (float) actorValue.get("speed") + * (float) actorValue.get("speedmult") + * FastMath.sqrt(super.getScale()) + )); + + // Heading flag + if (left) + walkHeading = LEFT; + else + walkHeading = RIGHT; + } + + /** + * For realistic accelerating while walking. + * + * Naïve 'veloX += 3' is actually like: + * + * a + * | ------------ + * | + * | + * 0+------············ t + * + * which is unrealistic, so this method tries to introduce some realism by: + * + * a + * | ------------ + * | --- + * | - + * | --- + * 0+----··················· t + * + * + * @param x + */ + private float applyAccelRealism(int x) { + return 0.5f + 0.5f * -FastMath.cos(10 * x / (WALK_FRAMES_TO_MAX_ACCEL * FastMath.PI)); + } + + private void walkVertical(boolean up) { + super.setVeloY(super.getVeloY() + + + (float) actorValue.get("accel") + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + * applyAccelRealism(walkPowerCounter) + * (up ? -1 : 1) + ); + + if (walkPowerCounter < WALK_FRAMES_TO_MAX_ACCEL) { + walkPowerCounter += 1; + } + + // Clamp veloX + super.setVeloY( + absClamp(super.getVeloY() + , (float) actorValue.get("speed") + * (float) actorValue.get("speedmult") + * FastMath.sqrt(super.getScale()) + ) + ); + } + + private void walkHStop() { + if (super.getVeloX() > 0) { + super.setVeloX(super.getVeloX() + - + (float) actorValue.get("accel") + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + ); + + // compensate overshoot + if (super.getVeloX() < 0) + super.setVeloX(0); + } + else if (super.getVeloX() < 0) { + super.setVeloX(super.getVeloX() + + + (float) actorValue.get("accel") + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + ); + + // compensate overshoot + if (super.getVeloX() > 0) + super.setVeloX(0); + } + else { + super.setVeloX(0); + } + + walkPowerCounter = 0; + } + + private void walkVStop() { + if (super.getVeloY() > 0) { + super.setVeloY(super.getVeloY() + - + WALK_STOP_ACCEL + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + ); + + // compensate overshoot + if (super.getVeloY() < 0) + super.setVeloY(0); + } + else if (super.getVeloY() < 0) { + super.setVeloY(super.getVeloY() + + + WALK_STOP_ACCEL + * (float) actorValue.get("accelmult") + * FastMath.sqrt(super.getScale()) + ); + + // compensate overshoot + if (super.getVeloY() > 0) + super.setVeloY(0); + } + else { + super.setVeloY(0); + } + + walkPowerCounter = 0; + } + + private void updateMovementControl() { + if (!noClip) { + if (super.isGrounded()) { + actorValue.set("accelmult", 1f); + } else { + actorValue.set("accelmult", ACCEL_MULT_IN_FLIGHT); + } + } + else { + actorValue.set("accelmult", 1f); + } + } + + public void processInput(Input input) { + /** + * L-R stop + */ + // ↑F, ↑S + if (!isFuncDown(input, EnumKeyFunc.MOVE_LEFT) + && !isFuncDown(input, EnumKeyFunc.MOVE_RIGHT)) { + walkHStop(); + prevHMoveKey = KEY_NULL; + } + /** + * U-D stop + */ + // ↑E + // ↑D + if (isNoClip() + &&!isFuncDown(input, EnumKeyFunc.MOVE_UP) + && !isFuncDown(input, EnumKeyFunc.MOVE_DOWN)) { + walkVStop(); + prevVMoveKey = KEY_NULL; + } + + /** + * Left/Right movement + */ + + // ↑F, ↓S + if (isFuncDown(input, EnumKeyFunc.MOVE_RIGHT) + && !isFuncDown(input, EnumKeyFunc.MOVE_LEFT)) { + walkHorizontal(false); + prevHMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_RIGHT); + } + // ↓F, ↑S + else if (isFuncDown(input, EnumKeyFunc.MOVE_LEFT) + && !isFuncDown(input, EnumKeyFunc.MOVE_RIGHT)) { + walkHorizontal(true); + prevHMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_LEFT); + } + // ↓F, ↓S + else if (isFuncDown(input, EnumKeyFunc.MOVE_LEFT) + && isFuncDown(input, EnumKeyFunc.MOVE_RIGHT)) { + if (prevHMoveKey == KeyMap.getKeyCode(EnumKeyFunc.MOVE_LEFT)) { + walkHorizontal(false); + prevHMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_RIGHT); + } + else if (prevHMoveKey == KeyMap.getKeyCode(EnumKeyFunc.MOVE_RIGHT)) { + walkHorizontal(true); + prevHMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_LEFT); + } + } + + /** + * Up/Down movement + */ + + if (noClip) { + // ↑E + // ↓D + if (isFuncDown(input, EnumKeyFunc.MOVE_DOWN) + && !isFuncDown(input, EnumKeyFunc.MOVE_UP)) { + walkVertical(false); + prevVMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_DOWN); + } + // ↓E + // ↑D + else if (isFuncDown(input, EnumKeyFunc.MOVE_UP) + && !isFuncDown(input, EnumKeyFunc.MOVE_DOWN)) { + walkVertical(true); + prevVMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_UP); + } + // ↓E + // ↓D + else if (isFuncDown(input, EnumKeyFunc.MOVE_UP) + && isFuncDown(input, EnumKeyFunc.MOVE_DOWN)) { + if (prevVMoveKey == KeyMap.getKeyCode(EnumKeyFunc.MOVE_UP)) { + walkVertical(false); + prevVMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_DOWN); + } + else if (prevVMoveKey == KeyMap.getKeyCode(EnumKeyFunc.MOVE_DOWN)) { + walkVertical(true); + prevVMoveKey = KeyMap.getKeyCode(EnumKeyFunc.MOVE_UP); + } + } + } + + /** + * Jump control + */ + if (isFuncDown(input, EnumKeyFunc.JUMP)) { + if (!noClip) { + if (super.isGrounded()) { + jumping = true; + jump(); + } + } + else { + walkVertical(true); + } + } + else { + jumping = false; + jumpPowerCounter = 0; + } + + } + + public void keyPressed(int key, char c) { + + } + + private void jump() { + float len = (float) actorValue.get("jumplength"); + float pwr = (float) actorValue.get("jumppower"); + + //if (jumping) { + // // Limit increment of jumpPowerCounter + // if (jumpPowerCounter < len) { + // jumpPowerCounter += 1; +// + // /** + // * Limit jumping + // */ + // //super.veloY = jumpFuncSqu(pwr, len); + // super.veloY += jumpFuncLin(pwr, len); + // //super.veloY = jumpFuncExp(pwr, len); +// + // System.out.println(jumpFuncLin(pwr, len)); + // } +// + // super.grounded = false; + //} + + // At least this works, though. Useful if it were AI-controlled. + super.setVeloY(super.getVeloY() + - + pwr * FastMath.sqrt(super.getScale()) + ); + } + + private float jumpFuncLin(float pwr, float len) { + return -(pwr / len) * jumpPowerCounter; + } + + private float jumpFuncSqu(float pwr, float len) { + return (pwr / (len * len)) + * (jumpPowerCounter - len) + * (jumpPowerCounter - len) // square + - pwr; + } + + private float jumpFuncExp(float pwr, float len) { + float a = FastMath.pow(pwr + 1, 1 / len); + return -FastMath.pow(a, len) + 1; + } + + private boolean isFuncDown(Input input, EnumKeyFunc fn) { + return input.isKeyDown(KeyMap.getKeyCode(fn)); + } + + private float absClamp(float i, float ceil) { + if (i > 0) + return (i > ceil) ? ceil : i; + else if (i < 0) + return (-i > ceil) ? -ceil : i; + else + return 0; + } + + private void updateSprite(int delta_t) { + sprite.update(delta_t); + if (spriteGlow != null) { + spriteGlow.update(delta_t); + } + + if (super.isGrounded()) { + if (walkHeading == LEFT) { + sprite.flip(true, false); + if (spriteGlow != null) { + spriteGlow.flip(true, false); + } + } + else { + sprite.flip(false, false); + if (spriteGlow != null) { + spriteGlow.flip(false, false); + } + } + } + } + + @Override + public ActorInventory getInventory() { + return inventory; + } + + @Override + public void overwriteInventory(ActorInventory inventory) { + this.inventory = inventory; + } + + public boolean isNoClip() { + return noClip; + } + + public void setNoClip(boolean b) { + noClip = b; + } + + public ActorValue getActorValue() { + return actorValue; + } + + public SpriteAnimation getSpriteGlow() { + return spriteGlow; + } + +} diff --git a/src/com/Torvald/Terrarum/Actors/PlayerBuildFactory.java b/src/com/Torvald/Terrarum/Actors/PlayerBuildFactory.java new file mode 100644 index 000000000..b5d009daa --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/PlayerBuildFactory.java @@ -0,0 +1,120 @@ +package com.Torvald.Terrarum.Actors; + + +import com.Torvald.Rand.Fudge3; +import com.Torvald.Rand.HighQualityRandom; +import com.google.gson.*; +import org.newdawn.slick.SlickException; + +import java.io.IOException; +import java.nio.file.FileSystems; +import java.nio.file.Files; + +/** + * Created by minjaesong on 16-02-03. + */ +public class PlayerBuildFactory { + + private static final String JSONPATH = "./res/raw/"; + private static String jsonString = new String(); + + public Player build(String jsonFileName) throws IOException, SlickException { + JsonObject jsonObj = readJson(jsonFileName); + Player p = new Player(); + + + String[] elementsString = { + "racename" + , "racenameplural" + }; + + String[] elementsFloat = { + "baseheight" + , "basemass" + , "toolsize" + , "encumbrance" + }; + + String[] elementsFloatVariable = { + "baseheight" + , "strength" + , "speed" + , "jumppower" + , "scale" + }; + + + setAVStrings(p, elementsString, jsonObj); + setAVFloats(p, elementsFloat, jsonObj); + setAVFloatsVariable(p, elementsFloatVariable, jsonObj); + + + p.inventory = new ActorInventory((int) p.actorValue.get("encumberance"), true); + + + return p; + } + + /** + * Fetch and set actor values that have 'variable' appended. E.g. strength + * @param p + * @param elemSet + * @param jsonObject + */ + private void setAVFloatsVariable(Player p, String[] elemSet, JsonObject jsonObject) { + for (String s : elemSet) { + float baseValue = jsonObject.get(s).getAsFloat(); + // roll fudge dice and get value [-3, 3] as [0, 6] + int varSelected = new Fudge3().create(new HighQualityRandom()).roll() + 3; + // get multiplier from json. Assuming percentile + int multiplier = jsonObject.get(s + "variable").getAsJsonArray().get(varSelected).getAsInt(); + float realValue = baseValue * multiplier / 100f; + + p.actorValue.set(s, realValue); + } + } + + /** + * Fetch and set string actor values + * @param p + * @param elemSet + * @param jsonObject + */ + private void setAVStrings(Player p, String[] elemSet, JsonObject jsonObject) { + for (String s : elemSet) { + p.actorValue.set(s, jsonObject.get(s).getAsString()); + } + } + + /** + * Fetch and set float actor values + * @param p + * @param elemSet + * @param jsonObject + */ + private void setAVFloats(Player p, String[] elemSet, JsonObject jsonObject) { + for (String s : elemSet) { + p.actorValue.set(s, jsonObject.get(s).getAsFloat()); + } + } + + private JsonObject readJson(String jsonFileName) throws IOException { + readJsonFileAsString(jsonFileName); + + JsonParser jsonParser = new JsonParser(); + JsonObject jsonObj = jsonParser.parse(jsonString).getAsJsonObject(); + + return jsonObj; + } + + private void readJsonFileAsString(String filename) throws IOException { + Files.lines( + FileSystems.getDefault().getPath(JSONPATH + filename) + ).forEach(this::strAppend); + } + + private void strAppend( String s) { + jsonString += s; + } + +} diff --git a/src/com/Torvald/Terrarum/Actors/PlayerDebugger.java b/src/com/Torvald/Terrarum/Actors/PlayerDebugger.java new file mode 100644 index 000000000..cb91e4270 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/PlayerDebugger.java @@ -0,0 +1,45 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.spriteAnimation.SpriteAnimation; + +/** + * Created by minjaesong on 16-01-14. + */ +public class PlayerDebugger { + + private Actor actor; + + public PlayerDebugger(Actor actor) { + this.actor = actor; + } + + public Player getPlayer() { + if (actor instanceof Player) { + return (Player) actor; + } + else { + throw new UnsupportedOperationException(); + } + } + + /* + * Delegates for Player instances + */ + + public float baseHitboxW() { return getPlayer().getBaseHitboxW(); } + public float baseHitboxH() { return getPlayer().getBaseHitboxH(); } + public float hitboxTranslateX() { return getPlayer().getHitboxTranslateX(); } + public float hitboxTranslateY() { return getPlayer().getHitboxTranslateY(); } + public float veloX() { return getPlayer().getVeloX(); } + public float veloY() { return getPlayer().getVeloY(); } + public int baseSpriteWidth() { return getPlayer().baseSpriteWidth; } + public int baseSpriteHeight() { return getPlayer().baseSpriteHeight; } + public SpriteAnimation sprite() { return getPlayer().sprite; } + public float scale() { return getPlayer().getScale(); } + public Hitbox hitbox() { return getPlayer().getHitbox(); } + public Hitbox nextHitbox() { return getPlayer().getNextHitbox(); } + public boolean grounded() { return getPlayer().isGrounded(); } + public ActorValue actorValue() { return getPlayer().getActorValue(); } + public float mass() { return getPlayer().getMass(); } + public boolean noClip() { return getPlayer().isNoClip(); } +} diff --git a/src/com/Torvald/Terrarum/Actors/Pocketed.java b/src/com/Torvald/Terrarum/Actors/Pocketed.java new file mode 100644 index 000000000..bfc9aec7b --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Pocketed.java @@ -0,0 +1,12 @@ +package com.Torvald.Terrarum.Actors; + +/** + * Created by minjaesong on 16-01-15. + */ +public interface Pocketed { + + public ActorInventory getInventory(); + + public void overwriteInventory(ActorInventory inventory); + +} diff --git a/src/com/Torvald/Terrarum/Actors/TestNPC.java b/src/com/Torvald/Terrarum/Actors/TestNPC.java new file mode 100644 index 000000000..43cafba13 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/TestNPC.java @@ -0,0 +1,91 @@ +package com.Torvald.Terrarum.Actors; + +import com.Torvald.Terrarum.GameItem.InventoryItem; +import org.newdawn.slick.GameContainer; + +/** + * Created by minjaesong on 16-01-31. + */ +public class TestNPC extends ActorWithBody implements AIControlled, Pocketed, CanBeStoredAsItem { + + private InventoryItem itemData; + // private ActorAI ai; + private ActorInventory inventory; + + @Override + public void attachAI() { + + } + + @Override + public void attachItemData() { + itemData = new InventoryItem() { + @Override + public float getWeight() { + return getMass(); + } + + /** Set no effect */ + @Override + public void effectWhileInPocket(GameContainer gc, int delta_t) { + + } + + /** Set no effect */ + @Override + public void effectWhenPickedUp(GameContainer gc, int delta_t) { + + } + + /** Set no effect */ + @Override + public void primaryUse(GameContainer gc, int delta_t) { + + } + + /** Set no effect */ + @Override + public void secondaryUse(GameContainer gc, int delta_t) { + + } + + /** Set no effect */ + @Override + public void effectWhenThrownAway(GameContainer gc, int delta_t) { + + } + }; + } + + @Override + public float getItemWeight() { + return super.getMass(); + } + + @Override + public void stopUpdateAndDraw() { + super.setUpdate(false); + super.setVisible(false); + } + + @Override + public void resumeUpdateAndDraw() { + super.setUpdate(true); + super.setVisible(true); + } + + @Override + public InventoryItem getItemData() { + return itemData; + } + + @Override + public ActorInventory getInventory() { + return null; + } + + @Override + public void overwriteInventory(ActorInventory inventory) { + this.inventory = inventory; + } +} diff --git a/src/com/Torvald/Terrarum/Actors/Visible.java b/src/com/Torvald/Terrarum/Actors/Visible.java new file mode 100644 index 000000000..f78a6cdf4 --- /dev/null +++ b/src/com/Torvald/Terrarum/Actors/Visible.java @@ -0,0 +1,15 @@ +package com.Torvald.Terrarum.Actors; + +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; + +/** + * Created by minjaesong on 16-01-25. + */ +public interface Visible { + + void drawBody(GameContainer gc, Graphics g); + + void updateBodySprite(GameContainer gc, int delta_t); + +} diff --git a/src/com/Torvald/Terrarum/COPYING b/src/com/Torvald/Terrarum/COPYING new file mode 100644 index 000000000..e78cbe395 --- /dev/null +++ b/src/com/Torvald/Terrarum/COPYING @@ -0,0 +1,6 @@ +* Terrarum by Torvald + Copyright 2015-2016 Torvald. All rights reserved. + mailto: alswo9628 *at* !gmail! *dot* !com! + +* Simplex Noise Generator, version 2012-03-09 by Stefan Gustavson + Released as public domain diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.java b/src/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.java new file mode 100644 index 000000000..224872464 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/CodexEdictis.java @@ -0,0 +1,45 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.UserInterface.ConsoleWindow; + +/** + * Created by minjaesong on 16-01-16. + */ +public class CodexEdictis implements ConsoleCommand { + @Override + public void execute(String[] args) { + if (args.length == 1) { + printList(); + } + else{ + try { + ConsoleCommand commandObj = CommandDict.getCommand(args[1].toLowerCase()); + commandObj.printUsage(); + } + catch (NullPointerException e) { + new Echo().execute("Codex: Unknown command: " + args[1]); + } + } + } + + @Override + public void printUsage() { + Echo echo = new Echo(); + echo.execute("Usage: codex (command)"); + echo.execute("shows how to use 'command'"); + echo.execute("leave blank to get list of available commands"); + } + + private void printList() { + Echo echo = new Echo(); + echo.execute("Available commands"); + echo.execute("--------------------------------"); + + CommandDict.dict.keySet().forEach((s) -> echo.execute(s)); + + + echo.execute("--------------------------------"); + } + +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/CommandDict.java b/src/com/Torvald/Terrarum/ConsoleCommand/CommandDict.java new file mode 100644 index 000000000..36a4c55a6 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/CommandDict.java @@ -0,0 +1,34 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import java.util.Hashtable; + +/** + * Created by minjaesong on 16-01-15. + */ +public class CommandDict { + + protected static Hashtable dict; + + public CommandDict() { + dict = new Hashtable<>(); + + dict.put("setav", new SetAV()); + dict.put("qqq", new QuitApp()); + dict.put("codex", new CodexEdictis()); + dict.put("export", new ExportMap()); + dict.put("gc", new ForceGC()); + dict.put("getav", new GetAV()); + dict.put("getlocale", new GetLocale()); + dict.put("togglenoclip", new ToggleNoClip()); + dict.put("nc", dict.get("togglenoclip")); + dict.put("bulletintest", new SetBulletin()); + dict.put("setlocale", new SetLocale()); + dict.put("zoom", new Zoom()); + dict.put("teleport", new TeleportPlayer()); + } + + public static ConsoleCommand getCommand(String commandName) { + return dict.get(commandName); + } + +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.java b/src/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.java new file mode 100644 index 000000000..3f3d15ad4 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/CommandInterpreter.java @@ -0,0 +1,57 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.UserInterface.ConsoleWindow; + +/** + * Created by minjaesong on 16-01-15. + */ +public class CommandInterpreter { + + public static void execute(String command) { + CommandInput[] cmd = parse(command); + + for (CommandInput single_command : cmd) { + try { + ConsoleCommand commandObj = CommandDict.getCommand(single_command.getName().toLowerCase()); + commandObj.execute(single_command.toStringArray()); + } + catch (NullPointerException e) { + new Echo().execute("Unknown command: " + single_command.getName()); + } + } + } + + private static CommandInput[] parse(String input) { + String[] commands = input.split(";[ ]?"); // split multiple commands (e.g. respawn player; setav player speed 5) + + CommandInput[] ret = new CommandInput[commands.length]; + for (int i = 0; i < commands.length; i++) { + ret[i] = new CommandInput(commands[i].split(" ")); + } + + return ret; + } + +} + +class CommandInput { + private String[] args; + private int argsCount = 0; + + CommandInput(String[] s) { + args = s; + } + + String[] toStringArray() { + return args; + } + + String getName() { + return args[0]; + } + + int getArgsCount() { + return argsCount; + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.java b/src/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.java new file mode 100644 index 000000000..72f9d5906 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/ConsoleCommand.java @@ -0,0 +1,12 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +/** + * Created by minjaesong on 16-01-15. + */ +interface ConsoleCommand { + + void execute(String[] args); + + void printUsage(); + +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/Echo.java b/src/com/Torvald/Terrarum/ConsoleCommand/Echo.java new file mode 100644 index 000000000..9b323b9dc --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/Echo.java @@ -0,0 +1,25 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.UserInterface.ConsoleWindow; + +/** + * Created by minjaesong on 16-01-16. + */ +class Echo implements ConsoleCommand { + @Override + public void execute(String[] args) { + ((ConsoleWindow) Game.consoleHandler.getUI()) + .sendMessage(args.toString()); + } + + public void execute(String single_line) { + ((ConsoleWindow) Game.consoleHandler.getUI()) + .sendMessage(single_line); + } + + @Override + public void printUsage() { + + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/ExportMap.java b/src/com/Torvald/Terrarum/ConsoleCommand/ExportMap.java new file mode 100644 index 000000000..ae26bc9b3 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/ExportMap.java @@ -0,0 +1,148 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.ColourUtil.Col12; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.Game; +import org.newdawn.slick.Color; + +import javax.imageio.ImageIO; +import java.awt.*; +import java.awt.color.ColorSpace; +import java.awt.image.*; +import java.io.*; +import java.util.Hashtable; + +/** + * Created by minjaesong on 16-01-17. + */ +public class ExportMap implements ConsoleCommand { + + private byte[] mapData; + private int mapDataPointer = 0; + + private static final byte AIR = 0; + private static final byte COAL = 16; + private static final byte COPPER = 17; + private static final byte IRON = 18; + private static final byte GOLD = 19; + + private static final byte COBALTITE = 20; + private static final byte ILMENITE = 21; + private static final byte AURICHALCUM = 22; + + private static final byte DIAMOND = 23; + private static final byte RUBY = 24; + private static final byte EMERALD = 25; + private static final byte SAPPHIRE = 26; + private static final byte TOPAZ = 27; + private static final byte AMETHYST = 28; + + private static final byte DIRT = 2; + private static final byte GRAVEL = 15; + private static final byte SAND = 14; + private static final byte STONE = 1; + private static final byte GRASS = 3; + + private static final byte WATER = (byte) 239; + private static final byte LAVA = (byte) 255; + + private Hashtable colorTable = new Hashtable<>(); + + @Override + public void execute(String[] args) { + if (args.length == 2) { + buildColorTable(); + + mapData = new byte[Game.map.width * Game.map.height * 3]; + + for (byte tile : Game.map.getLayerTerrain()) { + byte[] colArray = colorTable.getOrDefault(tile, new Col12(0xFFF)) + .toByteArray(); + + for (int i = 0; i < 3; i++) { + mapData[mapDataPointer + i] = colArray[i]; + } + + mapDataPointer += 3; + } + + String dir = Terrarum.defaultDir + "/Exports/"; + File dirAsFile = new File(dir); + if (!dirAsFile.exists()) { + dirAsFile.mkdir(); + } + + try { + int[] bandOffsets = {0, 1, 2}; // RGB + DataBuffer buffer = new DataBufferByte(mapData, mapData.length); + WritableRaster raster = Raster.createInterleavedRaster( + buffer + , Game.map.width + , Game.map.height + , 3 * Game.map.width + , 3 + , bandOffsets + , null); + + ColorModel colorModel = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB), false, false, Transparency.TRANSLUCENT, DataBuffer.TYPE_BYTE); + + BufferedImage image = new BufferedImage(colorModel, raster, colorModel.isAlphaPremultiplied(), null); + + ImageIO.write(image, "PNG", new File(dir + args[1] + ".png")); + + } catch (IOException e) { + new Echo().execute("ExportMap: IOException raised."); + } + + mapData = null; + mapDataPointer = 0; + + // Free up some memory + System.gc(); + + new Echo().execute("ExportMap: exported to " + args[1] + ".png"); + } + else{ + printUsage(); + } + } + + @Override + public void printUsage() { + Echo echo = new Echo(); + echo.execute("Usage: export "); + echo.execute("Exports current map into visible image."); + echo.execute("The image can be found at %adddata%/Terrarum/Exports"); + } + + private void buildColorTable() { + colorTable.put(AIR, new Col12(0xCEF)); + colorTable.put(STONE, new Col12(0x887)); + colorTable.put(DIRT, new Col12(0x763)); + colorTable.put(GRASS, new Col12(0x251)); + + colorTable.put(COAL, new Col12(0x221)); + colorTable.put(COPPER, new Col12(0x6A8)); + colorTable.put(IRON, new Col12(0xC75)); + colorTable.put(GOLD, new Col12(0xCB6)); + colorTable.put(COBALTITE, new Col12(0xDCD)); + colorTable.put(ILMENITE, new Col12(0x8AB)); + colorTable.put(AURICHALCUM, new Col12(0xD92)); + + colorTable.put(DIAMOND, new Col12(0x9CE)); + colorTable.put(RUBY, new Col12(0xB10)); + colorTable.put(EMERALD, new Col12(0x0B1)); + colorTable.put(SAPPHIRE, new Col12(0x01B)); + colorTable.put(TOPAZ, new Col12(0xC70)); + colorTable.put(AMETHYST, new Col12(0x70C)); + + colorTable.put(WATER, new Col12(0x038)); + colorTable.put(LAVA, new Col12(0xF50)); + + colorTable.put(SAND, new Col12(0xDCA)); + colorTable.put(GRAVEL, new Col12(0x664)); + + + } + +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/ForceGC.java b/src/com/Torvald/Terrarum/ConsoleCommand/ForceGC.java new file mode 100644 index 000000000..4b0121491 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/ForceGC.java @@ -0,0 +1,17 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +/** + * Created by minjaesong on 16-01-18. + */ +public class ForceGC implements ConsoleCommand { + @Override + public void execute(String[] args) { + System.gc(); + new Echo().execute("Invoked System.gc"); + } + + @Override + public void printUsage() { + new Echo().execute("Invoke garbage collection of JVM."); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/GetAV.java b/src/com/Torvald/Terrarum/ConsoleCommand/GetAV.java new file mode 100644 index 000000000..388ae85ba --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/GetAV.java @@ -0,0 +1,47 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Actors.ActorValue; +import com.Torvald.Terrarum.Game; + +import java.util.Iterator; +import java.util.Set; + +/** + * Created by minjaesong on 16-01-19. + */ +public class GetAV implements ConsoleCommand { + @Override + public void execute(String[] args) { + Echo echo = new Echo(); + + if (args.length == 1) { + // print all actorvalue of player + ActorValue av = Game.getPlayer().getActorValue(); + Set keyset = av.getKeySet(); + + keyset.forEach( + elem -> echo.execute(elem + " = " + av.get((String)elem)) + ); + + } + else if (args.length != 3 && args.length != 2) { + printUsage(); + } + else if (args.length == 2) { + echo.execute("player." + args[1] + ": " + + Game.getPlayer().getActorValue().get(args[1]) + ); + } + else if (args.length == 3) { + + } + } + + @Override + public void printUsage() { + Echo echo = new Echo(); + echo.execute("Get desired actor value of specific target."); + echo.execute("Usage: getav (id) "); + echo.execute("blank ID for player"); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/GetLocale.java b/src/com/Torvald/Terrarum/ConsoleCommand/GetLocale.java new file mode 100644 index 000000000..1d04cad80 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/GetLocale.java @@ -0,0 +1,27 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.LangPack.Lang; +import com.Torvald.Terrarum.Terrarum; + +/** + * Created by minjaesong on 16-01-22. + */ +public class GetLocale implements ConsoleCommand { + @Override + public void execute(String[] args) { + new Echo().execute( + "Locale: " + + Lang.get("MENU_LANGUAGE_THIS") + + " (" + + Lang.get("MENU_LANGUAGE_THIS_EN") + + ")" + ); + } + + @Override + public void printUsage() { + Echo echo = new Echo(); + echo.execute("Usage: getlocale"); + echo.execute("Get name of locale currently using."); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/QuitApp.java b/src/com/Torvald/Terrarum/ConsoleCommand/QuitApp.java new file mode 100644 index 000000000..2e10f3068 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/QuitApp.java @@ -0,0 +1,17 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +/** + * Created by minjaesong on 16-01-15. + */ +public class QuitApp implements ConsoleCommand { + + @Override + public void execute(String[] args) { + System.exit(0); + } + + @Override + public void printUsage() { + + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/SetAV.java b/src/com/Torvald/Terrarum/ConsoleCommand/SetAV.java new file mode 100644 index 000000000..94aacbba2 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/SetAV.java @@ -0,0 +1,44 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; + +/** + * Created by minjaesong on 16-01-15. + */ +class SetAV implements ConsoleCommand { + + @Override + public void printUsage() { + Echo echo = new Echo(); + echo.execute("Set actor value of specific target to desired value."); + echo.execute("Usage: setav (id) "); + echo.execute("blank ID for player"); + } + + @Override + public void execute(String[] args) { + Echo echo = new Echo(); + + // setav + if (args.length != 4 && args.length != 3) { + printUsage(); + } + else if (args.length == 3) { + float val; + try { + val = new Float(args[2]); + } + catch (NumberFormatException e) { + new Echo().execute("Wrong number input."); + return; + } + + Game.getPlayer().getActorValue().set(args[1], val); + echo.execute("Set " + args[1] + " to " + val); + } + else if (args.length == 4) { + + } + + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.java b/src/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.java new file mode 100644 index 000000000..4e23f80a1 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/SetBulletin.java @@ -0,0 +1,34 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.LangPack.Lang; +import com.Torvald.Terrarum.UserInterface.Bulletin; + +/** + * Created by minjaesong on 16-01-23. + */ +public class SetBulletin implements ConsoleCommand { + @Override + public void execute(String[] args) { + new Echo().execute(Lang.get("APP_CALIBRATE_YOUR_MONITOR")); + + String[] testMsg = { + "SetBulletin: this is a test!" + , "게임 내 방송입니다." + }; + send(testMsg); + } + + @Override + public void printUsage() { + + } + + /** + * Actually send bulletin + * @param message real message + */ + public void send(String[] message) { + ((Bulletin) (Game.bulletin.getUI())).sendBulletin(message); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/SetLocale.java b/src/com/Torvald/Terrarum/ConsoleCommand/SetLocale.java new file mode 100644 index 000000000..bd14f5a78 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/SetLocale.java @@ -0,0 +1,38 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.LangPack.Lang; +import com.Torvald.Terrarum.Terrarum; + +import java.io.IOException; + +/** + * Created by minjaesong on 16-01-25. + */ +public class SetLocale implements ConsoleCommand { + @Override + public void execute(String[] args) { + if (args.length == 2) { + String prevLocale = Terrarum.gameLocale; + Terrarum.gameLocale = args[1].toLowerCase(); + try { + new Lang(); + new Echo().execute("Set locale to '" + Terrarum.gameLocale + "'."); + } + catch (IOException e) { + new Echo().execute("Locale '" + + args[1].toLowerCase() + + "' does not exist or could not read file." + ); + Terrarum.gameLocale = prevLocale; + } + } + else { + printUsage(); + } + } + + @Override + public void printUsage() { + new Echo().execute("Usage: setlocale [locale]"); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.java b/src/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.java new file mode 100644 index 000000000..54ed270ec --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/TeleportPlayer.java @@ -0,0 +1,36 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.MapDrawer.MapDrawer; + +/** + * Created by minjaesong on 16-01-24. + */ +public class TeleportPlayer implements ConsoleCommand { + + @Override + public void execute(String[] args) { + if (args.length != 3) { + printUsage(); + } + else { + + int x, y; + try { + x = new Integer((args[1])) * MapDrawer.TILE_SIZE + (MapDrawer.TILE_SIZE / 2); + y = new Integer((args[2])) * MapDrawer.TILE_SIZE + (MapDrawer.TILE_SIZE / 2); + } + catch (NumberFormatException e) { + new Echo().execute("Wrong number input."); + return; + } + + Game.getPlayer().setPosition(x, y); + } + } + + @Override + public void printUsage() { + new Echo().execute("Usage: teleport [x-tile] [y-tile]"); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.java b/src/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.java new file mode 100644 index 000000000..49442f3a9 --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/ToggleNoClip.java @@ -0,0 +1,21 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; + +/** + * Created by minjaesong on 16-01-19. + */ +public class ToggleNoClip implements ConsoleCommand { + @Override + public void execute(String[] args) { + boolean status = Game.getPlayer().isNoClip(); + + Game.getPlayer().setNoClip(!status); + new Echo().execute("Set no-clip status to " + String.valueOf(!status)); + } + + @Override + public void printUsage() { + new Echo().execute("toggle no-clip status of player"); + } +} diff --git a/src/com/Torvald/Terrarum/ConsoleCommand/Zoom.java b/src/com/Torvald/Terrarum/ConsoleCommand/Zoom.java new file mode 100644 index 000000000..5c12a89da --- /dev/null +++ b/src/com/Torvald/Terrarum/ConsoleCommand/Zoom.java @@ -0,0 +1,44 @@ +package com.Torvald.Terrarum.ConsoleCommand; + +import com.Torvald.Terrarum.Game; + +/** + * Created by minjaesong on 16-01-25. + */ +public class Zoom implements ConsoleCommand { + @Override + public void execute(String[] args) { + if (args.length == 2) { + + float zoom; + try { + zoom = new Float(args[1]); + } + catch (NumberFormatException e) { + new Echo().execute("Wrong number input."); + return; + } + + if (zoom < Game.ZOOM_MIN) { + zoom = Game.ZOOM_MIN; + } + else if (zoom > Game.ZOOM_MAX) { + zoom = Game.ZOOM_MAX; + } + + Game.screenZoom = zoom; + + System.gc(); + + new Echo().execute("Set screen zoom to " + String.valueOf(zoom)); + } + else { + printUsage(); + } + } + + @Override + public void printUsage() { + new Echo().execute("Usage: zoom [zoom]"); + } +} diff --git a/src/com/Torvald/Terrarum/Exceptions/InvalidValueException.java b/src/com/Torvald/Terrarum/Exceptions/InvalidValueException.java new file mode 100644 index 000000000..9aca6d067 --- /dev/null +++ b/src/com/Torvald/Terrarum/Exceptions/InvalidValueException.java @@ -0,0 +1,8 @@ +package com.Torvald.Terrarum.Exceptions; + +/** + * Created by minjaesong on 16-01-04. + */ +public class InvalidValueException extends Exception { + +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/Game.java b/src/com/Torvald/Terrarum/Game.java new file mode 100644 index 000000000..3b320524a --- /dev/null +++ b/src/com/Torvald/Terrarum/Game.java @@ -0,0 +1,211 @@ +package com.Torvald.Terrarum; + +import com.Torvald.Terrarum.Actors.*; +import com.Torvald.Terrarum.ConsoleCommand.CommandDict; +import com.Torvald.Terrarum.GameControl.GameController; +import com.Torvald.Terrarum.GameControl.KeyToggler; +import com.Torvald.Terrarum.GameMap.GameMap; +import com.Torvald.Terrarum.MapDrawer.LightmapRenderer; +import com.Torvald.Terrarum.MapDrawer.MapCamera; +import com.Torvald.Terrarum.MapDrawer.MapDrawer; +import com.Torvald.Terrarum.MapGenerator.MapGenerator; +import com.Torvald.Terrarum.TileStat.TileStat; +import com.Torvald.Terrarum.UserInterface.*; +import com.sun.istack.internal.NotNull; +import org.lwjgl.opengl.GL11; +import org.newdawn.slick.*; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.fills.GradientFill; +import org.newdawn.slick.geom.Rectangle; +import shader.Shader; + +import java.util.LinkedList; + +/** + * Created by minjaesong on 15-12-30. + */ +public class Game { + + static int game_mode = 0; + + public static GameConfig gameConfig; + + public static GameMap map; + + public static LinkedList actorContainer = new LinkedList<>(); + public static LinkedList uiContainer = new LinkedList<>(); + + public static UIHandler consoleHandler; + public static UIHandler debugWindow; + public static UIHandler bulletin; + + @NotNull + static Player player; + + public static final long PLAYER_REF_ID = 0x51621D; + + private static Image GRADIENT_IMAGE; + private static Rectangle skyBox; + + public static float screenZoom = 1.0f; + public static final float ZOOM_MAX = 2.0f; + public static final float ZOOM_MIN = 0.25f; + + private static Shader shader12BitCol; + private static Shader shaderBlurH; + private static Shader shaderBlurV; + + public Game() throws SlickException { + gameConfig = new GameConfig(); + gameConfig.addKey("smoothlighting", true); + + shader12BitCol = Shader.makeShader("./res/4096.vrt", "./res/4096.frg"); + shaderBlurH = Shader.makeShader("./res/blurH.vrt", "./res/blur.frg"); + shaderBlurV = Shader.makeShader("./res/blurV.vrt", "./res/blur.frg"); + + GRADIENT_IMAGE = new Image("res/graphics/backgroundGradientColour.png"); + skyBox = new Rectangle(0, 0, Terrarum.WIDTH, Terrarum.HEIGHT); + + new WorldTime(); + + map = new GameMap(8192, 2048); + map.setGravitation(9.8f); + + MapGenerator.attachMap(map); + MapGenerator.setSeed(0x51621D); + MapGenerator.generateMap(); + + new CommandDict(); + + // add new player and put it to actorContainer + //player = new Player(); + player = new PBFSigrid().build(); + player.setPosition(24, 24); + //player.setNoClip(true); + actorContainer.add(player); + + new MapDrawer(map); + + new LightmapRenderer(); + + consoleHandler = new UIHandler(new ConsoleWindow()); + consoleHandler.setPosition(0, 0); + + debugWindow = new UIHandler(new BasicDebugInfoWindow()); + debugWindow.setPosition(0, 0); + + /*bulletin = new UIHandler(new Bulletin()); + bulletin.setPosition( + (Terrarum.WIDTH - bulletin.getUI().getWidth()) + / 2 + , 0 + ); + bulletin.setVisibility(true); + */ + + UIHandler msgtest = new UIHandler(new Message(400, true)); + String[] msg = {"Hello, world!", "안녕, 세상아!"}; + ((Message) msgtest.getUI()).setMessage(msg); + msgtest.setPosition(32, 32); + // msgtest.setVisibility(true); + + uiContainer.add(msgtest); + } + + public static Player getPlayer() { + return player; + } + + public static void update(GameContainer gc, int delta_t) { + MapDrawer.update(gc, delta_t); + + GameController.processInput(gc.getInput()); + + actorContainer.forEach(actor -> actor.update(gc, delta_t)); + actorContainer.forEach( + actor -> { + if (actor instanceof Visible) { + ((Visible) actor).updateBodySprite(gc, delta_t); + } + if (actor instanceof Glowing) { + ((Glowing) actor).updateGlowSprite(gc, delta_t); + } + } + ); + + uiContainer.forEach(ui -> ui.update(gc, delta_t)); + + KeyToggler.update(gc); + + //bulletin.update(gc, delta_t); + + TileStat.update(); + } + + public static void render(GameContainer gc, Graphics g) { + // shader12BitCol.setUniformIntVariable("pixelSize", 1); + // shader12BitCol.startShader(); + // shaderBlurH.startShader(); + // shaderBlurV.startShader(); + + drawSkybox(g); + + // compensate for zoom. UIs have to be treated specially! (see UIHandler) + g.translate( + -MapCamera.getCameraX() * screenZoom + , -MapCamera.getCameraY() * screenZoom + ); + + MapDrawer.render(gc, g); + actorContainer.forEach( + actor -> { + if (actor instanceof Visible) { + ((Visible) actor).drawBody(gc, g); + } + } + ); + + // Slick's MODE_COLOR_MULTIPLY is clearly broken... using GL11 + LightmapRenderer.renderLightMap(); + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_ONE_MINUS_SRC_ALPHA); + // draw lightmap + LightmapRenderer.draw(g); + // draw environment colour overlay + // MapDrawer.drawEnvOverlay(g); + GL11.glDisable(GL11.GL_BLEND); + g.setDrawMode(Graphics.MODE_NORMAL); + + actorContainer.forEach( + actor -> { + if (actor instanceof Glowing) { + ((Glowing) actor).drawGlow(gc, g); + } + } + ); + + uiContainer.forEach(ui -> ui.render(gc, g)); + debugWindow.render(gc, g); + consoleHandler.render(gc, g); + //bulletin.render(gc, g); + } + + private static Color[] getGradientColour(int timeSec) { + Color[] colourTable = new Color[2]; + + int gradMapWidth = GRADIENT_IMAGE.getWidth(); + int phase = Math.round((timeSec / WorldTime.DAY_LENGTH) * gradMapWidth); + + //update in every 60 frames + colourTable[0] = GRADIENT_IMAGE.getColor(phase, 0); + colourTable[1] = GRADIENT_IMAGE.getColor(phase, 1); + + return colourTable; + } + + private static void drawSkybox(Graphics g) { + Color[] colourTable = getGradientColour(WorldTime.elapsedSeconds()); + GradientFill skyColourFill = new GradientFill(0, 0, colourTable[0], 0, Terrarum.HEIGHT, colourTable[1]); + g.fill(skyBox, skyColourFill); + } +} diff --git a/src/com/Torvald/Terrarum/GameConfig.java b/src/com/Torvald/Terrarum/GameConfig.java new file mode 100644 index 000000000..2a8fdd44e --- /dev/null +++ b/src/com/Torvald/Terrarum/GameConfig.java @@ -0,0 +1,35 @@ +package com.Torvald.Terrarum; + +import java.util.Hashtable; + +/** + * Created by minjaesong on 15-12-30. + */ +public class GameConfig { + + private Hashtable configTable; + + public GameConfig() { + this.configTable = new Hashtable(); + } + + /** + * Add key-value pair to the configuration table. + * + * @param key + * @param value + */ + public void addKey(String key, Object value){ + configTable.put(key, value); + } + + /** + * Get value using key from configuration table. + * + * @param key + * @return Object value + */ + public Object get(String key){ + return configTable.get(key); + } +} diff --git a/src/com/Torvald/Terrarum/GameControl/EnumKeyFunc.java b/src/com/Torvald/Terrarum/GameControl/EnumKeyFunc.java new file mode 100644 index 000000000..9d4d553a2 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameControl/EnumKeyFunc.java @@ -0,0 +1,9 @@ +package com.Torvald.Terrarum.GameControl; + +/** + * Created by minjaesong on 15-12-31. + */ +public enum EnumKeyFunc{ + UI_CONSOLE, UI_BASIC_INFO, + MOVE_LEFT, MOVE_RIGHT, MOVE_UP, MOVE_DOWN, JUMP +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/GameControl/GameController.java b/src/com/Torvald/Terrarum/GameControl/GameController.java new file mode 100644 index 000000000..e6df1e808 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameControl/GameController.java @@ -0,0 +1,104 @@ +package com.Torvald.Terrarum.GameControl; + +import com.Torvald.Terrarum.Actors.Controllable; +import com.Torvald.Terrarum.Actors.Player; +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.UserInterface.UIHandler; +import org.newdawn.slick.Input; + +/** + * Created by minjaesong on 15-12-31. + */ +public class GameController { + + private static KeyMap keyMap; + + private static Player player; + private static Controllable playerVehicle; + + public GameController() { + player = Game.getPlayer(); + } + + public static void setKeyMap(KeyMap map) { + keyMap = map; + } + + public static void processInput(Input input) { + if (!Game.consoleHandler.isTakingControl()) { + if (playerVehicle != null) { + playerVehicle.processInput(input); + } + + player.processInput(input); + + for (UIHandler ui : Game.uiContainer) { + ui.processInput(input); + } + } + else { + Game.consoleHandler.processInput(input); + } + } + + public static void keyPressed(int key, char c) { + if (keyPressedByCode(key, EnumKeyFunc.UI_CONSOLE)) { + Game.consoleHandler.toggleOpening(); + } + else if (keyPressedByCode(key, EnumKeyFunc.UI_BASIC_INFO)) { + Game.debugWindow.toggleOpening(); + } + + + + if (!Game.consoleHandler.isTakingControl()) { + if (playerVehicle != null) { + playerVehicle.keyPressed(key, c); + } + + player.keyPressed(key, c); + } + else { + Game.consoleHandler.keyPressed(key, c); + } + + //System.out.println(String.valueOf(key) + ", " + String.valueOf(c)); + } + + public static void keyReleased(int key, char c) { + + } + + public static void mouseMoved(int oldx, int oldy, int newx, int newy) { + + } + + public static void mouseDragged(int oldx, int oldy, int newx, int newy) { + + } + + public static void mousePressed(int button, int x, int y) { + + } + + public static void mouseReleased(int button, int x, int y) { + + } + + public static void mouseWheelMoved(int change) { + + } + + public static void controllerButtonPressed(int controller, int button) { + + } + + public static void controllerButtonReleased(int controller, int button) { + + } + + private static boolean keyPressedByCode(int key, EnumKeyFunc fn) { + return (KeyMap.getKeyCode(fn) == key); + } + +} diff --git a/src/com/Torvald/Terrarum/GameControl/Key.java b/src/com/Torvald/Terrarum/GameControl/Key.java new file mode 100644 index 000000000..9a7a89dc3 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameControl/Key.java @@ -0,0 +1,86 @@ +package com.Torvald.Terrarum.GameControl; + +/** + * Created by minjaesong on 16-01-15. + */ +public class Key { + + public static final int RET = 28; + public static final int BKSP = 14; + public static final int GRAVE = 41; + public static final int TAB = 15; + public static final int ESCAPE = 1; + public static final int SPACE = 57; + + public static final int L_SHIFT = 42; + public static final int R_SHIFT = 54; + + public static final int UP = 200; + public static final int DOWN = 208; + public static final int LEFT = 203; + public static final int RIGHT = 205; + + public static final int F1 = 59; + public static final int F2 = 60; + public static final int F3 = 61; + public static final int F4 = 62; + + public static final int F5 = 63; + public static final int F6 = 64; + public static final int F7 = 65; + public static final int F8 = 66; + + public static final int F9 = 67; + public static final int F10 = 68; + public static final int F11 = 87; + public static final int F12 = 88; + + public static final int NUM_1 = 2; + public static final int NUM_2 = 3; + public static final int NUM_3 = 4; + public static final int NUM_4 = 5; + public static final int NUM_5 = 6; + public static final int NUM_6 = 7; + public static final int NUM_7 = 8; + public static final int NUM_8 = 9; + public static final int NUM_9 = 10; + public static final int NUM_0 = 11; + + public static final int Q = 16; + public static final int W = 17; + public static final int E = 18; + public static final int R = 19; + public static final int T = 20; + + public static final int Y = 21; + public static final int U = 22; + public static final int I = 23; + public static final int O = 24; + public static final int P = 25; + + public static final int A = 30; + public static final int S = 31; + public static final int D = 32; + public static final int F = 33; + public static final int G = 34; + + public static final int H = 35; + public static final int J = 36; + public static final int K = 37; + public static final int L = 38; + public static final int SEMICOLON = 39; + + public static final int Z = 44; + public static final int X = 45; + public static final int C = 46; + public static final int V = 47; + public static final int B = 48; + + public static final int N = 49; + public static final int M = 50; + + public static final int PGUP = 201; + public static final int PGDN = 209; + public static final int HOME = 199; + public static final int END = 207; +} diff --git a/src/com/Torvald/Terrarum/GameControl/KeyMap.java b/src/com/Torvald/Terrarum/GameControl/KeyMap.java new file mode 100644 index 000000000..d1897cde8 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameControl/KeyMap.java @@ -0,0 +1,31 @@ +package com.Torvald.Terrarum.GameControl; + +import java.util.Hashtable; + +/** + * Created by minjaesong on 15-12-31. + */ +public class KeyMap { + + public static Hashtable map_code = new Hashtable<>(); + + public static void build(){ + + map_code.put(EnumKeyFunc.MOVE_UP, Key.E); + map_code.put(EnumKeyFunc.MOVE_LEFT, Key.S); + map_code.put(EnumKeyFunc.MOVE_DOWN, Key.D); + map_code.put(EnumKeyFunc.MOVE_RIGHT, Key.F); + map_code.put(EnumKeyFunc.JUMP, Key.SPACE); + map_code.put(EnumKeyFunc.UI_CONSOLE, Key.GRAVE); + map_code.put(EnumKeyFunc.UI_BASIC_INFO, Key.F3); + } + + public static int getKeyCode(EnumKeyFunc fn) { + return map_code.get(fn); + } + + public static void set(EnumKeyFunc func, int key){ + map_code.put(func, key); + } + +} diff --git a/src/com/Torvald/Terrarum/GameControl/KeyToggler.java b/src/com/Torvald/Terrarum/GameControl/KeyToggler.java new file mode 100644 index 000000000..0c20a9e63 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameControl/KeyToggler.java @@ -0,0 +1,49 @@ +package com.Torvald.Terrarum.GameControl; + +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Input; + +public class KeyToggler { + + private static boolean[] currentState = new boolean[256]; + private static boolean[] isPressed = new boolean[256]; + private static boolean[] isToggled = new boolean[256]; + + public static boolean isOn(int key){ + return currentState[key]; + } + + public static void update(GameContainer gc){ + + Input input = gc.getInput(); + + for (int i = 0; i < 256; i++) { + if (input.isKeyDown(i)) { + isPressed[i] = true; + } else { + isPressed[i] = false; + } + } + + for (int i = 0; i < 256; i++){ + if (isPressed[i] && !currentState[i] && !isToggled[i]){ + currentState[i] = true; + isToggled[i] = true; + } + else if(isPressed[i] && currentState[i] && !isToggled[i]){ + currentState[i] = false; + isToggled[i] = true; + } + + if (!isPressed[i] && isToggled[i]){ + isToggled[i] = false; + } + } + } + + public static void forceSet(int key, boolean b) { + currentState[key] = b; + isToggled[key] = true; + } + +} diff --git a/src/com/Torvald/Terrarum/GameItem/InventoryItem.java b/src/com/Torvald/Terrarum/GameItem/InventoryItem.java new file mode 100644 index 000000000..2ce8e2a1e --- /dev/null +++ b/src/com/Torvald/Terrarum/GameItem/InventoryItem.java @@ -0,0 +1,51 @@ +package com.Torvald.Terrarum.GameItem; + +import org.newdawn.slick.GameContainer; + +/** + * Created by minjaesong on 16-01-16. + */ +public interface InventoryItem { + + /** + * Weight of the item + * @return + */ + float getWeight(); + + /** + * Effects applied while in pocket + * @param gc + * @param delta_t + */ + void effectWhileInPocket(GameContainer gc, int delta_t); + + /** + * Effects applied immediately only once if picked up + * @param gc + * @param delta_t + */ + void effectWhenPickedUp(GameContainer gc, int delta_t); + + /** + * Effects applied while primary button (usually left mouse button) is down + * @param gc + * @param delta_t + */ + void primaryUse(GameContainer gc, int delta_t); + + /** + * Effects applied while secondary button (usually right mouse button) is down + * @param gc + * @param delta_t + */ + void secondaryUse(GameContainer gc, int delta_t); + + /** + * Effects applied immediately only once if thrown from pocket + * @param gc + * @param delta_t + */ + void effectWhenThrownAway(GameContainer gc, int delta_t); + +} diff --git a/src/com/Torvald/Terrarum/GameMap/GameMap.java b/src/com/Torvald/Terrarum/GameMap/GameMap.java new file mode 100644 index 000000000..c1aaa9563 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameMap/GameMap.java @@ -0,0 +1,130 @@ +/* + * MapLoader version 1.2 + * Release date 2013-05-20 + * Copyright 2013 SKYHi14 + * + * The program is distributed in GNU GPL Licence version 3. + * See http://www.gnu.org/licenses/gpl.html for information. + */ + +package com.Torvald.Terrarum.GameMap; + +import com.sun.istack.internal.NotNull; +import org.newdawn.slick.SlickException; + +import java.util.Iterator; +import java.util.LinkedList; +import java.util.Spliterator; +import java.util.function.Consumer; + +public class GameMap { + + //layers + private MapLayer layerWall; + private MapLayer layerTerrain; + private MapLayer layerWire; + + //properties + public int width; + public int height; + public int spawnX; + public int spawnY; + int offset; + + public LinkedList houseDesignation; + + //public World physWorld = new World( new Vec2(0, -TerrarumMain.game.gravitationalAccel) ); + //physics + @NotNull + private float gravitation; + + /** + * @param width + * @param height + * @throws SlickException + */ + public GameMap(int width, int height) throws SlickException { + this.width = width; + this.height = height; + this.spawnX = width / 2; + this.spawnY = 200; + + layerTerrain = new MapLayer(width, height); + layerWall = new MapLayer(width, height); + layerWire = new MapLayer(width, height); + } + + public void setGravitation(float g) { + gravitation = g; + } + + /** + * Get 2d array data of terrain + * + * @return byte[][] terrain layer + */ + public byte[][] getTerrainArray() { + return layerTerrain.data; + } + + /** + * Get 2d array data of wall + * + * @return byte[][] wall layer + */ + public byte[][] getWallArray() { + return layerWall.data; + } + + /** + * Get 2d array data of wire + * + * @return byte[][] wire layer + */ + public byte[][] getWireArray() { + return layerWire.data; + } + + /** + * Get MapLayer object of terrain + * + * @return MapLayer terrain layer + */ + public MapLayer getLayerTerrain() { + return layerTerrain; + } + + public MapLayer getLayerWall() { + return layerWall; + } + + public MapLayer getLayerWire() { + return layerWire; + } + + public int getTileFromWall(int x, int y) { + return uint8ToInt32(layerWall.data[y][x]); + } + + public int getTileFromTerrain(int x, int y) { + return uint8ToInt32(layerTerrain.data[y][x]); + } + + public int getTileFromWire(int x, int y) { + return uint8ToInt32(layerWire.data[y][x]); + } + + private int uint8ToInt32(byte x) { + int ret; + if ((x & 0b1000_0000) != 0) { + ret = (x & 0b0111_1111) | (x & 0b1000_0000); + } else { + ret = x; + } + return ret; + } + + public float getGravitation() { + return gravitation; + } +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/GameMap/MapLayer.java b/src/com/Torvald/Terrarum/GameMap/MapLayer.java new file mode 100644 index 000000000..acee6e984 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameMap/MapLayer.java @@ -0,0 +1,124 @@ +package com.Torvald.Terrarum.GameMap; + +import java.util.Iterator; +import java.util.Spliterator; +import java.util.function.Consumer; + +/** + * Created by minjaesong on 16-01-17. + */ +public class MapLayer implements Iterable { + + byte[][] data; + + public int width; + public int height; + + public static final int TILES_SUPPORTED = 256; + + public MapLayer(int width, int height) { + this.width = width; + this.height = height; + + data = new byte[height][width]; + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + data[i][j] = 0; + } + } + } + + /** + * Returns an iterator over elements of type {@code T}. + * + * @return an Iterator. + */ + @Override + public Iterator iterator() { + Iterator it = new Iterator() { + + private int iteratorCount = 0; + + @Override + public boolean hasNext() { + return iteratorCount < width * height; + } + + @Override + public Byte next() { + int y = iteratorCount / width; + int x = iteratorCount % width; + // advance counter + iteratorCount += 1; + + return data[y][x]; + } + }; + + return it; + } + + /** + * Performs the given action for each element of the {@code Iterable} + * until all elements have been processed or the action throws an + * exception. Unless otherwise specified by the implementing class, + * actions are performed in the order of iteration (if an iteration order + * is specified). Exceptions thrown by the action are relayed to the + * caller. + * + * @param action The action to be performed for each element + * @throws NullPointerException if the specified action is null + * @implSpec

The default implementation behaves as if: + *

{@code
+     *     for (T t : this)
+     *         action.accept(t);
+     * }
+ * @since 1.8 + */ + @Override + public void forEach(Consumer action) { + for (Byte b : this) { + action.accept(b); + } + } + + /** + * Creates a {@link java.util.Spliterator} over the elements described by this + * {@code Iterable}. + * + * @return a {@code Spliterator} over the elements described by this + * {@code Iterable}. + * @implSpec The default implementation creates an + * early-binding + * spliterator from the iterable's {@code Iterator}. The spliterator + * inherits the fail-fast properties of the iterable's iterator. + * @implNote The default implementation should usually be overridden. The + * spliterator returned by the default implementation has poor splitting + * capabilities, is unsized, and does not report any spliterator + * characteristics. Implementing classes can nearly always provide a + * better implementation. + * @since 1.8 + */ + @Override + public Spliterator spliterator() { + throw new UnsupportedOperationException(); + } + + public int getTile(int x, int y) { + return uint8ToInt32(data[y][x]); + } + + + private int uint8ToInt32(byte x) { + int ret; + if ((x & 0b1000_0000) != 0) { + ret = (x & 0b0111_1111) | (x & 0b1000_0000); + } + else { + ret = x; + } + return ret; + } +} + diff --git a/src/com/Torvald/Terrarum/GameMap/MapPoint.java b/src/com/Torvald/Terrarum/GameMap/MapPoint.java new file mode 100644 index 000000000..ec79e51a2 --- /dev/null +++ b/src/com/Torvald/Terrarum/GameMap/MapPoint.java @@ -0,0 +1,39 @@ +package com.Torvald.Terrarum.GameMap; + +import com.Torvald.Point.Point2f; + + +public class MapPoint { + private Point2f startPoint; + private Point2f endPoint; + + public MapPoint(){ + + } + + public MapPoint(Point2f p1, Point2f p2){ + setPoint(p1, p2); + } + + public MapPoint(int x1, int y1, int x2, int y2){ + setPoint(x1, y1, x2, y2); + } + + public void setPoint(Point2f p1, Point2f p2){ + startPoint = p1; + endPoint = p2; + } + + public void setPoint(int x1, int y1, int x2, int y2){ + startPoint = new Point2f(x1, y1); + endPoint = new Point2f(x2, y2); + } + + public Point2f getStartPoint(){ + return startPoint; + } + + public Point2f getEndPoint(){ + return endPoint; + } +} diff --git a/src/com/Torvald/Terrarum/LangPack/Lang.java b/src/com/Torvald/Terrarum/LangPack/Lang.java new file mode 100644 index 000000000..44bbd2a4d --- /dev/null +++ b/src/com/Torvald/Terrarum/LangPack/Lang.java @@ -0,0 +1,26 @@ +package com.Torvald.Terrarum.LangPack; + +import com.Torvald.Terrarum.Terrarum; + +import java.io.*; +import java.nio.charset.StandardCharsets; +import java.util.Properties; + +/** + * Created by minjaesong on 16-01-22. + */ +public class Lang { + + private static Properties lang; + + public Lang() throws IOException { + lang = new Properties(); + lang.load(new BufferedReader(new InputStreamReader(new FileInputStream( + "res/locales/" + Terrarum.gameLocale + ".lang"), StandardCharsets.UTF_8))); + } + + public static String get(String key) { + return lang.getProperty(key, key); + } + +} diff --git a/src/com/Torvald/Terrarum/MECHNANICS b/src/com/Torvald/Terrarum/MECHNANICS new file mode 100644 index 000000000..0173ddd57 --- /dev/null +++ b/src/com/Torvald/Terrarum/MECHNANICS @@ -0,0 +1,28 @@ + +* Weapon tier + +Natural / Common Stone > Copper > Iron > Silver > Titanium +Forging ------------> Steel -------^ +Exotic ('elven') Glass Aurichalcum +Special (something 'adamant') ??? (Use material spec of CNT, tensile strength 180 GPa) + + +* Metal graphics + +Gold: Hue 43, low Saturation +Aurichalcum: Hue 43, mid-high Saturation +Copper: Hue 33, +Copper rust: Hue 160 +Iron rust: Hue 15 + + +* Size variation + +Race base weapon/tool size <- 10 [kg] +Size tolerance <- (50% * str/1000), or say, 20% + +If the size is bigger than tolerable, weapon speed severely slows down, tools become unusable + if use time >= 0.75 second, the weapon/tool cannot be equipped. +Small weapons gains no (dis)advantage, tools become unusable + +Crafted tool/weapon size is dependent on the baseRaceMass. \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.java b/src/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.java new file mode 100644 index 000000000..1ce34c933 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapDrawer/LightmapRenderer.java @@ -0,0 +1,466 @@ +package com.Torvald.Terrarum.MapDrawer; + +import com.Torvald.Terrarum.Game; +import com.jme3.math.FastMath; +import org.newdawn.slick.Color; +import org.newdawn.slick.Graphics; + +import java.util.ArrayList; + +/** + * Created by minjaesong on 16-01-25. + */ +public class LightmapRenderer { + + /** + * 8-Bit RGB values + */ + private static int[][] staticLightMap = new int[Game.map.height][Game.map.width]; + + /** + * For entities that emits light (e.g. Player with shine potion) + */ + private static ArrayList lanterns = new ArrayList<>(); + + private static final int AIR_OPACITY = 8; + private static final int NON_AIR_OPACITY = 32; + + private static final int AIR = 0; + + + private static final int OFFSET_R = 2; + private static final int OFFSET_G = 1; + private static final int OFFSET_B = 0; + + private static final int TSIZE = MapDrawer.TILE_SIZE; + + /** + * Stores current light map as image. + * WILL BE PURGED in every single round of light calculation. + */ + //private static Graphics lightMapGraphicsInstance; + + + public LightmapRenderer() { + + } + + public static void addLantern(int x, int y, LightmapLantern lantern) { + // TODO check for duplicates + lanterns.add(lantern); + } + + public static void removeLantern(int x, int y) { + + } + + public static void renderLightMap() { + + int for_y_start = div16(MapCamera.getCameraY()); + int for_x_start = div16(MapCamera.getCameraX()); + + int for_y_end = clampHTile(for_y_start + div16(MapCamera.getRenderHeight()) + 2); + int for_x_end = clampWTile(for_x_start + div16(MapCamera.getRenderWidth()) + 2); + + /** + * Updating order: + * +-----+ +-----+ +-----+ +-----+ + * |1 | | 1| |3 | | 3| + * | 2 | > | 2 | > | 2 | > | 2 | + * | 3| |3 | | 1| |1 | + * +-----+ +-----+ +-----+ +-----+ + * round: 1 2 3 4 + * for all staticLightMap[y][x] + */ + + // Round 1 + purgePartOfLightmap(for_x_start, for_y_start, for_x_end, for_y_end); + + //System.out.println(for_x_start); + //System.out.println(for_x_end); + + for (int y = for_y_start; y < for_y_end; y++) { + for (int x = for_x_start; x < for_x_end; x++) { + calculateAndSet(x, y); + } + } + + // Round 2 + for (int y = for_y_start; y < for_y_end; y++) { + for (int x = for_x_end - 1; x >= for_x_start; x--) { + calculateAndSet(x, y); + } + } + + // Round 3 + for (int y = for_y_end - 1; y > for_y_start; y--) { + for (int x = for_x_end - 1; x >= for_x_start; x--) { + calculateAndSet(x, y); + } + } + + // Round 4 + for (int y = for_y_end - 1; y > for_y_start; y--) { + for (int x = for_x_start; x < for_x_end; x++) { + calculateAndSet(x, y); + } + } + } + + public static void draw(Graphics g) { + int for_x_start = MapCamera.getRenderStartX(); + int for_y_start = MapCamera.getRenderStartY(); + int for_x_end = MapCamera.getRenderEndX(); + int for_y_end = MapCamera.getRenderEndY(); + + // draw + for (int y = for_y_start; y < for_y_end; y++) { + for (int x = for_x_start; x < for_x_end; x++) { + // smooth + if (Game.screenZoom >= 1 && ((boolean) Game.gameConfig.get("smoothlighting"))) { + int thisLightLevel = staticLightMap[y][x]; + if (y > 0 && x < for_x_end && thisLightLevel == 0 && staticLightMap[y - 1][x] == 0) { + // coalesce zero intensity blocks to one + int zeroLevelCounter = 1; + while (staticLightMap[y][x + zeroLevelCounter] == 0 + && staticLightMap[y - 1][x + zeroLevelCounter] == 0) { + zeroLevelCounter += 1; + + if (x + zeroLevelCounter >= for_x_end) break; + } + + g.setColor(new Color(0)); + g.fillRect( + Math.round(x * TSIZE * Game.screenZoom) + , Math.round(y * TSIZE * Game.screenZoom) + , FastMath.ceil(TSIZE * Game.screenZoom) * zeroLevelCounter + , FastMath.ceil(TSIZE * Game.screenZoom) + ); + + x += (zeroLevelCounter - 1); + } + else { + /** a + * +-+-+ + * |i|j| + * b +-+-+ c + * |k|l| + * +-+-+ + * d + */ + int a = (y == 0) ? thisLightLevel + : (y == Game.map.height - 1) ? thisLightLevel + : Math.max(staticLightMap[y][x] + , staticLightMap[y - 1][x]); + int d = (y == 0) ? thisLightLevel + : (y == Game.map.height - 1) ? thisLightLevel + : Math.max(staticLightMap[y][x] + , staticLightMap[y + 1][x]); + int b = (x == 0) ? thisLightLevel + : (x == Game.map.width - 1) ? thisLightLevel + : Math.max(staticLightMap[y][x] + , staticLightMap[y][x - 1]); + int c = (x == 0) ? thisLightLevel + : (x == Game.map.width - 1) ? thisLightLevel + : Math.max(staticLightMap[y][x] + , staticLightMap[y][x + 1]); + int[] colourMapItoL = new int[4]; + colourMapItoL[0] = colourLinearMix(a, b); + colourMapItoL[1] = colourLinearMix(a, c); + colourMapItoL[2] = colourLinearMix(b, d); + colourMapItoL[3] = colourLinearMix(c, d); + + for (int iy = 0; iy < 2; iy++) { + for (int ix = 0; ix < 2; ix++) { + g.setColor(new Color(colourMapItoL[iy * 2 + ix])); + + g.fillRect( + Math.round(x * TSIZE * Game.screenZoom) + (ix * TSIZE / 2 * Game.screenZoom) + , Math.round(y * TSIZE * Game.screenZoom) + (iy * TSIZE / 2 * Game.screenZoom) + , FastMath.ceil(TSIZE * Game.screenZoom / 2) + , FastMath.ceil(TSIZE * Game.screenZoom / 2) + ); + } + } + } + } + // Retro + else { + int thisLightLevel = staticLightMap[y][x]; + + // coalesce identical intensity blocks to one + int sameLevelCounter = 1; + while (staticLightMap[y][x + sameLevelCounter] == thisLightLevel) { + sameLevelCounter += 1; + + if (x + sameLevelCounter >= for_x_end) break; + } + + g.setColor(new Color(staticLightMap[y][x])); + g.fillRect( + Math.round(x * TSIZE * Game.screenZoom) + , Math.round(y * TSIZE * Game.screenZoom) + , FastMath.ceil(TSIZE * Game.screenZoom) * sameLevelCounter + , FastMath.ceil(TSIZE * Game.screenZoom) + ); + + x += (sameLevelCounter - 1); + } + } + } + } + + private static void calculateAndSet(int x, int y){ + if (!outOfBounds(x, y)){ + + byte[][] layerTerrain = Game.map.getTerrainArray(); + byte[][] layerWall = Game.map.getWallArray(); + int lightColor; + + int thisTerrain = layerTerrain[y][x]; + int thisWall = layerWall[y][x]; + + // open air. TODO replace with globalLightLevel + if (thisTerrain == AIR && thisWall == AIR) { + lightColor = 0xffffff; //0xe8fbff; + } + //else if (thisTerrain == 1) { + // lightColor = 0xff0000; + //} + // TODO lantern + light-emitter, light-emitter, lantern + else { + int[] bgrVal = new int[3]; // {B, G, R} + + // test for each R, G, B channel + for (int i = 0; i < 3; i++) { + int brightest = 0; + + //get brightest of nearby 4 tiles + int nearby = 0; + findNearbyBrightest: + for (int yoff = -1; yoff <= 1; yoff++) { + for (int xoff = -1; xoff <= 1; xoff++) { + /** + * filter for 'v's as: + * +-+-+-+ + * | |v| | + * +-+-+-+ + * |v| |v| + * +-+-+-+ + * | |v| | + * +-+-+-+ + */ + if (xoff != yoff && -xoff != yoff) { + if (!outOfMapBounds(x + xoff, y + yoff)) { + nearby = getRaw(staticLightMap[y + yoff][x + xoff], i); + } + + if (nearby > brightest) { + brightest = nearby; + } + + if (brightest == 0xFF) break findNearbyBrightest; + } + } + } + + //return: brightest - opacity + if (thisTerrain == AIR) { + bgrVal[i] = darken(brightest, AIR_OPACITY); + } + else { + bgrVal[i] = darken(brightest, NON_AIR_OPACITY); + } + } + + // construct lightColor from bgrVal + lightColor = constructRGB( + bgrVal[OFFSET_R] + , bgrVal[OFFSET_G] + , bgrVal[OFFSET_B] + ); + + } + + //return lightColor; + staticLightMap[y][x] = lightColor; + } + else { + throw new IllegalArgumentException("Out of bounds of lightMap"); + } + } + + //public Graphics getGraphics() { + // return lightMapGraphicsInstance; + //} + + /*private static int darken(int RGB, int darken) { + if (darken < 0 || darken > 0xFF) { throw new IllegalArgumentException("darken: out of range"); } + + float r = getR(RGB) * ((0xFF - darken) / 0xFFf); + float g = getG(RGB) * ((0xFF - darken) / 0xFFf); + float b = getB(RGB) * ((0xFF - darken) / 0xFFf); + + return constructRGB(r, g, b); + }*/ + + private static int darken(int data, int darken) { + if (darken < 0 || darken > 0xFF) { throw new IllegalArgumentException("darken: out of range"); } + + return clampZero(data - darken); + } + + private static int getRawR(int RGB) { + return (RGB >> 16) & 0xFF; + } + + private static int getRawG(int RGB) { + return (RGB >> 8) & 0xFF; + } + + private static int getRawB(int RGB) { + return RGB & 0xFF; + } + + /** + * + * @param RGB + * @param offset 2 = R, 1 = G, 0 = B + * @return + */ + private static int getRaw(int RGB, int offset) { + if (offset < 0 || offset > 2) throw new IllegalArgumentException("Offset out of range"); + return (RGB >> (8 * offset)) & 0xFF; + } + + private static float getR(int rgb) { + return getRawR(rgb) / 255f; + } + + private static float getG(int rgb) { + return getRawG(rgb) / 255f; + } + + private static float getB(int rgb) { + return getRawB(rgb) / 255f; + } + + private static int constructRGB(int r, int g, int b) { + if (r < 0 || r > 0xFF) { throw new IllegalArgumentException("Red: out of range"); } + if (g < 0 || g > 0xFF) { throw new IllegalArgumentException("Green: out of range"); } + if (b < 0 || b > 0xFF) { throw new IllegalArgumentException("Blue: out of range"); } + return (r << 16) | (g << 8) | b; + } + + private static int constructRGB(float r, float g, float b) { + if (r < 0 || r > 1.0f) { throw new IllegalArgumentException("Red: out of range"); } + if (g < 0 || g > 1.0f) { throw new IllegalArgumentException("Green: out of range"); } + if (b < 0 || b > 1.0f) { throw new IllegalArgumentException("Blue: out of range"); } + + int intR = Math.round(r * 0xFF); + int intG = Math.round(g * 0xFF); + int intB = Math.round(b * 0xFF); + + return constructRGB(intR, intG, intB); + } + + private static int colourLinearMix(int colA, int colB) { + int r = (getRawR(colA) + getRawR(colB)) >> 1; + int g = (getRawG(colA) + getRawG(colB)) >> 1; + int b = (getRawB(colA) + getRawB(colB)) >> 1; + return constructRGB(r, g, b); + } + + private static int quantise16(int x) { + if (x < 0) throw new IllegalArgumentException("positive integer only."); + return (x & 0xFFFF_FFF0); + } + + private static int div16(int x) { + if (x < 0) throw new IllegalArgumentException("positive integer only."); + return (x & 0x7FFF_FFFF) >> 4; + } + + private static int mul16(int x) { + if (x < 0) throw new IllegalArgumentException("positive integer only."); + return (x << 4); + } + + private static boolean outOfBounds(int x, int y){ + return ( x < 0 || y < 0 || x >= Game.map.width || y >= Game.map.height); + } + + private static boolean outOfMapBounds(int x, int y){ + return ( x < 0 || y < 0 || x >= staticLightMap[0].length || y >= staticLightMap.length); + } + + private static int clampZero(int i) { + if (i < 0) return 0; + else return i; + } + + public static int[][] getStaticLightMap() { + return staticLightMap; + } + + public static int getValueFromMap(int x, int y) { + return staticLightMap[y][x]; + } + + private static void purgePartOfLightmap(int x1, int y1, int x2, int y2) { + for (int y = y1; y < y2; y++) { + for (int x = x1; x < x2; x++) { + if (!outOfMapBounds(x, y)) { + staticLightMap[y][x] = 0; + } + } + } + } + + private static int clampWTile(int x) { + if (x < 0) { + return 0; + } + else if (x > Game.map.width) { + return Game.map.width; + } + else { + return x; + } + } + + private static int clampHTile(int x) { + if (x < 0) { + return 0; + } + else if (x > Game.map.height) { + return Game.map.height; + } + else { + return x; + } + } +} + +class LightmapLantern { + int x, y; + int intensity; + + public LightmapLantern(int x, int y, int intensity) { + this.x = x; + this.y = y; + this.intensity = intensity; + } + + public int getX() { + return x; + } + + public int getY() { + return y; + } + + public int getIntensity() { + return intensity; + } +} diff --git a/src/com/Torvald/Terrarum/MapDrawer/MapCamera.java b/src/com/Torvald/Terrarum/MapDrawer/MapCamera.java new file mode 100644 index 000000000..c57a7747c --- /dev/null +++ b/src/com/Torvald/Terrarum/MapDrawer/MapCamera.java @@ -0,0 +1,335 @@ +package com.Torvald.Terrarum.MapDrawer; + +import com.Torvald.Terrarum.Actors.Player; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.GameMap.GameMap; +import com.Torvald.Terrarum.GameMap.MapLayer; +import com.jme3.math.FastMath; +import org.newdawn.slick.*; + +/** + * Created by minjaesong on 16-01-19. + */ +public class MapCamera { + + private static GameMap map; + private static Player player; + + private static int cameraX = 0; + private static int cameraY = 0; + + private static SpriteSheet tilesWall; + private static SpriteSheet tilesTerrain; + private static SpriteSheet tilesWire; + + private static int TSIZE = MapDrawer.TILE_SIZE; + + + private static SpriteSheet[] tilesetBook; + + private static final int WALL = 0; + private static final int TERRAIN = 1; + private static final int WIRE = 2; + + private static int renderWidth; + private static int renderHeight; + + private static final int TILE_AIR = 0; + + private static final int NEARBY_TILE_KEY_UP = 0; + private static final int NEARBY_TILE_KEY_RIGHT = 1; + private static final int NEARBY_TILE_KEY_DOWN = 2; + private static final int NEARBY_TILE_KEY_LEFT = 3; + + private static final int NEARBY_TILE_CODE_UP = 0b0001; + private static final int NEARBY_TILE_CODE_RIGHT = 0b0010; + private static final int NEARBY_TILE_CODE_DOWN = 0b0100; + private static final int NEARBY_TILE_CODE_LEFT = 0b1000; + + /** + * @param map + * @param tileSize + */ + public MapCamera(GameMap map, int tileSize) throws SlickException { + this.map = map; + player = Game.getPlayer(); + + tilesWall = new SpriteSheet("./res/graphics/terrain/wall.png" + , TSIZE + , TSIZE + ); + + tilesTerrain = new SpriteSheet("./res/graphics/terrain/terrainplusplus.png" + , TSIZE + , TSIZE + ); + + tilesWire = new SpriteSheet("./res/graphics/terrain/wire.png" + , TSIZE + , TSIZE + ); + + tilesetBook = new SpriteSheet[9]; + tilesetBook[WALL] = tilesWall; + tilesetBook[TERRAIN] = tilesTerrain; + tilesetBook[WIRE] = tilesWire; + } + + public static void update(GameContainer gc, int delta_t) { + renderWidth = FastMath.ceil(Terrarum.WIDTH / Game.screenZoom); + renderHeight = FastMath.ceil(Terrarum.HEIGHT / Game.screenZoom); + + // position - (WH / 2) + cameraX = clamp( + Math.round(player.pointedPosX() - (renderWidth / 2)) + , map.width * TSIZE - renderWidth + ); + cameraY = clamp( + Math.round(player.pointedPosY() - (renderHeight / 2)) + , map.height * TSIZE - renderHeight + ); + } + + public static void render(GameContainer gc, Graphics g) { + /** + * render to camera + */ + drawTiles(WALL); + drawTiles(TERRAIN); + } + + private static void drawTiles(int mode) { + int for_y_start = div16(cameraY); + int for_x_start = div16(cameraX); + + int for_y_end = clampHTile(for_y_start + div16(renderHeight) + 2); + int for_x_end = clampWTile(for_x_start + div16(renderWidth) + 2); + + MapLayer currentLayer = (mode % 3 == WALL) ? map.getLayerWall() + : (mode % 3 == TERRAIN) ? map.getLayerTerrain() + : map.getLayerWire(); + + // initialise + tilesetBook[mode].startUse(); + + // loop + for (int y = for_y_start; y < for_y_end; y++) { + for (int x = for_x_start; x < for_x_end; x++) { + + int thisTile = currentLayer.getTile(x, y); + int thisTerrainTile = map.getTileFromTerrain(x, y); + + // draw + if ( + + ( + ( // wall and not blocked + (mode == WALL) && (!isOpaque(thisTerrainTile)) + ) + || + (mode == TERRAIN) + ) // not an air tile + && (thisTile > 0) + && + // check if light level of upper tile is zero and + // that of this tile is also zero + (((y > 0) + && !((LightmapRenderer.getValueFromMap(x, y) == 0) + && (LightmapRenderer.getValueFromMap(x, y - 1) == 0)) + ) + || + // check if light level of this tile is zero, for y = 0 + ((y == 0) + && (LightmapRenderer.getValueFromMap(x, y) > 0) + )) + ) { + + if (mode == TERRAIN) { + int nearbyTilesInfo = getNearbyTilesInfo(x, y, TILE_AIR); + + int thisTileX = nearbyTilesInfo; + int thisTileY = thisTile; + + drawTile(TERRAIN, x, y, thisTileX, thisTileY); + } + else { + drawTile(mode, x, y, mod16(thisTile), div16(thisTile)); + } + } + + } + } + + tilesetBook[mode].endUse(); + } + + /** + * + * @param x + * @param y + * @return [0-15] 1: up, 2: right, 4: down, 8: left + */ + private static int getNearbyTilesInfo(int x, int y, int mark) { + int[] nearbyTiles = new int[4]; + if (x == 0) { nearbyTiles[NEARBY_TILE_KEY_LEFT] = 0; } + if (x == map.width - 1) { nearbyTiles[NEARBY_TILE_KEY_RIGHT] = 0; } + if (y == 0) { nearbyTiles[NEARBY_TILE_KEY_UP] = 0; } + if (y == map.height - 1) { nearbyTiles[NEARBY_TILE_KEY_DOWN] = 0; } + try { + nearbyTiles[NEARBY_TILE_KEY_UP] = map.getTileFromTerrain(x, y - 1); + nearbyTiles[NEARBY_TILE_KEY_DOWN] = map.getTileFromTerrain(x, y + 1); + nearbyTiles[NEARBY_TILE_KEY_LEFT] = map.getTileFromTerrain(x - 1, y); + nearbyTiles[NEARBY_TILE_KEY_RIGHT] = map.getTileFromTerrain(x + 1, y); + } + catch (ArrayIndexOutOfBoundsException e) { } + + int ret = 0; + for (int i = 0; i < 4; i++) { + if (nearbyTiles[i] == mark) { + ret += (1 << i); // write 1, 2, 4, 8 for i = 0, 1, 2, 3 + } + } + + return ret; + + } + + private static void drawTile(int mode, int tilewisePosX, int tilewisePosY, int sheetX, int sheetY) { + if (Game.screenZoom == 1) { + tilesetBook[mode].renderInUse( + FastMath.floor(tilewisePosX * TSIZE) + , FastMath.floor(tilewisePosY * TSIZE) + , sheetX + , sheetY + ); + } + else { + tilesetBook[mode].getSprite( + sheetX + , sheetY + ).drawEmbedded( + Math.round(tilewisePosX * TSIZE * Game.screenZoom) + , Math.round(tilewisePosY * TSIZE * Game.screenZoom) + , FastMath.ceil(TSIZE * Game.screenZoom) + , FastMath.ceil(TSIZE * Game.screenZoom) + ); + } + } + + private static int div16(int x) { + return (x & 0x7FFF_FFFF) >> 4; + } + + private static int mod16(int x) { + return x & 0b1111; + } + + private static int quantise16(int x) { + return (x & 0xFFFF_FFF0); + } + + private static int clampW(int x) { + if (x < 0) { + return 0; + } + else if (x > map.width * TSIZE) { + return map.width * TSIZE; + } + else { + return x; + } + } + + private static int clampH(int x) { + if (x < 0) { + return 0; + } + else if (x > map.height * TSIZE) { + return map.height * TSIZE; + } + else { + return x; + } + } + + private static int clampWTile(int x) { + if (x < 0) { + return 0; + } + else if (x > map.width) { + return map.width; + } + else { + return x; + } + } + + private static int clampHTile(int x) { + if (x < 0) { + return 0; + } + else if (x > map.height) { + return map.height; + } + else { + return x; + } + } + + private static int clamp(int x, int lim) { + if (x < 0) { + return 0; + } + else if (x > lim) { + return lim; + } + else { + return x; + } + } + + private static Image getTileByIndex(SpriteSheet s, int i) { + return s.getSprite(i % 16, i / 16); + } + + private static boolean isOpaque(int x) { + return (x >= 1 && x <= 38) + || (x >= 41 && x <= 44) + || (x >= 46 && x <= 47) + || (x >= 64 && x <= 86) + || (x >= 88 && x <= 116); + } + + public static int getCameraX() { + return cameraX; + } + + public static int getCameraY() { + return cameraY; + } + + public static int getRenderWidth() { + return renderWidth; + } + + public static int getRenderHeight() { + return renderHeight; + } + + public static int getRenderStartX() { + return div16(cameraX); + } + + public static int getRenderStartY() { + return div16(cameraY); + } + + public static int getRenderEndX() { + return clampWTile(getRenderStartX() + div16(renderWidth) + 2); + } + + public static int getRenderEndY() { + return clampHTile(getRenderStartY() + div16(renderHeight) + 2); + } +} diff --git a/src/com/Torvald/Terrarum/MapDrawer/MapDrawer.java b/src/com/Torvald/Terrarum/MapDrawer/MapDrawer.java new file mode 100644 index 000000000..b15d683cd --- /dev/null +++ b/src/com/Torvald/Terrarum/MapDrawer/MapDrawer.java @@ -0,0 +1,58 @@ +package com.Torvald.Terrarum.MapDrawer; + +import com.Torvald.Terrarum.*; +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.GameMap.GameMap; +import org.newdawn.slick.*; +import org.newdawn.slick.geom.Rectangle; + +/** + * Created by minjaesong on 15-12-31. + */ +public class MapDrawer { + + private static SpriteSheet mapTileMap; + private static SpriteSheet wallTileMap; + + public static final int TILE_SIZE = 16; + public static final int ENVCOLOUR_MAX = 128; + + private static int envmap = 64; + private static Rectangle envOverlay; + private static Image envOverlayColourmap; + + public MapDrawer(GameMap map) throws SlickException { + mapTileMap = new SpriteSheet("./res/graphics/terrain/terrain.png", TILE_SIZE, TILE_SIZE); + wallTileMap = new SpriteSheet("./res/graphics/terrain/wall.png", TILE_SIZE, TILE_SIZE); + + new MapCamera(map, TILE_SIZE); + + Rectangle envOverlay = new Rectangle( + MapCamera.getCameraX() * Game.screenZoom + , MapCamera.getCameraY() * Game.screenZoom + , Terrarum.WIDTH + , Terrarum.HEIGHT + ); + + System.gc(); + } + + public static void update(GameContainer gc, int delta_t) { + MapCamera.update(gc, delta_t); + } + + public static void render(GameContainer gc, Graphics g) { + MapCamera.render(gc, g); + } + + public static void drawEnvOverlay(Graphics g) { + envOverlay.setX(MapCamera.getCameraX() * Game.screenZoom); + envOverlay.setY(MapCamera.getCameraY() * Game.screenZoom); + envOverlay.setSize(Terrarum.WIDTH * Game.screenZoom + , Terrarum.HEIGHT * Game.screenZoom + ); + + // Color[] colourTable = getGradientColour(WorldTime.elapsedSeconds()); + } + +} diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.java new file mode 100644 index 000000000..065163a7c --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslandsPreset.java @@ -0,0 +1,63 @@ +package com.Torvald.Terrarum.MapGenerator; + +import com.Torvald.Rand.HighQualityRandom; + +public class FloatingIslandsPreset { + + public static int presets = 5; + + static int[][] generatePreset(HighQualityRandom random) { + int index = random.nextInt(presets); + return generatePreset(index, random); + } + + static int[][] generatePreset(int index, HighQualityRandom random){ + if (index == 0){ + return processPreset(random, FloatingIslePreset01.data, FloatingIslePreset01.w, FloatingIslePreset01.h); + } + else if (index == 1){ + return processPreset(random, FloatingIslePreset02.data, FloatingIslePreset02.w, FloatingIslePreset02.h); + } + else if (index == 2){ + return processPreset(random, FloatingIslePreset03.data, FloatingIslePreset03.w, FloatingIslePreset03.h); + } + else if (index == 3){ + return processPreset(random, FloatingIslePreset04.data, FloatingIslePreset04.w, FloatingIslePreset04.h); + } + else if (index == 4){ + return processPreset(random, FloatingIslePreset05.data, FloatingIslePreset05.w, FloatingIslePreset05.h); + } + return null; + } + + private static int[][] processPreset(HighQualityRandom random, int[] preset, int w, int h){ + int[][] temp = new int[h][w]; + int counter = 0; + boolean mirrored = random.nextBoolean(); + + for (int i = 0; i < h; i++){ + for (int j = 0; j < w; j++){ + if (!mirrored){ + if (counter < preset.length - 1){ + temp[i][j] = preset[counter]; + counter++; + } + else{ + temp[i][j] = 0; + } + } + else{ + if (counter < preset.length - 1){ + temp[i][w - 1 - j] = preset[counter]; + counter++; + } + else{ + temp[i][w - 1 - j] = 0; + } + } + } + } + + return temp; + } +} diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.java new file mode 100644 index 000000000..2d8fc71a0 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset01.java @@ -0,0 +1,7 @@ +package com.Torvald.Terrarum.MapGenerator; + +class FloatingIslePreset01{ + public static int w = 100; + public static int h = 50; + public static int[] data = {0,0,0,0,0,3,3,3,3,3,0,0,0,0,0,3,3,3,3,0,0,3,3,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,0,0,0,0,0,0,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,0,0,0,0,0,0,0,3,3,2,2,2,2,2,3,3,3,3,3,2,2,2,2,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,0,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,0,0,0,0,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,2,2,0,0,0,0,0,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,2,2,2,2,2,0,2,2,2,2,2,2,2,0,0,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,0,0,0,2,2,2,0,0,0,0,2,2,2,2,0,0,2,2,2,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,2,2,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,2,2,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}; +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.java new file mode 100644 index 000000000..973bc9f34 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset02.java @@ -0,0 +1,7 @@ +package com.Torvald.Terrarum.MapGenerator; + +class FloatingIslePreset02{ + public static int w = 80; + public static int h = 50; + public static int[] data = {0,0,3,3,0,3,3,3,0,0,0,0,0,0,3,3,3,0,0,0,0,3,3,3,3,3,3,3,3,0,0,0,3,3,3,3,0,0,3,3,3,3,3,3,0,0,0,0,0,3,3,3,3,3,3,3,3,3,0,3,3,3,3,3,3,3,0,0,3,3,3,3,3,0,0,0,0,0,0,0,0,0,2,2,3,2,2,2,3,3,3,3,3,3,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,3,3,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,3,2,2,2,2,2,3,3,3,3,0,0,0,0,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,0,0,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,2,2,2,2,2,0,2,2,0,0,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,0,0,0,0,0,0,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}; +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.java new file mode 100644 index 000000000..22746fe01 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset03.java @@ -0,0 +1,7 @@ +package com.Torvald.Terrarum.MapGenerator; + +class FloatingIslePreset03{ + public static int w = 66; + public static int h = 44; + public static int[] data = {0,0,0,0,3,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,0,0,3,3,0,0,0,0,0,0,3,3,3,3,3,3,3,3,0,0,0,0,0,0,3,0,0,0,0,0,0,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,0,0,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,2,2,2,2,2,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}; +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.java new file mode 100644 index 000000000..795465a9c --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset04.java @@ -0,0 +1,7 @@ +package com.Torvald.Terrarum.MapGenerator; + +class FloatingIslePreset04{ + public static int w = 88; + public static int h = 48; + public static int[] data = {0,0,0,3,3,3,3,3,3,3,3,3,3,3,0,0,3,0,0,0,3,3,3,0,0,0,3,3,3,0,0,0,0,0,3,3,3,3,0,0,0,0,0,3,3,3,0,3,3,3,3,0,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,3,3,3,3,0,0,0,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,2,2,3,3,3,2,2,2,3,3,3,3,3,2,2,2,2,3,3,3,3,3,2,2,2,3,2,2,2,2,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,0,0,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,2}; +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.java b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.java new file mode 100644 index 000000000..a95037647 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/FloatingIslePreset05.java @@ -0,0 +1,7 @@ +package com.Torvald.Terrarum.MapGenerator; + +class FloatingIslePreset05{ + public static int w = 74; + public static int h = 77; + public static int[] data = {0,0,0,0,3,3,3,3,3,3,0,0,0,3,0,0,0,0,3,3,3,3,3,3,0,0,0,3,3,3,3,3,3,3,3,3,0,0,0,0,3,3,3,0,3,3,3,3,3,3,0,3,3,3,0,0,0,0,0,0,0,0,3,3,3,3,3,3,0,0,0,0,0,0,0,3,3,3,2,2,2,2,2,2,3,3,3,2,3,3,3,3,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,3,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,3,3,3,3,0,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,2,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,2,0,0,0,0,0,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,2,2,2,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,2,2,2,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}; +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/MapGenerator.java b/src/com/Torvald/Terrarum/MapGenerator/MapGenerator.java new file mode 100644 index 000000000..ea23bbad0 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/MapGenerator.java @@ -0,0 +1,867 @@ +package com.Torvald.Terrarum.MapGenerator; + +import com.Torvald.Rand.HighQualityRandom; +import com.Torvald.Terrarum.GameMap.GameMap; +import com.jme3.math.FastMath; +import com.sun.istack.internal.NotNull; + +public class MapGenerator { + + @NotNull private static GameMap map; + private static HighQualityRandom random; + //private static float[] noiseArray; + @NotNull private static long seed; + @NotNull private static int width; + @NotNull private static int height; + + private static int[] heightMap; + + private static int dirtThickness; + private static int terrainHeightFromZeroPoint; + private static int minimumFloatingIsleHeight; + + private static final float noiseGradientStart = 0.67f; + private static final float noiseGradientEnd = 0.56f; + private static final float noiseGrdCaveEnd = 0.54f; + + private static final float floatingIslandsProb = 0.63f; + + private static final int HILL_WIDTH = 256; // power of two! + + private static final int OCEAN_WIDTH = 200; + private static int GLACIER_MOUNTAIN_WIDTH; + private static final int GLACIER_MOUNTAIN_HEIGHT = 300; + + private static final int MAX_HILL_HEIGHT = 200; + + private static final byte AIR = 0; + + private static final byte COPPER = 16; + private static final byte IRON = 17; + private static final byte GOLD = 18; + private static final byte SILVER = 19; + + private static final byte ILMENITE = 20; + private static final byte AURICHALCUM = 21; + + private static final byte DIAMOND = 22; + private static final byte RUBY = 23; + private static final byte EMERALD = 24; + private static final byte SAPPHIRE = 25; + private static final byte TOPAZ = 26; + private static final byte AMETHYST = 27; + + private static final byte DIRT = 2; + private static final byte GRAVEL = 15; + private static final byte SAND = 14; + private static final byte STONE = 1; + + private static final byte SNOW = 28; + private static final byte ICE_FRAGILE = 29; + private static final byte ICE_NATURAL = 30; + + @NotNull private static int worldOceanPosition; + private static final int TYPE_OCEAN_LEFT = 0; + private static final int TYPE_OCEAN_RIGHT = 1; + + public static void attachMap(GameMap map) { + MapGenerator.map = map; + width = map.width; + height = map.height; + + dirtThickness = (int) (100 * height / 1024f); + minimumFloatingIsleHeight = (int) (25 * (height / 1024f)); + terrainHeightFromZeroPoint = height / 4; + GLACIER_MOUNTAIN_WIDTH = Math.round(900 * (width / 8192f)); + } + + public static void setSeed(long seed) { + MapGenerator.seed = seed; + } + + /** + * Generate terrain and override attached map + */ + public static void generateMap() { + random = new HighQualityRandom(seed); + System.out.println("[MapGenerator] Seed: " + seed); + + worldOceanPosition = random.nextInt() & 0x1; // 0 or 1 + + heightMap = raise2(MAX_HILL_HEIGHT / 2); + generateOcean(heightMap); + placeGlacierMount(heightMap); + heightMapToObjectMap(heightMap); + + /*carveByMap( + generate2DSimplexNoiseWorldSize(2.5f, 1.666f) + , 1 + , AIR + , "Carving out cave..." + );*/ + + /*fillByMapInverseGradFilter( + generate2DSimplexNoiseWorldSize(2.5f, 2.5f) + , 1.02f + , DIRT + , STONE + , "Planting stones on dirt layers..." + );*/ + /*fillByMapInverseGradFilter( + generate2DSimplexNoiseWorldSize(2.5f, 2.5f) + , 0.98f + , STONE + , DIRT + , "Planting dirts..." + ); + fillByMapInverseGradFilter( + generate2DSimplexNoiseWorldSize(2.5f, 2.5f) + , 0.92f + , STONE + , GRAVEL + , "Planting gravels..." + );*/ + + /** + * Plant ores + */ + /*fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 0.78f + , STONE + , DIAMOND + , "Planting diamonds..." + ); + + byte[] berylsArray = {RUBY, EMERALD, SAPPHIRE, TOPAZ, AMETHYST}; + fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 0.8f + , STONE + , berylsArray + , "Planting beryls..." + ); + + fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 0.80f + , STONE + , GOLD + , "Planting golds..." + ); + fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 0.866f + , STONE + , IRON + , "Planting irons..." + ); + fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 0.88f + , STONE + , COPPER + , "Planting coppers..." + );*/ + + /** TODO Cobaltite, Ilmenite, Aurichalcum (and possibly pitchblende?) **/ + + /*fillByMap( + generate2DSimplexNoiseWorldSize(5, 5) + , 1.21f + , STONE + , COAL + , "Planting coals..." + );*/ + + //flood + floodBottomLava(); + + //plant + plantGrass(); + + //post-process + generateFloatingIslands(); + //fillOcean(); + + //wire layer + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + map.getWireArray()[i][j] = 0; + } + } + + // Free some memories + System.gc(); + } + + /* 1. Raise */ + + private static float[][] generate2DSimplexNoiseWorldSize(float xDensity, float yDensity) { + return generate2DSimplexNoise(width, height, xDensity, yDensity); + } + + /** + * Generate 2D array of simplex noise. + * @param sizeX + * @param sizeY + * @param xDensity higher == dense (smaller blob), lower == sparse (larger blob) + * @param yDensity higher == dense (smaller blob), lower == sparse (larger blob) + * @return matrix in ![x][y]! + */ + private static float[][] generate2DSimplexNoise(int sizeX, int sizeY, float xDensity, float yDensity){ + SimplexNoise simplexNoise = new SimplexNoise(HILL_WIDTH, 0.1f, seed ^ random.nextLong()); + + float xStart=0; + float yStart=0; + + /** higher = denser. + * Recommended: (width or height) * 3 + */ + float xEnd=height * xDensity; + float yEnd=width * yDensity; + + float[][] result=new float[sizeY][sizeX]; + + for(int i=0;ihttp://freespace.virgin.net/hugo.elias/models/m_perlin.htm + * @param maxval_div_2 max height (deviation from zero) divided by two. + * @return noise array with range of [-maxval, maxval] + */ + private static int[] raise2(int maxval_div_2) { + + int finalPerlinAmp = maxval_div_2; // 1 + 1/2 + 1/4 + 1/8 + ... == 2 + int perlinOctaves = FastMath.intLog2(maxval_div_2) +1 -1; // max: for every 2nd node + + int[] perlinMap = new int[width]; // [-2 * finalPerlinAmp, finalPerlinAmp] + + // assert + if ((HILL_WIDTH) >>> (perlinOctaves - 1) == 0) { + throw new RuntimeException("sample width of zero detected."); + } + + // sample noise and add + for (int oct = 1; oct <= perlinOctaves; oct++) { + // perlinAmp: 16364 -> 8192 -> 4096 -> 2048 -> ... + // This applies persistence of 1/2 + int perlinAmp = finalPerlinAmp >>> (oct - 1); + + int perlinSampleDist = (HILL_WIDTH) >>> (oct - 1); + + // sample first + int[] perlinSamples = new int[width / perlinSampleDist + 1]; + for (int sample = 0; sample < perlinSamples.length; sample++) { + perlinSamples[sample] = random.nextInt(perlinAmp * 2) - perlinAmp; + } + + // add interpolated value to map + for (int i = 0; i < perlinMap.length; i++) { + int perlinPointLeft = perlinSamples[i / perlinSampleDist]; + int perlinPointRight = perlinSamples[i / perlinSampleDist + 1]; + + perlinMap[i] += Math.round( + interpolateCosine( + ((float) (i % perlinSampleDist)) / perlinSampleDist + , perlinPointLeft, perlinPointRight + ) + // using cosine; making tops rounded + ); + } + } + + for (int k = 0; k < 1; k++) { + for (int i = 0; i < perlinMap.length; i++) { + // averaging smoothing + if (i > 1 && i < perlinMap.length - 2) { + perlinMap[i] = Math.round( + (perlinMap[i - 1] + perlinMap[i + 1]) / 2 + ); + } + } + } + + // single bump removal + for (int i = 0; i < perlinMap.length; i++) { + if (i > 1 && i < perlinMap.length - 2) { + int p1 = perlinMap[i - 1]; + int p2 = perlinMap[i]; + int p3 = perlinMap[i + 1]; + // _-_ / -_- -> ___ / --- + if (p1 == p3 && p1 != p2) { + perlinMap[i] = p1; + } + // -^_ -> --_ + else if (p1 > p3 && p2 > p1) { + perlinMap[i] = p1; + } + // _^- -> _-- + else if (p3 > p1 && p2 > p3) { + perlinMap[i] = p3; + } + // -_^ -> --^ + else if (p3 > p1 && p2 < p1) { + perlinMap[i] = p1; + } + // ^_- -> ^-- + else if (p1 > p3 && p2 < p3) { + perlinMap[i] = p1; + } + } + } + + return perlinMap; + } + + /** + * | ---- + * | --- + * | --- + * | -- + * | - + * | -- + * | --- + * | --- + * - ---------------------------- + * + * @param func_x + * @return + */ + private static float getGlacierMountedAmplitude(int func_x) { + if (func_x > GLACIER_MOUNTAIN_WIDTH) { + return 0; + } + else { + float func_y = (GLACIER_MOUNTAIN_HEIGHT / 2f) + * (float) Math.cos(10 * func_x / (FastMath.PI * GLACIER_MOUNTAIN_WIDTH)) + + (GLACIER_MOUNTAIN_HEIGHT / 2); + return func_y; + } + } + + private static void placeGlacierMount(int[] heightMap) { + System.out.println("[MapGenerator] Putting glacier..."); + + // raise + for (int i = 0; i < heightMap.length; i++) { + if (worldOceanPosition == TYPE_OCEAN_RIGHT) { + heightMap[i] += Math.round(getGlacierMountedAmplitude(i)); + } + else { + heightMap[i] += Math.round(getGlacierMountedAmplitude(heightMap.length - i - 1)); + } + } + } + + /** + * Cosine interpolation between point a and b. + * @param x [0.0, 1.0] relative position between a and b + * @param a leftmost point + * @param b rightmost point + * @return + */ + private static float interpolateCosine(float x, float a, float b) { + float ft = x * FastMath.PI; + float f = (1 - FastMath.cos(ft)) * 0.5f; + + return (a * (1 - f) + b * f); + } + + private static void heightMapToObjectMap(int[] fs) { + System.out.println("[MapGenerator] Shaping world as processed..."); + + // iterate for heightmap + for (int x = 0; x < width; x++) { + int medianPosition = terrainHeightFromZeroPoint; + int pillarOffset = medianPosition - fs[x] - 1; + + // for pillar length + for (int i = 0; i < height - pillarOffset; i++) { + + if (i < dirtThickness) { + map.getTerrainArray()[i + pillarOffset][x] = DIRT; + map.getWallArray()[i + pillarOffset][x] = DIRT; + } else { + map.getTerrainArray()[i + pillarOffset][x] = STONE; + map.getWallArray()[i + pillarOffset][x] = STONE; + } + + } + } + + } + + /* 2. Carve */ + + /** + * Carve (place air block) by noisemap, inversed gradation filter applied. + * @param map noisemap + * @param scarcity higher = larger blob + * @param tile + * @param message + */ + private static void carveByMap(float[][] map, float scarcity, byte tile, String message) { + System.out.println("[MapGenerator] " + message); + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map[i][j] > noiseMapGetGradientQuadPoly(i, noiseGradientStart, noiseGrdCaveEnd) / scarcity) { + MapGenerator.map.getTerrainArray()[i][j] = tile; + } + } + } + } + + /** + * Fill by noisemap, gradation filter applied. + * @param map noisemap + * @param scarcity higher = larger blob + * @param replaceFrom + * @param tile + * @param message + */ + private static void fillByMap(float[][] map, float scarcity, byte replaceFrom, byte tile, String message) { + System.out.println("[MapGenerator] " + message); + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map[i][j] > getNoiseGradient(i, noiseGradientStart, noiseGradientEnd) / scarcity + && MapGenerator.map.getTileFromTerrain(j, i) == replaceFrom) { + MapGenerator.map.getTerrainArray()[i][j] = tile; + } + } + } + } + + /** + * Fill by noisemap, inversed gradation filter applied. + * @param map noisemap + * @param scarcity higher = larger blob + * @param replaceFrom + * @param tile + * @param message + */ + private static void fillByMapInverseGradFilter(float[][] map, float scarcity, byte replaceFrom, byte tile, String message) { + System.out.println("[MapGenerator] " + message); + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map[i][j] > getNoiseGradientInversed(i, noiseGradientEnd, noiseGradientStart) / scarcity + && MapGenerator.map.getTileFromTerrain(j, i) == replaceFrom) { + MapGenerator.map.getTerrainArray()[i][j] = tile; + } + } + } + } + + /** + * Fill by noisemap, no filter applied. Takes + *

noiseGradientStart / scarcity

+ * as carving threshold. + * @param map noisemap + * @param scarcity higher = larger blob + * @param replaceFrom + * @param tile + * @param message + */ + private static void fillByMapNoFilter(float[][] map, float scarcity, byte replaceFrom, byte tile, String message) { + System.out.println("[MapGenerator] " + message); + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map[i][j] > noiseGradientStart / scarcity + && MapGenerator.map.getTileFromTerrain(j, i) == replaceFrom) { + MapGenerator.map.getTerrainArray()[i][j] = tile; + } + } + } + } + + private static void fillByMap(float[][] map, float scarcity, byte replaceFrom, byte[] tile, String message) { + System.out.println("[MapGenerator] " + message); + + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map[i][j] > getNoiseGradient(i, noiseGradientStart, noiseGradientEnd) / scarcity + && MapGenerator.map.getTileFromTerrain(j, i) == replaceFrom) { + MapGenerator.map.getTerrainArray()[i][j] + = tile[random.nextInt(tile.length)]; + } + } + } + } + + private static float getNoiseGradient(int x, float start, float end) { + return noiseMapGetGradientQuadPoly(x, start, end); + } + + private static float getNoiseGradientInversed(int x, float start, float end) { + return noiseMapGetGradientMinusQuadPoly(x, start, end); + } + + /** + * Quadratic polynomial + * (16/9) * (start-end)/height^2 * (x-height)^2 + end + * 16/9: terrain is formed from 1/4 of height. + * 1 - (1/4) = 3/4, reverse it and square it. + * That makes 16/9. + * + * Shape: + * + * cavity - + * small + * - + * - + * -- + * ---- + * cavity -------- + * large ---------------- + * + * @param func_argX + * @param start + * @param end + * @return + */ + private static float noiseMapGetGradientQuadPoly(int func_argX, float start, float end) { + float graph_gradient = + FastMath.pow(FastMath.sqr(1 - terrainHeightFromZeroPoint), -1) // 1/4 -> 3/4 -> 9/16 -> 16/9 + * (start - end) / FastMath.sqr(height) + * FastMath.sqr(func_argX - height) + + end + ; + + if (func_argX < terrainHeightFromZeroPoint) { + return start; + } + else if (func_argX >= height) { + return end; + } + else { + return graph_gradient; + } + } + + /** + * Double Quadratic polynomial + * (16/9) * (start-end)/height^2 * (x-height)^2 + end + * 16/9: terrain is formed from 1/4 of height. + * 1 - (1/4) = 3/4, reverse it and square it. + * That makes 16/9. + * + * Shape: + * + * cavity - + * small + * - + * - + * -- + * ---- + * cavity -------- + * large ---------------- + * + * @param func_argX + * @param start + * @param end + * @return + */ + private static float noiseMapGetGradientCubicPoly(int func_argX, float start, float end) { + float graph_gradient = + -FastMath.pow(FastMath.pow(1 - terrainHeightFromZeroPoint, 3), -1) // 1/4 -> 3/4 -> 9/16 -> 16/9 + * (start - end) / FastMath.pow(height, 3) + * FastMath.pow(func_argX - height, 3) + + end + ; + + if (func_argX < terrainHeightFromZeroPoint) { + return start; + } + else if (func_argX >= height) { + return end; + } + else { + return graph_gradient; + } + } + + /** + * Quadratic polynomial + * -(16/9) * (start-end)/height^2 * (x - 0.25 * height)^2 + start + * 16/9: terrain is formed from 1/4 of height. + * 1 - (1/4) = 3/4, reverse it and square it. + * That makes 16/9. + * + * Shape: + * + * cavity _ + * small + * _ + * _ + * __ + * ____ + * cavity ________ + * large ________________ + * + * @param func_argX + * @param start + * @param end + * @return + */ + private static float noiseMapGetGradientMinusQuadPoly(int func_argX, float start, float end) { + float graph_gradient = + -FastMath.pow(FastMath.sqr(1 - terrainHeightFromZeroPoint), -1) // 1/4 -> 3/4 -> 9/16 -> 16/9 + * (start - end) / FastMath.sqr(height) + * FastMath.sqr(func_argX - terrainHeightFromZeroPoint) + + start + ; + + if (func_argX < terrainHeightFromZeroPoint) { + return start; + } + else if (func_argX >= height) { + return end; + } + else { + return graph_gradient; + } + } + + private static void generateFloatingIslands() { + System.out.println("[MapGenerator] Placing floating islands..."); + + int nIslands = map.width / 1024; + int prevIndex = -1; + + for (int i = 0; i < nIslands; i++) { + int currentIndex = random.nextInt(FloatingIslandsPreset.presets); + while (currentIndex == prevIndex) { + currentIndex = random.nextInt(FloatingIslandsPreset.presets); + } + int[][] island = FloatingIslandsPreset.generatePreset(currentIndex, random); + + int startingPosX = 1024 * i + 256 + random.nextInt(256); + int startingPosY = minimumFloatingIsleHeight + random.nextInt(minimumFloatingIsleHeight); + + if (random.nextFloat() >= floatingIslandsProb) { + for (int j = 0; j < island.length; j++) { + for (int k = 0; k < island[0].length; k++) { + map.getTerrainArray()[j + startingPosY][k + startingPosX] = (byte) island[j][k]; + } + } + } + } + } + + /* Flood */ + + private static void floodBottomLava() { + System.out.println("[MapGenerator] Flooding bottom lava..."); + for (int i = height * 14 / 15; i < height; i++) { + for (int j = 0; j < width; j++) { + if (map.getTerrainArray()[i][j] == 0) { + map.getTerrainArray()[i][j] = (byte) 0xFF; + } + } + } + } + + /* Plant */ + + private static void plantGrass() { + System.out.println("[MapGenerator] Planting grass..."); + + int[] heightMap = new int[width]; //where topmost block sits + + /* TODO composing dirt and stone + * over certain level, use background dirt with stone 'peckles' + * beetween levels, use background dirt with larger and denser stone peckles. + * under another certain level, use background stone with dirt peckles. + */ + + for (int i = 0; i < width; i++) { + //count down until hits block 2 + int grassCounter = 0; + boolean hitDirt = false; + + while (grassCounter < height - 2 && map.getTerrainArray()[grassCounter][i] == 0) { + grassCounter++; + } + + //actually hit grass or just counting halted? + if (map.getTerrainArray()[grassCounter][i] == 2) { + hitDirt = true; + } + + //System.out.println(i+" ... "+grassCounter); + + //plant grass + if (hitDirt) { + map.getTerrainArray()[grassCounter][i] = 3; + } + + //compose heightMap + heightMap[i] = grassCounter; + } + + } + + /* Post-process */ + + private static void fillOcean() { + int oceanLeftHeight = 0; + int oceanRightHeight = 0; + + //get height + if (worldOceanPosition == TYPE_OCEAN_LEFT) { + while (map.getTerrainArray()[oceanLeftHeight][OCEAN_WIDTH] == 0) { + oceanLeftHeight++; + } + } + else if (worldOceanPosition == TYPE_OCEAN_RIGHT) { + while (map.getTerrainArray()[oceanRightHeight][map.width - 1 - OCEAN_WIDTH] == 0) { + oceanRightHeight++; + } + } + + for (int i = 0; i < OCEAN_WIDTH * 1.5; i++) { + int oceanDepthCounterLeft = 0; + int oceanDepthCounterRight = 0; + //flooding + if (i < OCEAN_WIDTH) { + if (worldOceanPosition == TYPE_OCEAN_LEFT) { + while (map.getTerrainArray()[oceanLeftHeight + oceanDepthCounterLeft][i] == 0) { + map.getTerrainArray()[oceanLeftHeight + oceanDepthCounterLeft][i] = (byte) 239; + oceanDepthCounterLeft++; + } + } + else if (worldOceanPosition == TYPE_OCEAN_RIGHT) { + while (map.getTerrainArray()[oceanRightHeight + oceanDepthCounterRight][map.width - 1 - i] == 0) { + map.getTerrainArray()[oceanRightHeight + oceanDepthCounterRight][map.width - 1 - i] = (byte) 239; + oceanDepthCounterRight++; + } + } + } + //sand + for (int j = 0; j < 40 - (i * 40 / (OCEAN_WIDTH + 20)); j++) { //20 => seashore size + if (worldOceanPosition == TYPE_OCEAN_LEFT) { + map.getTerrainArray()[oceanLeftHeight + oceanDepthCounterLeft + j][i] = 14; + } + else if (worldOceanPosition == TYPE_OCEAN_RIGHT) { + map.getTerrainArray()[oceanRightHeight + oceanDepthCounterRight + j][map.width - 1 - i] = SAND; + } + } + } + } + + /* Utility */ + + private static int clampN(int clampNumber, int num) { + return FastMath.floor(num / clampNumber) * clampNumber; + } + + private static boolean outOfBound(int w, int h, int x, int y) { + return !(x > 0 && y > 0 && x < w && y < h); + } + + private static float getDistance(float x1, float y1, float x2, float y2) { + return FastMath.sqrt(FastMath.pow(x1 - x2, 2) + FastMath.pow(y2 - y1, 2)); + } + + private static void circularDig(int i, int j, int brushSize, int fillFrom, int fill) { + float halfBrushSize = (brushSize * 0.5f); + + for (int pointerY = 0; pointerY < brushSize; pointerY++) { + for (int pointerX = 0; pointerX < brushSize; pointerX++) { + if (getDistance(j + , i + , j + pointerX - halfBrushSize + , i + pointerY - halfBrushSize) + <= FastMath.floor(brushSize / 2) - 1 + ) { + if ( + Math.round(j + pointerX - halfBrushSize) > brushSize + && Math.round(j + pointerX - halfBrushSize) < width - brushSize + && Math.round(i + pointerY - halfBrushSize) > brushSize + && Math.round(i + pointerY - halfBrushSize) < height - brushSize + ) { + if ( + map.getTerrainArray() + [Math.round(i + pointerY - halfBrushSize)] + [Math.round(j + pointerX - halfBrushSize)] + == (byte) fillFrom + ) { + map.getTerrainArray() + [Math.round(i + pointerY - halfBrushSize)] + [Math.round(j + pointerX - halfBrushSize)] + = (byte) fill; + } + } + } + } + } + } +} diff --git a/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise.java b/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise.java new file mode 100644 index 000000000..a78ba6e95 --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise.java @@ -0,0 +1,78 @@ +package com.Torvald.Terrarum.MapGenerator; + +import com.Torvald.Rand.HighQualityRandom; +import com.jme3.math.FastMath; + +public class SimplexNoise { + + SimplexNoise_octave[] octaves; + float[] frequencys; + float[] amplitudes; + + int largestFeature; + float persistence; + long seed; + + /** + * @param largestFeature + * @param persistence higher the value, rougher the output + * @param seed + */ + public SimplexNoise(int largestFeature, float persistence, long seed) { + this.largestFeature = largestFeature; + this.persistence = persistence; + this.seed = seed; + + //receives a number (e.g. 128) and calculates what power of 2 it is (e.g. 2^7) + int numberOfOctaves = FastMath.intLog2(largestFeature); + + octaves = new SimplexNoise_octave[numberOfOctaves]; + frequencys = new float[numberOfOctaves]; + amplitudes = new float[numberOfOctaves]; + + HighQualityRandom rnd = new HighQualityRandom(seed); + + for (int i = 0; i < numberOfOctaves; i++) { + octaves[i] = new SimplexNoise_octave(rnd.nextInt()); + + frequencys[i] = FastMath.pow(2, i); + amplitudes[i] = FastMath.pow(persistence, octaves.length - i); + + + } + + } + + + public float getNoise(int x, int y) { + + float result = 0; + + for (int i = 0; i < octaves.length; i++) { + //float frequency = FastMath.pow(2,i); + //float amplitude = FastMath.pow(persistence,octaves.length-i); + + result = result + (float) (octaves[i].noise(x / frequencys[i], y / frequencys[i]) * amplitudes[i]); + } + + + return result; + + } + + public float getNoise(int x, int y, int z) { + + float result = 0; + + for (int i = 0; i < octaves.length; i++) { + float frequency = FastMath.pow(2, i); + float amplitude = FastMath.pow(persistence, octaves.length - i); + + result = result + (float) (octaves[i].noise(x / frequency, y / frequency, z / frequency) * amplitude); + } + + + return result; + + } +} diff --git a/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.java b/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.java new file mode 100644 index 000000000..867f556fd --- /dev/null +++ b/src/com/Torvald/Terrarum/MapGenerator/SimplexNoise_octave.java @@ -0,0 +1,388 @@ +package com.Torvald.Terrarum.MapGenerator; + +/* + * A speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. + * + * Based on example code by Stefan Gustavson (stegu@itn.liu.se). + * Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). + * Better rank ordering method by Stefan Gustavson in 2012. + * + * This could be speeded up even further, but it's useful as it is. + * + * Version 2012-03-09 + * + * This code was placed in the public domain by its original author, + * Stefan Gustavson. You may use it as you see fit, but + * attribution is appreciated. + * + */ + +import com.Torvald.Rand.HighQualityRandom; + +public class SimplexNoise_octave { // Simplex noise in 2D, 3D and 4D + + public static int RANDOMSEED=0; + private static int NUMBEROFSWAPS=400; + + private static Grad grad3[] = {new Grad(1,1,0),new Grad(-1,1,0),new Grad(1,-1,0),new Grad(-1,-1,0), + new Grad(1,0,1),new Grad(-1,0,1),new Grad(1,0,-1),new Grad(-1,0,-1), + new Grad(0,1,1),new Grad(0,-1,1),new Grad(0,1,-1),new Grad(0,-1,-1)}; + + private static Grad grad4[]= {new Grad(0,1,1,1),new Grad(0,1,1,-1),new Grad(0,1,-1,1),new Grad(0,1,-1,-1), + new Grad(0,-1,1,1),new Grad(0,-1,1,-1),new Grad(0,-1,-1,1),new Grad(0,-1,-1,-1), + new Grad(1,0,1,1),new Grad(1,0,1,-1),new Grad(1,0,-1,1),new Grad(1,0,-1,-1), + new Grad(-1,0,1,1),new Grad(-1,0,1,-1),new Grad(-1,0,-1,1),new Grad(-1,0,-1,-1), + new Grad(1,1,0,1),new Grad(1,1,0,-1),new Grad(1,-1,0,1),new Grad(1,-1,0,-1), + new Grad(-1,1,0,1),new Grad(-1,1,0,-1),new Grad(-1,-1,0,1),new Grad(-1,-1,0,-1), + new Grad(1,1,1,0),new Grad(1,1,-1,0),new Grad(1,-1,1,0),new Grad(1,-1,-1,0), + new Grad(-1,1,1,0),new Grad(-1,1,-1,0),new Grad(-1,-1,1,0),new Grad(-1,-1,-1,0)}; + + private static short p_supply[] = {151,160,137,91,90,15, //this contains all the numbers between 0 and 255, these are put in a random order depending upon the seed + 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23, + 190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33, + 88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166, + 77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244, + 102,143,54, 65,25,63,161, 1,216,80,73,209,76,132,187,208, 89,18,169,200,196, + 135,130,116,188,159,86,164,100,109,198,173,186, 3,64,52,217,226,250,124,123, + 5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42, + 223,183,170,213,119,248,152, 2,44,154,163, 70,221,153,101,155,167, 43,172,9, + 129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228, + 251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107, + 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254, + 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180}; + + private short p[]=new short[p_supply.length]; + + // To remove the need for index wrapping, double the permutation table length + private short perm[] = new short[512]; + private short permMod12[] = new short[512]; + public SimplexNoise_octave(int seed) { + p=p_supply.clone(); + + if (seed==RANDOMSEED){ + throw new IllegalArgumentException("Seed cannot be zero."); + } + + //the random for the swaps + HighQualityRandom rand=new HighQualityRandom(seed); + + //the seed determines the swaps that occur between the default order and the order we're actually going to use + for(int i=0;iy0) {i1=1; j1=0;} // lower triangle, XY order: (0,0)->(1,0)->(1,1) + else {i1=0; j1=1;} // upper triangle, YX order: (0,0)->(0,1)->(1,1) + // A step of (1,0) in (i,j) means a step of (1-c,-c) in (x,y), and + // a step of (0,1) in (i,j) means a step of (-c,1-c) in (x,y), where + // c = (3-sqrt(3))/6 + double x1 = x0 - i1 + G2; // Offsets for middle corner in (x,y) unskewed coords + double y1 = y0 - j1 + G2; + double x2 = x0 - 1.0 + 2.0 * G2; // Offsets for last corner in (x,y) unskewed coords + double y2 = y0 - 1.0 + 2.0 * G2; + // Work out the hashed gradient indices of the three simplex corners + int ii = i & 255; + int jj = j & 255; + int gi0 = permMod12[ii+perm[jj]]; + int gi1 = permMod12[ii+i1+perm[jj+j1]]; + int gi2 = permMod12[ii+1+perm[jj+1]]; + // Calculate the contribution from the three corners + double t0 = 0.5 - x0*x0-y0*y0; + if(t0<0) n0 = 0.0; + else { + t0 *= t0; + n0 = t0 * t0 * dot(grad3[gi0], x0, y0); // (x,y) of grad3 used for 2D gradient + } + double t1 = 0.5 - x1*x1-y1*y1; + if(t1<0) n1 = 0.0; + else { + t1 *= t1; + n1 = t1 * t1 * dot(grad3[gi1], x1, y1); + } + double t2 = 0.5 - x2*x2-y2*y2; + if(t2<0) n2 = 0.0; + else { + t2 *= t2; + n2 = t2 * t2 * dot(grad3[gi2], x2, y2); + } + // Add contributions from each corner to get the final noise value. + // The result is scaled to return values in the interval [-1,1]. + return 70.0 * (n0 + n1 + n2); + } + + + // 3D simplex noise + public double noise(double xin, double yin, double zin) { + double n0, n1, n2, n3; // Noise contributions from the four corners + // Skew the input space to determine which simplex cell we're in + double s = (xin+yin+zin)*F3; // Very nice and simple skew factor for 3D + int i = fastfloor(xin+s); + int j = fastfloor(yin+s); + int k = fastfloor(zin+s); + double t = (i+j+k)*G3; + double X0 = i-t; // Unskew the cell origin back to (x,y,z) space + double Y0 = j-t; + double Z0 = k-t; + double x0 = xin-X0; // The x,y,z distances from the cell origin + double y0 = yin-Y0; + double z0 = zin-Z0; + // For the 3D case, the simplex shape is a slightly irregular tetrahedron. + // Determine which simplex we are in. + int i1, j1, k1; // Offsets for second corner of simplex in (i,j,k) coords + int i2, j2, k2; // Offsets for third corner of simplex in (i,j,k) coords + if(x0>=y0) { + if(y0>=z0) + { i1=1; j1=0; k1=0; i2=1; j2=1; k2=0; } // X Y Z order + else if(x0>=z0) { i1=1; j1=0; k1=0; i2=1; j2=0; k2=1; } // X Z Y order + else { i1=0; j1=0; k1=1; i2=1; j2=0; k2=1; } // Z X Y order + } + else { // x0 y0) rankx++; else ranky++; + if(x0 > z0) rankx++; else rankz++; + if(x0 > w0) rankx++; else rankw++; + if(y0 > z0) ranky++; else rankz++; + if(y0 > w0) ranky++; else rankw++; + if(z0 > w0) rankz++; else rankw++; + int i1, j1, k1, l1; // The integer offsets for the second simplex corner + int i2, j2, k2, l2; // The integer offsets for the third simplex corner + int i3, j3, k3, l3; // The integer offsets for the fourth simplex corner + // simplex[c] is a 4-vector with the numbers 0, 1, 2 and 3 in some order. + // Many values of c will never occur, since e.g. x>y>z>w makes x= 3 ? 1 : 0; + j1 = ranky >= 3 ? 1 : 0; + k1 = rankz >= 3 ? 1 : 0; + l1 = rankw >= 3 ? 1 : 0; + // Rank 2 denotes the second largest coordinate. + i2 = rankx >= 2 ? 1 : 0; + j2 = ranky >= 2 ? 1 : 0; + k2 = rankz >= 2 ? 1 : 0; + l2 = rankw >= 2 ? 1 : 0; + // Rank 1 denotes the second smallest coordinate. + i3 = rankx >= 1 ? 1 : 0; + j3 = ranky >= 1 ? 1 : 0; + k3 = rankz >= 1 ? 1 : 0; + l3 = rankw >= 1 ? 1 : 0; + // The fifth corner has all coordinate offsets = 1, so no need to compute that. + double x1 = x0 - i1 + G4; // Offsets for second corner in (x,y,z,w) coords + double y1 = y0 - j1 + G4; + double z1 = z0 - k1 + G4; + double w1 = w0 - l1 + G4; + double x2 = x0 - i2 + 2.0*G4; // Offsets for third corner in (x,y,z,w) coords + double y2 = y0 - j2 + 2.0*G4; + double z2 = z0 - k2 + 2.0*G4; + double w2 = w0 - l2 + 2.0*G4; + double x3 = x0 - i3 + 3.0*G4; // Offsets for fourth corner in (x,y,z,w) coords + double y3 = y0 - j3 + 3.0*G4; + double z3 = z0 - k3 + 3.0*G4; + double w3 = w0 - l3 + 3.0*G4; + double x4 = x0 - 1.0 + 4.0*G4; // Offsets for last corner in (x,y,z,w) coords + double y4 = y0 - 1.0 + 4.0*G4; + double z4 = z0 - 1.0 + 4.0*G4; + double w4 = w0 - 1.0 + 4.0*G4; + // Work out the hashed gradient indices of the five simplex corners + int ii = i & 255; + int jj = j & 255; + int kk = k & 255; + int ll = l & 255; + int gi0 = perm[ii+perm[jj+perm[kk+perm[ll]]]] % 32; + int gi1 = perm[ii+i1+perm[jj+j1+perm[kk+k1+perm[ll+l1]]]] % 32; + int gi2 = perm[ii+i2+perm[jj+j2+perm[kk+k2+perm[ll+l2]]]] % 32; + int gi3 = perm[ii+i3+perm[jj+j3+perm[kk+k3+perm[ll+l3]]]] % 32; + int gi4 = perm[ii+1+perm[jj+1+perm[kk+1+perm[ll+1]]]] % 32; + // Calculate the contribution from the five corners + double t0 = 0.6 - x0*x0 - y0*y0 - z0*z0 - w0*w0; + if(t0<0) n0 = 0.0; + else { + t0 *= t0; + n0 = t0 * t0 * dot(grad4[gi0], x0, y0, z0, w0); + } + double t1 = 0.6 - x1*x1 - y1*y1 - z1*z1 - w1*w1; + if(t1<0) n1 = 0.0; + else { + t1 *= t1; + n1 = t1 * t1 * dot(grad4[gi1], x1, y1, z1, w1); + } + double t2 = 0.6 - x2*x2 - y2*y2 - z2*z2 - w2*w2; + if(t2<0) n2 = 0.0; + else { + t2 *= t2; + n2 = t2 * t2 * dot(grad4[gi2], x2, y2, z2, w2); + } + double t3 = 0.6 - x3*x3 - y3*y3 - z3*z3 - w3*w3; + if(t3<0) n3 = 0.0; + else { + t3 *= t3; + n3 = t3 * t3 * dot(grad4[gi3], x3, y3, z3, w3); + } + double t4 = 0.6 - x4*x4 - y4*y4 - z4*z4 - w4*w4; + if(t4<0) n4 = 0.0; + else { + t4 *= t4; + n4 = t4 * t4 * dot(grad4[gi4], x4, y4, z4, w4); + } + // Sum up and scale the result to cover the range [-1,1] + return 27.0 * (n0 + n1 + n2 + n3 + n4); + } + + // Inner class to speed upp gradient computations + // (array access is a lot slower than member access) + private static class Grad + { + double x, y, z, w; + + Grad(double x, double y, double z) + { + this.x = x; + this.y = y; + this.z = z; + } + + Grad(double x, double y, double z, double w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + } + +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png new file mode 100644 index 000000000..1d5e9ff95 Binary files /dev/null and b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset01.png differ diff --git a/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png new file mode 100644 index 000000000..4d436d822 Binary files /dev/null and b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset02.png differ diff --git a/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png new file mode 100644 index 000000000..530a94a9c Binary files /dev/null and b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset03.png differ diff --git a/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png new file mode 100644 index 000000000..09cc75133 Binary files /dev/null and b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset04.png differ diff --git a/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png new file mode 100644 index 000000000..9d6bd1481 Binary files /dev/null and b/src/com/Torvald/Terrarum/MapGenerator/floatingIslePreset05.png differ diff --git a/src/com/Torvald/Terrarum/Terrarum.java b/src/com/Torvald/Terrarum/Terrarum.java new file mode 100644 index 000000000..1ac9f9aaa --- /dev/null +++ b/src/com/Torvald/Terrarum/Terrarum.java @@ -0,0 +1,207 @@ +package com.Torvald.Terrarum; + +import java.io.File; +import java.io.IOException; +import java.lang.management.ManagementFactory; +import java.util.logging.Level; +import java.util.logging.Logger; + +import com.Torvald.ImageFont.GameFontBase; +import com.Torvald.ImageFont.GameFontBlack; +import com.Torvald.ImageFont.GameFontWhite; +import com.Torvald.Terrarum.Actors.PlayerBuildFactory; +import com.Torvald.Terrarum.GameControl.GameController; +import com.Torvald.Terrarum.GameControl.KeyMap; +import com.Torvald.Terrarum.LangPack.Lang; +import org.newdawn.slick.*; + +/** + * Created by minjaesong on 15-12-30. + */ +public class Terrarum extends BasicGame { + + public static AppGameContainer appgc; + public static final int WIDTH = 960; + public static final int HEIGHT = 720; + private static Game game; + public static final int TARGET_FPS = 50; + + /** + * To be used with render, to achieve smooth frame drawing + * + * TARGET_INTERNAL_FPS > TARGET_FPS for smooth frame drawing + */ + public static final int TARGET_INTERNAL_FPS = 100; + + public static String OSName; + public static String OSVersion; + public static String OperationSystem; + public static String defaultDir; + public static String defaultSaveDir; + + public static String gameLocale = "fr"; + + public static Font gameFontWhite; + + public static long memInUse; + public static long totalVMMem; + + public Terrarum(String gamename) { + super(gamename); + } + + @Override + public void init(GameContainer gc) throws SlickException { + getDefaultDirectory(); + createDirs(); + try { + createFiles(); + new Lang(); + } + catch (IOException e) { + e.printStackTrace(); + } + + game = new Game(); + + new GameController(); + KeyMap.build(); + GameController.setKeyMap(new KeyMap()); + + gameFontWhite = new GameFontWhite(); + + + } + + @Override + public void update(GameContainer gc, int delta_t) throws SlickException{ + Runtime runtime = Runtime.getRuntime(); + memInUse = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() >> 20; + totalVMMem = runtime.maxMemory() >> 20; + + appgc.setTitle( + "Simple Slick Game — FPS: " + + appgc.getFPS() + " (" + + String.valueOf(TARGET_INTERNAL_FPS) + + ") — " + + String.valueOf(memInUse) + "M / " + + String.valueOf(totalVMMem) + "M" + ); + Game.update(gc, delta_t); + } + + @Override + public void render(GameContainer gc, Graphics g) throws SlickException + { + Game.render(gc, g); + } + + public void keyPressed(int key, char c) { + GameController.keyPressed(key, c); + } + + public void keyReleased(int key, char c) { + GameController.keyReleased(key, c); + } + + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + GameController.mouseMoved(oldx, oldy, newx, newy); + } + + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + GameController.mouseDragged(oldx, oldy, newx, newy); + } + + public void mousePressed(int button, int x, int y) { + GameController.mousePressed(button, x, y); + } + + public void mouseReleased(int button, int x, int y) { + GameController.mouseReleased(button, x, y); + } + + public void mouseWheelMoved(int change) { + GameController.mouseWheelMoved(change); + } + + public void controllerButtonPressed(int controller, int button) { + GameController.controllerButtonPressed(controller, button); + } + + public void controllerButtonReleased(int controller, int button) { + GameController.controllerButtonReleased(controller, button); + } + + public static void main(String[] args) + { + try + { + appgc = new AppGameContainer(new Terrarum("Terrarum")); + appgc.setDisplayMode(WIDTH, HEIGHT, false); + appgc.setTargetFrameRate(TARGET_INTERNAL_FPS); + appgc.setVSync(true); + appgc.setShowFPS(false); + appgc.setUpdateOnlyWhenVisible(false); + appgc.setMaximumLogicUpdateInterval(1000 / TARGET_INTERNAL_FPS); + appgc.start(); + } + catch (SlickException ex) + { + Logger.getLogger(Terrarum.class.getName()).log(Level.SEVERE, null, ex); + } + } + + private static void getDefaultDirectory(){ + OSName = System.getProperty("os.name"); + OSVersion = System.getProperty("os.version"); + + String OS = System.getProperty("os.name").toUpperCase(); + if (OS.contains("WIN")){ + OperationSystem = "WINDOWS"; + defaultDir = System.getenv("APPDATA") + "/Terrarum"; + } + else if (OS.contains("OS X")){ + OperationSystem = "OSX"; + defaultDir = System.getProperty("user.home") + "/Library/Application " + + "Support" + "/Terrarum"; + } + else if (OS.contains("NUX") || OS.contains("NIX")){ + OperationSystem = "LINUX"; + defaultDir = System.getProperty("user.home") + "/.terrarum"; + } + else if (OS.contains("SUNOS")){ + OperationSystem = "SOLARIS"; + defaultDir = System.getProperty("user.home") + "/.terrarum"; + } + else{ + OperationSystem = "UNKNOWN"; + defaultDir = System.getProperty("user.home") + "/.terrarum"; + } + + defaultSaveDir = defaultDir + "/Saves"; + } + + private static void createDirs(){ + File[] dirs = { + new File(defaultSaveDir), + }; + + for (File d : dirs){ + if (!d.exists()){ + d.mkdirs(); + } + } + } + + private static void createFiles() throws IOException { + File[] files = { + new File(defaultDir + "/properties") + }; + + for (File f : files){ + if (!f.exists()){ + f.createNewFile(); + } + } + } +} diff --git a/src/com/Torvald/Terrarum/TileProperties/propdata.csv b/src/com/Torvald/Terrarum/TileProperties/propdata.csv new file mode 100644 index 000000000..801a2c473 --- /dev/null +++ b/src/com/Torvald/Terrarum/TileProperties/propdata.csv @@ -0,0 +1,19 @@ +"type: excel"; + "id";"name" ;"opacity";"strength";"isFluid";"viscosity";"isSolid";"isWall";"luminance";"drops" ; + "0";"TILE_AIR" ; "0"; "0"; "0"; "0"; "0"; "0"; "0";"NULL" ; + "1";"TILE_STONE" ; "8"; "25"; "0"; "0"; "1"; "1"; "0";"TILE_STONE" ; + "2";"TILE_DIRT" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_DIRT" ; + "3";"TILE_GRASS" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_DIRT" ; + "4";"TILE_PLANK_NORMAL" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_NORMAL" ; + "5";"TILE_PLANK_EBONY" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_EBONY" ; + "6";"TILE_PLANK_BIRCH" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_BIRCH" ; + "7";"TILE_PLANK_ROSEWOOD" ; "8"; "12"; "0"; "0"; "1"; "1"; "0";"TILE_PLANK_ROSEWOOD" ; + "8";"TILE_TRUNK_NORMAL" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_NORMAL" ; + "9";"TILE_TRUNK_EBONY" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_EBONY" ; + "10";"TILE_TRUNK_BIRCH" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_BIRCH" ; + "11";"TILE_TRUNK_ROSEWOOD" ; "8"; "12"; "0"; "0"; "1"; "0"; "0";"TILE_PLANK_ROSEWOOD" ; + + "32";"TILE_SNOW" ; "8"; "6"; "0"; "0"; "1"; "1"; "0";"TILE_SNOW" ; + "33";"TILE_ICE_FRAGILE" ; "1"; "1"; "0"; "0"; "1"; "0"; "0";"NULL" ; + "34";"TILE_ICE_NATURAL" ; "6"; "25"; "0"; "0"; "1"; "1"; "0";"TILE_ICE_NATURAL" ; + "35";"TILE_ICE_CLEAR_MAGICAL"; "8"; "25"; "0"; "0"; "1"; "1"; "1";"TILE_ICE_CLEAR_MAGICAL"; diff --git a/src/com/Torvald/Terrarum/TileProperties/propdata.json b/src/com/Torvald/Terrarum/TileProperties/propdata.json new file mode 100644 index 000000000..7bf52ea2d --- /dev/null +++ b/src/com/Torvald/Terrarum/TileProperties/propdata.json @@ -0,0 +1,22 @@ +{ + "0": { + "name": "TILE_AIR", + "opacity": 0, + "strength": 0, + "isFluid": 0, + "fluidViscocity": 0, + "drop": "__null", + "isSolid": 0, + "isAlsoWall": 0 + }, + "1": { + "name": "TILE_STONE", + "opacity": 8, + "strength": 25, + "isFluid": 0, + "fluidViscocity": 0, + "drop": "item.stone", + "isSolid": 0, + "isAlsoWall": 0 + } +} \ No newline at end of file diff --git a/src/com/Torvald/Terrarum/TileStat/TileStat.java b/src/com/Torvald/Terrarum/TileStat/TileStat.java new file mode 100644 index 000000000..be15ac2ac --- /dev/null +++ b/src/com/Torvald/Terrarum/TileStat/TileStat.java @@ -0,0 +1,42 @@ +package com.Torvald.Terrarum.TileStat; + +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.GameMap.MapLayer; +import com.Torvald.Terrarum.MapDrawer.MapCamera; + +import java.util.Arrays; + +/** + * Created by minjaesong on 16-02-01. + */ +public class TileStat { + + private static short[] tilestat = new short[MapLayer.TILES_SUPPORTED]; + + public static void update() { + Arrays.fill(tilestat, (short) 0); + + int for_x_start = MapCamera.getRenderStartX(); + int for_y_start = MapCamera.getRenderStartY(); + int for_x_end = MapCamera.getRenderEndX(); + int for_y_end = MapCamera.getRenderEndY(); + + for (int y = for_y_start; y < for_y_end; y++) { + for (int x = for_x_start; x < for_x_end; x++) { + int tileWall = Game.map.getTileFromWall(x, y); + int tileTerrain = Game.map.getTileFromTerrain(x, y); + tilestat[tileWall] += 1; + tilestat[tileTerrain] += 1; + } + } + } + + public static int getCount(int... tile) { + int sum = 0; + for (int i = 0; i < tile.length; i++) { + sum += Short.toUnsignedInt(tilestat[tile[i]]); + } + return sum; + } + +} diff --git a/src/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.java b/src/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.java new file mode 100644 index 000000000..2a2230b96 --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/BasicDebugInfoWindow.java @@ -0,0 +1,237 @@ +package com.Torvald.Terrarum.UserInterface; + +import com.Torvald.Terrarum.Actors.PlayerDebugger; +import com.Torvald.Terrarum.Actors.Hitbox; +import com.Torvald.Terrarum.LangPack.Lang; +import com.Torvald.Terrarum.MapDrawer.LightmapRenderer; +import com.Torvald.Terrarum.MapDrawer.MapDrawer; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.Game; +import com.Torvald.Terrarum.MapDrawer.MapCamera; +import org.newdawn.slick.Color; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Input; + +import java.util.Formatter; + +/** + * Created by minjaesong on 16-01-19. + */ +public class BasicDebugInfoWindow implements UICanvas { + + private static PlayerDebugger playerDbg; + + int width; + int height; + + /** + * Call AFTER player constuction! + */ + public BasicDebugInfoWindow() { + width = Terrarum.WIDTH; + height = Terrarum.HEIGHT; + + playerDbg = new PlayerDebugger(Game.getPlayer()); + } + + @Override + public void render(GameContainer gc, Graphics g) { + StringBuilder sb = new StringBuilder(); + Formatter formatter = new Formatter(sb); + + int mouseTileX = (int) ((MapCamera.getCameraX() + gc.getInput().getMouseX() / Game.screenZoom) + / MapDrawer.TILE_SIZE); + int mouseTileY = (int) ((MapCamera.getCameraY() + gc.getInput().getMouseY() / Game.screenZoom) + / MapDrawer.TILE_SIZE); + + g.setColor(Color.white); + + Hitbox hitbox = playerDbg.hitbox(); + Hitbox nextHitbox = playerDbg.nextHitbox(); + + printLine(g, 1, "posX : " + + String.valueOf(hitbox.getPointedX()) + + " (" + + String.valueOf((int) (hitbox.getPointedX() / MapDrawer.TILE_SIZE)) + + ")" + ); + printLine(g, 2, "posY : " + + String.valueOf(hitbox.getPointedY()) + + " (" + + String.valueOf((int) (hitbox.getPointedY() / MapDrawer.TILE_SIZE)) + + ")" + ); + printLine(g, 3, "veloX : " + String.valueOf(playerDbg.veloX())); + printLine(g, 4, "veloY : " + String.valueOf(playerDbg.veloY())); + printLine(g, 5, "grounded : " + String.valueOf(playerDbg.grounded())); + printLine(g, 6, "noClip : " + String.valueOf(playerDbg.noClip())); + printLine(g, 7, Lang.get("DBG_TOTAL_ACCEL_X") + " : " + String.valueOf( + (float) playerDbg.actorValue().get("accel") + * (float) playerDbg.actorValue().get("accelmult") + ) + + " (" + String.valueOf(playerDbg.getPlayer().readonly_totalX) + ")"); + printLine(g, 8 + , Lang.get("TERM_PHYS_MASS") + + " : " + + String.valueOf(playerDbg.mass()) + + " [kg]" + ); + + String lightVal; + try { + lightVal = Integer.toHexString(LightmapRenderer.getValueFromMap(mouseTileX, mouseTileY)).toUpperCase(); + } + catch (ArrayIndexOutOfBoundsException e) { + lightVal = "out of bounds"; + } + printLine(g, 9, "light at cursor : " + lightVal); + + String tileNo; + try { + tileNo = String.valueOf(Game.map.getTileFromTerrain(mouseTileX, mouseTileY)); + } + catch (ArrayIndexOutOfBoundsException e) { + tileNo = "out of bounds"; + } + printLine(g, 10, "tile : " + tileNo); + + // Memory allocation + long memInUse = Terrarum.memInUse; + long totalVMMem = Terrarum.totalVMMem; + + g.setColor(new Color(0xFF7F00)); + g.drawString( + Lang.get("DEV_MEMORY_SHORT_CAP") + + " : " + + formatter.format( + Lang.get("DEV_MEMORY_A_OF_B") + , memInUse + , totalVMMem + ) + , Terrarum.WIDTH - 200, line(1) + ); + + // Hitbox + g.setColor(new Color(0x007f00)); + g.drawRect(hitbox.getHitboxStart().getX() + - MapCamera.getCameraX() + , hitbox.getHitboxStart().getY() + - MapCamera.getCameraY() + , hitbox.getWidth() + , hitbox.getHeight() + ); + // ...and its point + g.fillRect( + hitbox.getPointedX() - 1 + - MapCamera.getCameraX() + , hitbox.getPointedY() - 1 + - MapCamera.getCameraY() + , 3 + , 3 + ); + g.drawString( + Lang.get("DEV_COLOUR_LEGEND_GREEN") + + " : hitbox", Terrarum.WIDTH - 200 + , line(2) + ); + + // Next hitbox + g.setColor(Color.blue); + g.drawRect(nextHitbox.getHitboxStart().getX() + - MapCamera.getCameraX() + , nextHitbox.getHitboxStart().getY() + - MapCamera.getCameraY() + , nextHitbox.getWidth() + , nextHitbox.getHeight() + ); + // ...and its point + g.fillRect( + nextHitbox.getPointedX() - 1 + - MapCamera.getCameraX() + , nextHitbox.getPointedY() - 1 + - MapCamera.getCameraY() + , 3 + , 3 + ); + g.drawString( + Lang.get("DEV_COLOUR_LEGEND_BLUE") + + " : nextHitbox", Terrarum.WIDTH - 200 + , line(3) + ); + } + + private static void printLine(Graphics g, int l, String s) { + g.drawString(s, 20, line(l)); + } + + private static int line(int i) { + return i * 20; + } + + @Override + public void update(GameContainer gc, int delta_t) { + + } + + @Override + public void keyPressed(int key, char c) { + + } + + @Override + public void keyReleased(int key, char c) { + + } + + @Override + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mousePressed(int button, int x, int y) { + + } + + @Override + public void mouseReleased(int button, int x, int y) { + + } + + @Override + public void mouseWheelMoved(int change) { + + } + + @Override + public void controllerButtonPressed(int controller, int button) { + + } + + @Override + public void controllerButtonReleased(int controller, int button) { + + } + + @Override + public void processInput(Input input) { + + } + + @Override + public int getWidth() { + return width; + } + + @Override + public int getHeight() { + return height; + } + +} diff --git a/src/com/Torvald/Terrarum/UserInterface/Bulletin.java b/src/com/Torvald/Terrarum/UserInterface/Bulletin.java new file mode 100644 index 000000000..98a8b0d9e --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/Bulletin.java @@ -0,0 +1,135 @@ +package com.Torvald.Terrarum.UserInterface; + +import com.Torvald.Terrarum.Terrarum; +import org.newdawn.slick.Color; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Input; +import org.newdawn.slick.geom.RoundedRectangle; + +/** + * Created by minjaesong on 16-01-23. + */ +public class Bulletin implements UICanvas { + + int width = 400; + int height; + + int visibleTime = 5000; + int showupTimeConuter = 0; + + boolean isShowing = false; + String[] message; + + Color uiColour = new Color(0x90000000); + + final int FRAME_SIZE = 5; + + private RoundedRectangle uiBox = new RoundedRectangle( + width + , Terrarum.HEIGHT + , FRAME_SIZE + , 2 + , RoundedRectangle.TOP_LEFT + RoundedRectangle.TOP_RIGHT + ); + + @Override + public void update(GameContainer gc, int delta_t) { + if (showupTimeConuter >= visibleTime) { + isShowing = false; + } + + if (isShowing) { + showupTimeConuter += delta_t; + } + } + + @Override + public void render(GameContainer gc, Graphics g) { + /*if (isShowing) { + int lineHeight = Terrarum.gameFontWhite.getLineHeight(); + + g.setColor(uiColour); + g.fillRect(0 + , getHeight() - message.length * lineHeight + - 10 + , width + , getHeight() + ); + + for (int i = 0; i < message.length; i++) { + g.drawString(message[i] + , 5 + , getHeight() - message.length * lineHeight + + 5 + + (i * lineHeight) + ); + } + }*/ + } + + @Override + public void keyPressed(int key, char c) { + + } + + @Override + public void keyReleased(int key, char c) { + + } + + @Override + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mousePressed(int button, int x, int y) { + + } + + @Override + public void mouseReleased(int button, int x, int y) { + + } + + @Override + public void mouseWheelMoved(int change) { + + } + + @Override + public void controllerButtonPressed(int controller, int button) { + + } + + @Override + public void controllerButtonReleased(int controller, int button) { + + } + + @Override + public void processInput(Input input) { + + } + + @Override + public int getWidth() { + return width; + } + + @Override + public int getHeight() { + return Terrarum.HEIGHT; + } + + public void sendBulletin(String[] message) { + isShowing = true; + this.message = message; + } +} diff --git a/src/com/Torvald/Terrarum/UserInterface/ConsoleWindow.java b/src/com/Torvald/Terrarum/UserInterface/ConsoleWindow.java new file mode 100644 index 000000000..b5b3e5d3e --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/ConsoleWindow.java @@ -0,0 +1,194 @@ +package com.Torvald.Terrarum.UserInterface; + +import com.Torvald.Terrarum.LangPack.Lang; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.ConsoleCommand.CommandInterpreter; +import com.Torvald.Terrarum.GameControl.Key; +import org.newdawn.slick.Color; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Input; + +/** + * Created by minjaesong on 15-12-31. + */ +public class ConsoleWindow implements UICanvas { + + Color UIColour = new Color(0x90000000); + + private StringBuffer commandInputPool = new StringBuffer(); + private String prevCommand = ""; + + private int inputCursorPos = 0; + + private final int MESSAGES_MAX = 5000; + private String[] messages = new String[MESSAGES_MAX]; + private int messageDisplayPos = 0; + private int messagesCount = 0; + + private final int LINE_HEIGHT = 20; + private final int MESSAGES_DISPLAY_COUNT = 9; + + int width; + int height; + + public ConsoleWindow() { + super(); + + width = Terrarum.WIDTH; + height = 200; + + sendMessage(Lang.get("DEV_MESSAGE_CONSOLE_CODEX")); + } + + @Override + public void update(GameContainer gc, int delta_t) { + + } + + @Override + public void render(GameContainer gc, Graphics g) { + g.setColor(UIColour); + g.fillRect(0, 0, width, height); + g.fillRect(0, 0, width, LINE_HEIGHT); + + String input = commandInputPool.toString(); + int inputDrawWidth = g.getFont().getWidth(input); + int inputDrawHeight = g.getFont().getLineHeight(); + + g.setColor(Color.white); + g.drawString(input, 1, 0); + g.fillRect(inputDrawWidth, 0, 2, inputDrawHeight); + + for (int i = 0; i < MESSAGES_DISPLAY_COUNT; i++) { + String message = messages[messageDisplayPos + i]; + if (message != null) { + g.drawString(message, 1, LINE_HEIGHT * (i + 1)); + } + } + } + + + + public void keyPressed(int key, char c) { + // execute + if (key == Key.RET && commandInputPool.length() > 0) { + prevCommand = commandInputPool.toString(); + executeCommand(); + commandInputPool = new StringBuffer(); + } + // backspace + else if (key == Key.BKSP && commandInputPool.length() > 0) { + commandInputPool.deleteCharAt(commandInputPool.length() - 1); + } + // get input + else if ((key >= 2 && key <= 13) + || (key >= 16 && key <= 27) + || (key >= 30 && key <= 40) + || (key >= 44 && key <= 52) + || (commandInputPool.length() > 0 && key == 57)){ + commandInputPool.append(c); + inputCursorPos += 1; + } + // prev command + else if (key == Key.UP) { + commandInputPool = new StringBuffer(); + commandInputPool.append(prevCommand); + } + // scroll up + else if (key == Key.PGUP) { + setDisplayPos(-MESSAGES_DISPLAY_COUNT + 1); + } + // scroll down + else if (key == Key.PGDN) { + setDisplayPos(MESSAGES_DISPLAY_COUNT - 1); + } + } + + @Override + public void keyReleased(int key, char c) { + + } + + @Override + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mousePressed(int button, int x, int y) { + + } + + @Override + public void mouseReleased(int button, int x, int y) { + + } + + @Override + public void mouseWheelMoved(int change) { + + } + + @Override + public void controllerButtonPressed(int controller, int button) { + + } + + @Override + public void controllerButtonReleased(int controller, int button) { + + } + + @Override + public void processInput(Input input) { + + } + + private void executeCommand() { + sendMessage("> " + commandInputPool.toString()); + CommandInterpreter.execute(commandInputPool.toString()); + } + + public void sendMessage(String msg) { + messages[messagesCount] = new String(msg); + messagesCount += 1; + if (messagesCount > MESSAGES_DISPLAY_COUNT) { + messageDisplayPos = messagesCount - MESSAGES_DISPLAY_COUNT; + } + } + + private void setDisplayPos(int change) { + int lowLim = 0; + int highLim = (messagesCount <= MESSAGES_DISPLAY_COUNT) + ? 0 + : messagesCount - MESSAGES_DISPLAY_COUNT; + int newVal = messageDisplayPos + change; + + if (newVal < lowLim) { + messageDisplayPos = lowLim; + } + else if (newVal > highLim) { + messageDisplayPos = highLim; + } + else { + messageDisplayPos = newVal; + } + + } + + @Override + public int getWidth() { + return width; + } + + @Override + public int getHeight() { + return height; + } +} diff --git a/src/com/Torvald/Terrarum/UserInterface/Message.java b/src/com/Torvald/Terrarum/UserInterface/Message.java new file mode 100644 index 000000000..1b1319b52 --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/Message.java @@ -0,0 +1,132 @@ +package com.Torvald.Terrarum.UserInterface; + +import com.Torvald.ImageFont.GameFontBlack; +import com.Torvald.ImageFont.GameFontWhite; +import org.newdawn.slick.*; + +/** + * Created by minjaesong on 16-01-27. + */ +public class Message implements UICanvas { + + private Image segmentLeft, segmentRight, segmentBody; + + private String[] messagesList; + private int messagesShowingIndex = 0; + + private int width; + private int height; + private int messageWindowRadius; + + private Font uiFont; + private final int GLYPH_HEIGHT = 20; + + public Message(int width, boolean isBlackVariant) throws SlickException { + if (!isBlackVariant) { + segmentLeft = new Image("./res/graphics/gui/message_twoline_white_left.png"); + segmentRight = new Image("./res/graphics/gui/message_twoline_white_right.png"); + segmentBody = new Image("./res/graphics/gui/message_twoline_white_body.png"); + uiFont = new GameFontBlack(); + } + else { + segmentLeft = new Image("./res/graphics/gui/message_twoline_black_left.png"); + segmentRight = new Image("./res/graphics/gui/message_twoline_black_right.png"); + segmentBody = new Image("./res/graphics/gui/message_twoline_black_body.png"); + uiFont = new GameFontWhite(); + } + + this.width = width; + height = segmentLeft.getHeight(); + messageWindowRadius = segmentLeft.getWidth(); + } + + public void setMessage(String[] messagesList) { + this.messagesList = messagesList; + } + + @Override + public void update(GameContainer gc, int delta_t) { + + } + + @Override + public void render(GameContainer gc, Graphics g) { + g.drawImage(segmentLeft, 0, 0); + Image scaledSegCentre = segmentBody.getScaledCopy( + width - (segmentRight.getWidth() + segmentLeft.getWidth()) + , segmentLeft.getHeight() + ); + g.drawImage(scaledSegCentre, segmentLeft.getWidth(), 0); + g.drawImage(segmentRight, width - segmentRight.getWidth(), 0); + + g.setFont(uiFont); + g.setDrawMode(Graphics.MODE_NORMAL); + for (int i = messagesShowingIndex; i < messagesShowingIndex + 2; i++) { + g.drawString(messagesList[i] + , messageWindowRadius + 4 + , messageWindowRadius + (GLYPH_HEIGHT * (i - messagesShowingIndex)) + ); + } + g.setDrawMode(Graphics.MODE_NORMAL); + } + + @Override + public void keyPressed(int key, char c) { + + } + + @Override + public void keyReleased(int key, char c) { + + } + + @Override + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + + } + + @Override + public void mousePressed(int button, int x, int y) { + + } + + @Override + public void mouseReleased(int button, int x, int y) { + + } + + @Override + public void mouseWheelMoved(int change) { + + } + + @Override + public void controllerButtonPressed(int controller, int button) { + + } + + @Override + public void controllerButtonReleased(int controller, int button) { + + } + + @Override + public void processInput(Input input) { + + } + + @Override + public int getWidth() { + return width; + } + + @Override + public int getHeight() { + return height; + } +} diff --git a/src/com/Torvald/Terrarum/UserInterface/UICanvas.java b/src/com/Torvald/Terrarum/UserInterface/UICanvas.java new file mode 100644 index 000000000..65bc877cf --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/UICanvas.java @@ -0,0 +1,58 @@ +package com.Torvald.Terrarum.UserInterface; + +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Input; + +import java.util.LinkedList; + +/** + * Created by minjaesong on 15-12-31.
+ *
+ * Methods:
+ *         UICanvas()
+ *         update(GameContainer gc, int delta_t)
+ *         render(GameContainer gc, Graphics g)
+ *         keyPressed(int key, char c)
+ *         keyReleased(int key, char c)
+ *         mouseMoved(int oldx, int oldy, int newx, int newy)
+ *         mouseDragged(int oldx, int oldy, int newx, int newy)
+ *         mousePressed(int button, int x, int y)
+ *         mouseReleased(int button, int x, int y)
+ *         mouseWheelMoved(int change)
+ *         controllerButtonPressed(int controller, int button)
+ *         controllerButtonReleased(int controller, int button)
+ *         processInput(Input input)
+ *
+ */ +public interface UICanvas { + + int getWidth(); + + int getHeight(); + + void update(GameContainer gc, int delta_t); + + void render(GameContainer gc, Graphics g); + + void keyPressed(int key, char c); + + void keyReleased(int key, char c); + + void mouseMoved(int oldx, int oldy, int newx, int newy); + + void mouseDragged(int oldx, int oldy, int newx, int newy); + + void mousePressed(int button, int x, int y); + + void mouseReleased(int button, int x, int y); + + void mouseWheelMoved(int change); + + void controllerButtonPressed(int controller, int button); + + void controllerButtonReleased(int controller, int button); + + void processInput(Input input); + +} diff --git a/src/com/Torvald/Terrarum/UserInterface/UIHandler.java b/src/com/Torvald/Terrarum/UserInterface/UIHandler.java new file mode 100644 index 000000000..0a203c56a --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/UIHandler.java @@ -0,0 +1,191 @@ +package com.Torvald.Terrarum.UserInterface; + +import com.Torvald.Terrarum.MapDrawer.MapCamera; +import com.Torvald.Terrarum.Terrarum; +import com.Torvald.Terrarum.Game; +import com.jme3.math.FastMath; +import com.sun.istack.internal.Nullable; +import org.newdawn.slick.*; + +/** + * Created by minjaesong on 15-12-31. + */ +public class UIHandler { + + private UICanvas ui; + + // X/Y Position to the game window. + private int posX; + private int posY; + private boolean visible = false; + + private boolean alwaysVisible = false; + + private Graphics UIGraphicInstance; + private Image UIDrawnCanvas; + + private boolean opening = false; + private boolean closing = false; + + /** + * Construct new UIHandler with given UI attached. + * Invisible in default. + * @param ui + * @throws SlickException + */ + public UIHandler(UICanvas ui) throws SlickException{ + System.out.println(("[UIHandler] Creating UI '" + ui.getClass().getTypeName()) + "'"); + + this.ui = ui; + + UIDrawnCanvas = new Image( + FastMath.nearestPowerOfTwo(ui.getWidth()) + , FastMath.nearestPowerOfTwo(ui.getHeight()) + ); + + UIGraphicInstance = UIDrawnCanvas.getGraphics(); + + visible = false; + } + + + + public void update(GameContainer gc, int delta_t){ + if (visible || alwaysVisible) { + ui.update(gc, delta_t); + } + } + + public void render(GameContainer gc, Graphics gameGraphicInstance) { + if (visible || alwaysVisible) { + UIGraphicInstance.clear(); + UIGraphicInstance.setFont(Terrarum.gameFontWhite); + + ui.render(gc, UIGraphicInstance); + gameGraphicInstance.drawImage(UIDrawnCanvas + // compensate for screenZoom AND camera translation + // (see Game.render -> g.translate()) + , posX + MapCamera.getCameraX() * Game.screenZoom + , posY + MapCamera.getCameraY() * Game.screenZoom + ); + } + } + + public void setPosition(int x, int y){ + posX = x; + posY = y; + } + + public void setVisibility(boolean b){ + if (alwaysVisible) { + throw new RuntimeException("Tried to 'set visibility of' constant UI"); + } + visible = b; + } + + + + public int getPosX() { + return posX; + } + + public int getPosY() { + return posY; + } + + public boolean isVisible() { + if (alwaysVisible) { + return true; + } else { + return visible; + } + } + + public void setAsAlwaysVisible() { + alwaysVisible = true; + visible = true; + } + + + + public void setAsOpening(){ + if (alwaysVisible) { + throw new RuntimeException("Tried to 'open' constant UI"); + } + visible = true; + } + + public void setAsClosing(){ + if (alwaysVisible) { + throw new RuntimeException("Tried to 'close' constant UI"); + } + visible = false; + } + + public void toggleOpening() { + if (alwaysVisible) { + throw new RuntimeException("Tried to 'toggle opening of' constant UI"); + } + if (visible) { + if (!closing) { + setAsClosing(); + } + } + else { + if (!opening) { + setAsOpening(); + } + } + } + + public void processInput(Input input) { + if (visible) { ui.processInput(input); } + } + + public void keyPressed(int key, char c) { + if (visible) { ui.keyPressed(key, c); } + } + + public void keyReleased(int key, char c) { + if (visible) { ui.keyReleased(key, c); } + } + + public void mouseMoved(int oldx, int oldy, int newx, int newy) { + if (visible) { ui.mouseMoved(oldx, oldy, newx, newy); } + } + + public void mouseDragged(int oldx, int oldy, int newx, int newy) { + if (visible) { ui.mouseDragged(oldx, oldy, newx, newy); } + } + + public void mousePressed(int button, int x, int y) { + if (visible) { ui.mousePressed(button, x, y); } + } + + public void mouseReleased(int button, int x, int y) { + if (visible) { ui.mouseReleased(button, x, y); } + } + + public void mouseWheelMoved(int change) { + if (visible) { ui.mouseWheelMoved(change); } + } + + public void controllerButtonPressed(int controller, int button) { + if (visible) { ui.controllerButtonPressed(controller, button); } + } + + public void controllerButtonReleased(int controller, int button) { + if (visible) { ui.controllerButtonReleased(controller, button); } + } + + public boolean isTakingControl() { + if (alwaysVisible) { + return false; // constant UI can't take control + } + return (visible && !opening); + } + + public UICanvas getUI() { + return ui; + } +} diff --git a/src/com/Torvald/Terrarum/UserInterface/UIItem.java b/src/com/Torvald/Terrarum/UserInterface/UIItem.java new file mode 100644 index 000000000..5ee8ae1c2 --- /dev/null +++ b/src/com/Torvald/Terrarum/UserInterface/UIItem.java @@ -0,0 +1,14 @@ +package com.Torvald.Terrarum.UserInterface; + +/** + * Created by minjaesong on 15-12-31. + */ +public class UIItem { + + // X/Y Position relative to the containing canvas + int posX; + int posY; + + + +} diff --git a/src/com/Torvald/Terrarum/WorldTime.java b/src/com/Torvald/Terrarum/WorldTime.java new file mode 100644 index 000000000..0f08b11d4 --- /dev/null +++ b/src/com/Torvald/Terrarum/WorldTime.java @@ -0,0 +1,141 @@ +package com.Torvald.Terrarum; + +/** + * Created by minjaesong on 16-01-24. + */ +public class WorldTime { + + public static int seconds = 0; + public static int minutes = 0; + public static int hours = 0; + + public static int daysCount = 0; //NOT a calendar day + + public static int days = 1; + public static int months = 1; + public static int years = 1; + + public static int weeks = 1; + public static int dayOfWeek = 0; //0: Mondag-The first day of weekday + + public static final int DAY_LENGTH = 79200; //must be the multiple of 3600 + public static int timeDelta = 1; + + public static final String[] DAYNAMES = { //daynames are taken from Nynorsk (å -> o) + "Mondag" + ,"Tysdag" + ,"Midtedag" //From Islenska Miðvikudagur + ,"Torsdag" + ,"Fredag" + ,"Laurdag" + ,"Sundag" + ,"Verdag" //From Norsk word 'verd' + }; + public static final String[] DAYNAMES_SHORT = { + "Mon" + ,"Tys" + ,"Mid" + ,"Tor" + ,"Fre" + ,"Lau" + ,"Sun" + ,"Ver" + }; + + /** + * Note: Target FPS must be 60. + */ + public static void update(){ + //time + seconds += timeDelta; + + if (seconds >= 60){ + seconds = 0; + minutes++; + } + + if (minutes >= 60){ + minutes = 0; + hours++; + } + + if (hours >= DAY_LENGTH/3600){ + hours = 0; + days++; + daysCount++; + dayOfWeek++; + } + + //calendar (the world calendar) + if (dayOfWeek == 7){ + dayOfWeek = 0; + } + if ((months == 12 || (months == 7 && isLeapYear())) && days == 31){ + dayOfWeek = 7; + } + + if ((months == 12 || (months == 7 && isLeapYear())) && days == 32){ + days = 1; + months = 1; + years++; + } + else if ((months == 1 || months == 4 || months == 7 || months == 10) && days > 31){ + days = 0; + months++; + } + else if (days > 30){ + days = 0; + months++; + } + + if (months > 12){ + months = 1; + years++; + } + } + + public static int elapsedSeconds(){ + return (3600 * hours + 60 * minutes + seconds) % DAY_LENGTH; + } + + public static long totalSeconds(){ + return (long)(DAY_LENGTH) * daysCount + 3600 * hours + 60 * minutes + seconds; + } + + public static boolean isLeapYear(){ + boolean ret = false; + + if (years % 4 == 0){ + ret = true; + + if (years % 100 == 0){ + ret = false; + + if (years % 400 == 0){ + ret = true; + } + } + } + + return ret; + } + + public static void setTime(int t){ + days += t / DAY_LENGTH; + hours = t / 3600; + minutes = (t - 3600 * hours) / 60; + seconds = t - minutes * 60; + } + + public static void addTime(int t){ + setTime(elapsedSeconds() + t); + } + + public static void setTimeDelta(int d){ + timeDelta = (d == 0) ? 1 : d; + } + + public static String getDayName(){ + return DAYNAMES[dayOfWeek]; + } +} \ No newline at end of file diff --git a/src/com/Torvald/spriteAnimation/SpriteAnimation.java b/src/com/Torvald/spriteAnimation/SpriteAnimation.java new file mode 100644 index 000000000..4965111ab --- /dev/null +++ b/src/com/Torvald/spriteAnimation/SpriteAnimation.java @@ -0,0 +1,279 @@ + +/* Original code author: Sean Laurvick + * This code is based on the original author's code written in Lua. + */ + +package com.Torvald.spriteAnimation; + +import com.Torvald.Terrarum.Game; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.Image; +import org.newdawn.slick.SlickException; +import org.newdawn.slick.SpriteSheet; + +public class SpriteAnimation { + + private SpriteSheet spriteImage; + private Image[][] sprites; + private int height; + private int width; + private int currentFrame = 1; + private int currentRow = 1; + private int nFrames; + private int nRows; + private int delay = 200; + private int delta = 0; + private boolean looping = true; + private boolean animationRunning = true; + private boolean flipHorizontal = false; + private boolean flipVertical = false; + private boolean visible = false; + + private int offsetX = 0; + private int offsetY = 0; + + private float prevScale = 1f; + private Image currentImage; + + public SpriteAnimation() throws SlickException{ + + } + + /** + * Sets spritesheet. + * MUST be called AFTER setDimension. + * @param imagePath path to the sprite sheet image. + * @throws SlickException + */ + public void setSpriteImage(String imagePath) throws SlickException { + spriteImage = new SpriteSheet(imagePath, this.width, this.height); + } + + /** + * Sets animation delay. Will default to 200 if not called. + * @param delay in milliseconds + */ + public void setDelay(int delay) { + this.delay = delay; + } + + /** + * Sets sprite dimension. This is necessary. + * @param w + * @param h + */ + public void setDimension(int w, int h) { + width = w; + height = h; + } + + /** + * Sets sheet rows and animation frames. Will default to + * 1, 1 (still image of top left from the sheet) if not called. + * @param rows + * @param frames + */ + public void setRowsAndFrames(int rows, int frames) { + nRows = rows; + nFrames = frames; + } + + /** + * Compose (load from spritesheet) as attributes defined. + * If attributes were not defined, will throw exception of + * SlickException or ArraySizeException. + * @throws SlickException + */ + public void composeSprite() throws SlickException { + this.sprites = new Image[this.nRows][this.nFrames]; + + for (int i=0; i= ( this.delay ) ){ + //if set to not loop, keep the frame at the last frame + if ( this.currentFrame == this.nFrames && !(this.looping) ){ + this.currentFrame = this.nFrames - 1; + } + + //advance one frame, then reset delta counter + this.currentFrame = (this.currentFrame % this.nFrames) + 1; + this.delta = 0; + } + } + } + + /** + * Render to specific coordinates. Will assume bottom-center point as image position. + * Will round to integer. + * @param g + * @param posX bottom-center point + * @param posY bottom-center point + * @param scale + */ + public void render(Graphics g, float posX, float posY, float scale){ + scale *= Game.screenZoom; + + // Null checking + if (currentImage == null) { + currentImage = getScaledSprite(scale); + } + + if (visible) { + // re-scale image if scale has been changed + if (prevScale != scale) { + currentImage = getScaledSprite(scale); + prevScale = scale; + } + + Image flippedImage = currentImage.getFlippedCopy(flipHorizontal, flipVertical); + + flippedImage.startUse(); + flippedImage.drawEmbedded( + Math.round(posX * Game.screenZoom) + , Math.round(posY * Game.screenZoom) + , width * scale + , height * scale + ); + flippedImage.endUse(); + } + } + + public void render(Graphics g, float posX, float posY){ + render(g, posX, posY, 1); + } + + public void switchSprite(int newRow){ + currentRow = newRow; + + //if beyond the frame index then reset + if (currentFrame > nFrames){ + reset(); + } + } + + public void switchSprite(int newRow, int newMax){ + if (newMax > 0){ + nFrames = newMax; + } + + currentRow = newRow; + + //if beyond the frame index then reset + if (currentFrame > nFrames){ + reset(); + } + } + + public void switchSpriteDelay(int newDelay){ + if (newDelay > 0){ + delay = newDelay; + } + } + + public void switchSprite(int newRow, int newMax, int newDelay){ + if (newMax > 0){ + nFrames = newMax; + } + + if (newDelay > 0){ + delay = newDelay; + } + + currentRow = newRow; + + //if beyond the frame index then reset + if (currentFrame > nFrames){ + reset(); + } + } + + public void reset(){ + currentFrame = 1; + } + + public void start(){ //starts the animation + animationRunning = true; + } + + public void start(int selectFrame){ //starts the animation + animationRunning = true; + + //optional: seleft the frame no which to start the animation + currentFrame = selectFrame; + } + + public void stop(){ + animationRunning = false; + } + + public void stop(int selectFrame){ + animationRunning = false; + + currentFrame = selectFrame; + } + + public void flip(boolean horizontal, boolean vertical){ + flipHorizontal = horizontal; + flipVertical = vertical; + } + + public boolean flippedHorizontal() { + return flipHorizontal; + } + + public boolean flippedVertical() { + return flipVertical; + } + + public int getWidth(){ + return width; + } + + public int getHeight(){ + return height; + } + + private Image getScaledSprite(float scale) { + Image selectedImage = sprites[currentRow - 1][currentFrame - 1]; + + // resample + /*float nearestResampleScale = (scale > 1) ? Math.round(scale) : 1; + float linearResampleScale = scale / nearestResampleScale; + + // scale 1.8 -> resample in 2(nearest), then resample in 0.9(linear) + // scale by nearestResampleScale (2, 3, ...) + selectedImage.setFilter(Image.FILTER_NEAREST); + Image selImgNearestScaled = selectedImage.getScaledCopy(nearestResampleScale); + // scale by linearResampleScale (.x) + Image selImgLinearScaled; + if (scale % 1 > 0) { + selImgNearestScaled.setFilter(Image.FILTER_LINEAR); + selImgLinearScaled = selImgNearestScaled.getScaledCopy(linearResampleScale); + return selImgLinearScaled; + } + else { + return selImgNearestScaled; + }*/ + selectedImage.setFilter(Image.FILTER_NEAREST); + return selectedImage.getScaledCopy(scale); + } +} diff --git a/src/com/jme3/math/FastMath.java b/src/com/jme3/math/FastMath.java new file mode 100644 index 000000000..c70529e48 --- /dev/null +++ b/src/com/jme3/math/FastMath.java @@ -0,0 +1,866 @@ +/* + * Copyright (c) 2009-2010 jMonkeyEngine + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'jMonkeyEngine' nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This source is a custom modification of the original code. + */ + +package com.jme3.math; + +import java.util.Random; + +/** + * FastMath provides 'fast' math approximations and float equivalents of Math + * functions. These are all used as static values and functions. + * + * @author Various + * @version $Id: FastMath.java,v 1.45 2007/08/26 08:44:20 irrisor Exp $ + */ +final public class FastMath { + + private FastMath() { + } + /** A "close to zero" double epsilon value for use*/ + public static final double DBL_EPSILON = 2.220446049250313E-16d; + /** A "close to zero" float epsilon value for use*/ + public static final float FLT_EPSILON = 1.1920928955078125E-7f; + /** A "close to zero" float epsilon value for use*/ + public static final float ZERO_TOLERANCE = 0.0001f; + public static final float ONE_THIRD = 1f / 3f; + /** The value PI as a float. (180 degrees) */ + public static final float PI = (float) Math.PI; + /** The value 2PI as a float. (360 degrees) */ + public static final float TWO_PI = 2.0f * PI; + /** The value PI/2 as a float. (90 degrees) */ + public static final float HALF_PI = 0.5f * PI; + /** The value PI/4 as a float. (45 degrees) */ + public static final float QUARTER_PI = 0.25f * PI; + /** The value 1/PI as a float. */ + public static final float INV_PI = 1.0f / PI; + /** The value 1/(2PI) as a float. */ + public static final float INV_TWO_PI = 1.0f / TWO_PI; + /** A value to multiply a degree value by, to convert it to radians. */ + public static final float DEG_TO_RAD = PI / 180.0f; + /** A value to multiply a radian value by, to convert it to degrees. */ + public static final float RAD_TO_DEG = 180.0f / PI; + /** A precreated random object for random numbers. */ + public static final Random rand = new Random(System.currentTimeMillis()); + + /** + * Returns true if the number is a power of 2 (2,4,8,16...) + * + * A good implementation found on the Java boards. note: a number is a power + * of two if and only if it is the smallest number with that number of + * significant bits. Therefore, if you subtract 1, you know that the new + * number will have fewer bits, so ANDing the original number with anything + * less than it will give 0. + * + * @param number + * The number to test. + * @return True if it is a power of two. + */ + public static boolean isPowerOfTwo(int number) { + return (number > 0) && (number & (number - 1)) == 0; + } + + /** + * Get the next power of two of the given number. + * + * E.g. for an input 100, this returns 128. + * Returns 1 for all numbers <= 1. + * + * @param number The number to obtain the POT for. + * @return The next power of two. + */ + public static int nearestPowerOfTwo(int number) { + number--; + number |= number >> 1; + number |= number >> 2; + number |= number >> 4; + number |= number >> 8; + number |= number >> 16; + number++; + number += (number == 0) ? 1 : 0; + return number; + } + + /** + * Get the next binary log of the given number. + * + * E.g. for an input 100, this returns 6. + * Throws runtimeException for all numbers <= 1. + * + * @param number The number to obtain the POT for. + * @return The next power of two. + */ + public static int intLog2(int number) { + if (number == 0) return 0; + int log = 0; + if( ( number & 0xffff0000 ) != 0 ) { number >>>= 16; log = 16; } + if( number >= 256 ) { number >>>= 8; log += 8; } + if( number >= 16 ) { number >>>= 4; log += 4; } + if( number >= 4 ) { number >>>= 2; log += 2; } + return log + ( number >>> 1 ); + } + + /** + * Linear interpolation from startValue to endValue by the given percent. + * Basically: ((1 - percent) * startValue) + (percent * endValue) + * + * @param scale + * scale value to use. if 1, use endValue, if 0, use startValue. + * @param startValue + * Begining value. 0% of f + * @param endValue + * ending value. 100% of f + * @return The interpolated value between startValue and endValue. + */ + public static float interpolateLinear(float scale, float startValue, float endValue) { + if (startValue == endValue) { + return startValue; + } + if (scale <= 0f) { + return startValue; + } + if (scale >= 1f) { + return endValue; + } + return ((1f - scale) * startValue) + (scale * endValue); + } + + /** + * Linear interpolation from startValue to endValue by the given percent. + * Basically: ((1 - percent) * startValue) + (percent * endValue) + * + * @param scale + * scale value to use. if 1, use endValue, if 0, use startValue. + * @param startValue + * Begining value. 0% of f + * @param endValue + * ending value. 100% of f + * @param store a vector3f to store the result + * @return The interpolated value between startValue and endValue. + */ + public static Vector3f interpolateLinear(float scale, Vector3f startValue, Vector3f endValue, Vector3f store) { + if (store == null) { + store = new Vector3f(); + } + store.x = interpolateLinear(scale, startValue.x, endValue.x); + store.y = interpolateLinear(scale, startValue.y, endValue.y); + store.z = interpolateLinear(scale, startValue.z, endValue.z); + return store; + } + + /** + * Linear interpolation from startValue to endValue by the given percent. + * Basically: ((1 - percent) * startValue) + (percent * endValue) + * + * @param scale + * scale value to use. if 1, use endValue, if 0, use startValue. + * @param startValue + * Begining value. 0% of f + * @param endValue + * ending value. 100% of f + * @return The interpolated value between startValue and endValue. + */ + public static Vector3f interpolateLinear(float scale, Vector3f startValue, Vector3f endValue) { + return interpolateLinear(scale, startValue, endValue, null); + } + + /**Interpolate a spline between at least 4 control points following the Catmull-Rom equation. + * here is the interpolation matrix + * m = [ 0.0 1.0 0.0 0.0 ] + * [-T 0.0 T 0.0 ] + * [ 2T T-3 3-2T -T ] + * [-T 2-T T-2 T ] + * where T is the curve tension + * the result is a value between p1 and p2, t=0 for p1, t=1 for p2 + * @param u value from 0 to 1 + * @param T The tension of the curve + * @param p0 control point 0 + * @param p1 control point 1 + * @param p2 control point 2 + * @param p3 control point 3 + * @return catmull-Rom interpolation + */ + public static float interpolateCatmullRom(float u, float T, float p0, float p1, float p2, float p3) { + double c1, c2, c3, c4; + c1 = p1; + c2 = -1.0 * T * p0 + T * p2; + c3 = 2 * T * p0 + (T - 3) * p1 + (3 - 2 * T) * p2 + -T * p3; + c4 = -T * p0 + (2 - T) * p1 + (T - 2) * p2 + T * p3; + + return (float) (((c4 * u + c3) * u + c2) * u + c1); + } + + /**Interpolate a spline between at least 4 control points following the Catmull-Rom equation. + * here is the interpolation matrix + * m = [ 0.0 1.0 0.0 0.0 ] + * [-T 0.0 T 0.0 ] + * [ 2T T-3 3-2T -T ] + * [-T 2-T T-2 T ] + * where T is the tension of the curve + * the result is a value between p1 and p2, t=0 for p1, t=1 for p2 + * @param u value from 0 to 1 + * @param T The tension of the curve + * @param p0 control point 0 + * @param p1 control point 1 + * @param p2 control point 2 + * @param p3 control point 3 + * @param store a Vector3f to store the result + * @return catmull-Rom interpolation + */ + public static Vector3f interpolateCatmullRom(float u, float T, Vector3f p0, Vector3f p1, Vector3f p2, Vector3f p3, Vector3f store) { + if (store == null) { + store = new Vector3f(); + } + store.x = interpolateCatmullRom(u, T, p0.x, p1.x, p2.x, p3.x); + store.y = interpolateCatmullRom(u, T, p0.y, p1.y, p2.y, p3.y); + store.z = interpolateCatmullRom(u, T, p0.z, p1.z, p2.z, p3.z); + return store; + } + + /**Interpolate a spline between at least 4 control points following the Catmull-Rom equation. + * here is the interpolation matrix + * m = [ 0.0 1.0 0.0 0.0 ] + * [-T 0.0 T 0.0 ] + * [ 2T T-3 3-2T -T ] + * [-T 2-T T-2 T ] + * where T is the tension of the curve + * the result is a value between p1 and p2, t=0 for p1, t=1 for p2 + * @param u value from 0 to 1 + * @param T The tension of the curve + * @param p0 control point 0 + * @param p1 control point 1 + * @param p2 control point 2 + * @param p3 control point 3 + * @return catmull-Rom interpolation + */ + public static Vector3f interpolateCatmullRom(float u, float T, Vector3f p0, Vector3f p1, Vector3f p2, Vector3f p3) { + return interpolateCatmullRom(u, T, p0, p1, p2, p3, null); + } + + /** + * Compute the lenght on a catmull rom spline between control point 1 and 2 + * @param p0 control point 0 + * @param p1 control point 1 + * @param p2 control point 2 + * @param p3 control point 3 + * @param startRange the starting range on the segment (use 0) + * @param endRange the end range on the segment (use 1) + * @param curveTension the curve tension + * @return the length of the segment + */ + public static float getCatmullRomP1toP2Length(Vector3f p0, Vector3f p1, Vector3f p2, Vector3f p3, float startRange, float endRange, float curveTension) { + + float epsilon = 0.001f; + float middleValue = (startRange + endRange) * 0.5f; + Vector3f start = p1.clone(); + if (startRange != 0) { + FastMath.interpolateCatmullRom(startRange, curveTension, p0, p1, p2, p3, start); + } + Vector3f end = p2.clone(); + if (endRange != 1) { + FastMath.interpolateCatmullRom(endRange, curveTension, p0, p1, p2, p3, end); + } + Vector3f middle = FastMath.interpolateCatmullRom(middleValue, curveTension, p0, p1, p2, p3); + float l = end.subtract(start).length(); + float l1 = middle.subtract(start).length(); + float l2 = end.subtract(middle).length(); + float len = l1 + l2; + if (l + epsilon < len) { + l1 = getCatmullRomP1toP2Length(p0, p1, p2, p3, startRange, middleValue, curveTension); + l2 = getCatmullRomP1toP2Length(p0, p1, p2, p3, middleValue, endRange, curveTension); + } + l = l1 + l2; + return l; + } + + + /** + * Returns the arc cosine of an angle given in radians.
+ * Special cases: + *
  • If fValue is smaller than -1, then the result is PI. + *
  • If the argument is greater than 1, then the result is 0.
+ * @param fValue The angle, in radians. + * @return fValue's acos + * @see java.lang.Math#acos(double) + */ + public static float acos(float fValue) { + if (-1.0f < fValue) { + if (fValue < 1.0f) { + return (float) Math.acos(fValue); + } + + return 0.0f; + } + + return PI; + } + + /** + * Returns the arc sine of an angle given in radians.
+ * Special cases: + *
  • If fValue is smaller than -1, then the result is -HALF_PI. + *
  • If the argument is greater than 1, then the result is HALF_PI.
+ * @param fValue The angle, in radians. + * @return fValue's asin + * @see java.lang.Math#asin(double) + */ + public static float asin(float fValue) { + if (-1.0f < fValue) { + if (fValue < 1.0f) { + return (float) Math.asin(fValue); + } + + return HALF_PI; + } + + return -HALF_PI; + } + + /** + * Returns the arc tangent of an angle given in radians.
+ * @param fValue The angle, in radians. + * @return fValue's asin + * @see java.lang.Math#atan(double) + */ + public static float atan(float fValue) { + return (float) Math.atan(fValue); + } + + /** + * A direct call to Math.atan2. + * @param fY + * @param fX + * @return Math.atan2(fY,fX) + * @see java.lang.Math#atan2(double, double) + */ + public static float atan2(float fY, float fX) { + return (float) Math.atan2(fY, fX); + } + + /** + * Rounds a fValue up. A call to Math.ceil + * @param fValue The value. + * @return The fValue rounded up + * @see java.lang.Math#ceil(double) + */ + public static int ceil(float fValue) { + return (int) Math.ceil(fValue); + } + + /** + * Fast Trig functions for x86. This forces the trig functiosn to stay + * within the safe area on the x86 processor (-45 degrees to +45 degrees) + * The results may be very slightly off from what the Math and StrictMath + * trig functions give due to rounding in the angle reduction but it will be + * very very close. + * + * note: code from wiki posting on java.net by jeffpk + */ + public static float reduceSinAngle(float radians) { + radians %= TWO_PI; // put us in -2PI to +2PI space + if (Math.abs(radians) > PI) { // put us in -PI to +PI space + radians = radians - (TWO_PI); + } + if (Math.abs(radians) > HALF_PI) {// put us in -PI/2 to +PI/2 space + radians = PI - radians; + } + + return radians; + } + + /** + * Returns sine of a value. + * + * note: code from wiki posting on java.net by jeffpk + * + * @param fValue + * The value to sine, in radians. + * @return The sine of fValue. + * @see java.lang.Math#sin(double) + */ + public static float sin2(float fValue) { + fValue = reduceSinAngle(fValue); // limits angle to between -PI/2 and +PI/2 + if (Math.abs(fValue) <= Math.PI / 4) { + return (float) Math.sin(fValue); + } + + return (float) Math.cos(Math.PI / 2 - fValue); + } + + /** + * Returns cos of a value. + * + * @param fValue + * The value to cosine, in radians. + * @return The cosine of fValue. + * @see java.lang.Math#cos(double) + */ + public static float cos2(float fValue) { + return sin2(fValue + HALF_PI); + } + + public static float cos(float v) { + return (float) Math.cos(v); + } + + public static float sin(float v) { + return (float) Math.sin(v); + } + + /** + * Returns E^fValue + * @param fValue Value to raise to a power. + * @return The value E^fValue + * @see java.lang.Math#exp(double) + */ + public static float exp(float fValue) { + return (float) Math.exp(fValue); + } + + /** + * Returns Absolute value of a float. + * @param fValue The value to abs. + * @return The abs of the value. + * @see java.lang.Math#abs(float) + */ + public static float abs(float fValue) { + if (fValue < 0) { + return -fValue; + } + return fValue; + } + + /** + * Returns a number rounded down. + * @param fValue The value to round + * @return The given number rounded down + * @see java.lang.Math#floor(double) + */ + public static int floor(float fValue) { + return (int) Math.floor(fValue); + } + + /** + * Returns 1/sqrt(fValue) + * @param fValue The value to process. + * @return 1/sqrt(fValue) + * @see java.lang.Math#sqrt(double) + */ + public static float invSqrt(float fValue) { + return (float) (1.0f / Math.sqrt(fValue)); + } + + public static float fastInvSqrt(float x) { + float xhalf = 0.5f * x; + int i = Float.floatToIntBits(x); // get bits for floating value + i = 0x5f375a86 - (i >> 1); // gives initial guess y0 + x = Float.intBitsToFloat(i); // convert bits back to float + x = x * (1.5f - xhalf * x * x); // Newton step, repeating increases accuracy + return x; + } + + /** + * Returns the log base E of a value. + * @param fValue The value to log. + * @return The log of fValue base E + * @see java.lang.Math#log(double) + */ + public static float log(float fValue) { + return (float) Math.log(fValue); + } + + /** + * Returns the logarithm of value with given base, calculated as log(value)/log(base), + * so that pow(base, return)==value (contributed by vear) + * @param value The value to log. + * @param base Base of logarithm. + * @return The logarithm of value with given base + */ + public static float log(float value, float base) { + return (float) (Math.log(value) / Math.log(base)); + } + + /** + * Returns a number raised to an exponent power. fBase^fExponent + * @param fBase The base value (IE 2) + * @param fExponent The exponent value (IE 3) + * @return base raised to exponent (IE 8) + * @see java.lang.Math#pow(double, double) + */ + public static float pow(float fBase, float fExponent) { + return (float) Math.pow(fBase, fExponent); + } + + /** + * Returns the value squared. fValue ^ 2 + * @param fValue The vaule to square. + * @return The square of the given value. + */ + public static float sqr(float fValue) { + return fValue * fValue; + } + + /** + * Returns the square root of a given value. + * @param fValue The value to sqrt. + * @return The square root of the given value. + * @see java.lang.Math#sqrt(double) + */ + public static float sqrt(float fValue) { + return (float) Math.sqrt(fValue); + } + + /** + * Returns the tangent of a value. If USE_FAST_TRIG is enabled, an approximate value + * is returned. Otherwise, a direct value is used. + * @param fValue The value to tangent, in radians. + * @return The tangent of fValue. + * @see java.lang.Math#tan(double) + */ + public static float tan(float fValue) { + return (float) Math.tan(fValue); + } + + /** + * Returns 1 if the number is positive, -1 if the number is negative, and 0 otherwise + * @param iValue The integer to examine. + * @return The integer's sign. + */ + public static int sign(int iValue) { + if (iValue > 0) { + return 1; + } + if (iValue < 0) { + return -1; + } + return 0; + } + + /** + * Returns 1 if the number is positive, -1 if the number is negative, and 0 otherwise + * @param fValue The float to examine. + * @return The float's sign. + */ + public static float sign(float fValue) { + return Math.signum(fValue); + } + + /** + * Given 3 points in a 2d plane, this function computes if the points going from A-B-C + * are moving counter clock wise. + * @param p0 Point 0. + * @param p1 Point 1. + * @param p2 Point 2. + * @return 1 If they are CCW, -1 if they are not CCW, 0 if p2 is between p0 and p1. + */ + public static int counterClockwise(Vector2f p0, Vector2f p1, Vector2f p2) { + float dx1, dx2, dy1, dy2; + dx1 = p1.x - p0.x; + dy1 = p1.y - p0.y; + dx2 = p2.x - p0.x; + dy2 = p2.y - p0.y; + if (dx1 * dy2 > dy1 * dx2) { + return 1; + } + if (dx1 * dy2 < dy1 * dx2) { + return -1; + } + if ((dx1 * dx2 < 0) || (dy1 * dy2 < 0)) { + return -1; + } + if ((dx1 * dx1 + dy1 * dy1) < (dx2 * dx2 + dy2 * dy2)) { + return 1; + } + return 0; + } + + /** + * Test if a point is inside a triangle. 1 if the point is on the ccw side, + * -1 if the point is on the cw side, and 0 if it is on neither. + * @param t0 First point of the triangle. + * @param t1 Second point of the triangle. + * @param t2 Third point of the triangle. + * @param p The point to test. + * @return Value 1 or -1 if inside triangle, 0 otherwise. + */ + public static int pointInsideTriangle(Vector2f t0, Vector2f t1, Vector2f t2, Vector2f p) { + int val1 = counterClockwise(t0, t1, p); + if (val1 == 0) { + return 1; + } + int val2 = counterClockwise(t1, t2, p); + if (val2 == 0) { + return 1; + } + if (val2 != val1) { + return 0; + } + int val3 = counterClockwise(t2, t0, p); + if (val3 == 0) { + return 1; + } + if (val3 != val1) { + return 0; + } + return val3; + } + + /** + * Returns the determinant of a 4x4 matrix. + */ + public static float determinant(double m00, double m01, double m02, + double m03, double m10, double m11, double m12, double m13, + double m20, double m21, double m22, double m23, double m30, + double m31, double m32, double m33) { + + double det01 = m20 * m31 - m21 * m30; + double det02 = m20 * m32 - m22 * m30; + double det03 = m20 * m33 - m23 * m30; + double det12 = m21 * m32 - m22 * m31; + double det13 = m21 * m33 - m23 * m31; + double det23 = m22 * m33 - m23 * m32; + return (float) (m00 * (m11 * det23 - m12 * det13 + m13 * det12) - m01 + * (m10 * det23 - m12 * det03 + m13 * det02) + m02 + * (m10 * det13 - m11 * det03 + m13 * det01) - m03 + * (m10 * det12 - m11 * det02 + m12 * det01)); + } + + /** + * Returns a random float between 0 and 1. + * + * @return A random float between 0.0f (inclusive) to + * 1.0f (exclusive). + */ + public static float nextRandomFloat() { + return rand.nextFloat(); + } + + /** + * Returns a random float between min and max. + * + * @return A random int between min (inclusive) to + * max (inclusive). + */ + public static int nextRandomInt(int min, int max) { + return (int) (nextRandomFloat() * (max - min + 1)) + min; + } + + public static int nextRandomInt() { + return rand.nextInt(); + } + + /** + * Converts a point from Spherical coordinates to Cartesian (using positive + * Y as up) and stores the results in the store var. + */ + public static Vector3f sphericalToCartesian(Vector3f sphereCoords, + Vector3f store) { + store.y = sphereCoords.x * FastMath.sin(sphereCoords.z); + float a = sphereCoords.x * FastMath.cos(sphereCoords.z); + store.x = a * FastMath.cos(sphereCoords.y); + store.z = a * FastMath.sin(sphereCoords.y); + + return store; + } + + /** + * Converts a point from Cartesian coordinates (using positive Y as up) to + * Spherical and stores the results in the store var. (Radius, Azimuth, + * Polar) + */ + public static Vector3f cartesianToSpherical(Vector3f cartCoords, + Vector3f store) { + if (cartCoords.x == 0) { + cartCoords.x = FastMath.FLT_EPSILON; + } + store.x = FastMath.sqrt((cartCoords.x * cartCoords.x) + + (cartCoords.y * cartCoords.y) + + (cartCoords.z * cartCoords.z)); + store.y = FastMath.atan(cartCoords.z / cartCoords.x); + if (cartCoords.x < 0) { + store.y += FastMath.PI; + } + store.z = FastMath.asin(cartCoords.y / store.x); + return store; + } + + /** + * Converts a point from Spherical coordinates to Cartesian (using positive + * Z as up) and stores the results in the store var. + */ + public static Vector3f sphericalToCartesianZ(Vector3f sphereCoords, + Vector3f store) { + store.z = sphereCoords.x * FastMath.sin(sphereCoords.z); + float a = sphereCoords.x * FastMath.cos(sphereCoords.z); + store.x = a * FastMath.cos(sphereCoords.y); + store.y = a * FastMath.sin(sphereCoords.y); + + return store; + } + + /** + * Converts a point from Cartesian coordinates (using positive Z as up) to + * Spherical and stores the results in the store var. (Radius, Azimuth, + * Polar) + */ + public static Vector3f cartesianZToSpherical(Vector3f cartCoords, + Vector3f store) { + if (cartCoords.x == 0) { + cartCoords.x = FastMath.FLT_EPSILON; + } + store.x = FastMath.sqrt((cartCoords.x * cartCoords.x) + + (cartCoords.y * cartCoords.y) + + (cartCoords.z * cartCoords.z)); + store.z = FastMath.atan(cartCoords.z / cartCoords.x); + if (cartCoords.x < 0) { + store.z += FastMath.PI; + } + store.y = FastMath.asin(cartCoords.y / store.x); + return store; + } + + /** + * Takes an value and expresses it in terms of min to max. + * + * @param val - + * the angle to normalize (in radians) + * @return the normalized angle (also in radians) + */ + public static float normalize(float val, float min, float max) { + if (Float.isInfinite(val) || Float.isNaN(val)) { + return 0f; + } + float range = max - min; + while (val > max) { + val -= range; + } + while (val < min) { + val += range; + } + return val; + } + + /** + * @param x + * the value whose sign is to be adjusted. + * @param y + * the value whose sign is to be used. + * @return x with its sign changed to match the sign of y. + */ + public static float copysign(float x, float y) { + if (y >= 0 && x <= -0) { + return -x; + } else if (y < 0 && x >= 0) { + return -x; + } else { + return x; + } + } + + /** + * Take a float input and clamp it between min and max. + * + * @param input + * @param min + * @param max + * @return clamped input + */ + public static float clamp(float input, float min, float max) { + return (input < min) ? min : (input > max) ? max : input; + } + + /** + * Clamps the given float to be between 0 and 1. + * + * @param input + * @return input clamped between 0 and 1. + */ + public static float saturate(float input) { + return clamp(input, 0f, 1f); + } + + /** + * Converts a single precision (32 bit) floating point value + * into half precision (16 bit). + * + * Source: http://www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf + * + * @param half The half floating point value as a short. + * @return floating point value of the half. + */ + public static float convertHalfToFloat(short half) { + switch ((int) half) { + case 0x0000: + return 0f; + case 0x8000: + return -0f; + case 0x7c00: + return Float.POSITIVE_INFINITY; + case 0xfc00: + return Float.NEGATIVE_INFINITY; + // TODO: Support for NaN? + default: + return Float.intBitsToFloat(((half & 0x8000) << 16) + | (((half & 0x7c00) + 0x1C000) << 13) + | ((half & 0x03FF) << 13)); + } + } + + public static short convertFloatToHalf(float flt) { + if (Float.isNaN(flt)) { + throw new UnsupportedOperationException("NaN to half conversion not supported!"); + } else if (flt == Float.POSITIVE_INFINITY) { + return (short) 0x7c00; + } else if (flt == Float.NEGATIVE_INFINITY) { + return (short) 0xfc00; + } else if (flt == 0f) { + return (short) 0x0000; + } else if (flt == -0f) { + return (short) 0x8000; + } else if (flt > 65504f) { + // max value supported by half float + return 0x7bff; + } else if (flt < -65504f) { + return (short) (0x7bff | 0x8000); + } else if (flt > 0f && flt < 5.96046E-8f) { + return 0x0001; + } else if (flt < 0f && flt > -5.96046E-8f) { + return (short) 0x8001; + } + + int f = Float.floatToIntBits(flt); + return (short) (((f >> 16) & 0x8000) + | ((((f & 0x7f800000) - 0x38000000) >> 13) & 0x7c00) + | ((f >> 13) & 0x03ff)); + } +} diff --git a/src/com/jme3/math/Vector2f.java b/src/com/jme3/math/Vector2f.java new file mode 100644 index 000000000..0f79ad809 --- /dev/null +++ b/src/com/jme3/math/Vector2f.java @@ -0,0 +1,743 @@ +/* + * Copyright (c) 2009-2010 jMonkeyEngine + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'jMonkeyEngine' nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.jme3.math; + +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.logging.Logger; + +/** + * Vector2f defines a Vector for a two float value vector. + * + * @author Mark Powell + * @author Joshua Slack + */ +public final class Vector2f implements Cloneable { + private static final Logger logger = Logger.getLogger(Vector2f.class.getName()); + + private static final long serialVersionUID = 1L; + + public static final Vector2f ZERO = new Vector2f(0f, 0f); + public static final Vector2f UNIT_XY = new Vector2f(1f, 1f); + + /** + * the x value of the vector. + */ + public float x; + /** + * the y value of the vector. + */ + public float y; + + /** + * Creates a Vector2f with the given initial x and y values. + * + * @param x + * The x value of this Vector2f. + * @param y + * The y value of this Vector2f. + */ + public Vector2f(float x, float y) { + this.x = x; + this.y = y; + } + + /** + * Creates a Vector2f with x and y set to 0. Equivalent to Vector2f(0,0). + */ + public Vector2f() { + x = y = 0; + } + + /** + * Creates a new Vector2f that contains the passed vector's information + * + * @param vector2f + * The vector to copy + */ + public Vector2f(Vector2f vector2f) { + this.x = vector2f.x; + this.y = vector2f.y; + } + + /** + * set the x and y values of the vector + * + * @param x + * the x value of the vector. + * @param y + * the y value of the vector. + * @return this vector + */ + public Vector2f set(float x, float y) { + this.x = x; + this.y = y; + return this; + } + + /** + * set the x and y values of the vector from another vector + * + * @param vec + * the vector to copy from + * @return this vector + */ + public Vector2f set(Vector2f vec) { + this.x = vec.x; + this.y = vec.y; + return this; + } + + /** + * add adds a provided vector to this vector creating a + * resultant vector which is returned. If the provided vector is null, null + * is returned. + * + * @param vec + * the vector to add to this. + * @return the resultant vector. + */ + public Vector2f add(Vector2f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + return new Vector2f(x + vec.x, y + vec.y); + } + + /** + * addLocal adds a provided vector to this vector internally, + * and returns a handle to this vector for easy chaining of calls. If the + * provided vector is null, null is returned. + * + * @param vec + * the vector to add to this vector. + * @return this + */ + public Vector2f addLocal(Vector2f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x += vec.x; + y += vec.y; + return this; + } + + /** + * addLocal adds the provided values to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. + * + * @param addX + * value to add to x + * @param addY + * value to add to y + * @return this + */ + public Vector2f addLocal(float addX, float addY) { + x += addX; + y += addY; + return this; + } + + /** + * add adds this vector by vec and stores the + * result in result. + * + * @param vec + * The vector to add. + * @param result + * The vector to store the result in. + * @return The result vector, after adding. + */ + public Vector2f add(Vector2f vec, Vector2f result) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + if (result == null) + result = new Vector2f(); + result.x = x + vec.x; + result.y = y + vec.y; + return result; + } + + /** + * dot calculates the dot product of this vector with a + * provided vector. If the provided vector is null, 0 is returned. + * + * @param vec + * the vector to dot with this vector. + * @return the resultant dot product of this vector and a given vector. + */ + public float dot(Vector2f vec) { + if (null == vec) { + logger.warning("Provided vector is null, 0 returned."); + return 0; + } + return x * vec.x + y * vec.y; + } + + /** + * cross calculates the cross product of this vector with a + * parameter vector v. + * + * @param v + * the vector to take the cross product of with this. + * @return the cross product vector. + */ + public Vector3f cross(Vector2f v) { + return new Vector3f(0, 0, determinant(v)); + } + + public float determinant(Vector2f v) { + return (x * v.y) - (y * v.x); + } + + /** + * Sets this vector to the interpolation by changeAmnt from this to the + * finalVec this=(1-changeAmnt)*this + changeAmnt * finalVec + * + * @param finalVec + * The final vector to interpolate towards + * @param changeAmnt + * An amount between 0.0 - 1.0 representing a percentage change + * from this towards finalVec + */ + public Vector2f interpolate(Vector2f finalVec, float changeAmnt) { + this.x = (1 - changeAmnt) * this.x + changeAmnt * finalVec.x; + this.y = (1 - changeAmnt) * this.y + changeAmnt * finalVec.y; + return this; + } + + /** + * Sets this vector to the interpolation by changeAmnt from beginVec to + * finalVec this=(1-changeAmnt)*beginVec + changeAmnt * finalVec + * + * @param beginVec + * The begining vector (delta=0) + * @param finalVec + * The final vector to interpolate towards (delta=1) + * @param changeAmnt + * An amount between 0.0 - 1.0 representing a precentage change + * from beginVec towards finalVec + */ + public Vector2f interpolate(Vector2f beginVec, Vector2f finalVec, + float changeAmnt) { + this.x = (1 - changeAmnt) * beginVec.x + changeAmnt * finalVec.x; + this.y = (1 - changeAmnt) * beginVec.y + changeAmnt * finalVec.y; + return this; + } + + /** + * Check a vector... if it is null or its floats are NaN or infinite, return + * false. Else return true. + * + * @param vector + * the vector to check + * @return true or false as stated above. + */ + public static boolean isValidVector(Vector2f vector) { + if (vector == null) return false; + if (Float.isNaN(vector.x) || + Float.isNaN(vector.y)) return false; + if (Float.isInfinite(vector.x) || + Float.isInfinite(vector.y)) return false; + return true; + } + + /** + * length calculates the magnitude of this vector. + * + * @return the length or magnitude of the vector. + */ + public float length() { + return FastMath.sqrt(lengthSquared()); + } + + /** + * lengthSquared calculates the squared value of the + * magnitude of the vector. + * + * @return the magnitude squared of the vector. + */ + public float lengthSquared() { + return x * x + y * y; + } + + /** + * distanceSquared calculates the distance squared between + * this vector and vector v. + * + * @param v the second vector to determine the distance squared. + * @return the distance squared between the two vectors. + */ + public float distanceSquared(Vector2f v) { + double dx = x - v.x; + double dy = y - v.y; + return (float) (dx * dx + dy * dy); + } + + /** + * distanceSquared calculates the distance squared between + * this vector and vector v. + * + * @param otherX x-coord + * @param otherY y-coord + * @return the distance squared between the two vectors. + */ + public float distanceSquared(float otherX, float otherY) { + double dx = x - otherX; + double dy = y - otherY; + return (float) (dx * dx + dy * dy); + } + + /** + * distance calculates the distance between this vector and + * vector v. + * + * @param v the second vector to determine the distance. + * @return the distance between the two vectors. + */ + public float distance(Vector2f v) { + return FastMath.sqrt(distanceSquared(v)); + } + + /** + * mult multiplies this vector by a scalar. The resultant + * vector is returned. + * + * @param scalar + * the value to multiply this vector by. + * @return the new vector. + */ + public Vector2f mult(float scalar) { + return new Vector2f(x * scalar, y * scalar); + } + + /** + * multLocal multiplies this vector by a scalar internally, + * and returns a handle to this vector for easy chaining of calls. + * + * @param scalar + * the value to multiply this vector by. + * @return this + */ + public Vector2f multLocal(float scalar) { + x *= scalar; + y *= scalar; + return this; + } + + /** + * multLocal multiplies a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to mult to this vector. + * @return this + */ + public Vector2f multLocal(Vector2f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x *= vec.x; + y *= vec.y; + return this; + } + + /** + * Multiplies this Vector2f's x and y by the scalar and stores the result in + * product. The result is returned for chaining. Similar to + * product=this*scalar; + * + * @param scalar + * The scalar to multiply by. + * @param product + * The vector2f to store the result in. + * @return product, after multiplication. + */ + public Vector2f mult(float scalar, Vector2f product) { + if (null == product) { + product = new Vector2f(); + } + + product.x = x * scalar; + product.y = y * scalar; + return product; + } + + /** + * divide divides the values of this vector by a scalar and + * returns the result. The values of this vector remain untouched. + * + * @param scalar + * the value to divide this vectors attributes by. + * @return the result Vector. + */ + public Vector2f divide(float scalar) { + return new Vector2f(x / scalar, y / scalar); + } + + /** + * divideLocal divides this vector by a scalar internally, + * and returns a handle to this vector for easy chaining of calls. Dividing + * by zero will result in an exception. + * + * @param scalar + * the value to divides this vector by. + * @return this + */ + public Vector2f divideLocal(float scalar) { + x /= scalar; + y /= scalar; + return this; + } + + /** + * negate returns the negative of this vector. All values are + * negated and set to a new vector. + * + * @return the negated vector. + */ + public Vector2f negate() { + return new Vector2f(-x, -y); + } + + /** + * negateLocal negates the internal values of this vector. + * + * @return this. + */ + public Vector2f negateLocal() { + x = -x; + y = -y; + return this; + } + + /** + * subtract subtracts the values of a given vector from those + * of this vector creating a new vector object. If the provided vector is + * null, an exception is thrown. + * + * @param vec + * the vector to subtract from this vector. + * @return the result vector. + */ + public Vector2f subtract(Vector2f vec) { + return subtract(vec, null); + } + + /** + * subtract subtracts the values of a given vector from those + * of this vector storing the result in the given vector object. If the + * provided vector is null, an exception is thrown. + * + * @param vec + * the vector to subtract from this vector. + * @param store + * the vector to store the result in. It is safe for this to be + * the same as vec. If null, a new vector is created. + * @return the result vector. + */ + public Vector2f subtract(Vector2f vec, Vector2f store) { + if (store == null) + store = new Vector2f(); + store.x = x - vec.x; + store.y = y - vec.y; + return store; + } + + /** + * subtract subtracts the given x,y values from those of this + * vector creating a new vector object. + * + * @param valX + * value to subtract from x + * @param valY + * value to subtract from y + * @return this + */ + public Vector2f subtract(float valX, float valY) { + return new Vector2f(x - valX, y - valY); + } + + /** + * subtractLocal subtracts a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to subtract + * @return this + */ + public Vector2f subtractLocal(Vector2f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x -= vec.x; + y -= vec.y; + return this; + } + + /** + * subtractLocal subtracts the provided values from this + * vector internally, and returns a handle to this vector for easy chaining + * of calls. + * + * @param valX + * value to subtract from x + * @param valY + * value to subtract from y + * @return this + */ + public Vector2f subtractLocal(float valX, float valY) { + x -= valX; + y -= valY; + return this; + } + + /** + * normalize returns the unit vector of this vector. + * + * @return unit vector of this vector. + */ + public Vector2f normalize() { + float length = length(); + if (length != 0) { + return divide(length); + } + + return divide(1); + } + + /** + * normalizeLocal makes this vector into a unit vector of + * itself. + * + * @return this. + */ + public Vector2f normalizeLocal() { + float length = length(); + if (length != 0) { + return divideLocal(length); + } + + return divideLocal(1); + } + + /** + * smallestAngleBetween returns (in radians) the minimum + * angle between two vectors. It is assumed that both this vector and the + * given vector are unit vectors (iow, normalized). + * + * @param otherVector + * a unit vector to find the angle against + * @return the angle in radians. + */ + public float smallestAngleBetween(Vector2f otherVector) { + float dotProduct = dot(otherVector); + float angle = FastMath.acos(dotProduct); + return angle; + } + + /** + * angleBetween returns (in radians) the angle required to + * rotate a ray represented by this vector to lie colinear to a ray + * described by the given vector. It is assumed that both this vector and + * the given vector are unit vectors (iow, normalized). + * + * @param otherVector + * the "destination" unit vector + * @return the angle in radians. + */ + public float angleBetween(Vector2f otherVector) { + float angle = FastMath.atan2(otherVector.y, otherVector.x) + - FastMath.atan2(y, x); + return angle; + } + + public float getX() { + return x; + } + + public Vector2f setX(float x) { + this.x = x; + return this; + } + + public float getY() { + return y; + } + + public Vector2f setY(float y) { + this.y = y; + return this; + } + /** + * getAngle returns (in radians) the angle represented by + * this Vector2f as expressed by a conversion from rectangular coordinates (xy) + * to polar coordinates (r, theta). + * + * @return the angle in radians. [-pi, pi) + */ + public float getAngle() { + return -FastMath.atan2(y, x); + } + + /** + * zero resets this vector's data to zero internally. + */ + public Vector2f zero() { + x = y = 0; + return this; + } + + /** + * hashCode returns a unique code for this vector object + * based on it's values. If two vectors are logically equivalent, they will + * return the same hash code value. + * + * @return the hash code value of this vector. + */ + public int hashCode() { + int hash = 37; + hash += 37 * hash + Float.floatToIntBits(x); + hash += 37 * hash + Float.floatToIntBits(y); + return hash; + } + + @Override + public Vector2f clone() { + try { + return (Vector2f) super.clone(); + } catch (CloneNotSupportedException e) { + throw new AssertionError(); // can not happen + } + } + + /** + * Saves this Vector2f into the given float[] object. + * + * @param floats + * The float[] to take this Vector2f. If null, a new float[2] is + * created. + * @return The array, with X, Y float values in that order + */ + public float[] toArray(float[] floats) { + if (floats == null) { + floats = new float[2]; + } + floats[0] = x; + floats[1] = y; + return floats; + } + + /** + * are these two vectors the same? they are is they both have the same x and + * y values. + * + * @param o + * the object to compare for equality + * @return true if they are equal + */ + public boolean equals(Object o) { + if (!(o instanceof Vector2f)) { + return false; + } + + if (this == o) { + return true; + } + + Vector2f comp = (Vector2f) o; + if (Float.compare(x, comp.x) != 0) + return false; + if (Float.compare(y, comp.y) != 0) + return false; + return true; + } + + /** + * toString returns the string representation of this vector + * object. The format of the string is such: com.jme.math.Vector2f + * [X=XX.XXXX, Y=YY.YYYY] + * + * @return the string representation of this vector. + */ + public String toString() { + return "(" + x + ", " + y + ")"; + } + + /** + * Used with serialization. Not to be called manually. + * + * @param in + * ObjectInput + * @throws IOException + * @throws ClassNotFoundException + * @see java.io.Externalizable + */ + public void readExternal(ObjectInput in) throws IOException, + ClassNotFoundException { + x = in.readFloat(); + y = in.readFloat(); + } + + /** + * Used with serialization. Not to be called manually. + * + * @param out + * ObjectOutput + * @throws IOException + * @see java.io.Externalizable + */ + public void writeExternal(ObjectOutput out) throws IOException { + out.writeFloat(x); + out.writeFloat(y); + } + + public void rotateAroundOrigin(float angle, boolean cw) { + if (cw) + angle = -angle; + float newX = FastMath.cos(angle) * x - FastMath.sin(angle) * y; + float newY = FastMath.sin(angle) * x + FastMath.cos(angle) * y; + x = newX; + y = newY; + } +} diff --git a/src/com/jme3/math/Vector3f.java b/src/com/jme3/math/Vector3f.java new file mode 100644 index 000000000..e39a6a044 --- /dev/null +++ b/src/com/jme3/math/Vector3f.java @@ -0,0 +1,1031 @@ +/* + * Copyright (c) 2009-2010 jMonkeyEngine + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'jMonkeyEngine' nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.jme3.math; + +import java.util.logging.Logger; + +/* + * -- Added *Local methods to cut down on object creation - JS + */ + +/** + * Vector3f defines a Vector for a three float value tuple. + * Vector3f can represent any three dimensional value, such as a + * vertex, a normal, etc. Utility methods are also included to aid in + * mathematical calculations. + * + * @author Mark Powell + * @author Joshua Slack + */ +public final class Vector3f implements Cloneable { + + private static final Logger logger = Logger.getLogger(Vector3f.class.getName()); + + public final static Vector3f ZERO = new Vector3f(0, 0, 0); + public final static Vector3f NAN = new Vector3f(Float.NaN, Float.NaN, Float.NaN); + public final static Vector3f UNIT_X = new Vector3f(1, 0, 0); + public final static Vector3f UNIT_Y = new Vector3f(0, 1, 0); + public final static Vector3f UNIT_Z = new Vector3f(0, 0, 1); + public final static Vector3f UNIT_XYZ = new Vector3f(1, 1, 1); + public final static Vector3f POSITIVE_INFINITY = new Vector3f( + Float.POSITIVE_INFINITY, + Float.POSITIVE_INFINITY, + Float.POSITIVE_INFINITY); + public final static Vector3f NEGATIVE_INFINITY = new Vector3f( + Float.NEGATIVE_INFINITY, + Float.NEGATIVE_INFINITY, + Float.NEGATIVE_INFINITY); + + + /** + * the x value of the vector. + */ + public float x; + + /** + * the y value of the vector. + */ + public float y; + + /** + * the z value of the vector. + */ + public float z; + + /** + * Constructor instantiates a new Vector3f with default + * values of (0,0,0). + * + */ + public Vector3f() { + x = y = z = 0; + } + + /** + * Constructor instantiates a new Vector3f with provides + * values. + * + * @param x + * the x value of the vector. + * @param y + * the y value of the vector. + * @param z + * the z value of the vector. + */ + public Vector3f(float x, float y, float z) { + this.x = x; + this.y = y; + this.z = z; + } + + /** + * Constructor instantiates a new Vector3f that is a copy + * of the provided vector + * @param copy The Vector3f to copy + */ + public Vector3f(Vector3f copy) { + this.set(copy); + } + + /** + * set sets the x,y,z values of the vector based on passed + * parameters. + * + * @param x + * the x value of the vector. + * @param y + * the y value of the vector. + * @param z + * the z value of the vector. + * @return this vector + */ + public Vector3f set(float x, float y, float z) { + this.x = x; + this.y = y; + this.z = z; + return this; + } + + /** + * set sets the x,y,z values of the vector by copying the + * supplied vector. + * + * @param vect + * the vector to copy. + * @return this vector + */ + public Vector3f set(Vector3f vect) { + this.x = vect.x; + this.y = vect.y; + this.z = vect.z; + return this; + } + + /** + * + * add adds a provided vector to this vector creating a + * resultant vector which is returned. If the provided vector is null, null + * is returned. + * + * @param vec + * the vector to add to this. + * @return the resultant vector. + */ + public Vector3f add(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + return new Vector3f(x + vec.x, y + vec.y, z + vec.z); + } + + /** + * + * add adds the values of a provided vector storing the + * values in the supplied vector. + * + * @param vec + * the vector to add to this + * @param result + * the vector to store the result in + * @return result returns the supplied result vector. + */ + public Vector3f add(Vector3f vec, Vector3f result) { + result.x = x + vec.x; + result.y = y + vec.y; + result.z = z + vec.z; + return result; + } + + /** + * addLocal adds a provided vector to this vector internally, + * and returns a handle to this vector for easy chaining of calls. If the + * provided vector is null, null is returned. + * + * @param vec + * the vector to add to this vector. + * @return this + */ + public Vector3f addLocal(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x += vec.x; + y += vec.y; + z += vec.z; + return this; + } + + /** + * + * add adds the provided values to this vector, creating a + * new vector that is then returned. + * + * @param addX + * the x value to add. + * @param addY + * the y value to add. + * @param addZ + * the z value to add. + * @return the result vector. + */ + public Vector3f add(float addX, float addY, float addZ) { + return new Vector3f(x + addX, y + addY, z + addZ); + } + + /** + * addLocal adds the provided values to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. + * + * @param addX + * value to add to x + * @param addY + * value to add to y + * @param addZ + * value to add to z + * @return this + */ + public Vector3f addLocal(float addX, float addY, float addZ) { + x += addX; + y += addY; + z += addZ; + return this; + } + + /** + * + * scaleAdd multiplies this vector by a scalar then adds the + * given Vector3f. + * + * @param scalar + * the value to multiply this vector by. + * @param add + * the value to add + */ + public Vector3f scaleAdd(float scalar, Vector3f add) { + x = x * scalar + add.x; + y = y * scalar + add.y; + z = z * scalar + add.z; + return this; + } + + /** + * + * scaleAdd multiplies the given vector by a scalar then adds + * the given vector. + * + * @param scalar + * the value to multiply this vector by. + * @param mult + * the value to multiply the scalar by + * @param add + * the value to add + */ + public Vector3f scaleAdd(float scalar, Vector3f mult, Vector3f add) { + this.x = mult.x * scalar + add.x; + this.y = mult.y * scalar + add.y; + this.z = mult.z * scalar + add.z; + return this; + } + + /** + * + * dot calculates the dot product of this vector with a + * provided vector. If the provided vector is null, 0 is returned. + * + * @param vec + * the vector to dot with this vector. + * @return the resultant dot product of this vector and a given vector. + */ + public float dot(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, 0 returned."); + return 0; + } + return x * vec.x + y * vec.y + z * vec.z; + } + + /** + * cross calculates the cross product of this vector with a + * parameter vector v. + * + * @param v + * the vector to take the cross product of with this. + * @return the cross product vector. + */ + public Vector3f cross(Vector3f v) { + return cross(v, null); + } + + /** + * cross calculates the cross product of this vector with a + * parameter vector v. The result is stored in result + * + * @param v + * the vector to take the cross product of with this. + * @param result + * the vector to store the cross product result. + * @return result, after recieving the cross product vector. + */ + public Vector3f cross(Vector3f v,Vector3f result) { + return cross(v.x, v.y, v.z, result); + } + + /** + * cross calculates the cross product of this vector with a + * parameter vector v. The result is stored in result + * + * @param otherX + * x component of the vector to take the cross product of with this. + * @param otherY + * y component of the vector to take the cross product of with this. + * @param otherZ + * z component of the vector to take the cross product of with this. + * @param result + * the vector to store the cross product result. + * @return result, after recieving the cross product vector. + */ + public Vector3f cross(float otherX, float otherY, float otherZ, Vector3f result) { + if (result == null) result = new Vector3f(); + float resX = ((y * otherZ) - (z * otherY)); + float resY = ((z * otherX) - (x * otherZ)); + float resZ = ((x * otherY) - (y * otherX)); + result.set(resX, resY, resZ); + return result; + } + + /** + * crossLocal calculates the cross product of this vector + * with a parameter vector v. + * + * @param v + * the vector to take the cross product of with this. + * @return this. + */ + public Vector3f crossLocal(Vector3f v) { + return crossLocal(v.x, v.y, v.z); + } + + /** + * crossLocal calculates the cross product of this vector + * with a parameter vector v. + * + * @param otherX + * x component of the vector to take the cross product of with this. + * @param otherY + * y component of the vector to take the cross product of with this. + * @param otherZ + * z component of the vector to take the cross product of with this. + * @return this. + */ + public Vector3f crossLocal(float otherX, float otherY, float otherZ) { + float tempx = ( y * otherZ ) - ( z * otherY ); + float tempy = ( z * otherX ) - ( x * otherZ ); + z = (x * otherY) - (y * otherX); + x = tempx; + y = tempy; + return this; + } + + public Vector3f project(Vector3f other){ + float n = this.dot(other); // A . B + float d = other.lengthSquared(); // |B|^2 + return new Vector3f(other).normalizeLocal().multLocal(n/d); + } + + /** + * length calculates the magnitude of this vector. + * + * @return the length or magnitude of the vector. + */ + public float length() { + return FastMath.sqrt(lengthSquared()); + } + + /** + * lengthSquared calculates the squared value of the + * magnitude of the vector. + * + * @return the magnitude squared of the vector. + */ + public float lengthSquared() { + return x * x + y * y + z * z; + } + + /** + * distanceSquared calculates the distance squared between + * this vector and vector v. + * + * @param v the second vector to determine the distance squared. + * @return the distance squared between the two vectors. + */ + public float distanceSquared(Vector3f v) { + double dx = x - v.x; + double dy = y - v.y; + double dz = z - v.z; + return (float) (dx * dx + dy * dy + dz * dz); + } + + /** + * distance calculates the distance between this vector and + * vector v. + * + * @param v the second vector to determine the distance. + * @return the distance between the two vectors. + */ + public float distance(Vector3f v) { + return FastMath.sqrt(distanceSquared(v)); + } + + /** + * + * mult multiplies this vector by a scalar. The resultant + * vector is returned. + * + * @param scalar + * the value to multiply this vector by. + * @return the new vector. + */ + public Vector3f mult(float scalar) { + return new Vector3f(x * scalar, y * scalar, z * scalar); + } + + /** + * + * mult multiplies this vector by a scalar. The resultant + * vector is supplied as the second parameter and returned. + * + * @param scalar the scalar to multiply this vector by. + * @param product the product to store the result in. + * @return product + */ + public Vector3f mult(float scalar, Vector3f product) { + if (null == product) { + product = new Vector3f(); + } + + product.x = x * scalar; + product.y = y * scalar; + product.z = z * scalar; + return product; + } + + /** + * multLocal multiplies this vector by a scalar internally, + * and returns a handle to this vector for easy chaining of calls. + * + * @param scalar + * the value to multiply this vector by. + * @return this + */ + public Vector3f multLocal(float scalar) { + x *= scalar; + y *= scalar; + z *= scalar; + return this; + } + + /** + * multLocal multiplies a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to mult to this vector. + * @return this + */ + public Vector3f multLocal(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x *= vec.x; + y *= vec.y; + z *= vec.z; + return this; + } + + /** + * multLocal multiplies this vector by 3 scalars + * internally, and returns a handle to this vector for easy chaining of + * calls. + * + * @param x + * @param y + * @param z + * @return this + */ + public Vector3f multLocal(float x, float y, float z) { + this.x *= x; + this.y *= y; + this.z *= z; + return this; + } + + /** + * multLocal multiplies a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to mult to this vector. + * @return this + */ + public Vector3f mult(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + return mult(vec, null); + } + + /** + * multLocal multiplies a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to mult to this vector. + * @param store result vector (null to create a new vector) + * @return this + */ + public Vector3f mult(Vector3f vec, Vector3f store) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + if (store == null) store = new Vector3f(); + return store.set(x * vec.x, y * vec.y, z * vec.z); + } + + + /** + * divide divides the values of this vector by a scalar and + * returns the result. The values of this vector remain untouched. + * + * @param scalar + * the value to divide this vectors attributes by. + * @return the result Vector. + */ + public Vector3f divide(float scalar) { + scalar = 1f/scalar; + return new Vector3f(x * scalar, y * scalar, z * scalar); + } + + /** + * divideLocal divides this vector by a scalar internally, + * and returns a handle to this vector for easy chaining of calls. Dividing + * by zero will result in an exception. + * + * @param scalar + * the value to divides this vector by. + * @return this + */ + public Vector3f divideLocal(float scalar) { + scalar = 1f/scalar; + x *= scalar; + y *= scalar; + z *= scalar; + return this; + } + + + /** + * divide divides the values of this vector by a scalar and + * returns the result. The values of this vector remain untouched. + * + * @param scalar + * the value to divide this vectors attributes by. + * @return the result Vector. + */ + public Vector3f divide(Vector3f scalar) { + return new Vector3f(x / scalar.x, y / scalar.y, z / scalar.z); + } + + /** + * divideLocal divides this vector by a scalar internally, + * and returns a handle to this vector for easy chaining of calls. Dividing + * by zero will result in an exception. + * + * @param scalar + * the value to divides this vector by. + * @return this + */ + public Vector3f divideLocal(Vector3f scalar) { + x /= scalar.x; + y /= scalar.y; + z /= scalar.z; + return this; + } + + /** + * + * negate returns the negative of this vector. All values are + * negated and set to a new vector. + * + * @return the negated vector. + */ + public Vector3f negate() { + return new Vector3f(-x, -y, -z); + } + + /** + * + * negateLocal negates the internal values of this vector. + * + * @return this. + */ + public Vector3f negateLocal() { + x = -x; + y = -y; + z = -z; + return this; + } + + /** + * + * subtract subtracts the values of a given vector from those + * of this vector creating a new vector object. If the provided vector is + * null, null is returned. + * + * @param vec + * the vector to subtract from this vector. + * @return the result vector. + */ + public Vector3f subtract(Vector3f vec) { + return new Vector3f(x - vec.x, y - vec.y, z - vec.z); + } + + /** + * subtractLocal subtracts a provided vector to this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. If the provided vector is null, null is returned. + * + * @param vec + * the vector to subtract + * @return this + */ + public Vector3f subtractLocal(Vector3f vec) { + if (null == vec) { + logger.warning("Provided vector is null, null returned."); + return null; + } + x -= vec.x; + y -= vec.y; + z -= vec.z; + return this; + } + + /** + * + * subtract + * + * @param vec + * the vector to subtract from this + * @param result + * the vector to store the result in + * @return result + */ + public Vector3f subtract(Vector3f vec, Vector3f result) { + if(result == null) { + result = new Vector3f(); + } + result.x = x - vec.x; + result.y = y - vec.y; + result.z = z - vec.z; + return result; + } + + /** + * + * subtract subtracts the provided values from this vector, + * creating a new vector that is then returned. + * + * @param subtractX + * the x value to subtract. + * @param subtractY + * the y value to subtract. + * @param subtractZ + * the z value to subtract. + * @return the result vector. + */ + public Vector3f subtract(float subtractX, float subtractY, float subtractZ) { + return new Vector3f(x - subtractX, y - subtractY, z - subtractZ); + } + + /** + * subtractLocal subtracts the provided values from this vector + * internally, and returns a handle to this vector for easy chaining of + * calls. + * + * @param subtractX + * the x value to subtract. + * @param subtractY + * the y value to subtract. + * @param subtractZ + * the z value to subtract. + * @return this + */ + public Vector3f subtractLocal(float subtractX, float subtractY, float subtractZ) { + x -= subtractX; + y -= subtractY; + z -= subtractZ; + return this; + } + + /** + * normalize returns the unit vector of this vector. + * + * @return unit vector of this vector. + */ + public Vector3f normalize() { +// float length = length(); +// if (length != 0) { +// return divide(length); +// } +// +// return divide(1); + float length = x * x + y * y + z * z; + if (length != 1f && length != 0f){ + length = 1.0f / FastMath.sqrt(length); + return new Vector3f(x * length, y * length, z * length); + } + return clone(); + } + + /** + * normalizeLocal makes this vector into a unit vector of + * itself. + * + * @return this. + */ + public Vector3f normalizeLocal() { + // NOTE: this implementation is more optimized + // than the old jme normalize as this method + // is commonly used. + float length = x * x + y * y + z * z; + if (length != 1f && length != 0f){ + length = 1.0f / FastMath.sqrt(length); + x *= length; + y *= length; + z *= length; + } + return this; + } + + /** + * maxLocal computes the maximum value for each + * component in this and other vector. The result is stored + * in this vector. + * @param other + */ + public void maxLocal(Vector3f other){ + x = other.x > x ? other.x : x; + y = other.y > y ? other.y : y; + z = other.z > z ? other.z : z; + } + + /** + * minLocal computes the minimum value for each + * component in this and other vector. The result is stored + * in this vector. + * @param other + */ + public void minLocal(Vector3f other){ + x = other.x < x ? other.x : x; + y = other.y < y ? other.y : y; + z = other.z < z ? other.z : z; + } + + /** + * zero resets this vector's data to zero internally. + */ + public Vector3f zero() { + x = y = z = 0; + return this; + } + + /** + * angleBetween returns (in radians) the angle between two vectors. + * It is assumed that both this vector and the given vector are unit vectors (iow, normalized). + * + * @param otherVector a unit vector to find the angle against + * @return the angle in radians. + */ + public float angleBetween(Vector3f otherVector) { + float dotProduct = dot(otherVector); + float angle = FastMath.acos(dotProduct); + return angle; + } + + /** + * Sets this vector to the interpolation by changeAmnt from this to the finalVec + * this=(1-changeAmnt)*this + changeAmnt * finalVec + * @param finalVec The final vector to interpolate towards + * @param changeAmnt An amount between 0.0 - 1.0 representing a precentage + * change from this towards finalVec + */ + public Vector3f interpolate(Vector3f finalVec, float changeAmnt) { + this.x=(1-changeAmnt)*this.x + changeAmnt*finalVec.x; + this.y=(1-changeAmnt)*this.y + changeAmnt*finalVec.y; + this.z=(1-changeAmnt)*this.z + changeAmnt*finalVec.z; + return this; + } + + /** + * Sets this vector to the interpolation by changeAmnt from beginVec to finalVec + * this=(1-changeAmnt)*beginVec + changeAmnt * finalVec + * @param beginVec the beging vector (changeAmnt=0) + * @param finalVec The final vector to interpolate towards + * @param changeAmnt An amount between 0.0 - 1.0 representing a precentage + * change from beginVec towards finalVec + */ + public Vector3f interpolate(Vector3f beginVec,Vector3f finalVec, float changeAmnt) { + this.x=(1-changeAmnt)*beginVec.x + changeAmnt*finalVec.x; + this.y=(1-changeAmnt)*beginVec.y + changeAmnt*finalVec.y; + this.z=(1-changeAmnt)*beginVec.z + changeAmnt*finalVec.z; + return this; + } + + /** + * Check a vector... if it is null or its floats are NaN or infinite, + * return false. Else return true. + * @param vector the vector to check + * @return true or false as stated above. + */ + public static boolean isValidVector(Vector3f vector) { + if (vector == null) return false; + if (Float.isNaN(vector.x) || + Float.isNaN(vector.y) || + Float.isNaN(vector.z)) return false; + if (Float.isInfinite(vector.x) || + Float.isInfinite(vector.y) || + Float.isInfinite(vector.z)) return false; + return true; + } + + public static void generateOrthonormalBasis(Vector3f u, Vector3f v, Vector3f w) { + w.normalizeLocal(); + generateComplementBasis(u, v, w); + } + + public static void generateComplementBasis(Vector3f u, Vector3f v, + Vector3f w) { + float fInvLength; + + if (FastMath.abs(w.x) >= FastMath.abs(w.y)) { + // w.x or w.z is the largest magnitude component, swap them + fInvLength = FastMath.invSqrt(w.x * w.x + w.z * w.z); + u.x = -w.z * fInvLength; + u.y = 0.0f; + u.z = +w.x * fInvLength; + v.x = w.y * u.z; + v.y = w.z * u.x - w.x * u.z; + v.z = -w.y * u.x; + } else { + // w.y or w.z is the largest magnitude component, swap them + fInvLength = FastMath.invSqrt(w.y * w.y + w.z * w.z); + u.x = 0.0f; + u.y = +w.z * fInvLength; + u.z = -w.y * fInvLength; + v.x = w.y * u.z - w.z * u.y; + v.y = -w.x * u.z; + v.z = w.x * u.y; + } + } + + @Override + public Vector3f clone() { + try { + return (Vector3f) super.clone(); + } catch (CloneNotSupportedException e) { + throw new AssertionError(); // can not happen + } + } + + /** + * Saves this Vector3f into the given float[] object. + * + * @param floats + * The float[] to take this Vector3f. If null, a new float[3] is + * created. + * @return The array, with X, Y, Z float values in that order + */ + public float[] toArray(float[] floats) { + if (floats == null) { + floats = new float[3]; + } + floats[0] = x; + floats[1] = y; + floats[2] = z; + return floats; + } + + /** + * are these two vectors the same? they are is they both have the same x,y, + * and z values. + * + * @param o + * the object to compare for equality + * @return true if they are equal + */ + public boolean equals(Object o) { + if (!(o instanceof Vector3f)) { return false; } + + if (this == o) { return true; } + + Vector3f comp = (Vector3f) o; + if (Float.compare(x,comp.x) != 0) return false; + if (Float.compare(y,comp.y) != 0) return false; + if (Float.compare(z,comp.z) != 0) return false; + return true; + } + + /** + * hashCode returns a unique code for this vector object based + * on it's values. If two vectors are logically equivalent, they will return + * the same hash code value. + * @return the hash code value of this vector. + */ + public int hashCode() { + int hash = 37; + hash += 37 * hash + Float.floatToIntBits(x); + hash += 37 * hash + Float.floatToIntBits(y); + hash += 37 * hash + Float.floatToIntBits(z); + return hash; + } + + /** + * toString returns the string representation of this vector. + * The format is: + * + * org.jme.math.Vector3f [X=XX.XXXX, Y=YY.YYYY, Z=ZZ.ZZZZ] + * + * @return the string representation of this vector. + */ + public String toString() { + return "(" + x + ", " + y + ", " + z + ")"; + } + + public float getX() { + return x; + } + + public Vector3f setX(float x) { + this.x = x; + return this; + } + + public float getY() { + return y; + } + + public Vector3f setY(float y) { + this.y = y; + return this; + } + + public float getZ() { + return z; + } + + public Vector3f setZ(float z) { + this.z = z; + return this; + } + + /** + * @param index + * @return x value if index == 0, y value if index == 1 or z value if index == + * 2 + * @throws IllegalArgumentException + * if index is not one of 0, 1, 2. + */ + public float get(int index) { + switch (index) { + case 0: + return x; + case 1: + return y; + case 2: + return z; + } + throw new IllegalArgumentException("index must be either 0, 1 or 2"); + } + + /** + * @param index + * which field index in this vector to set. + * @param value + * to set to one of x, y or z. + * @throws IllegalArgumentException + * if index is not one of 0, 1, 2. + */ + public void set(int index, float value) { + switch (index) { + case 0: + x = value; + return; + case 1: + y = value; + return; + case 2: + z = value; + return; + } + throw new IllegalArgumentException("index must be either 0, 1 or 2"); + } + +} diff --git a/src/shader/MultiTex.java b/src/shader/MultiTex.java new file mode 100755 index 000000000..65297c0dd --- /dev/null +++ b/src/shader/MultiTex.java @@ -0,0 +1,284 @@ +package shader; + + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import org.lwjgl.opengl.GL11; +import org.lwjgl.opengl.GL13; +import org.lwjgl.opengl.GL20; +import org.newdawn.slick.Color; +import org.newdawn.slick.Renderable; +import org.newdawn.slick.SlickException; +import org.newdawn.slick.opengl.InternalTextureLoader; +import org.newdawn.slick.opengl.Texture; + +/** + * Class to support the concept of a single artifact being + * comprised of multiple image resources.
+ * For example a colourmap, normalmap, diffusemap, and specularmap. + * This is currently extremely buggy, and I don't know why some + * things have to be the way the are. + * @author Chronocide (Jeremy Klix) + * + * + * All drawing is done starting from the top left vertex and + * moving counter clockwise.
+ */ +//TODO Make interface feel a little more like the familiar Image class +//TODO Determine a method of dealing with the case were textures +//are not all the same size. For instance should textures be +//stretched, tiled, clamped? +//TODO Way of handling images larger then the supporting cards +//max texture size ala Slicks BigImage class. +//TODO Needs way more attention to documenting inheritance. +//TODO Test using different numbers of textures. +public class MultiTex implements Renderable{ + private static int units = -1; + + /** The top left corner identifier */ + public static final int TOP_LEFT = 0; + /** The top right corner identifier */ + public static final int BOTTOM_LEFT = 1; + /** The bottom left corner identifier */ + public static final int BOTTOM_RIGHT = 3; + /** The bottom right corner identifier */ + public static final int TOP_RIGHT = 2; + + + private List textures; + + private int primaryTextureIndex = 0; + //Width and height based off primary texture loaded + private float imgWidth, imgHeight; + //Primary texture width and height clamped between 0 and 1 + private float texWidth, texHeight; + + + private float[] normals = new float[]{0,0,1, + 0,0,1, + 0,0,1, + 0,0,1}; + private float[] colours = new float[]{1,1,1,1, + 1,1,1,1, + 1,1,1,1, + 1,1,1,1}; + + /** + * Constructs a new MultiTex object using the textures + * identified in textures.
+ * The index of the textures in the list will be the texture unit + * that the texture is bound to.
+ * @param textures a list of paths to the textures to use. + * @throws SlickException If textures.size() is greater + * than the maximum number of texture units. + */ + public MultiTex(List textures)throws SlickException{ + //Check how many texture units are supported + if(units==-1){ + units = GL11.glGetInteger(GL20.GL_MAX_TEXTURE_IMAGE_UNITS); + System.out.println(units); + } + if(units < textures.size()){ + throw new UnsupportedOperationException("You attempted to " + + "create an artifact with " + textures.size() + + " textures, but your environment only supports " + + units + " texure image units."); + } + + //Create texture list + this.textures = new ArrayList(textures.size()); + + + + //Load textures into texture list. + InternalTextureLoader itl = InternalTextureLoader.get(); + for(int i = 0; i + */ + public void draw(float x, float y){ + draw(x, y, x + imgWidth, y+imgHeight, + 0, 0, imgWidth, imgHeight); + + } + + + + /** + * Draw a section of this MultTex at a particular location and + * scale on the screen.
+ * + * This is the draw method that all other overloaded draw + * methods eventually evoke.
+ * + * @param x1 + * @param y1 + * @param x2 + * @param y2 + * @param sx1 + * @param sy1 + * @param sx2 + * @param sy2 + */ + public void draw(float x1, float y1, float x2, float y2, + float sx1, float sy1, float sx2, float sy2){ + + //Bind textures to their correct locations + for(int i = 0; i < textures.size(); i++){ + GL13.glActiveTexture(GL13.GL_TEXTURE0 + i); + GL11.glEnable(GL11.GL_TEXTURE_2D); + GL11.glBindTexture(GL11.GL_TEXTURE_2D, textures.get(i).getTextureID()); + } + + GL11.glBegin(GL11.GL_QUADS); + drawEmbedded(x1, y1, x2, y2, + sx1, sy1, sx2, sy2); + GL11.glEnd(); + + //Clean up texture setting to allow basic slick to operate correctly. + for(int i = textures.size()-1; i>=0; i--){ + GL13.glActiveTexture(GL13.GL_TEXTURE0+i); + GL11.glDisable(GL11.GL_TEXTURE_2D); + } + GL11.glEnable(GL11.GL_TEXTURE_2D); + } + + + + public void draw(float x1, float y1, float x2, float y2, + float sx1, float sy1, float sx2, float sy2, + Color c){ + float[] bu = colours;//Save the colour state + + setColour(c); + draw(x1, y1, x2, y2, sx1, sy1, sx2, sy2); + + colours = bu;//Restore the colour state + } + + + + /** + * Sets the colour of a given corner.
+ * Note that this will have an effect only if: the + * fixed pixel pipeline is being used; or the applied shader + * takes the vertex colour into account.
+ * @param corner + * @param c + */ + public void setColour(int corner, Color c){ + colours[corner*4 + 0] = c.r; + colours[corner*4 + 1] = c.g; + colours[corner*4 + 2] = c.b; + colours[corner*4 + 3] = c.a; + } + + + + /** + * Sets the colour of all four corners.
+ * @param c + */ + public void setColour(Color c){ + for(int i=0; i<4; i++){ + setColour(i, c); + } + } + + + + private void drawEmbedded(float x1, float y1, float x2, float y2, + float sx1, float sy1, float sx2, float sy2){ + //TODO reduce code duplication need to produce sequence 0,1,3,2 + + //TOP LEFT + for(int i=0; iShader. A Shader may have programID of + * -1 only before construction is completed, or + * after the Shader is deleted + */ + private int programID = NOT_LOADED; + private Map vars = new HashMap(); + + + private Shader(ShaderResourceManager srm, + Collection vertex, + Collection fragment)throws SlickException{ + this.srm = srm; + StringBuilder errorMessage = new StringBuilder(); + + programID = GL20.glCreateProgram(); + + int[] shaderIds = new int[vertex.size() + fragment.size()]; + int index = 0; + + //Load Vertex Shaders + for(String vertShader: vertex){ + int vsid = srm.getVertexShaderID(vertShader); + srm.createProgramShaderDependancy(programID, vsid); + + //Add to shader ids array + shaderIds[index] = vsid; + index++; + + //Check for errors with shader + if(!compiledSuccessfully(vsid)){ + errorMessage.append("Vertex Shader "); + errorMessage.append(vertShader); + errorMessage.append(" failed to compile.\n"); + errorMessage.append(getShaderInfoLog(vsid)); + errorMessage.append("\n\n"); + } + + scanSource(vertShader); + } + + + //Load Fragment Shaders + for(String fragShader: fragment){ + int fsid = srm.getFragementShaderID(fragShader); + srm.createProgramShaderDependancy(programID, fsid); + + //Add to shader ids array + shaderIds[index] = fsid; + index++; + + //Check for errors with shader + if(!compiledSuccessfully(fsid)){ + errorMessage.append("Fragment Shader "); + errorMessage.append(fragShader); + errorMessage.append(" failed to compile.\n"); + errorMessage.append(getShaderInfoLog(fsid)); + errorMessage.append("\n\n"); + } + + scanSource(fragShader); + } + + //Attach shaders to program + for(int i=0; i l1 = new ArrayList(); + l1.add(vertexFileName); + ArrayList l2 = new ArrayList(); + l2.add(fragmentFileName); + + return new Shader(ShaderResourceManagerImpl.getSRM(), + l1, + l2); + } + + + + /** + * Reverts GL context back to the fixed pixel pipeline.
+ */ + public static void forceFixedShader(){ + GL20.glUseProgram(0); + } + + + + /** + * Sets the number of characters to be returned when printing + * errors.
Suggested values are the constants + * BRIEF, MODERATE, and VERBOSE.
+ * @param detailLevel number of characters to display for error + * messages. + */ + public static void setLoggingDetail(int detailLevel){ + logging = detailLevel; + } + + + + /** + * Deletes this shader and unloads all free resources.
+ * TODO should this be called from finalise(), or is + * that just asking for trouble? + */ + public void deleteShader(){ + srm.removeProgram(programID); + programID = NOT_LOADED; + } + + + + /** + * Returns true if this Shader has been deleted.
+ * @return true if this Shader has been deleted.
+ */ + public boolean isDeleted(){ + return programID == NOT_LOADED; + } + + + + /** + * Activates the shader.
+ */ + public void startShader(){ + if(programID == NOT_LOADED){ + throw new IllegalStateException("Cannot start shader; this" + + " Shader has been deleted"); + } + forceFixedShader(); //Not sure why this is necessary but it is. + GL20.glUseProgram(programID); + } + + + +//UNIFORM SETTERS + /** + * Sets the value of the uniform integer Variable name.
+ * @param name the variable to set. + * @param value the value to be set. + */ + public Shader setUniformIntVariable(String name, int value){ + return setUniformIntVariable(name, new int[]{value}); + } + + + + public Shader setUniformIntVariable(String name, int v0, int v1){ + return setUniformIntVariable(name, new int[]{v0, v1}); + } + + + + public Shader setUniformIntVariable(String name, + int v0, int v1, int v2){ + return setUniformIntVariable(name, new int[]{v0, v1, v2}); + } + + + + public Shader setUniformIntVariable(String name, + int v0, int v1, int v2, int v3){ + return setUniformIntVariable(name, new int[]{v0, v1, v2, v3}); + } + + + public Shader setUniformIntVariable(String name, int[] values){ + ShaderVariable var = vars.get(name); + if(var==null){ + printError(name); + }else{ + var.setUniformValue(values); + } + return this; + } + + + + /** + * Sets the value of the uniform integer Variable + * name.
+ * @param name the variable to set. + * @param value the value to be set. + */ + public Shader setUniformFloatVariable(String name, float value){ + return setUniformFloatVariable(name, new float[]{value}); + } + + + + public Shader setUniformFloatVariable(String name, + float v0, float v1){ + return setUniformFloatVariable(name, new float[]{v0, v1}); + } + + + + public Shader setUniformFloatVariable(String name, + float v0, float v1, float v2){ + return setUniformFloatVariable(name, new float[]{v0, v1, v2}); + } + + + + public Shader setUniformFloatVariable(String name, + float v0, float v1, + float v2, float v3){ + return setUniformFloatVariable(name, new float[]{v0, v1, v2, v3}); + } + + + + public Shader setUniformFloatVariable(String name, float[] values){ + ShaderVariable var = vars.get(name); + if(var==null){ + printError(name); + }else{ + var.setUniformValue(values); + } + return this; + } + + + + //TODO implement using ShaderVariable + //TODO Test + public Shader setUniformMatrix(String name, + boolean transpose, + float[][] matrix){ + //Convert matrix format + FloatBuffer matBuffer = matrixPrepare(matrix); + + //Get uniform location + int location = GL20.glGetUniformLocation(programID, name); + printError(name); + + //determine correct matrixSetter + switch(matrix.length){ + case 2: GL20.glUniformMatrix2(location, transpose, matBuffer); + break; + case 3: GL20.glUniformMatrix3(location, transpose, matBuffer); + break; + case 4: GL20.glUniformMatrix4(location, transpose, matBuffer); + break; + } + + return this; + } + + + + private FloatBuffer matrixPrepare(float[][] matrix){ + //Check argument validity + if(matrix==null){ + throw new IllegalArgumentException("The matrix may not be null"); + } + int row = matrix.length; + if(row<2){ + throw new IllegalArgumentException("The matrix must have at least 2 rows."); + } + int col = matrix[0].length; + if(col!=row){ + throw new IllegalArgumentException("The matrix must have an equal number of rows and columns."); + } + float[] unrolled = new float[row*col]; + + for(int i=0;i + * @param shaderID + * @return true if the shader compiled successfully.
+ */ + private boolean compiledSuccessfully(int shaderID){ + return GL20.glGetShader(shaderID, GL20.GL_COMPILE_STATUS)==GL11.GL_TRUE; + } + + + + /** + * Returns true if the shader program linked successfully.
+ * @return true if the shader program linked successfully.
+ */ + private boolean linkedSuccessfully(){ + int test = GL20.glGetShader(programID, GL20.GL_LINK_STATUS); + return true; +// return GL20.glGetShader(programID, GL20.GL_LINK_STATUS)==GL11.GL_TRUE; + } + + + + private String getShaderInfoLog(int shaderID){ + return GL20.glGetShaderInfoLog(shaderID, logging).trim(); + } + + + + private String getProgramInfoLog(){ + return GL20.glGetProgramInfoLog(programID, logging).trim(); + } + + + + private void scrapeVariables(String varLine){ + ShaderVariable.Qualifier qualifier = null; + ShaderVariable.Type type = null; + String name = ""; + int vecSize = 1; // if a vector the + int size = 1; //If array size of array + + String str; + Scanner scanner = new Scanner(varLine); + scanner.useDelimiter("[\\s,]++"); + + //Determine qualifier + qualifier = ShaderVariable.Qualifier.fromString(scanner.next()); + + //Determine type + str = scanner.next(); + if(str.equals("float")){ + type = ShaderVariable.Type.FLOAT; + }else if(str.matches("[u]?int|sampler[123]D")){ + type = ShaderVariable.Type.INTEGER; + }else if(str.equals("bool")){ + type = ShaderVariable.Type.BOOLEAN; + }else if(str.matches("[bdiu]?vec[234]")){ + char c = str.charAt(0); + switch(c){ + case 'b': + type = ShaderVariable.Type.BOOLEAN; break; + case 'd': + type = ShaderVariable.Type.DOUBLE; break; + case 'i': + case 'u': + type = ShaderVariable.Type.INTEGER; break; + case 'v': + type = ShaderVariable.Type.FLOAT; break; + } + + str = str.substring(str.length()-1); + vecSize = Integer.parseInt(str); + } + + + //Determine variable names + while(scanner.hasNext("[\\w_]+[\\w\\d_]*(\\[\\d+\\])?")){ + name = scanner.next(); + if(name.contains("]")){ + String sub = name.substring(name.indexOf('[')+1, name.length()-1); + size = Integer.parseInt(sub); + name = name.substring(0, name.indexOf('[')).trim(); + } + + ShaderVariable var = + new ShaderVariable(programID, + name, qualifier, type, vecSize, size); + vars.put(var.name, var); + } + } + + + + private void scanSource(String filename){ + Scanner scanner = new Scanner(ResourceLoader.getResourceAsStream(filename)); + scanner.useDelimiter(";|\\{|\\}"); + while(scanner.hasNext()){ + while(scanner.hasNext("\\s*?(uniform|attribute|varying).*")){ + scrapeVariables(scanner.next().trim()); + } + scanner.next(); + } + } +} diff --git a/src/shader/ShaderManagerImpl.java b/src/shader/ShaderManagerImpl.java new file mode 100755 index 000000000..ea2753107 --- /dev/null +++ b/src/shader/ShaderManagerImpl.java @@ -0,0 +1,197 @@ +package shader; + +import java.io.DataInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.ByteBuffer; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +import org.lwjgl.BufferUtils; +import org.lwjgl.opengl.GL20; +import org.newdawn.slick.SlickException; +import org.newdawn.slick.util.ResourceLoader; + +/** + * A simple class used to prevent duplicate shaders from + * being loaded and compiled onto the video card.
+ * @author Chronocide (Jeremy Klix) + */ +class ShaderResourceManagerImpl implements ShaderResourceManager{ + private static final ShaderResourceManager SRM = new ShaderResourceManagerImpl(); + + + private Map shaderMap = new HashMap(); + private Map> shaderToPrograms = new HashMap>(); //for every shader lists all the programs that use it + private Map> programToShaders = new HashMap>(); //for every program lists the shaders it uses + + + //Constructor + private ShaderResourceManagerImpl(){ + //Private Constructor to prevent external extension + } + + + + //Factory Method + static ShaderResourceManager getSRM(){ + return SRM; + } + + + + /** + * Fetches a shader id for a given fragment shader, generating + * a new id if necessary.
+ * + * @param fragmentFileName the fragment shader to fetch an id for. + * @returns shaderID for a given fragment shader.
+ */ + public int getFragementShaderID(String fragmentFileName)throws SlickException{ + Integer id = shaderMap.get(fragmentFileName); + if(id==null){ + id = GL20.glCreateShader(GL20.GL_FRAGMENT_SHADER); + shaderMap.put(fragmentFileName, id); + + GL20.glShaderSource(id, getProgramCode(fragmentFileName)); + GL20.glCompileShader(id); + } + return id; + } + + + + /** + * Fetches a shader id for a given vertex shader, generating + * a new id if necessary.
+ * + * @param vertexFileName the vertex shader to fetch an id for. + * @returns shaderID for a given vertex shader.
+ */ + public int getVertexShaderID(String vertexFileName)throws SlickException{ + Integer id = shaderMap.get(vertexFileName); + if(id==null){ + id = GL20.glCreateShader(GL20.GL_VERTEX_SHADER); + shaderMap.put(vertexFileName, id); + + GL20.glShaderSource(id, getProgramCode(vertexFileName)); + GL20.glCompileShader(id); + } + return id; + } + + + + /** + * Link a shader that the shader program depends on to operate.
+ * @param programID + * @param shaderID + */ + public void createProgramShaderDependancy(int programID, + int shaderID){ + if(!shaderMap.containsValue(shaderID)){ + throw new IllegalArgumentException("Cannot link a shader " + + "id that does not exist."); + } + + //Add Shader to list of shaders used by program + Set shaders = programToShaders.get(programID); + if(shaders==null){ + shaders = new HashSet(); + programToShaders.put(programID, shaders); + } + shaders.add(shaderID); + + //Add program to list of programs used by Shader + Set programs = shaderToPrograms.get(shaderID); + if(programs==null){ + programs = new HashSet(); + shaderToPrograms.put(shaderID, programs); + } + programs.add(programID); + } + + + + public void createProgramShaderDependancies(int programID, + Iterable ids){ + for(int id : ids){ + createProgramShaderDependancy(programID, id); + } + } + + + + /** + * Removes the program.
+ * After calling this method the program specified will no longer + * be loaded, nor will any shaders that were still in use only by + * only that program.
+ * + * @params programID the ID of the program to remove. + */ + //This is a rather inefficient implementation however, it need not + //be fast and this representation is very simple to follow and + //debug. + public void removeProgram(int programID){ + Set shaders = programToShaders.get(programID); + if(shaders==null){ + throw new IllegalArgumentException("The programID " + + programID + + "does not exist"); + } + + //detach Shaders from program + for(int id : shaders){ + GL20.glDetachShader(programID, id); + } + + //Delete unused shaders + for(int id : shaders){ + Set progs = shaderToPrograms.get(id); + progs.remove(programID); + if(progs.isEmpty()){ + GL20.glDeleteShader(id); + shaderToPrograms.remove(id); + } + } + + //Delete Program + GL20.glDeleteProgram(programID); + programToShaders.remove(programID); + } + + + + /** + * Gets the program code from the file filename and puts + * it into a ByteBuffer.
+ * @param filename the full name of the file. + * @return a ByteBuffer containing the program code. + * @throws SlickException + */ + private ByteBuffer getProgramCode(String filename)throws SlickException{ + InputStream fileInputStream = null; + byte[] shaderCode = null; + + fileInputStream = ResourceLoader.getResourceAsStream(filename); + DataInputStream dataStream = new DataInputStream(fileInputStream); + try{ + dataStream.readFully(shaderCode = new byte[fileInputStream.available()]); + fileInputStream.close(); + dataStream.close(); + }catch (IOException e) { + throw new SlickException(e.getMessage()); + } + + ByteBuffer shaderPro = BufferUtils.createByteBuffer(shaderCode.length); + + shaderPro.put(shaderCode); + shaderPro.flip(); + + return shaderPro; + } + +} diff --git a/src/shader/ShaderResourceManager.java b/src/shader/ShaderResourceManager.java new file mode 100755 index 000000000..ecc9e3105 --- /dev/null +++ b/src/shader/ShaderResourceManager.java @@ -0,0 +1,25 @@ +package shader; + +import org.newdawn.slick.SlickException; + + +/** + * Simply interface for component that manages shaders source files. + * @author Chronocide (Jeremy Klix) + * + */ +public interface ShaderResourceManager{ + + int getFragementShaderID(String fragmentFileName)throws SlickException; + + int getVertexShaderID(String vertexFileName)throws SlickException; + + /** + * Link a shader that the shader program depends on to operate.
+ * @param programID + * @param shaderID + */ + void createProgramShaderDependancy(int programID, int shaderID); + + void removeProgram(int programID); +} diff --git a/src/shader/ShaderVariable.java b/src/shader/ShaderVariable.java new file mode 100755 index 000000000..87e66a86e --- /dev/null +++ b/src/shader/ShaderVariable.java @@ -0,0 +1,234 @@ +package shader; + +import java.nio.FloatBuffer; +import java.nio.IntBuffer; +import java.util.HashMap; +import java.util.Map; + +import org.lwjgl.BufferUtils; +import org.lwjgl.opengl.GL20; + + +/** + * Class used to keep track of variables associated with this + * shader.
+ * + * @author Chronocide (Jeremy Klix) + * + */ +class ShaderVariable{ + public enum Qualifier{ + ATTRIBUTE("attribute"), UNIFORM("uniform"), VARYING("varying"); + + private static final Map stringToEnum = + new HashMap(); + + static{ + for(ShaderVariable.Qualifier qual : values()){ + stringToEnum.put(qual.toString(),qual); + } + } + + private String name; + + + Qualifier(String name){ + this.name = name; + } + + public String toString(){ + return name; + } + + public static ShaderVariable.Qualifier fromString(String token){ + return stringToEnum.get(token); + } + } + + public enum Type{ + BOOLEAN("boolean"), DOUBLE("double"), FLOAT("float"), + INTEGER("integer"); + + private String name; + + Type(String name){ + this.name = name; + } + + public String toString(){ + return name; + } + + } + + private static final String TYPE_WARN = + "Warning!\nProblem setting %s variable. " + + "Expected type %s but got type %s instead.\n"; + private static final String QUAL_WARN = + "Warning!\nProblem setting %s variable. " + + "Expected qualifier %s but got %s instead.\n"; + + private ShaderVariable.Qualifier qualifier = null; + private ShaderVariable.Type type = null; + private int vecSize; //size of vector + private int size; //size of array non arrays are size 1 + private int programID; + + + private int location = -1; + + /**Set true if GLSL has removed this unused variable*/ + private boolean isCulled = false; + String name = ""; + + ShaderVariable(int programID, String name, + ShaderVariable.Qualifier qual, + ShaderVariable.Type type, + int vecSize, + int size){ + this.programID = programID; + this.name = name; + + this.qualifier = qual; + this.type = type; + if(vecSize<1){ + throw new IllegalArgumentException("size of elements must be greater than 0"); + } + this.vecSize = vecSize; + if(size<1){ + throw new IllegalArgumentException("number of elements must be greater than 0"); + } + this.size = size; + } + + + + public String toString(){ + return name; + } + + + + public boolean equals(Object obj){ + if(obj instanceof ShaderVariable){ + return this.toString().equals(obj.toString()); + } + return false; + } + + + + public int hashCode(){ + return name.hashCode(); + } + + + //TODO TEST + void setUniformValue(boolean[] vals){ + if(this.type!=Type.BOOLEAN){ + System.err.printf(TYPE_WARN, this.name, this.type, Type.BOOLEAN); + } + if(this.qualifier!=Qualifier.UNIFORM){ + System.err.printf(QUAL_WARN, this.name, this.qualifier, Qualifier.UNIFORM); + } + if(vals.length!=vecSize){ + throw new AssertionError("Incorrect number of arguments."); + } + + //No GL methods to set boolean uniforms exist + if(location==-1){ + CharSequence param = new StringBuffer(name); + location = GL20.glGetUniformLocation(programID, param); + locationCheck(); + } + + IntBuffer fb = BufferUtils.createIntBuffer(vals.length); + for(boolean b : vals){ + fb.put(b? 1 : 0); + } + fb.flip(); + switch(vecSize){ + case 1: GL20.glUniform1(location, fb); break; + case 2: GL20.glUniform2(location, fb); break; + case 3: GL20.glUniform3(location, fb); break; + case 4: GL20.glUniform4(location, fb); break; + } + } + + + + void setUniformValue(float[] vals){ + if(this.type!=Type.FLOAT){ + System.err.printf(TYPE_WARN, this.name, this.type, Type.FLOAT); + } + if(this.qualifier!=Qualifier.UNIFORM){ + System.err.printf(QUAL_WARN, this.name, this.qualifier, Qualifier.UNIFORM); + } + if(vals.length!=vecSize*size){ + throw new AssertionError("Incorrect number of values.\n" + + "Expected " + vecSize*size + " vlaues but got " + + vals.length + " values instead."); + } + + if(location==-1){ + CharSequence param = new StringBuffer(name); + location = GL20.glGetUniformLocation(programID, param); + locationCheck(); + } + + FloatBuffer fb = BufferUtils.createFloatBuffer(vals.length); + fb.put(vals); + fb.flip(); + switch(vecSize){ + case 1: GL20.glUniform1(location, fb); break; + case 2: GL20.glUniform2(location, fb); break; + case 3: GL20.glUniform3(location, fb); break; + case 4: GL20.glUniform4(location, fb); break; + } + } + + + + void setUniformValue(int[] vals){ + if(this.type!=Type.INTEGER){ + System.err.printf(TYPE_WARN, this.type, Type.INTEGER); + } + if(this.qualifier!=Qualifier.UNIFORM){ + System.err.printf(QUAL_WARN, this.name, this.qualifier, Qualifier.UNIFORM); + } + if(vals.length!=vecSize*size){ + throw new AssertionError("Incorrect number of values.\n" + + "Expected " + vecSize*size + " vlaues but got " + + vals.length + " values instead."); + } + + if(location==-1){ + CharSequence param = new StringBuffer(name); + location = GL20.glGetUniformLocation(programID, param); + locationCheck(); + } + + IntBuffer fb = BufferUtils.createIntBuffer(vals.length); + fb.put(vals); + fb.flip(); + switch(vecSize){ + case 1: GL20.glUniform1(location, fb); break; + case 2: GL20.glUniform2(location, fb); break; + case 3: GL20.glUniform3(location, fb); break; + case 4: GL20.glUniform4(location, fb); break; + } + } + + + + private void locationCheck(){ + if(location==-1 && !isCulled){ + System.err.println("Location for variable " + name + + "could not be found.\nGLSL may remove " + + "any vairable that does not contribute " + + "to an output. Check and ensure " + + "that " + name + "is an active variable.\n"); + isCulled = true; + } + } +} \ No newline at end of file diff --git a/work_files/.gitattributes b/work_files/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/Attack momentum calculator.numbers b/work_files/Attack momentum calculator.numbers new file mode 100644 index 000000000..20e9cc32f Binary files /dev/null and b/work_files/Attack momentum calculator.numbers differ diff --git a/work_files/InventoryHashtable.numbers b/work_files/InventoryHashtable.numbers new file mode 100755 index 000000000..84529d1f1 Binary files /dev/null and b/work_files/InventoryHashtable.numbers differ diff --git a/work_files/Joypad control.numbers/Index.zip b/work_files/Joypad control.numbers/Index.zip new file mode 100755 index 000000000..3bab7b53a Binary files /dev/null and b/work_files/Joypad control.numbers/Index.zip differ diff --git a/work_files/Joypad control.numbers/Metadata/BuildVersionHistory.plist b/work_files/Joypad control.numbers/Metadata/BuildVersionHistory.plist new file mode 100755 index 000000000..426147e8b --- /dev/null +++ b/work_files/Joypad control.numbers/Metadata/BuildVersionHistory.plist @@ -0,0 +1,15 @@ + + + + + numbers-trunk-20080702_1 + numbers-trunk-20080731_1 + numbers-trunk-20080801_2 + numbers-trunk-20080909_1 + numbers-trunk-20080911_1 + numbers-trunk-20080926_1 + numbers-trunk-20081016_1 + local build-Oct 16 2012 + M3.0.1-1483-1 + + diff --git a/work_files/Joypad control.numbers/Metadata/DocumentIdentifier b/work_files/Joypad control.numbers/Metadata/DocumentIdentifier new file mode 100755 index 000000000..5426a18b4 --- /dev/null +++ b/work_files/Joypad control.numbers/Metadata/DocumentIdentifier @@ -0,0 +1 @@ +54874EF4-5D25-4B52-8A3E-84AFFFAC77D3 \ No newline at end of file diff --git a/work_files/Joypad control.numbers/Metadata/Properties.plist b/work_files/Joypad control.numbers/Metadata/Properties.plist new file mode 100755 index 000000000..fa2088fc3 Binary files /dev/null and b/work_files/Joypad control.numbers/Metadata/Properties.plist differ diff --git a/work_files/Joypad control.numbers/preview-micro.jpg b/work_files/Joypad control.numbers/preview-micro.jpg new file mode 100755 index 000000000..2e3712045 Binary files /dev/null and b/work_files/Joypad control.numbers/preview-micro.jpg differ diff --git a/work_files/Joypad control.numbers/preview-web.jpg b/work_files/Joypad control.numbers/preview-web.jpg new file mode 100755 index 000000000..d8aecc00a Binary files /dev/null and b/work_files/Joypad control.numbers/preview-web.jpg differ diff --git a/work_files/Joypad control.numbers/preview.jpg b/work_files/Joypad control.numbers/preview.jpg new file mode 100755 index 000000000..5985a3596 Binary files /dev/null and b/work_files/Joypad control.numbers/preview.jpg differ diff --git a/work_files/Jump power by pressing time.gcx b/work_files/Jump power by pressing time.gcx new file mode 100755 index 000000000..c270d184f Binary files /dev/null and b/work_files/Jump power by pressing time.gcx differ diff --git a/work_files/Map chunk data format.numbers/Index.zip b/work_files/Map chunk data format.numbers/Index.zip new file mode 100755 index 000000000..76dd6ce05 Binary files /dev/null and b/work_files/Map chunk data format.numbers/Index.zip differ diff --git a/work_files/Map chunk data format.numbers/Metadata/BuildVersionHistory.plist b/work_files/Map chunk data format.numbers/Metadata/BuildVersionHistory.plist new file mode 100755 index 000000000..8d353c704 --- /dev/null +++ b/work_files/Map chunk data format.numbers/Metadata/BuildVersionHistory.plist @@ -0,0 +1,15 @@ + + + + + numbers-trunk-20080702_1 + numbers-trunk-20080731_1 + numbers-trunk-20080801_2 + numbers-trunk-20080909_1 + numbers-trunk-20080911_1 + numbers-trunk-20080926_1 + numbers-trunk-20081016_1 + local build-Oct 16 2012 + M3.1-1769-1 + + diff --git a/work_files/Map chunk data format.numbers/Metadata/DocumentIdentifier b/work_files/Map chunk data format.numbers/Metadata/DocumentIdentifier new file mode 100755 index 000000000..018863838 --- /dev/null +++ b/work_files/Map chunk data format.numbers/Metadata/DocumentIdentifier @@ -0,0 +1 @@ +DDAED13E-5DFB-407C-AAD2-A0A2DEC89519 \ No newline at end of file diff --git a/work_files/Map chunk data format.numbers/Metadata/Properties.plist b/work_files/Map chunk data format.numbers/Metadata/Properties.plist new file mode 100755 index 000000000..c7b3b052e Binary files /dev/null and b/work_files/Map chunk data format.numbers/Metadata/Properties.plist differ diff --git a/work_files/Map chunk data format.numbers/preview-micro.jpg b/work_files/Map chunk data format.numbers/preview-micro.jpg new file mode 100755 index 000000000..128a099dc Binary files /dev/null and b/work_files/Map chunk data format.numbers/preview-micro.jpg differ diff --git a/work_files/Map chunk data format.numbers/preview-web.jpg b/work_files/Map chunk data format.numbers/preview-web.jpg new file mode 100755 index 000000000..1ab37b8fc Binary files /dev/null and b/work_files/Map chunk data format.numbers/preview-web.jpg differ diff --git a/work_files/Map chunk data format.numbers/preview.jpg b/work_files/Map chunk data format.numbers/preview.jpg new file mode 100755 index 000000000..9c4346f0a Binary files /dev/null and b/work_files/Map chunk data format.numbers/preview.jpg differ diff --git a/work_files/Map chunk data format.pdf b/work_files/Map chunk data format.pdf new file mode 100755 index 000000000..251a7849f Binary files /dev/null and b/work_files/Map chunk data format.pdf differ diff --git a/work_files/Map data format.numbers b/work_files/Map data format.numbers new file mode 100644 index 000000000..8f7bffbf3 Binary files /dev/null and b/work_files/Map data format.numbers differ diff --git a/work_files/Map data format.pdf b/work_files/Map data format.pdf new file mode 100644 index 000000000..124c12fb0 Binary files /dev/null and b/work_files/Map data format.pdf differ diff --git a/work_files/MaterialCalc.numbers b/work_files/MaterialCalc.numbers new file mode 100755 index 000000000..27258c87a Binary files /dev/null and b/work_files/MaterialCalc.numbers differ diff --git a/work_files/Player pos.gcx b/work_files/Player pos.gcx new file mode 100755 index 000000000..64ef8d26e Binary files /dev/null and b/work_files/Player pos.gcx differ diff --git a/work_files/PunchedTapeComposer.lua b/work_files/PunchedTapeComposer.lua new file mode 100755 index 000000000..7aa934804 --- /dev/null +++ b/work_files/PunchedTapeComposer.lua @@ -0,0 +1,177 @@ +#!/usr/local/bin/lua + +-- Terrarum Punched tape music roll composer +-- Copyright 2013 SKYHi14 +-- See SKYHi14.nfo for license. +-- +-- Punched tape music roll format +-- Range: 0 - 2^63 - 1 +-- A1 ---- A2 ---- A3 ---- A4 ---- A5 ---- A6 AS6 B6 +-- 2^0 ---- 12 ---- 24 ---- 36 ---- 48 ---- 60 61 62 +-- +-- Byte 0-7F 80-FF 100-103 104+ +-- Desc Name Author Tempo Data +-- +-- Output format: signed long (little endian) +-- If you are not capable of Lua, there is Python version available + +A_1 = 2^0 +AS1 = 2^1 +B_1 = 2^2 +C_1 = 2^3 +CS1 = 2^4 +D_1 = 2^5 +DS1 = 2^6 +E_1 = 2^7 +F_1 = 2^8 +FS1 = 2^9 +G_1 = 2^10 +GS1 = 2^11 + +A_2 = 2^12 +AS2 = 2^13 +B_2 = 2^14 +C_2 = 2^15 +CS2 = 2^16 +D_2 = 2^17 +DS2 = 2^18 +E_2 = 2^19 +F_2 = 2^20 +FS2 = 2^21 +G_2 = 2^22 +GS2 = 2^23 + +A_3 = 2^24 +AS3 = 2^25 +B_3 = 2^26 +C_3 = 2^27 +CS3 = 2^28 +D_3 = 2^29 +DS3 = 2^30 +E_3 = 2^31 +F_3 = 2^32 +FS3 = 2^33 +G_3 = 2^34 +GS3 = 2^35 + +A_4 = 2^36 +AS4 = 2^37 +B_4 = 2^38 +C_4 = 2^39 +CS4 = 2^40 +D_4 = 2^41 +DS4 = 2^42 +E_4 = 2^43 +F_4 = 2^44 +FS4 = 2^45 +G_4 = 2^46 +GS4 = 2^47 + +A_5 = 2^48 +AS5 = 2^49 +B_5 = 2^50 +C_5 = 2^51 +CS5 = 2^52 +D_5 = 2^53 +DS5 = 2^54 +E_5 = 2^55 +F_5 = 2^56 +FS5 = 2^57 +G_5 = 2^58 +GS5 = 2^59 + +A_6 = 2^60 +AS6 = 2^61 +B_6 = 2^62 + +function main() + musicRoll = {C_2, E_2, G_2, C_2 + E_2 + G_2, 0} -- Add your music roll! + SongName = "ANNYEONG SAESANG BY LUA" -- within 127 characters + SongAuthor = "LUA" -- within 127 characters + tempo = 90 -- greater than 0! + + print("Processing your music roll. Hold on.") + + tapePuncher(SongName, SongAuthor, tempo, musicRoll) + + print("Wrote file to " .. SongName .. ".") +end + +function tapePuncher(name, author, tempo, roll) + SaveDirectory = "/DirectoryToBeSaved\\WithoutFilename" + + local file = io.open(SaveDirectory .. name, "wb") + + file:write( string.char(0) ) + + for i = 1, 127, 1 do + if i <= #name then + file:write( string.char( string.byte(name, i) ) ) + else + file:write( string.char(0) ) + end + end + + file:write( string.char(0) ) + + for i = 1, 127, 1 do + if i <= #author then + file:write( string.char( string.byte(author, i) ) ) + else + file:write( string.char(0) ) + end + end + + file:write( string.char(tempo % 256) ) + file:write( string.char( tempo - ( tempo % 256 ) ) ) + file:write( string.char(0) ) + file:write( string.char(0) ) + + for i = 1, #roll, 1 do + binArray = toBin( roll[i] ) + + for i = 1, 8, 1 do + if i <= #binArray then + file:write( binArray[#binArray + 1 - i] ) + else + file:write( string.char(0) ) + end + end + end + + file:close() +end + +function toBin(num) + output = {} + + sHexNum = DEC_HEX(num) + if #sHexNum % 2 == 1 then + sHexNum = "0" .. sHexNum + end + + for i = 1, #sHexNum, 2 do + --print( hexToInt(string.byte(sHexNum, i)) * 16 + hexToInt(string.byte(sHexNum, i + 1)) ) + output[#output + 1] = string.char( hexToInt(string.byte(sHexNum, i)) * 16 + hexToInt(string.byte(sHexNum, i + 1)) ) + end + + return output +end + +function DEC_HEX(IN) + local B,K,OUT,I,D=16,"0123456789ABCDEF","",0 + while IN>0 do + I=I+1 + IN,D=math.floor(IN/B),math.mod(IN,B)+1 + OUT=string.sub(K,D,D)..OUT + end + return OUT +end + +function hexToInt(int) + chr = string.char(int) + hexTable = {["0"] = 0, ["1"] = 1, ["2"] = 2, ["3"] = 3, ["4"] = 4, ["5"] = 5, ["6"] = 6, ["7"] = 7, ["8"] = 8, ["9"] = 9, ["A"] = 10, ["B"] = 11, ["C"] = 12, ["D"] = 13, ["E"] = 14, ["F"] = 15} + return hexTable[chr] +end + +main() \ No newline at end of file diff --git a/work_files/PunchedTapeComposer.py b/work_files/PunchedTapeComposer.py new file mode 100755 index 000000000..47923d353 --- /dev/null +++ b/work_files/PunchedTapeComposer.py @@ -0,0 +1,157 @@ +#!/usr/bin/python + +# Terrarum Punched tape music roll composer +# Copyright 2013 SKYHi14 +# See SKYHi14.nfo for license. +# +# Punched tape music roll format +# Range: 0 - 2**32 - 1 +# A1 ---- A2 ---- A3 ---- A4 ---- A5 ---- A6 AS6 B6 +# 2**0 ---- 12 ---- 24 ---- 36 ---- 48 ---- 60 61 62 +# +# Byte 0-7F 80-FF 100-103 104+ +# Desc Name Author Tempo Data +# +# Output format: signed long (little endian) +# If you are not capable of Python, there is Lua version available + +A_1 = 2**0 +AS1 = 2**1 +B_1 = 2**2 +C_1 = 2**3 +CS1 = 2**4 +D_1 = 2**5 +DS1 = 2**6 +E_1 = 2**7 +F_1 = 2**8 +FS1 = 2**9 +G_1 = 2**10 +GS1 = 2**11 + +A_2 = 2**12 +AS2 = 2**13 +B_2 = 2**14 +C_2 = 2**15 +CS2 = 2**16 +D_2 = 2**17 +DS2 = 2**18 +E_2 = 2**19 +F_2 = 2**20 +FS2 = 2**21 +G_2 = 2**22 +GS2 = 2**23 + +A_3 = 2**24 +AS3 = 2**25 +B_3 = 2**26 +C_3 = 2**27 +CS3 = 2**28 +D_3 = 2**29 +DS3 = 2**30 +E_3 = 2**31 +F_3 = 2**32 +FS3 = 2**33 +G_3 = 2**34 +GS3 = 2**35 + +A_4 = 2**36 +AS4 = 2**37 +B_4 = 2**38 +C_4 = 2**39 +CS4 = 2**40 +D_4 = 2**41 +DS4 = 2**42 +E_4 = 2**43 +F_4 = 2**44 +FS4 = 2**45 +G_4 = 2**46 +GS4 = 2**47 + +A_5 = 2**48 +AS5 = 2**49 +B_5 = 2**50 +C_5 = 2**51 +CS5 = 2**52 +D_5 = 2**53 +DS5 = 2**54 +E_5 = 2**55 +F_5 = 2**56 +FS5 = 2**57 +G_5 = 2**58 +GS5 = 2**59 + +A_6 = 2**60 +AS6 = 2**61 +B_6 = 2**62 + +def main(): + musicRoll = [C_2, E_2, G_2, C_2 + E_2 + G_2, 0] # Add your music roll! + SongName = "ANNYEONG SAESANG" # within 127 characters + SongAuthor = "PYTHON" # within 127 characters + tempo = 90 # greater than 0! + + print("Processing your music roll. Hold on.") + + tapePuncher(SongName, SongAuthor, tempo, musicRoll) + + print("Wrote file to " + SongName + ".") + +def tapePuncher(name, author, tempo, roll): + binArray = [] + + SaveDirectory = "/DirectoryToBeSaved\\WithoutFilename" + + file = open(SaveDirectory + name, "wb") + + file.write( chr(0) ) + + for i in range(1, 128): + if i <= len(name): + file.write( chr( ord(name[i - 1]) ) ) + else: + file.write( chr(0) ) + + file.write( chr(0) ) + + for i in range(1, 128): + if i <= len(author): + file.write( chr( ord(author[i - 1]) ) ) + else: + file.write( chr(0) ) + + file.write( chr(tempo % 256) ) + file.write( chr( tempo - ( tempo % 256 ) ) ) + file.write( chr(0) ) + file.write( chr(0) ) + + for i in range(1, len(roll)): + binArray = toBin( roll[i - 1] ) + + for i in range(1, 9): + if i <= len(binArray): + file.write( binArray[len(binArray) - i] ) + else: + file.write( chr(0) ) + + file.close() + +def toBin(num): + output = [] + + sHexNum = hex(num)[2:] + if len(sHexNum) % 2 == 1: + sHexNum = "0" + sHexNum + + for i in range(1, len(sHexNum)): + # print( hexToInt(ord(sHexNum[i])) * 16 + hexToInt(ord(sHexNum[i + 1])) ) + output.append( chr( hexToInt(ord(sHexNum[i - 1])) * 16 + hexToInt(ord(sHexNum[i])) ) ) + + return output + +def hexToInt(num): + char = chr(num) + hexTable = {"0":0, "1":1, "2":2, "3":3, "4":4, "5":5, "6":6, "7":7, "8":8, "9":9, "a":10, "b":11, "c":12, "d":13, "e":14, "f":15} + return hexTable[char] + + +main() \ No newline at end of file diff --git a/work_files/Sky colour sample.png b/work_files/Sky colour sample.png new file mode 100755 index 000000000..4829dc9ad Binary files /dev/null and b/work_files/Sky colour sample.png differ diff --git a/work_files/graphics/.gitattributes b/work_files/graphics/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/Co_Ti_base.acv b/work_files/graphics/Co_Ti_base.acv new file mode 100755 index 000000000..14d0a4b59 Binary files /dev/null and b/work_files/graphics/Co_Ti_base.acv differ diff --git a/work_files/graphics/Steel2.acv b/work_files/graphics/Steel2.acv new file mode 100755 index 000000000..fa700f2b1 Binary files /dev/null and b/work_files/graphics/Steel2.acv differ diff --git a/work_files/graphics/StoneGUITex.jpg b/work_files/graphics/StoneGUITex.jpg new file mode 100755 index 000000000..b8a155dba Binary files /dev/null and b/work_files/graphics/StoneGUITex.jpg differ diff --git a/work_files/graphics/WoodenGUITex.png b/work_files/graphics/WoodenGUITex.png new file mode 100755 index 000000000..e5feb04b9 Binary files /dev/null and b/work_files/graphics/WoodenGUITex.png differ diff --git a/work_files/graphics/fonts/.gitattributes b/work_files/graphics/fonts/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/fonts/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/gui/.gitattributes b/work_files/graphics/gui/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/gui/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/gui/hotbar/.gitattributes b/work_files/graphics/gui/hotbar/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/gui/hotbar/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/gui/inventory/.gitattributes b/work_files/graphics/gui/inventory/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/gui/inventory/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/items/.gitattributes b/work_files/graphics/items/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/items/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/mc_painterly/Readme.txt b/work_files/graphics/mc_painterly/Readme.txt new file mode 100755 index 000000000..8f447e739 Binary files /dev/null and b/work_files/graphics/mc_painterly/Readme.txt differ diff --git a/work_files/graphics/mc_painterly/achievement/bg.png b/work_files/graphics/mc_painterly/achievement/bg.png new file mode 100755 index 000000000..228349201 Binary files /dev/null and b/work_files/graphics/mc_painterly/achievement/bg.png differ diff --git a/work_files/graphics/mc_painterly/anvil_base.png b/work_files/graphics/mc_painterly/anvil_base.png new file mode 100755 index 000000000..883e43033 Binary files /dev/null and b/work_files/graphics/mc_painterly/anvil_base.png differ diff --git a/work_files/graphics/mc_painterly/anvil_base_2.png b/work_files/graphics/mc_painterly/anvil_base_2.png new file mode 100755 index 000000000..5308b4b58 Binary files /dev/null and b/work_files/graphics/mc_painterly/anvil_base_2.png differ diff --git a/work_files/graphics/mc_painterly/anvil_top.png b/work_files/graphics/mc_painterly/anvil_top.png new file mode 100755 index 000000000..bfa5de516 Binary files /dev/null and b/work_files/graphics/mc_painterly/anvil_top.png differ diff --git a/work_files/graphics/mc_painterly/anvil_top_2.png b/work_files/graphics/mc_painterly/anvil_top_2.png new file mode 100755 index 000000000..ab20e5bfb Binary files /dev/null and b/work_files/graphics/mc_painterly/anvil_top_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/chain_1.png b/work_files/graphics/mc_painterly/armor/chain_1.png new file mode 100755 index 000000000..00108ec83 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/chain_1.png differ diff --git a/work_files/graphics/mc_painterly/armor/chain_2.png b/work_files/graphics/mc_painterly/armor/chain_2.png new file mode 100755 index 000000000..270b48c75 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/chain_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/cloth_1.png b/work_files/graphics/mc_painterly/armor/cloth_1.png new file mode 100755 index 000000000..02a9d7a68 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/cloth_1.png differ diff --git a/work_files/graphics/mc_painterly/armor/cloth_1_b.png b/work_files/graphics/mc_painterly/armor/cloth_1_b.png new file mode 100755 index 000000000..2f3e8cfbc Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/cloth_1_b.png differ diff --git a/work_files/graphics/mc_painterly/armor/cloth_2.png b/work_files/graphics/mc_painterly/armor/cloth_2.png new file mode 100755 index 000000000..02a9d7a68 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/cloth_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/cloth_2_b.png b/work_files/graphics/mc_painterly/armor/cloth_2_b.png new file mode 100755 index 000000000..1ed2d1073 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/cloth_2_b.png differ diff --git a/work_files/graphics/mc_painterly/armor/diamond_1.png b/work_files/graphics/mc_painterly/armor/diamond_1.png new file mode 100755 index 000000000..234438aeb Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/diamond_1.png differ diff --git a/work_files/graphics/mc_painterly/armor/diamond_2.png b/work_files/graphics/mc_painterly/armor/diamond_2.png new file mode 100755 index 000000000..edad957ad Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/diamond_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/gold_1.png b/work_files/graphics/mc_painterly/armor/gold_1.png new file mode 100755 index 000000000..e28161d7d Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/gold_1.png differ diff --git a/work_files/graphics/mc_painterly/armor/gold_2.png b/work_files/graphics/mc_painterly/armor/gold_2.png new file mode 100755 index 000000000..a91ea99a0 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/gold_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/iron_1.png b/work_files/graphics/mc_painterly/armor/iron_1.png new file mode 100755 index 000000000..12bfd52b9 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/iron_1.png differ diff --git a/work_files/graphics/mc_painterly/armor/iron_2.png b/work_files/graphics/mc_painterly/armor/iron_2.png new file mode 100755 index 000000000..fbefaebdd Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/iron_2.png differ diff --git a/work_files/graphics/mc_painterly/armor/power.png b/work_files/graphics/mc_painterly/armor/power.png new file mode 100755 index 000000000..f58f8242f Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/power.png differ diff --git a/work_files/graphics/mc_painterly/armor/witherarmor.png b/work_files/graphics/mc_painterly/armor/witherarmor.png new file mode 100755 index 000000000..aad54ccd1 Binary files /dev/null and b/work_files/graphics/mc_painterly/armor/witherarmor.png differ diff --git a/work_files/graphics/mc_painterly/art/kz.png b/work_files/graphics/mc_painterly/art/kz.png new file mode 100755 index 000000000..64e7abccd Binary files /dev/null and b/work_files/graphics/mc_painterly/art/kz.png differ diff --git a/work_files/graphics/mc_painterly/ctm.png b/work_files/graphics/mc_painterly/ctm.png new file mode 100755 index 000000000..4e12ca05c Binary files /dev/null and b/work_files/graphics/mc_painterly/ctm.png differ diff --git a/work_files/graphics/mc_painterly/environment/clouds.png b/work_files/graphics/mc_painterly/environment/clouds.png new file mode 100755 index 000000000..15504c1d1 Binary files /dev/null and b/work_files/graphics/mc_painterly/environment/clouds.png differ diff --git a/work_files/graphics/mc_painterly/environment/rain.png b/work_files/graphics/mc_painterly/environment/rain.png new file mode 100755 index 000000000..5e91e80c1 Binary files /dev/null and b/work_files/graphics/mc_painterly/environment/rain.png differ diff --git a/work_files/graphics/mc_painterly/environment/snow.png b/work_files/graphics/mc_painterly/environment/snow.png new file mode 100755 index 000000000..89c1d35e2 Binary files /dev/null and b/work_files/graphics/mc_painterly/environment/snow.png differ diff --git a/work_files/graphics/mc_painterly/extrabiomes/extrabiomes.png b/work_files/graphics/mc_painterly/extrabiomes/extrabiomes.png new file mode 100755 index 000000000..bc19c19cf Binary files /dev/null and b/work_files/graphics/mc_painterly/extrabiomes/extrabiomes.png differ diff --git a/work_files/graphics/mc_painterly/extrabiomes/scarecrow.png b/work_files/graphics/mc_painterly/extrabiomes/scarecrow.png new file mode 100755 index 000000000..298b495ab Binary files /dev/null and b/work_files/graphics/mc_painterly/extrabiomes/scarecrow.png differ diff --git a/work_files/graphics/mc_painterly/gui/alchemy.png b/work_files/graphics/mc_painterly/gui/alchemy.png new file mode 100755 index 000000000..43cbac47c Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/alchemy.png differ diff --git a/work_files/graphics/mc_painterly/gui/allitems.png b/work_files/graphics/mc_painterly/gui/allitems.png new file mode 100755 index 000000000..16433bc01 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/allitems.png differ diff --git a/work_files/graphics/mc_painterly/gui/background.png b/work_files/graphics/mc_painterly/gui/background.png new file mode 100755 index 000000000..42f322c03 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/background.png differ diff --git a/work_files/graphics/mc_painterly/gui/beacon.png b/work_files/graphics/mc_painterly/gui/beacon.png new file mode 100755 index 000000000..cf7882f6a Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/beacon.png differ diff --git a/work_files/graphics/mc_painterly/gui/book.png b/work_files/graphics/mc_painterly/gui/book.png new file mode 100755 index 000000000..14f79c0b7 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/book.png differ diff --git a/work_files/graphics/mc_painterly/gui/container.png b/work_files/graphics/mc_painterly/gui/container.png new file mode 100755 index 000000000..2ec27a23a Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/container.png differ diff --git a/work_files/graphics/mc_painterly/gui/crafting.png b/work_files/graphics/mc_painterly/gui/crafting.png new file mode 100755 index 000000000..5a3a7aae5 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/crafting.png differ diff --git a/work_files/graphics/mc_painterly/gui/creative_inv/list_items.png b/work_files/graphics/mc_painterly/gui/creative_inv/list_items.png new file mode 100755 index 000000000..3bbf2a8a9 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/creative_inv/list_items.png differ diff --git a/work_files/graphics/mc_painterly/gui/creative_inv/search.png b/work_files/graphics/mc_painterly/gui/creative_inv/search.png new file mode 100755 index 000000000..d1fd237fd Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/creative_inv/search.png differ diff --git a/work_files/graphics/mc_painterly/gui/creative_inv/survival_inv.png b/work_files/graphics/mc_painterly/gui/creative_inv/survival_inv.png new file mode 100755 index 000000000..b44be42a0 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/creative_inv/survival_inv.png differ diff --git a/work_files/graphics/mc_painterly/gui/demo_bg.png b/work_files/graphics/mc_painterly/gui/demo_bg.png new file mode 100755 index 000000000..8c8e344d7 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/demo_bg.png differ diff --git a/work_files/graphics/mc_painterly/gui/enchant.png b/work_files/graphics/mc_painterly/gui/enchant.png new file mode 100755 index 000000000..eece5856f Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/enchant.png differ diff --git a/work_files/graphics/mc_painterly/gui/furnace.png b/work_files/graphics/mc_painterly/gui/furnace.png new file mode 100755 index 000000000..bb48e24e2 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/furnace.png differ diff --git a/work_files/graphics/mc_painterly/gui/gui.png b/work_files/graphics/mc_painterly/gui/gui.png new file mode 100755 index 000000000..18b8da23b Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/gui.png differ diff --git a/work_files/graphics/mc_painterly/gui/icons.png b/work_files/graphics/mc_painterly/gui/icons.png new file mode 100755 index 000000000..d817414d7 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/icons.png differ diff --git a/work_files/graphics/mc_painterly/gui/inventory.png b/work_files/graphics/mc_painterly/gui/inventory.png new file mode 100755 index 000000000..396d3fe65 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/inventory.png differ diff --git a/work_files/graphics/mc_painterly/gui/items.png b/work_files/graphics/mc_painterly/gui/items.png new file mode 100755 index 000000000..2db9099a8 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/items.png differ diff --git a/work_files/graphics/mc_painterly/gui/logo.png b/work_files/graphics/mc_painterly/gui/logo.png new file mode 100755 index 000000000..19f5a84e8 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/logo.png differ diff --git a/work_files/graphics/mc_painterly/gui/repair.png b/work_files/graphics/mc_painterly/gui/repair.png new file mode 100755 index 000000000..1d7d9e763 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/repair.png differ diff --git a/work_files/graphics/mc_painterly/gui/slot.png b/work_files/graphics/mc_painterly/gui/slot.png new file mode 100755 index 000000000..d97153c48 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/slot.png differ diff --git a/work_files/graphics/mc_painterly/gui/trading.png b/work_files/graphics/mc_painterly/gui/trading.png new file mode 100755 index 000000000..454665a67 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/trading.png differ diff --git a/work_files/graphics/mc_painterly/gui/trap.png b/work_files/graphics/mc_painterly/gui/trap.png new file mode 100755 index 000000000..a921c9862 Binary files /dev/null and b/work_files/graphics/mc_painterly/gui/trap.png differ diff --git a/work_files/graphics/mc_painterly/item/arrows.png b/work_files/graphics/mc_painterly/item/arrows.png new file mode 100755 index 000000000..014e87e93 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/arrows.png differ diff --git a/work_files/graphics/mc_painterly/item/boat.png b/work_files/graphics/mc_painterly/item/boat.png new file mode 100755 index 000000000..4e79e6aaf Binary files /dev/null and b/work_files/graphics/mc_painterly/item/boat.png differ diff --git a/work_files/graphics/mc_painterly/item/book.png b/work_files/graphics/mc_painterly/item/book.png new file mode 100755 index 000000000..21a20c460 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/book.png differ diff --git a/work_files/graphics/mc_painterly/item/cart.png b/work_files/graphics/mc_painterly/item/cart.png new file mode 100755 index 000000000..74f3328b0 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/cart.png differ diff --git a/work_files/graphics/mc_painterly/item/chest.png b/work_files/graphics/mc_painterly/item/chest.png new file mode 100755 index 000000000..c8c828b3e Binary files /dev/null and b/work_files/graphics/mc_painterly/item/chest.png differ diff --git a/work_files/graphics/mc_painterly/item/enderchest.png b/work_files/graphics/mc_painterly/item/enderchest.png new file mode 100755 index 000000000..08adc6f28 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/enderchest.png differ diff --git a/work_files/graphics/mc_painterly/item/largechest.png b/work_files/graphics/mc_painterly/item/largechest.png new file mode 100755 index 000000000..d41e62e5c Binary files /dev/null and b/work_files/graphics/mc_painterly/item/largechest.png differ diff --git a/work_files/graphics/mc_painterly/item/largexmaschest.png b/work_files/graphics/mc_painterly/item/largexmaschest.png new file mode 100755 index 000000000..9bdee8d92 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/largexmaschest.png differ diff --git a/work_files/graphics/mc_painterly/item/sign.png b/work_files/graphics/mc_painterly/item/sign.png new file mode 100755 index 000000000..4579dc388 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/sign.png differ diff --git a/work_files/graphics/mc_painterly/item/skis.png b/work_files/graphics/mc_painterly/item/skis.png new file mode 100755 index 000000000..97502f827 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/skis.png differ diff --git a/work_files/graphics/mc_painterly/item/xmaschest.png b/work_files/graphics/mc_painterly/item/xmaschest.png new file mode 100755 index 000000000..adec0067e Binary files /dev/null and b/work_files/graphics/mc_painterly/item/xmaschest.png differ diff --git a/work_files/graphics/mc_painterly/item/xporb.png b/work_files/graphics/mc_painterly/item/xporb.png new file mode 100755 index 000000000..b43da85a0 Binary files /dev/null and b/work_files/graphics/mc_painterly/item/xporb.png differ diff --git a/work_files/graphics/mc_painterly/misc/beacon.png b/work_files/graphics/mc_painterly/misc/beacon.png new file mode 100755 index 000000000..3e27a63bd Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/beacon.png differ diff --git a/work_files/graphics/mc_painterly/misc/beam.png b/work_files/graphics/mc_painterly/misc/beam.png new file mode 100755 index 000000000..5a24c4542 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/beam.png differ diff --git a/work_files/graphics/mc_painterly/misc/dial.png b/work_files/graphics/mc_painterly/misc/dial.png new file mode 100755 index 000000000..f3ea91401 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/dial.png differ diff --git a/work_files/graphics/mc_painterly/misc/explosion.png b/work_files/graphics/mc_painterly/misc/explosion.png new file mode 100755 index 000000000..732069b3b Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/explosion.png differ diff --git a/work_files/graphics/mc_painterly/misc/foliagecolor.png b/work_files/graphics/mc_painterly/misc/foliagecolor.png new file mode 100755 index 000000000..c494bb2e2 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/foliagecolor.png differ diff --git a/work_files/graphics/mc_painterly/misc/grasscolor.png b/work_files/graphics/mc_painterly/misc/grasscolor.png new file mode 100755 index 000000000..c494bb2e2 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/grasscolor.png differ diff --git a/work_files/graphics/mc_painterly/misc/mapbg.png b/work_files/graphics/mc_painterly/misc/mapbg.png new file mode 100755 index 000000000..be3b7b94a Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/mapbg.png differ diff --git a/work_files/graphics/mc_painterly/misc/pumpkinblur.png b/work_files/graphics/mc_painterly/misc/pumpkinblur.png new file mode 100755 index 000000000..6bfe68808 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/pumpkinblur.png differ diff --git a/work_files/graphics/mc_painterly/misc/shadow.png b/work_files/graphics/mc_painterly/misc/shadow.png new file mode 100755 index 000000000..bfd5296a5 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/shadow.png differ diff --git a/work_files/graphics/mc_painterly/misc/tunnel.png b/work_files/graphics/mc_painterly/misc/tunnel.png new file mode 100755 index 000000000..42d9a7ace Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/tunnel.png differ diff --git a/work_files/graphics/mc_painterly/misc/vignette.png b/work_files/graphics/mc_painterly/misc/vignette.png new file mode 100755 index 000000000..f236acb3c Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/vignette.png differ diff --git a/work_files/graphics/mc_painterly/misc/water.png b/work_files/graphics/mc_painterly/misc/water.png new file mode 100755 index 000000000..2fc4a0010 Binary files /dev/null and b/work_files/graphics/mc_painterly/misc/water.png differ diff --git a/work_files/graphics/mc_painterly/mob/bat.png b/work_files/graphics/mc_painterly/mob/bat.png new file mode 100755 index 000000000..964e229b3 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/bat.png differ diff --git a/work_files/graphics/mc_painterly/mob/cat_black.png b/work_files/graphics/mc_painterly/mob/cat_black.png new file mode 100755 index 000000000..8ecf0e6b7 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/cat_black.png differ diff --git a/work_files/graphics/mc_painterly/mob/cat_red.png b/work_files/graphics/mc_painterly/mob/cat_red.png new file mode 100755 index 000000000..6ba8e5d67 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/cat_red.png differ diff --git a/work_files/graphics/mc_painterly/mob/cat_siamese.png b/work_files/graphics/mc_painterly/mob/cat_siamese.png new file mode 100755 index 000000000..3e0759f3b Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/cat_siamese.png differ diff --git a/work_files/graphics/mc_painterly/mob/cavespider.png b/work_files/graphics/mc_painterly/mob/cavespider.png new file mode 100755 index 000000000..8dc390f9f Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/cavespider.png differ diff --git a/work_files/graphics/mc_painterly/mob/char.png b/work_files/graphics/mc_painterly/mob/char.png new file mode 100755 index 000000000..7cfa08a86 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/char.png differ diff --git a/work_files/graphics/mc_painterly/mob/chicken.png b/work_files/graphics/mc_painterly/mob/chicken.png new file mode 100755 index 000000000..822ebb5ae Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/chicken.png differ diff --git a/work_files/graphics/mc_painterly/mob/cow.png b/work_files/graphics/mc_painterly/mob/cow.png new file mode 100755 index 000000000..315930b1d Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/cow.png differ diff --git a/work_files/graphics/mc_painterly/mob/creeper.png b/work_files/graphics/mc_painterly/mob/creeper.png new file mode 100755 index 000000000..ad1636d87 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/creeper.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderdragon/beam.png b/work_files/graphics/mc_painterly/mob/enderdragon/beam.png new file mode 100755 index 000000000..2c9068300 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderdragon/beam.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderdragon/crystal.png b/work_files/graphics/mc_painterly/mob/enderdragon/crystal.png new file mode 100755 index 000000000..acfd2c4f7 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderdragon/crystal.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderdragon/ender.png b/work_files/graphics/mc_painterly/mob/enderdragon/ender.png new file mode 100755 index 000000000..4cb7dcc99 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderdragon/ender.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderdragon/ender_eyes.png b/work_files/graphics/mc_painterly/mob/enderdragon/ender_eyes.png new file mode 100755 index 000000000..8921677d0 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderdragon/ender_eyes.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderman.png b/work_files/graphics/mc_painterly/mob/enderman.png new file mode 100755 index 000000000..0c065d8b9 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderman.png differ diff --git a/work_files/graphics/mc_painterly/mob/enderman_eyes.png b/work_files/graphics/mc_painterly/mob/enderman_eyes.png new file mode 100755 index 000000000..2ec742c9b Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/enderman_eyes.png differ diff --git a/work_files/graphics/mc_painterly/mob/fire.png b/work_files/graphics/mc_painterly/mob/fire.png new file mode 100755 index 000000000..8eb411279 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/fire.png differ diff --git a/work_files/graphics/mc_painterly/mob/ghast.png b/work_files/graphics/mc_painterly/mob/ghast.png new file mode 100755 index 000000000..8bcd20eb5 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/ghast.png differ diff --git a/work_files/graphics/mc_painterly/mob/ghast_fire.png b/work_files/graphics/mc_painterly/mob/ghast_fire.png new file mode 100755 index 000000000..ee2d2ba7a Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/ghast_fire.png differ diff --git a/work_files/graphics/mc_painterly/mob/lava.png b/work_files/graphics/mc_painterly/mob/lava.png new file mode 100755 index 000000000..904b332df Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/lava.png differ diff --git a/work_files/graphics/mc_painterly/mob/ozelot.png b/work_files/graphics/mc_painterly/mob/ozelot.png new file mode 100755 index 000000000..83fb344f3 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/ozelot.png differ diff --git a/work_files/graphics/mc_painterly/mob/pig.png b/work_files/graphics/mc_painterly/mob/pig.png new file mode 100755 index 000000000..2bc0fd533 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/pig.png differ diff --git a/work_files/graphics/mc_painterly/mob/pigman.png b/work_files/graphics/mc_painterly/mob/pigman.png new file mode 100755 index 000000000..116a15027 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/pigman.png differ diff --git a/work_files/graphics/mc_painterly/mob/pigzombie.png b/work_files/graphics/mc_painterly/mob/pigzombie.png new file mode 100755 index 000000000..116a15027 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/pigzombie.png differ diff --git a/work_files/graphics/mc_painterly/mob/redcow.png b/work_files/graphics/mc_painterly/mob/redcow.png new file mode 100755 index 000000000..1ec4676f2 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/redcow.png differ diff --git a/work_files/graphics/mc_painterly/mob/saddle.png b/work_files/graphics/mc_painterly/mob/saddle.png new file mode 100755 index 000000000..857264770 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/saddle.png differ diff --git a/work_files/graphics/mc_painterly/mob/sheep.png b/work_files/graphics/mc_painterly/mob/sheep.png new file mode 100755 index 000000000..5aca1c856 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/sheep.png differ diff --git a/work_files/graphics/mc_painterly/mob/sheep_fur.png b/work_files/graphics/mc_painterly/mob/sheep_fur.png new file mode 100755 index 000000000..2a396d5b5 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/sheep_fur.png differ diff --git a/work_files/graphics/mc_painterly/mob/silverfish.png b/work_files/graphics/mc_painterly/mob/silverfish.png new file mode 100755 index 000000000..43620acdd Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/silverfish.png differ diff --git a/work_files/graphics/mc_painterly/mob/skeleton.png b/work_files/graphics/mc_painterly/mob/skeleton.png new file mode 100755 index 000000000..0d31a40e0 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/skeleton.png differ diff --git a/work_files/graphics/mc_painterly/mob/skeleton_wither.png b/work_files/graphics/mc_painterly/mob/skeleton_wither.png new file mode 100755 index 000000000..38df24da7 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/skeleton_wither.png differ diff --git a/work_files/graphics/mc_painterly/mob/slime.png b/work_files/graphics/mc_painterly/mob/slime.png new file mode 100755 index 000000000..9456b46c8 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/slime.png differ diff --git a/work_files/graphics/mc_painterly/mob/snowman.png b/work_files/graphics/mc_painterly/mob/snowman.png new file mode 100755 index 000000000..9d49fb1e1 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/snowman.png differ diff --git a/work_files/graphics/mc_painterly/mob/spider.png b/work_files/graphics/mc_painterly/mob/spider.png new file mode 100755 index 000000000..b93eacbf9 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/spider.png differ diff --git a/work_files/graphics/mc_painterly/mob/spider_eyes.png b/work_files/graphics/mc_painterly/mob/spider_eyes.png new file mode 100755 index 000000000..b4e691dab Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/spider_eyes.png differ diff --git a/work_files/graphics/mc_painterly/mob/squid.png b/work_files/graphics/mc_painterly/mob/squid.png new file mode 100755 index 000000000..98507b1ff Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/squid.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/butcher.png b/work_files/graphics/mc_painterly/mob/villager/butcher.png new file mode 100755 index 000000000..255c695a0 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/butcher.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/farmer.png b/work_files/graphics/mc_painterly/mob/villager/farmer.png new file mode 100755 index 000000000..5e8c6b806 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/farmer.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/librarian.png b/work_files/graphics/mc_painterly/mob/villager/librarian.png new file mode 100755 index 000000000..78a5bebec Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/librarian.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/priest.png b/work_files/graphics/mc_painterly/mob/villager/priest.png new file mode 100755 index 000000000..08c153fff Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/priest.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/smith.png b/work_files/graphics/mc_painterly/mob/villager/smith.png new file mode 100755 index 000000000..76d4f7f1a Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/smith.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/villager.png b/work_files/graphics/mc_painterly/mob/villager/villager.png new file mode 100755 index 000000000..2902740a5 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/villager.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager/witch.png b/work_files/graphics/mc_painterly/mob/villager/witch.png new file mode 100755 index 000000000..b12e16a2c Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager/witch.png differ diff --git a/work_files/graphics/mc_painterly/mob/villager_golem.png b/work_files/graphics/mc_painterly/mob/villager_golem.png new file mode 100755 index 000000000..c6d146316 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/villager_golem.png differ diff --git a/work_files/graphics/mc_painterly/mob/wither.png b/work_files/graphics/mc_painterly/mob/wither.png new file mode 100755 index 000000000..4ae2fa3c1 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wither.png differ diff --git a/work_files/graphics/mc_painterly/mob/wither_invul.png b/work_files/graphics/mc_painterly/mob/wither_invul.png new file mode 100755 index 000000000..6c9469168 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wither_invul.png differ diff --git a/work_files/graphics/mc_painterly/mob/wolf.png b/work_files/graphics/mc_painterly/mob/wolf.png new file mode 100755 index 000000000..9eb15f302 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wolf.png differ diff --git a/work_files/graphics/mc_painterly/mob/wolf_angry.png b/work_files/graphics/mc_painterly/mob/wolf_angry.png new file mode 100755 index 000000000..5fdb40c84 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wolf_angry.png differ diff --git a/work_files/graphics/mc_painterly/mob/wolf_collar.png b/work_files/graphics/mc_painterly/mob/wolf_collar.png new file mode 100755 index 000000000..8295cba79 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wolf_collar.png differ diff --git a/work_files/graphics/mc_painterly/mob/wolf_tame.png b/work_files/graphics/mc_painterly/mob/wolf_tame.png new file mode 100755 index 000000000..4b8a97b88 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/wolf_tame.png differ diff --git a/work_files/graphics/mc_painterly/mob/zombie.png b/work_files/graphics/mc_painterly/mob/zombie.png new file mode 100755 index 000000000..962649088 Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/zombie.png differ diff --git a/work_files/graphics/mc_painterly/mob/zombie_villager.png b/work_files/graphics/mc_painterly/mob/zombie_villager.png new file mode 100755 index 000000000..f207e226f Binary files /dev/null and b/work_files/graphics/mc_painterly/mob/zombie_villager.png differ diff --git a/work_files/graphics/mc_painterly/offlawn/resources/lawnTex.png b/work_files/graphics/mc_painterly/offlawn/resources/lawnTex.png new file mode 100755 index 000000000..d37fe2b49 Binary files /dev/null and b/work_files/graphics/mc_painterly/offlawn/resources/lawnTex.png differ diff --git a/work_files/graphics/mc_painterly/pack.png b/work_files/graphics/mc_painterly/pack.png new file mode 100755 index 000000000..987863696 Binary files /dev/null and b/work_files/graphics/mc_painterly/pack.png differ diff --git a/work_files/graphics/mc_painterly/pack.txt b/work_files/graphics/mc_painterly/pack.txt new file mode 100755 index 000000000..43a91d27d --- /dev/null +++ b/work_files/graphics/mc_painterly/pack.txt @@ -0,0 +1,2 @@ +The Painterly Pack: by rhodox + diff --git a/work_files/graphics/mc_painterly/particles.png b/work_files/graphics/mc_painterly/particles.png new file mode 100755 index 000000000..44bc8fc24 Binary files /dev/null and b/work_files/graphics/mc_painterly/particles.png differ diff --git a/work_files/graphics/mc_painterly/password.txt b/work_files/graphics/mc_painterly/password.txt new file mode 100755 index 000000000..10249970e --- /dev/null +++ b/work_files/graphics/mc_painterly/password.txt @@ -0,0 +1,69 @@ +eJzlWkt36jgS/kOz6NvzXngRIJDcCQkd6KR7dsIWoIOw3LIdQv/6qYdefsC9fWYz58wixPqq9CqVqko +lCd2sRH58zE2ZrbQomz+JMeTV1DLDHyw8i7rJ8Icosli29cEac8rge9I2jSmRMJFqLwMp4gsFbXocam +CtAU6Vr1WaGIChSeRZKK0HDOtGAlnwaKcib9oap6KoqZmspW3WB9tusxetPiQzLKxpK6RvrJRaig9ZZ +zNhj3soll18osxJZjO5E60mGXxty71OKzEwNbkRJE9VymcpCw1k/Ebs51omMDf5bHrcg56g1kTZ/JDy +J0CXc30Wp+pJil3K3QOTGk9m35gqRZ6NPQk9gQll78YUcaoE8acfMUH4gfOPw0KUvmamqal/UWlV7ru +ydSC3mDTscGw2m8pC2ASkVrltQkFidTbRgkrvBymabK1OFTdE5QdhYYGaLtPESlEECLWgLKbWVPB1bg +6oRSrvUr5kU2Gtabroj9nKNKIxoeG9FXX9UoIWaNNamu/Cz7fDsG4uMOknYfeyS9ucze3KwMCVF9Yp9 ++PHJSPGzUHltAykhCtTZFMNNXguS6lN+YZCDY1O1H7VnqqjKoMsiCut5hhY0q4QGBmlTzYLtBzitDUk +kielLxUIOnT4vwLMlG0y/KE9DtYELJIvLlDIkZWKVzfaYJMNOKn+kyz3oFdPptyT7C65lqoF22ncBvF +Ij3FdmvPMql1UX0RGmHoQmvDjRJv8SFqULidS3JZbyVyUfRpvuwNsmbJt+kTefq/inBCIN25CLpJiB+ +yXk6gdG9j9PcynizI3idwTp1bsmo3YwjCTvibGHOuD1GhyfeOvolAmlDbPm2x9bNk/oP2aGWMj1YqKg +HdVFua8sepE+iGKQtqkRaXZpIcSdFw3yKL2AZvJRuaNCeBa7cvKJKZmgrvBOboHUYJtjwMxIEiYxLvQ +ekqkG6hV1VlZmc2dF5kYMHOJioFl6pTRCa7Bh8rsV0naNTco37SwAZs/NVsQ75PaHxreE3Uly1oc2Gt +qj69UDW2tVSHZLj51CXNryiZbCrv1bgHRCQQT2UICaj57FVYatA9ESQqVdKDVSXrautKi+RbtxYKo3K +QeYRRUnsJoYMc1odOF0UXKOVPiZMoOdH+SVjgu9w0qHlp4EpWqU35YUhyVTDEWJsFZqJmAEwummSl3I +NoSgibrjTXr99KA2QlVsXSrjgUBu3KWFhxjaOfFluIky0Zo1ogpbLJKWuINTA9C79haEDRDQft4rrAB +l5a7vtQNBgi1HIE7u1UKiCenBlT3pXIe57+D4PeU9oDLTvv5K2xID0D4AXog2LE6ZsQzMPQphprRx5x +2RGvGsNMKrx2+EmkGCy6oAYhgLsr84kfzWO5NAwa1ZWXHTkeg53a/l4AZVcJWUibR1Gx9ELZI9DToaF +tJmepjNGAOeEer8WLVXpVCpwQyNAP2J/BfbieHwXnaTGpxye4gBDoPYDo1dLpptwq2Rhgg+MDLFOvHi +EtcWHeDrcQSNQRNO2GuwQRmyTdr8FwUbFIT1Qbil2wBTv6w/q0VVg7JP3rNJ79A1j9ZZNMceBnXjWrA +BFP7j3CgmFtoI9W4ez+M94NqpEfQ4bx8SGvRSj6b0hPIzHYrS1CQjWQ5zazYm/J+v8eh5MeXbe2E8yE +1RFUFBARksSHybbwggEkVcO7B8O/iGpU2OuH8OL2Ikgn5Ac5HEDWzHyVil4D+NINzQXNgwTyJDxFDjU +qcy8Qtkmk1nR0OqtmgW0wXfwnNPUtssbu4DkMydSX3ysS4c93q6tBaXoUe+EgnO4dxM2cDLi8ZyL9gM +vryLkVlymCTcWOtgbPImOxDgo0xOjkbIsRsU91uqV/eI8iVThZRZlxXko8luMMHjFdBroxBWo1fySZH +9jBFhzH3TRDUNRVXY/GQFaSeqPgE40hxhs21bzUPnfZyVOOfWjgVWy7z93V00UKgc8aQyQdJc7A0MLL +juhGWvcJEcAzmKa+wsGDh+N+Tar5FexewEVMBEjAXuewqoERr/yp+N5ZbrA94djRprAXhwGUHhESTzf +EyT5EJepdEkFIcswfRlrmLaUHMskTVBVEYNv5J3uHc2eT7uARTcZTZmyjhhCF8x0piwAhNVqzie5DYR +PC5gM5UWsEcYbbSnvzBaqEVhp9MWt5G76qqFzS3JN2lbHiDPlAo50Y4582fKEoJlnsuTy3J89U0aCdo +5n7nritowN5fIGLX5qz4xDHH0ZaNLBBfq3CWJ96z3NZR03gHk6Z0bSM0IcoVLKjO6DeFsVlvNhcHWFH +Ur4y2JI4iwMADWmlZuDCp3+Vr9xhM2Iq1FyycPbrVFPuTABcB8cWLJSPwhgHOArkL3FiV9CB5qT5hCs +F3YTl7xmblrvxQOmyQlWnA3L2CBY6BE42+S0SHgWYrohkmvrRzo7IE59eR2mf1FSb8igkJL4eVqDi85 +nFQ0E6GPq6xOfp1D6uSgJxeoAYmYCNKT86otBKlxAPz0qd8gBI9CvOglwt0jPOXosomPuDHwl0Dk+BI +IgeL9sOXOGCH/DhA/jxA/jJA/jpA/jZA/j5A/jFA/tlHvvwwQAZj/pKMGT4u0i5FjUGF/JBsck/GUrQ +R1iJCPsHZIRygtYx+u5hjTjSBaBTmdlqggHikZR9cpp47Jbg6AzIqJypp9KgBdlWQ8qc7xONJeKXypr +VyR9FUampOGA554LEEWYmcAxGIrDlOhpBgyyIuZmAEwJNpjilAz1LgxQo4tqTIr6Cn4PcShLO+KZJ+L +80WjTf8UX8QNZoTYCGge0MzjkdQ6nthtpqXxeOTFmPHq+T1SeHCjxPnAuzn1apPamvhWABR3xWGlVWU +5BynvmNQ2yfCzGDVILJCFXGAc3QQogSIzt4xPQg8HEen0EqB8YyK929zgvjfgWxGIi+ETrlKFn1qznX +Slom3Cs6/yyrt6t3oXYY/fjSiecnB9TUZ/4swhbsx6GUQrx5YUSK2Bo2XNXot+u8IE/B4YHAvfti/tQ +rjrpbdWmnOODkXaKIo0fl00q3QBPqIjN2dgzDAZom6CWLTR6ll08264kwDns4BltK56wCxuFMhMRLV9 +RrlgbLgA7Vgp51W8164N0SA+QjTGc9aaYgTKeBK0hmdWD9+Pxswfm2SxEfR7tC3h7qvoECE8M2EiwWT +AVIJj1/pEZOGvD5ewPqKxmUqW1sbm/3UimKkuGjVg2m2IrY7iqxhUTjrFzG+suqE+/e/rCZQ0d+gQBH +CitrHFhPM7gB5KdoPCe5BcqxzqprLvIVzax6ydRRFLH5+TK6yfJ4O0WDTNVie04WgEC+4nfpYfkBkZu +wltKk1HqnqufrM4GhI2MaKAgx3pyeIT2B1ZdoPpWVTAL0/lX2g8EBZOppcuMhbCQtLoOX9bgeyS7JcP +peEYZdncmGNNrXq7gmqdYLYgdPtb5jogtOnn5W7m4AtmqiuLFtMRe7pxoauKn0G7edavux2T3DEDSdr +LhK0cBbGYaCxO3AlGDK2pY/PIg2vQTKKmno0mFiJEzxSPX+lAF1PN8uQMtosFzjJKOPNEjMWdTfbgah +Pf+8CLzR1/9lYQdcO9S9PIaWJ4JbAdS6szPGs50xOQnsy+w3om+xG4pEO1rGhZDh8gLH4uPTodH8Bpx +cr+w1LsVspTWZuTpLrMdy1TXsq3YVsMMgJw0aVF3eLm1zYDsaH4ApML0TFIJzBBDdGoCDhcD3D2DYX1 +cadSxMmHiDa9mxpbInbQMN2meq2bgYDZ2Yecnafw2kTdquYK6n7fTPnqrV4HntT4GvdzeEoHwXiIMrt +pcbbyebQX0a+AMXzBIT7WxgafvI4WJjjFdxIucq32elunnhXqjze4uToyjFz4RY7nPVRGc7eII71jET +P9HNVDWTvOO9yASFExv+45xH1I0m9YeBUJqIaYXQScqxX2VAyjgdFM8LhJOKYrg4MJeEfBAz7IBngeM +GiisF+BR43e74gGLLg5bvvwR8+e+SO/EboExUWg28K3ySaZtHfN473G70Bx4uIbwm61qcxFVZPLinv9 +mNWCvg6ox43V8C4xychQYx8Jzaudp75u/onTpxGcs2WcNBdlu+1f63a58MOsZcbLG6u3YvWhOmnFrxY +jenxZVsE15swvKNJ1KJ3wEsttyxew8UOua4hA19fuXvC8YF4j5rR71UevGDaUmo3XhQmHHRHDmxom8n +jEbAcLITnWx8w/RsY16ehTScCxu/UJn4QMmL9Aye3Sl85uCUqjvHOMGrGH+78D7LdKVsfVIUxk98wDq +LE0AADI9LJKv1BfCXBPe1aPdfikx52xZcNKWkONkvy46o+id944FdKcan5cOvH/0c4XmxIWMWLYMfyD +C4vNDFr6yHxVu05WEClUYubS5XcunbpL3gvhknNIWlzNvGtQI90ACmlV0bfIENIbXIB8TLnztK8jKfg +io/hXyFuxccp30mDAxYmlWo4N4/BcOoe5XaH9hWoBYhVX1KiO0CO0q4cTq/SJlIeoSvw0j+1oGfxKVU +kwNfEfAZN7xMwuxRy1X1ium0ibWVlXV/Dx6s8lnm7RRHfoo1XfQBtukxBZuPzJvLM4qM6+BmhYcL2K9 +/B9Cgrgw/n8CriCpFj3Kss7sWPz34H4rv45ETvVGo9IPFLkyw+OPkDVOrRvVfzZ58hA2+KpdTNZZyBF +so1EzPS42zf11iPi5N50DAaFEwobM05STDcIC7BOqncPYmoNxCa161FVaRcKya6XSLnGh89M7jGh+/x +6mxzcLmXAW0NPgWc+B9kwIcpIArjzpBJBmqETM8L4iODyEKn0qtUfw/NDDH/M2DA+5cR8qtU5c7YXBb +h9NtniWPk21Q4gdqm9pcmkY+/3J0O/+sxqOZgwWpTK3cgPO0MWZ+Db1ffQZlkMcqwwlgHf8RnfxDMcP +eJr+eMP7xE+l0hTnhF0rjJBBM3lBgz3BDpg5HxkUkkQ5hehPYfP/7PqVHguK27T9ci16NV+MziFotbW +WTxC0BrM8LqRnSrtbsT7MYLHsWv88QHaVdZ4ChcHZS92RV4UvH794xlwS/n+5vCDeMK1Y/gCpk6v0KL +S8NXPM/yPCryK1Qn5StUt6LuRRX/G+W4Xb9DBfNdg8HF4zfYOzQzMdXhaPx4/xrVnQHGifzUITlZOnw +DVvsE5wnMdQ+pIbOWzS6cPkmInHxI6TEd8R0sS2MlWFvdHFZK5jJ7LGsnxEDA10DgKjENDzZT2vQu/X +uY7un9Sf0AjhffIXWepjgaaSym40ZoeFH3TRTj/iW+98HXbm/gTPhZuoMXShey+zaACbHfexj6/hKS9 +kR1uekPmW2eN7fwXw3M6/NV5qqSdH2+AM2KBHfuQWeTjoGJ6FWPOBuXWPPvKZiKT1eQONXgEf8DCcHK +2A== \ No newline at end of file diff --git a/work_files/graphics/mc_painterly/terrain.png b/work_files/graphics/mc_painterly/terrain.png new file mode 100755 index 000000000..e82695128 Binary files /dev/null and b/work_files/graphics/mc_painterly/terrain.png differ diff --git a/work_files/graphics/mc_painterly/terrain/moon.png b/work_files/graphics/mc_painterly/terrain/moon.png new file mode 100755 index 000000000..8d4c8bb2d Binary files /dev/null and b/work_files/graphics/mc_painterly/terrain/moon.png differ diff --git a/work_files/graphics/mc_painterly/terrain/moon_phases.png b/work_files/graphics/mc_painterly/terrain/moon_phases.png new file mode 100755 index 000000000..46acac0a5 Binary files /dev/null and b/work_files/graphics/mc_painterly/terrain/moon_phases.png differ diff --git a/work_files/graphics/mc_painterly/terrain/sun.png b/work_files/graphics/mc_painterly/terrain/sun.png new file mode 100755 index 000000000..83c53a1f4 Binary files /dev/null and b/work_files/graphics/mc_painterly/terrain/sun.png differ diff --git a/work_files/graphics/photoshop_colour.txt b/work_files/graphics/photoshop_colour.txt new file mode 100755 index 000000000..256bea8fd --- /dev/null +++ b/work_files/graphics/photoshop_colour.txt @@ -0,0 +1,16 @@ +Photoshop colourise settings + +Material |Hue |Sat |Bri +Copper |35 |65 |0 +Cobalt |225 |20 |0 +Titanium |80 |7 |0 +Orichalcum |45 |65 |0 +Glass |127 |30 |0 + +Curve settings + +Co/Ti 51->52 83->114 +Steel1 52->52 179->102 221->162 +Steel2 127->127 63->31 191->223 + +Aetherium: #62FAFF \ No newline at end of file diff --git a/work_files/graphics/sprites/.gitattributes b/work_files/graphics/sprites/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/sprites/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/sprites/Sprite_sample/.gitattributes b/work_files/graphics/sprites/Sprite_sample/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/sprites/Sprite_sample/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/sprites/Sprite_sample/linkanimations.png b/work_files/graphics/sprites/Sprite_sample/linkanimations.png new file mode 100644 index 000000000..7b3104b30 Binary files /dev/null and b/work_files/graphics/sprites/Sprite_sample/linkanimations.png differ diff --git a/work_files/graphics/sprites/Sprite_sample/marioanimations.png b/work_files/graphics/sprites/Sprite_sample/marioanimations.png new file mode 100644 index 000000000..cdb943360 Binary files /dev/null and b/work_files/graphics/sprites/Sprite_sample/marioanimations.png differ diff --git a/work_files/graphics/sprites/hairs/.gitattributes b/work_files/graphics/sprites/hairs/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/sprites/hairs/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/graphics/sprites/terrarum_hair_sketch_20160111.png b/work_files/graphics/sprites/terrarum_hair_sketch_20160111.png new file mode 100644 index 000000000..8b3408927 Binary files /dev/null and b/work_files/graphics/sprites/terrarum_hair_sketch_20160111.png differ diff --git a/work_files/graphics/steel.acv b/work_files/graphics/steel.acv new file mode 100755 index 000000000..8e0b2da75 Binary files /dev/null and b/work_files/graphics/steel.acv differ diff --git a/work_files/graphics/terrain/.gitattributes b/work_files/graphics/terrain/.gitattributes new file mode 100644 index 000000000..ca82ef549 --- /dev/null +++ b/work_files/graphics/terrain/.gitattributes @@ -0,0 +1 @@ +*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/work_files/main_bgr_test.png b/work_files/main_bgr_test.png new file mode 100755 index 000000000..98d5d4908 Binary files /dev/null and b/work_files/main_bgr_test.png differ