├── Resources ├── Blueprints │ ├── ui_button.png │ ├── Planet8.xcf │ ├── Planet9.xcf │ ├── planet1.xcf │ ├── planet10.xcf │ ├── planet11.xcf │ ├── planet12.xcf │ ├── planet13.xcf │ ├── planet14.xcf │ ├── planet15.xcf │ ├── planet16.xcf │ ├── planet17.xcf │ ├── planet18.xcf │ ├── planet19.xcf │ ├── planet2.xcf │ ├── planet20.xcf │ ├── planet3.xcf │ ├── planet4.xcf │ ├── planet5.xcf │ ├── planet6.xcf │ ├── planet7.xcf │ ├── usuziv2.ttf │ ├── usuzv2i.ttf │ ├── nav_device.blend,v.gz │ ├── nav_device_accessories.tar.gz │ ├── ui_dropdown.fig │ ├── usuzi.txt │ └── glyph-widths.sh ├── Art │ ├── fight1.png │ ├── fight2.png │ ├── logo.png │ ├── menu1.png │ ├── menu2.png │ ├── menu3.png │ ├── menu4.png │ ├── menu5.png │ ├── uberdone.png │ ├── gatescene.png │ ├── ubertextest.png │ ├── EpiarFleetbig.png │ └── Makefile.am ├── Icons │ ├── Epiar1.ico │ ├── Epiar2.ico │ ├── epiar.png │ ├── Epiar_Icon.icns │ ├── Epiar_Icon2.icns │ └── Makefile.am ├── Fonts │ ├── FreeSans.ttf │ ├── FreeSerif.ttf │ ├── usuziv2.ttf │ ├── usuzv2i.ttf │ ├── visitor2.ttf │ ├── ConsolaMono.ttf │ ├── Alfphabet-IV.ttf │ └── Makefile.am ├── Graphics │ ├── corvet.png │ ├── icon.bmp │ ├── patrol.png │ ├── pirate.png │ ├── podv.png │ ├── raven.png │ ├── trans.png │ ├── trans2.png │ ├── turret.png │ ├── uber.png │ ├── xv-1.png │ ├── Fighter.png │ ├── booster.png │ ├── corvet2.png │ ├── gate_gun.png │ ├── goldbeam.png │ ├── kartanal.png │ ├── missile.png │ ├── missiles.png │ ├── palitu01.png │ ├── planet1.png │ ├── planet10.png │ ├── planet11.png │ ├── planet12.png │ ├── planet13.png │ ├── planet14.png │ ├── planet15.png │ ├── planet16.png │ ├── planet17.png │ ├── planet18.png │ ├── planet19.png │ ├── planet1s.png │ ├── planet2.png │ ├── planet20.png │ ├── planet21.png │ ├── planet3.png │ ├── planet4.png │ ├── planet5.png │ ├── planet6.png │ ├── planet7.png │ ├── planet8.png │ ├── planet9.png │ ├── shuttle.png │ ├── thruster.png │ ├── torpedo.png │ ├── torpedo1.png │ ├── tugship.png │ ├── Epiar_Icon.png │ ├── Epiar_Icon2.png │ ├── SpaceBomb.png │ ├── Station01.png │ ├── Station02.png │ ├── Station03.png │ ├── Station04.png │ ├── Station05.png │ ├── Station06.png │ ├── btlcruiser.png │ ├── cargoclaw.png │ ├── escape_pod.png │ ├── gate1_top.png │ ├── gate_patrol.png │ ├── goldbeam2.png │ ├── golden_uber.png │ ├── hammerhead.png │ ├── hp_carbon.png │ ├── hp_copper.png │ ├── hp_electron.png │ ├── hp_organic.png │ ├── hp_titanium.png │ ├── laser_blue.png │ ├── laser_green.png │ ├── laser_grey.png │ ├── mark2_laser.png │ ├── mark3_laser.png │ ├── marker_blue.png │ ├── marker_off.png │ ├── marker_red.png │ ├── nav_device.png │ ├── scivessel.png │ ├── sector_map.png │ ├── uber_pretty.png │ ├── xv-1_pretty.png │ ├── gate1_bottom.png │ ├── missile_pack.png │ ├── patrol_pretty.png │ ├── pirate_pretty.png │ ├── raven_pretty.png │ ├── status_sensor.png │ ├── cargoclaw_pretty.png │ ├── cloaking_device.png │ ├── corvet2_pretty.png │ ├── engine_upgrade.png │ ├── missile_launcher.png │ ├── scivessel_pretty.png │ ├── shuttle_pretty.png │ ├── solcatian_laser.png │ ├── sublight_laser.png │ ├── terran-frigate.png │ ├── torpedo_launcher.png │ ├── tugship_pretty.png │ ├── tugship_pretty2.png │ ├── txt_exit_active.png │ ├── btlcruiser_pretty.png │ ├── cargoclaw_pretty2.png │ ├── hammerhead_pretty.png │ ├── txt_editor_active.png │ ├── txt_exit_inactive.png │ ├── txt_options_active.png │ ├── txt_continue_active.png │ ├── txt_continue_inactive.png │ ├── txt_editor_inactive.png │ ├── txt_load_game_active.png │ ├── txt_new_game_active.png │ ├── txt_new_game_inactive.png │ ├── txt_options_inactive.png │ └── txt_load_game_inactive.png ├── Skin │ ├── ui_button.png │ ├── ui_textbox.png │ ├── ui_wnd_low.png │ ├── ui_wnd_up.png │ ├── hud_bar_left.png │ ├── hud_hullstr.png │ ├── hud_radarnav.png │ ├── ui_frame_low.png │ ├── ui_frame_up.png │ ├── ui_wnd_back.png │ ├── ui_wnd_left.png │ ├── ui_wnd_right.png │ ├── active-tab-left.png │ ├── hud_bar_middle.png │ ├── hud_bar_right.png │ ├── hud_hullstr_bar.png │ ├── ui_frame_back.png │ ├── ui_frame_left.png │ ├── ui_frame_right.png │ ├── ui_scrollbar_bg.png │ ├── ui_scrollbar_up.png │ ├── ui_slider_bar.png │ ├── ui_slider_left.png │ ├── ui_slider_right.png │ ├── ui_wnd_low_left.png │ ├── ui_wnd_up_left.png │ ├── ui_wnd_up_right.png │ ├── active-tab-middle.png │ ├── active-tab-right.png │ ├── inactive-tab-left.png │ ├── ui_button_pressed.png │ ├── ui_checkbox_blank.png │ ├── ui_checkbox_check.png │ ├── ui_dropdown_open.png │ ├── ui_frame_low_left.png │ ├── ui_frame_up_left.png │ ├── ui_frame_up_right.png │ ├── ui_scrollbar_down.png │ ├── ui_slider_filled.png │ ├── ui_slider_handle.png │ ├── ui_wnd_low_right.png │ ├── hud_hullstr_leftbar.png │ ├── hud_hullstr_rightbar.png │ ├── hud_shieldintegrity.png │ ├── inactive-tab-middle.png │ ├── inactive-tab-right.png │ ├── ui_button_mouseover.png │ ├── ui_dropdown_closed.png │ ├── ui_dropdown_selected.png │ ├── ui_frame_low_right.png │ ├── ui_slider_background.png │ ├── ui_dropdown_mouseover.png │ ├── ui_scrollbar_handle_bg.png │ ├── ui_scrollbar_handle_up.png │ ├── ui_scrollbar_handle_down.png │ └── skin.xml ├── Animations │ ├── shield.ani │ ├── thrust.ani │ ├── asteroid.ani │ ├── thrust2.ani │ ├── explosion1.ani │ └── Makefile.am ├── Audio │ ├── Music │ │ ├── cyberm00n.mod │ │ ├── beyond_the_network.it │ │ ├── maverlyn_dp_explore_9.ogg │ │ └── Credits.txt │ ├── Weapons │ │ ├── flaunch.ogg │ │ ├── iceball.ogg │ │ ├── rlaunch.ogg │ │ ├── slimeball.ogg │ │ └── Credits.txt │ ├── Effects │ │ ├── 18384__inferno__largex.wav.ogg │ │ ├── 55853__sergenious__teleport.wav │ │ ├── 128590__corsica-s__transport-edit.wav │ │ └── Credits.txt │ ├── Interface │ │ ├── 28820__junggle__btn010.ogg │ │ ├── 28853__junggle__btn043.ogg │ │ └── Credits.txt │ ├── Engines │ │ ├── 22455__nathanshadow__Thruster_Level_II.ogg │ │ └── Credits.txt │ └── Makefile.am ├── Definitions │ └── Makefile.am ├── Scripts │ └── Makefile.am └── Simulation │ ├── Makefile.am │ └── default │ ├── commodities-default.xml │ ├── simulation.xml │ ├── alliances-default.xml │ └── engines-default.xml ├── Source ├── Lua │ ├── src │ │ ├── .cvsignore │ │ ├── lapi.h │ │ ├── linit.c │ │ ├── lstring.h │ │ ├── lundump.h │ │ ├── ldebug.h │ │ ├── ltm.h │ │ ├── lfunc.h │ │ ├── lvm.h │ │ ├── ltable.h │ │ ├── lualib.h │ │ └── lmem.h │ ├── doc │ │ ├── cover.png │ │ ├── logo.gif │ │ ├── amazon.gif │ │ ├── manual.css │ │ ├── lua.css │ │ └── readme.html │ ├── etc │ │ ├── lua.ico │ │ ├── lua.hpp │ │ ├── lua.pc │ │ ├── luavs.bat │ │ ├── all.c │ │ ├── min.c │ │ ├── strict.lua │ │ ├── README │ │ └── noparser.c │ ├── test │ │ ├── life.lua │ │ ├── hello.lua │ │ ├── echo.lua │ │ ├── printf.lua │ │ ├── env.lua │ │ ├── luac.lua │ │ ├── fibfor.lua │ │ ├── readonly.lua │ │ ├── table.lua │ │ ├── cf.lua │ │ ├── xd.lua │ │ ├── globals.lua │ │ ├── bisect.lua │ │ ├── fib.lua │ │ ├── factorial.lua │ │ ├── trace-calls.lua │ │ ├── sieve.lua │ │ ├── trace-globals.lua │ │ ├── README │ │ └── sort.lua │ ├── README │ └── COPYRIGHT ├── epiar.rc ├── Tests │ ├── font.h │ ├── ui.h │ ├── argparser.h │ ├── graphics.h │ ├── tests.h │ ├── ui.cpp │ ├── graphics.cpp │ └── argparser.cpp ├── version.h ├── UI │ ├── ui_dialogs.h │ ├── ui_frame.h │ ├── widgets.h │ ├── ui_label.h │ ├── ui_paragraph.h │ ├── ui_checkbox.h │ ├── ui_textarea.h │ ├── ui_textbox.h │ ├── ui_text.h │ ├── ui_window.h │ ├── ui_slider.h │ ├── ui_picture.h │ ├── ui_button.h │ ├── ui_scrollbar.h │ ├── ui_tabs.h │ ├── ui_checkbox.cpp │ └── ui_paragraph.cpp ├── Utilities │ ├── resource.h │ ├── timer.h │ ├── filesystem.h │ ├── argparser.h │ ├── trig.h │ ├── options.h │ ├── string_convert.h │ └── file.h ├── Engine │ ├── starfield.h │ ├── console.h │ ├── commodities.h │ ├── calendar.h │ ├── mission.h │ ├── alliances.h │ ├── engines.h │ └── technologies.h ├── defines.h ├── Sprites │ ├── effects.h │ ├── projectile.h │ └── effects.cpp ├── Audio │ ├── audio_lua.h │ ├── music.h │ ├── sound.h │ └── audio.h ├── Graphics │ └── animation.h ├── includes.h └── common.h ├── NEWS ├── Build ├── cmake │ ├── CMakeScripts │ │ ├── CustomModules │ │ │ ├── FindOGG.cmake │ │ │ ├── FindMIKMOD.cmake │ │ │ ├── FindVORBIS.cmake │ │ │ ├── FindFTGL.cmake │ │ │ └── FindLUAJIT.cmake │ │ ├── InstallResources │ │ │ ├── Mac │ │ │ │ ├── startup │ │ │ │ └── Info.plist │ │ │ └── Deb │ │ │ │ ├── epiar.png │ │ │ │ ├── epiar.desktop │ │ │ │ ├── postinst │ │ │ │ └── prerm │ │ ├── Win32Tools │ │ │ ├── curl.exe │ │ │ ├── gzip.exe │ │ │ └── tar.exe │ │ ├── EpiarTests.txt │ │ ├── IncludeFunctions.txt │ │ ├── CrossCompile │ │ │ └── Mingw_Toolchain.cmake │ │ ├── EpiarFooter.txt │ │ └── EpiarFlags.txt │ ├── CMake.cmd │ ├── CMake-QT-Interactive.sh │ ├── CMakeRelease.sh │ ├── .gitignore │ ├── CMake32on64Release.sh │ ├── CMakeMingwCrossCompile.sh │ └── ThirdParty │ │ ├── OGG │ │ └── CMakeLists.txt │ │ └── ZLIB │ │ └── CMakeLists.txt ├── OS X │ ├── Epiar_Icon.icns │ ├── XCode │ │ └── Epiar │ │ │ └── Epiar.xcodeproj │ │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ │ └── cthielen.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcuserdata │ │ │ └── cthielen.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── Info.plist │ └── mkbundle.sh ├── Win32 │ └── NSIS_Resources │ │ ├── NSIS_MUI_ICON.ico │ │ ├── NSIS_Welcome.bmp │ │ ├── NSIS_BrandImage.bmp │ │ └── NSIS_MUI_UNIICON.ico ├── Ubuntu │ └── Ubuntu_Dev_Libs.sh ├── mingw │ └── mkzip.sh ├── Source │ └── mktarball.sh └── Fedora │ └── epiar.spec ├── Doxygen ├── ExtraDocs │ └── UI.h └── Config │ ├── footer.html │ └── header.html ├── autogen.sh ├── Epiar.cmd ├── epiar.desktop ├── LISCENSE.usuzi.txt ├── SDLMain.h ├── epiar.xsl ├── .gitignore ├── update.sh └── AUTHORS /Resources/Blueprints/ui_button.png: -------------------------------------------------------------------------------- 1 | ../Skin/ui_button.png -------------------------------------------------------------------------------- /Source/Lua/src/.cvsignore: -------------------------------------------------------------------------------- 1 | lua 2 | luac 3 | liblua.a 4 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | See http://epiar.net/news for the latest news. 2 | 3 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CustomModules/FindOGG.cmake: -------------------------------------------------------------------------------- 1 | set(OGG_FOUND false) 2 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CustomModules/FindMIKMOD.cmake: -------------------------------------------------------------------------------- 1 | set(MIKMOD_FOUND FALSE) 2 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CustomModules/FindVORBIS.cmake: -------------------------------------------------------------------------------- 1 | set(VORBIS_FOUND false) 2 | -------------------------------------------------------------------------------- /Doxygen/ExtraDocs/UI.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \page uipage User Interface Widgets 3 | */ 4 | -------------------------------------------------------------------------------- /Source/epiar.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "../Resources/Icons/Epiar2.ico" 2 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Mac/startup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Empty for now 4 | -------------------------------------------------------------------------------- /Resources/Art/fight1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/fight1.png -------------------------------------------------------------------------------- /Resources/Art/fight2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/fight2.png -------------------------------------------------------------------------------- /Resources/Art/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/logo.png -------------------------------------------------------------------------------- /Resources/Art/menu1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/menu1.png -------------------------------------------------------------------------------- /Resources/Art/menu2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/menu2.png -------------------------------------------------------------------------------- /Resources/Art/menu3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/menu3.png -------------------------------------------------------------------------------- /Resources/Art/menu4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/menu4.png -------------------------------------------------------------------------------- /Resources/Art/menu5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/menu5.png -------------------------------------------------------------------------------- /Source/Lua/doc/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Source/Lua/doc/cover.png -------------------------------------------------------------------------------- /Source/Lua/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Source/Lua/doc/logo.gif -------------------------------------------------------------------------------- /Source/Lua/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Source/Lua/etc/lua.ico -------------------------------------------------------------------------------- /Source/Lua/test/life.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Source/Lua/test/life.lua -------------------------------------------------------------------------------- /Build/OS X/Epiar_Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/OS X/Epiar_Icon.icns -------------------------------------------------------------------------------- /Resources/Art/uberdone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/uberdone.png -------------------------------------------------------------------------------- /Resources/Icons/Epiar1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Icons/Epiar1.ico -------------------------------------------------------------------------------- /Resources/Icons/Epiar2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Icons/Epiar2.ico -------------------------------------------------------------------------------- /Resources/Icons/epiar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Icons/epiar.png -------------------------------------------------------------------------------- /Source/Lua/doc/amazon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Source/Lua/doc/amazon.gif -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | aclocal \ 3 | && autoheader \ 4 | && automake --add-missing \ 5 | && autoconf 6 | -------------------------------------------------------------------------------- /Resources/Art/gatescene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/gatescene.png -------------------------------------------------------------------------------- /Resources/Art/ubertextest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/ubertextest.png -------------------------------------------------------------------------------- /Resources/Fonts/FreeSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/FreeSans.ttf -------------------------------------------------------------------------------- /Resources/Fonts/FreeSerif.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/FreeSerif.ttf -------------------------------------------------------------------------------- /Resources/Fonts/usuziv2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/usuziv2.ttf -------------------------------------------------------------------------------- /Resources/Fonts/usuzv2i.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/usuzv2i.ttf -------------------------------------------------------------------------------- /Resources/Fonts/visitor2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/visitor2.ttf -------------------------------------------------------------------------------- /Resources/Graphics/corvet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/corvet.png -------------------------------------------------------------------------------- /Resources/Graphics/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/icon.bmp -------------------------------------------------------------------------------- /Resources/Graphics/patrol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/patrol.png -------------------------------------------------------------------------------- /Resources/Graphics/pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/pirate.png -------------------------------------------------------------------------------- /Resources/Graphics/podv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/podv.png -------------------------------------------------------------------------------- /Resources/Graphics/raven.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/raven.png -------------------------------------------------------------------------------- /Resources/Graphics/trans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/trans.png -------------------------------------------------------------------------------- /Resources/Graphics/trans2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/trans2.png -------------------------------------------------------------------------------- /Resources/Graphics/turret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/turret.png -------------------------------------------------------------------------------- /Resources/Graphics/uber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/uber.png -------------------------------------------------------------------------------- /Resources/Graphics/xv-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/xv-1.png -------------------------------------------------------------------------------- /Resources/Skin/ui_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_button.png -------------------------------------------------------------------------------- /Resources/Skin/ui_textbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_textbox.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_low.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_up.png -------------------------------------------------------------------------------- /Resources/Animations/shield.ani: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Animations/shield.ani -------------------------------------------------------------------------------- /Resources/Animations/thrust.ani: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Animations/thrust.ani -------------------------------------------------------------------------------- /Resources/Art/EpiarFleetbig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Art/EpiarFleetbig.png -------------------------------------------------------------------------------- /Resources/Fonts/ConsolaMono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/ConsolaMono.ttf -------------------------------------------------------------------------------- /Resources/Graphics/Fighter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Fighter.png -------------------------------------------------------------------------------- /Resources/Graphics/booster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/booster.png -------------------------------------------------------------------------------- /Resources/Graphics/corvet2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/corvet2.png -------------------------------------------------------------------------------- /Resources/Graphics/gate_gun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/gate_gun.png -------------------------------------------------------------------------------- /Resources/Graphics/goldbeam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/goldbeam.png -------------------------------------------------------------------------------- /Resources/Graphics/kartanal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/kartanal.png -------------------------------------------------------------------------------- /Resources/Graphics/missile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/missile.png -------------------------------------------------------------------------------- /Resources/Graphics/missiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/missiles.png -------------------------------------------------------------------------------- /Resources/Graphics/palitu01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/palitu01.png -------------------------------------------------------------------------------- /Resources/Graphics/planet1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet1.png -------------------------------------------------------------------------------- /Resources/Graphics/planet10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet10.png -------------------------------------------------------------------------------- /Resources/Graphics/planet11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet11.png -------------------------------------------------------------------------------- /Resources/Graphics/planet12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet12.png -------------------------------------------------------------------------------- /Resources/Graphics/planet13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet13.png -------------------------------------------------------------------------------- /Resources/Graphics/planet14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet14.png -------------------------------------------------------------------------------- /Resources/Graphics/planet15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet15.png -------------------------------------------------------------------------------- /Resources/Graphics/planet16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet16.png -------------------------------------------------------------------------------- /Resources/Graphics/planet17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet17.png -------------------------------------------------------------------------------- /Resources/Graphics/planet18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet18.png -------------------------------------------------------------------------------- /Resources/Graphics/planet19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet19.png -------------------------------------------------------------------------------- /Resources/Graphics/planet1s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet1s.png -------------------------------------------------------------------------------- /Resources/Graphics/planet2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet2.png -------------------------------------------------------------------------------- /Resources/Graphics/planet20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet20.png -------------------------------------------------------------------------------- /Resources/Graphics/planet21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet21.png -------------------------------------------------------------------------------- /Resources/Graphics/planet3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet3.png -------------------------------------------------------------------------------- /Resources/Graphics/planet4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet4.png -------------------------------------------------------------------------------- /Resources/Graphics/planet5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet5.png -------------------------------------------------------------------------------- /Resources/Graphics/planet6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet6.png -------------------------------------------------------------------------------- /Resources/Graphics/planet7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet7.png -------------------------------------------------------------------------------- /Resources/Graphics/planet8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet8.png -------------------------------------------------------------------------------- /Resources/Graphics/planet9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/planet9.png -------------------------------------------------------------------------------- /Resources/Graphics/shuttle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/shuttle.png -------------------------------------------------------------------------------- /Resources/Graphics/thruster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/thruster.png -------------------------------------------------------------------------------- /Resources/Graphics/torpedo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/torpedo.png -------------------------------------------------------------------------------- /Resources/Graphics/torpedo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/torpedo1.png -------------------------------------------------------------------------------- /Resources/Graphics/tugship.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/tugship.png -------------------------------------------------------------------------------- /Resources/Icons/Epiar_Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Icons/Epiar_Icon.icns -------------------------------------------------------------------------------- /Resources/Skin/hud_bar_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_bar_left.png -------------------------------------------------------------------------------- /Resources/Skin/hud_hullstr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_hullstr.png -------------------------------------------------------------------------------- /Resources/Skin/hud_radarnav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_radarnav.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_low.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_up.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_back.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_right.png -------------------------------------------------------------------------------- /Source/Lua/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | } 4 | 5 | pre { 6 | font-size: 105% ; 7 | } 8 | -------------------------------------------------------------------------------- /Resources/Animations/asteroid.ani: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Animations/asteroid.ani -------------------------------------------------------------------------------- /Resources/Animations/thrust2.ani: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Animations/thrust2.ani -------------------------------------------------------------------------------- /Resources/Blueprints/Planet8.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/Planet8.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/Planet9.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/Planet9.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet1.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet1.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet10.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet10.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet11.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet11.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet12.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet12.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet13.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet13.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet14.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet14.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet15.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet15.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet16.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet16.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet17.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet17.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet18.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet18.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet19.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet19.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet2.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet2.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet20.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet20.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet3.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet3.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet4.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet4.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet5.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet5.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet6.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet6.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/planet7.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/planet7.xcf -------------------------------------------------------------------------------- /Resources/Blueprints/usuziv2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/usuziv2.ttf -------------------------------------------------------------------------------- /Resources/Blueprints/usuzv2i.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/usuzv2i.ttf -------------------------------------------------------------------------------- /Resources/Fonts/Alfphabet-IV.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Fonts/Alfphabet-IV.ttf -------------------------------------------------------------------------------- /Resources/Graphics/Epiar_Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Epiar_Icon.png -------------------------------------------------------------------------------- /Resources/Graphics/Epiar_Icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Epiar_Icon2.png -------------------------------------------------------------------------------- /Resources/Graphics/SpaceBomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/SpaceBomb.png -------------------------------------------------------------------------------- /Resources/Graphics/Station01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station01.png -------------------------------------------------------------------------------- /Resources/Graphics/Station02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station02.png -------------------------------------------------------------------------------- /Resources/Graphics/Station03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station03.png -------------------------------------------------------------------------------- /Resources/Graphics/Station04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station04.png -------------------------------------------------------------------------------- /Resources/Graphics/Station05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station05.png -------------------------------------------------------------------------------- /Resources/Graphics/Station06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/Station06.png -------------------------------------------------------------------------------- /Resources/Graphics/btlcruiser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/btlcruiser.png -------------------------------------------------------------------------------- /Resources/Graphics/cargoclaw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/cargoclaw.png -------------------------------------------------------------------------------- /Resources/Graphics/escape_pod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/escape_pod.png -------------------------------------------------------------------------------- /Resources/Graphics/gate1_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/gate1_top.png -------------------------------------------------------------------------------- /Resources/Graphics/gate_patrol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/gate_patrol.png -------------------------------------------------------------------------------- /Resources/Graphics/goldbeam2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/goldbeam2.png -------------------------------------------------------------------------------- /Resources/Graphics/golden_uber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/golden_uber.png -------------------------------------------------------------------------------- /Resources/Graphics/hammerhead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hammerhead.png -------------------------------------------------------------------------------- /Resources/Graphics/hp_carbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hp_carbon.png -------------------------------------------------------------------------------- /Resources/Graphics/hp_copper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hp_copper.png -------------------------------------------------------------------------------- /Resources/Graphics/hp_electron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hp_electron.png -------------------------------------------------------------------------------- /Resources/Graphics/hp_organic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hp_organic.png -------------------------------------------------------------------------------- /Resources/Graphics/hp_titanium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hp_titanium.png -------------------------------------------------------------------------------- /Resources/Graphics/laser_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/laser_blue.png -------------------------------------------------------------------------------- /Resources/Graphics/laser_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/laser_green.png -------------------------------------------------------------------------------- /Resources/Graphics/laser_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/laser_grey.png -------------------------------------------------------------------------------- /Resources/Graphics/mark2_laser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/mark2_laser.png -------------------------------------------------------------------------------- /Resources/Graphics/mark3_laser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/mark3_laser.png -------------------------------------------------------------------------------- /Resources/Graphics/marker_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/marker_blue.png -------------------------------------------------------------------------------- /Resources/Graphics/marker_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/marker_off.png -------------------------------------------------------------------------------- /Resources/Graphics/marker_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/marker_red.png -------------------------------------------------------------------------------- /Resources/Graphics/nav_device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/nav_device.png -------------------------------------------------------------------------------- /Resources/Graphics/scivessel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/scivessel.png -------------------------------------------------------------------------------- /Resources/Graphics/sector_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/sector_map.png -------------------------------------------------------------------------------- /Resources/Graphics/uber_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/uber_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/xv-1_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/xv-1_pretty.png -------------------------------------------------------------------------------- /Resources/Icons/Epiar_Icon2.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Icons/Epiar_Icon2.icns -------------------------------------------------------------------------------- /Resources/Skin/active-tab-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/active-tab-left.png -------------------------------------------------------------------------------- /Resources/Skin/hud_bar_middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_bar_middle.png -------------------------------------------------------------------------------- /Resources/Skin/hud_bar_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_bar_right.png -------------------------------------------------------------------------------- /Resources/Skin/hud_hullstr_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_hullstr_bar.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_back.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_right.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_bg.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_up.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_bar.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_right.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_low_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_low_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_up_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_up_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_up_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_up_right.png -------------------------------------------------------------------------------- /Source/Lua/test/hello.lua: -------------------------------------------------------------------------------- 1 | -- the first program in every language 2 | 3 | io.write("Hello world, from ",_VERSION,"!\n") 4 | -------------------------------------------------------------------------------- /Resources/Animations/explosion1.ani: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Animations/explosion1.ani -------------------------------------------------------------------------------- /Resources/Audio/Music/cyberm00n.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Music/cyberm00n.mod -------------------------------------------------------------------------------- /Resources/Audio/Weapons/flaunch.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Weapons/flaunch.ogg -------------------------------------------------------------------------------- /Resources/Audio/Weapons/iceball.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Weapons/iceball.ogg -------------------------------------------------------------------------------- /Resources/Audio/Weapons/rlaunch.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Weapons/rlaunch.ogg -------------------------------------------------------------------------------- /Resources/Graphics/gate1_bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/gate1_bottom.png -------------------------------------------------------------------------------- /Resources/Graphics/missile_pack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/missile_pack.png -------------------------------------------------------------------------------- /Resources/Graphics/patrol_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/patrol_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/pirate_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/pirate_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/raven_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/raven_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/status_sensor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/status_sensor.png -------------------------------------------------------------------------------- /Resources/Skin/active-tab-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/active-tab-middle.png -------------------------------------------------------------------------------- /Resources/Skin/active-tab-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/active-tab-right.png -------------------------------------------------------------------------------- /Resources/Skin/inactive-tab-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/inactive-tab-left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_button_pressed.png -------------------------------------------------------------------------------- /Resources/Skin/ui_checkbox_blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_checkbox_blank.png -------------------------------------------------------------------------------- /Resources/Skin/ui_checkbox_check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_checkbox_check.png -------------------------------------------------------------------------------- /Resources/Skin/ui_dropdown_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_dropdown_open.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_low_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_low_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_up_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_up_left.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_up_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_up_right.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_down.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_filled.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_handle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_handle.png -------------------------------------------------------------------------------- /Resources/Skin/ui_wnd_low_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_wnd_low_right.png -------------------------------------------------------------------------------- /Source/Lua/test/echo.lua: -------------------------------------------------------------------------------- 1 | -- echo command line arguments 2 | 3 | for i=0,table.getn(arg) do 4 | print(i,arg[i]) 5 | end 6 | -------------------------------------------------------------------------------- /Resources/Audio/Weapons/slimeball.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Weapons/slimeball.ogg -------------------------------------------------------------------------------- /Resources/Graphics/cargoclaw_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/cargoclaw_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/cloaking_device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/cloaking_device.png -------------------------------------------------------------------------------- /Resources/Graphics/corvet2_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/corvet2_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/engine_upgrade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/engine_upgrade.png -------------------------------------------------------------------------------- /Resources/Graphics/missile_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/missile_launcher.png -------------------------------------------------------------------------------- /Resources/Graphics/scivessel_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/scivessel_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/shuttle_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/shuttle_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/solcatian_laser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/solcatian_laser.png -------------------------------------------------------------------------------- /Resources/Graphics/sublight_laser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/sublight_laser.png -------------------------------------------------------------------------------- /Resources/Graphics/terran-frigate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/terran-frigate.png -------------------------------------------------------------------------------- /Resources/Graphics/torpedo_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/torpedo_launcher.png -------------------------------------------------------------------------------- /Resources/Graphics/tugship_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/tugship_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/tugship_pretty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/tugship_pretty2.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_exit_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_exit_active.png -------------------------------------------------------------------------------- /Resources/Skin/hud_hullstr_leftbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_hullstr_leftbar.png -------------------------------------------------------------------------------- /Resources/Skin/hud_hullstr_rightbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_hullstr_rightbar.png -------------------------------------------------------------------------------- /Resources/Skin/hud_shieldintegrity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/hud_shieldintegrity.png -------------------------------------------------------------------------------- /Resources/Skin/inactive-tab-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/inactive-tab-middle.png -------------------------------------------------------------------------------- /Resources/Skin/inactive-tab-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/inactive-tab-right.png -------------------------------------------------------------------------------- /Resources/Skin/ui_button_mouseover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_button_mouseover.png -------------------------------------------------------------------------------- /Resources/Skin/ui_dropdown_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_dropdown_closed.png -------------------------------------------------------------------------------- /Resources/Skin/ui_dropdown_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_dropdown_selected.png -------------------------------------------------------------------------------- /Resources/Skin/ui_frame_low_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_frame_low_right.png -------------------------------------------------------------------------------- /Resources/Skin/ui_slider_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_slider_background.png -------------------------------------------------------------------------------- /Resources/Graphics/btlcruiser_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/btlcruiser_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/cargoclaw_pretty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/cargoclaw_pretty2.png -------------------------------------------------------------------------------- /Resources/Graphics/hammerhead_pretty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/hammerhead_pretty.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_editor_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_editor_active.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_exit_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_exit_inactive.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_options_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_options_active.png -------------------------------------------------------------------------------- /Resources/Icons/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_iconsdir = $(datadir)/pixmaps/ 2 | epiar_resources_icons_DATA = Resources/Icons/epiar.png 3 | -------------------------------------------------------------------------------- /Resources/Skin/ui_dropdown_mouseover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_dropdown_mouseover.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_handle_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_handle_bg.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_handle_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_handle_up.png -------------------------------------------------------------------------------- /Build/Win32/NSIS_Resources/NSIS_MUI_ICON.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/Win32/NSIS_Resources/NSIS_MUI_ICON.ico -------------------------------------------------------------------------------- /Build/Win32/NSIS_Resources/NSIS_Welcome.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/Win32/NSIS_Resources/NSIS_Welcome.bmp -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/Win32Tools/curl.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/cmake/CMakeScripts/Win32Tools/curl.exe -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/Win32Tools/gzip.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/cmake/CMakeScripts/Win32Tools/gzip.exe -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/Win32Tools/tar.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/cmake/CMakeScripts/Win32Tools/tar.exe -------------------------------------------------------------------------------- /Resources/Audio/Music/beyond_the_network.it: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Music/beyond_the_network.it -------------------------------------------------------------------------------- /Resources/Blueprints/nav_device.blend,v.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/nav_device.blend,v.gz -------------------------------------------------------------------------------- /Resources/Graphics/txt_continue_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_continue_active.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_continue_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_continue_inactive.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_editor_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_editor_inactive.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_load_game_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_load_game_active.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_new_game_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_new_game_active.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_new_game_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_new_game_inactive.png -------------------------------------------------------------------------------- /Resources/Graphics/txt_options_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_options_inactive.png -------------------------------------------------------------------------------- /Resources/Skin/ui_scrollbar_handle_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Skin/ui_scrollbar_handle_down.png -------------------------------------------------------------------------------- /Build/Win32/NSIS_Resources/NSIS_BrandImage.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/Win32/NSIS_Resources/NSIS_BrandImage.bmp -------------------------------------------------------------------------------- /Resources/Graphics/txt_load_game_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Graphics/txt_load_game_inactive.png -------------------------------------------------------------------------------- /Build/Win32/NSIS_Resources/NSIS_MUI_UNIICON.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/Win32/NSIS_Resources/NSIS_MUI_UNIICON.ico -------------------------------------------------------------------------------- /Resources/Audio/Music/maverlyn_dp_explore_9.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Music/maverlyn_dp_explore_9.ogg -------------------------------------------------------------------------------- /Resources/Blueprints/nav_device_accessories.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Blueprints/nav_device_accessories.tar.gz -------------------------------------------------------------------------------- /Resources/Definitions/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_definitionsdir = $(datadir)/epiar/Resources/Definitions/ 2 | epiar_resources_definitions_DATA = 3 | 4 | -------------------------------------------------------------------------------- /Resources/Audio/Effects/18384__inferno__largex.wav.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Effects/18384__inferno__largex.wav.ogg -------------------------------------------------------------------------------- /Resources/Audio/Interface/28820__junggle__btn010.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Interface/28820__junggle__btn010.ogg -------------------------------------------------------------------------------- /Resources/Audio/Interface/28853__junggle__btn043.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Interface/28853__junggle__btn043.ogg -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Deb/epiar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/cmake/CMakeScripts/InstallResources/Deb/epiar.png -------------------------------------------------------------------------------- /Resources/Audio/Effects/55853__sergenious__teleport.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Effects/55853__sergenious__teleport.wav -------------------------------------------------------------------------------- /Resources/Audio/Effects/128590__corsica-s__transport-edit.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Effects/128590__corsica-s__transport-edit.wav -------------------------------------------------------------------------------- /Epiar.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Launches Epiar in console mode 3 | 4 | IF EXIST Epiar_debug.exe ( 5 | start /W Epiar_debug.exe %* 6 | ) ELSE ( 7 | start /W EpiarExe.exe %* 8 | ) 9 | -------------------------------------------------------------------------------- /Resources/Audio/Engines/22455__nathanshadow__Thruster_Level_II.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Resources/Audio/Engines/22455__nathanshadow__Thruster_Level_II.ogg -------------------------------------------------------------------------------- /Build/cmake/CMake.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal 3 | IF "%1"=="clean" ( 4 | rmdir /s "%~dp0build" 5 | ) ELSE ( 6 | mkdir "%~dp0build" 2>nul 7 | cmake-gui -H"%CD%" -B"%~dp0build" 8 | ) 9 | endlocal 10 | -------------------------------------------------------------------------------- /Resources/Audio/Engines/Credits.txt: -------------------------------------------------------------------------------- 1 | Creative Commons License from Freesound.org 2 | 3 | Filename: 22455__nathanshadow__Thruster_Level_II.ogg 4 | URL: http://www.freesound.org/samplesViewSingle.php?id=22455 5 | -------------------------------------------------------------------------------- /Source/Lua/test/printf.lua: -------------------------------------------------------------------------------- 1 | -- an implementation of printf 2 | 3 | function printf(...) 4 | io.write(string.format(...)) 5 | end 6 | 7 | printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date()) 8 | -------------------------------------------------------------------------------- /Source/Lua/test/env.lua: -------------------------------------------------------------------------------- 1 | -- read environment variables as if they were global variables 2 | 3 | local f=function (t,i) return os.getenv(i) end 4 | setmetatable(getfenv(),{__index=f}) 5 | 6 | -- an example 7 | print(a,USER,PATH) 8 | -------------------------------------------------------------------------------- /Resources/Audio/Weapons/Credits.txt: -------------------------------------------------------------------------------- 1 | Name: flaunch.ogg, iceball.ogg, rlaunch.ogg, slimeball.ogg 2 | Author: Michel Baradari 3 | Url: http://opengameart.org, apollo-music.de 4 | License: CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/ 5 | 6 | -------------------------------------------------------------------------------- /Build/Ubuntu/Ubuntu_Dev_Libs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # You also need `cmake` and `cmake-qt-gui` if you want to use cmake 3 | 4 | sudo aptitude install g++ zlib1g-dev libxml2-dev libsdl1.2-dev liblua5.1-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libftgl-dev 5 | -------------------------------------------------------------------------------- /Build/OS X/XCode/Epiar/Epiar.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/Lua/etc/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /Resources/Audio/Interface/Credits.txt: -------------------------------------------------------------------------------- 1 | Creative Commons License 2 | 3 | File: 28853__junggle__btn043.ogg 4 | URL: http://www.freesound.org/samplesViewSingle.php?id=28853 5 | 6 | File: 28820__junggle__btn010.ogg 7 | URL: http://www.freesound.org/samplesViewSingle.php?id=28820 8 | -------------------------------------------------------------------------------- /Source/Lua/test/luac.lua: -------------------------------------------------------------------------------- 1 | -- bare-bones luac in Lua 2 | -- usage: lua luac.lua file.lua 3 | 4 | assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua") 5 | f=assert(io.open("luac.out","wb")) 6 | assert(f:write(string.dump(assert(loadfile(arg[1]))))) 7 | assert(f:close()) 8 | -------------------------------------------------------------------------------- /epiar.desktop: -------------------------------------------------------------------------------- 1 | 2 | [Desktop Entry] 3 | Name=Epiar 4 | Comment=Space trading/exploring sim with RPG elements 5 | Exec=epiar 6 | Icon=epiar 7 | StartupNotify=false 8 | Terminal=false 9 | Type=Application 10 | Categories=Game;ActionGame; 11 | X-Desktop-File-Install-Version=0.18 12 | -------------------------------------------------------------------------------- /Build/OS X/XCode/Epiar/Epiar.xcodeproj/project.xcworkspace/xcuserdata/cthielen.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knowknowledge/Epiar/HEAD/Build/OS X/XCode/Epiar/Epiar.xcodeproj/project.xcworkspace/xcuserdata/cthielen.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Doxygen/Config/footer.html: -------------------------------------------------------------------------------- 1 |
2 | Generated on $datetime for $projectname by doxygen $doxygenversion
3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Tests/font.h: -------------------------------------------------------------------------------- 1 | /**\file font.h 2 | * \author Maoserr 3 | * \date Created: Sunday, March 28, 2010 4 | * \brief Font rendering tests. 5 | */ 6 | 7 | #ifndef __H_TEST_FONT__ 8 | #define __H_TEST_FONT__ 9 | int test_font(int argc, char**argv); 10 | #endif//__H_TEST_FONT__ 11 | 12 | -------------------------------------------------------------------------------- /Resources/Animations/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_animationsdir = $(datadir)/epiar/Resources/Animations/ 2 | epiar_resources_animations_DATA = Resources/Animations/asteroid.ani Resources/Animations/explosion1.ani Resources/Animations/shield.ani Resources/Animations/thrust2.ani Resources/Animations/thrust.ani 3 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Deb/epiar.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Epiar 3 | GenericName=Epiar Game 4 | Comment=Space combat/trading game 5 | TryExec=epiar 6 | Exec=epiar 7 | StartupNotify=false 8 | Terminal=false 9 | Type=Application 10 | Icon=epiar 11 | Categories=Game;AdventureGame;Simulation 12 | 13 | -------------------------------------------------------------------------------- /Resources/Audio/Music/Credits.txt: -------------------------------------------------------------------------------- 1 | "Cyberm00n" by Jukka Kaartinen, Licensed under Creative Commons 2 | http://www.mono211.com/modsoulbrother/ 3 | 4 | beyond_the_network.it by Skaven252 5 | http://modarchive.org/index.php?request=view_by_moduleid&query=156184 6 | 7 | This is just a place holder song until we figure out better ones. 8 | 9 | -------------------------------------------------------------------------------- /Resources/Fonts/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_fontsdir = $(datadir)/epiar/Resources/Fonts/ 2 | epiar_resources_fonts_DATA = Resources/Fonts/ConsolaMono.ttf Resources/Fonts/FreeSerif.ttf Resources/Fonts/usuziv2.ttf Resources/Fonts/Alfphabet-IV.ttf Resources/Fonts/FreeSans.ttf Resources/Fonts/usuzv2i.ttf Resources/Fonts/visitor2.ttf 3 | -------------------------------------------------------------------------------- /Source/Tests/ui.h: -------------------------------------------------------------------------------- 1 | /**\file ui.h 2 | * \author Maoserr 3 | * \date Created: Monday, March 22, 2010 4 | * \date Modified: Monday, March 22, 2010 5 | * \brief UI demo & debugging. 6 | */ 7 | 8 | #ifndef __H_TEST_UI__ 9 | #define __H_TEST_UI__ 10 | int test_ui(int argc, char **argv); 11 | #endif//__H_TEST_UI__ 12 | 13 | -------------------------------------------------------------------------------- /Source/Lua/test/fibfor.lua: -------------------------------------------------------------------------------- 1 | -- example of for with generator functions 2 | 3 | function generatefib (n) 4 | return coroutine.wrap(function () 5 | local a,b = 1, 1 6 | while a <= n do 7 | coroutine.yield(a) 8 | a, b = b, a+b 9 | end 10 | end) 11 | end 12 | 13 | for i in generatefib(1000) do print(i) end 14 | -------------------------------------------------------------------------------- /Source/Lua/test/readonly.lua: -------------------------------------------------------------------------------- 1 | -- make global variables readonly 2 | 3 | local f=function (t,i) error("cannot redefine global variable `"..i.."'",2) end 4 | local g={} 5 | local G=getfenv() 6 | setmetatable(g,{__index=G,__newindex=f}) 7 | setfenv(1,g) 8 | 9 | -- an example 10 | rawset(g,"x",3) 11 | x=2 12 | y=1 -- cannot redefine `y' 13 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CustomModules/FindFTGL.cmake: -------------------------------------------------------------------------------- 1 | find_path(FTGL_INCLUDE_DIR FTGL/ftgl.h) 2 | 3 | find_library(FTGL_LIBRARIES ftgl) 4 | 5 | if (FTGL_INCLUDE_DIR AND FTGL_LIBRARIES) 6 | set(FTGL_FOUND TRUE) 7 | endif (FTGL_INCLUDE_DIR AND FTGL_LIBRARIES) 8 | 9 | mark_as_advanced(FTGL_INCLUDE_DIR) 10 | mark_as_advanced(FTGL_LIBRARIES) 11 | -------------------------------------------------------------------------------- /Source/Lua/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 1.1 2008/01/05 09:59:12 chris_thielen Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /Source/Lua/test/table.lua: -------------------------------------------------------------------------------- 1 | -- make table, grouping all data for the same item 2 | -- input is 2 columns (item, data) 3 | 4 | local A 5 | while 1 do 6 | local l=io.read() 7 | if l==nil then break end 8 | local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$') 9 | if a~=A then A=a io.write("\n",a,":") end 10 | io.write(" ",b) 11 | end 12 | io.write("\n") 13 | -------------------------------------------------------------------------------- /Source/Tests/argparser.h: -------------------------------------------------------------------------------- 1 | /**\file argparser.h 2 | * \author Maoserr 3 | * \date Created: Sunday, March 21, 2010 4 | * \date Modified: Sunday, March 21, 2010 5 | * \brief Tests the command line parser. 6 | */ 7 | 8 | #ifndef __H_TEST_ARGPARSER__ 9 | #define __H_TEST_ARGPARSER__ 10 | int test_argparser(int argc, char **argv); 11 | #endif//__H_TEST_ARGPARSER__ 12 | -------------------------------------------------------------------------------- /Source/Lua/test/cf.lua: -------------------------------------------------------------------------------- 1 | -- temperature conversion table (celsius to farenheit) 2 | 3 | for c0=-20,50-1,10 do 4 | io.write("C ") 5 | for c=c0,c0+10-1 do 6 | io.write(string.format("%3.0f ",c)) 7 | end 8 | io.write("\n") 9 | 10 | io.write("F ") 11 | for c=c0,c0+10-1 do 12 | f=(9/5)*c+32 13 | io.write(string.format("%3.0f ",f)) 14 | end 15 | io.write("\n\n") 16 | end 17 | -------------------------------------------------------------------------------- /Resources/Blueprints/ui_dropdown.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 0 32 #746c51 11 | 0 33 #655c42 12 | 2 5 0 1 0 -1 54 -1 -1 0.000 0 0 -1 0 0 5 13 | 0 ui_button.png 14 | 4125 900 75 900 75 75 4125 75 4125 900 15 | 2 1 0 1 32 7 50 -1 20 0.000 0 0 -1 0 0 4 16 | 3616 337 3750 675 3880 337 3616 337 17 | -------------------------------------------------------------------------------- /LISCENSE.usuzi.txt: -------------------------------------------------------------------------------- 1 | Usuzi version 2 Truetype Font for Windows 2 | 3 | 2002 Iconian Fonts - Daniel Zadorozny 4 | 5 | http://www.iconian.com 6 | 7 | This font comes with the following 2 versions: Regular and Italic. 8 | 9 | This font may be freely distributed and is free for all non-commercial uses. This font is e-mailware; that is, if you like it, please e-mail the author at: 10 | 11 | iconian@aol.com -------------------------------------------------------------------------------- /Build/cmake/CMake-QT-Interactive.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Build configuration 4 | BUILD="Debug" 5 | DOXYGEN="OFF" 6 | TESTS="ON" 7 | INTERNAL_LUA="ON" 8 | LUAJIT="OFF" 9 | 10 | # Intermedia directory 11 | IDIR="`pwd`/build" 12 | 13 | mkdir "$IDIR" 14 | cmake-gui -H"`pwd`" -B"$IDIR" -DCMAKE_BUILD_TYPE=$BUILD -DCOMPILE_DOXYGEN=$DOXYGEN -DCOMPILE_TEST=$TESTS -DUSE_INTERNAL_LUA=$INTERNAL_LUA -DUSE_LUAJIT=$LUAJIT 15 | 16 | -------------------------------------------------------------------------------- /Resources/Blueprints/usuzi.txt: -------------------------------------------------------------------------------- 1 | Usuzi version 2 Truetype Font for Windows 2 | 3 | 2002 Iconian Fonts - Daniel Zadorozny 4 | 5 | http://www.iconian.com 6 | 7 | This font comes with the following 2 versions: Regular and Italic. 8 | 9 | This font may be freely distributed and is free for all non-commercial uses. This font is e-mailware; that is, if you like it, please e-mail the author at: 10 | 11 | iconian@aol.com -------------------------------------------------------------------------------- /Build/cmake/CMakeRelease.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Build configuration 4 | BUILD="Release" 5 | DOXYGEN="OFF" 6 | TESTS="OFF" 7 | INTERNAL_LUA="OFF" 8 | LUAJIT="OFF" 9 | 10 | # Intermedia directory 11 | IDIR="`pwd`/buildRelease" 12 | 13 | mkdir "$IDIR" 14 | cmake -H"`pwd`" -B"$IDIR" -DCMAKE_BUILD_TYPE=$BUILD -DCOMPILE_DOXYGEN=$DOXYGEN -DCOMPILE_TEST=$TESTS -DUSE_INTERNAL_LUA=$INTERNAL_LUA -DUSE_LUAJIT=$LUAJIT 15 | 16 | 17 | -------------------------------------------------------------------------------- /Source/Tests/graphics.h: -------------------------------------------------------------------------------- 1 | /**\file graphics.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Saturday, January 31, 2009 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief Graphics demo & debugging 6 | * \details 7 | */ 8 | 9 | 10 | #ifndef __H_TEST_GRAPHICS__ 11 | #define __H_TEST_GRAPHICS__ 12 | int test_graphics(int argc, char **argv); 13 | #endif // _H_TEST_GRAPHICS__ 14 | 15 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/EpiarTests.txt: -------------------------------------------------------------------------------- 1 | # Sets up tests to be run (testing only works in debug mode) 2 | 3 | if (COMPILE_TESTS) 4 | enable_testing() 5 | get_target_property(EpiarBinName EpiarBIN DEBUG_OUTPUT_NAME) 6 | set(EpiarCmd "${Epiar_OUT_DIR}/${EpiarBinName}") 7 | 8 | # Test lua 9 | add_test(Lua_test ${EpiarCmd} --run-test=lua_test) 10 | 11 | 12 | 13 | 14 | 15 | 16 | endif (COMPILE_TESTS) 17 | 18 | # vim:ft=cmake 19 | -------------------------------------------------------------------------------- /Resources/Art/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_artdir = $(datadir)/epiar/Resources/Art/ 2 | epiar_resources_art_DATA = Resources/Art/EpiarFleetbig.png Resources/Art/gatescene.png Resources/Art/menu1.png Resources/Art/menu4.png Resources/Art/ubertextest.png Resources/Art/fight1.png Resources/Art/logo.png Resources/Art/menu2.png Resources/Art/menu5.png Resources/Art/fight2.png Resources/Art/menu3.png Resources/Art/uberdone.png 3 | 4 | -------------------------------------------------------------------------------- /Resources/Scripts/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_scriptsdir = $(datadir)/epiar/Resources/Scripts/ 2 | epiar_resources_scripts_DATA = Resources/Scripts/ai.lua Resources/Scripts/commands.lua Resources/Scripts/fleet.lua Resources/Scripts/missions.lua Resources/Scripts/universe.lua Resources/Scripts/autopilot.lua Resources/Scripts/editor.lua Resources/Scripts/player.lua Resources/Scripts/utilities.lua Resources/Scripts/landing.lua 3 | 4 | -------------------------------------------------------------------------------- /Source/Lua/test/xd.lua: -------------------------------------------------------------------------------- 1 | -- hex dump 2 | -- usage: lua xd.lua < file 3 | 4 | local offset=0 5 | while true do 6 | local s=io.read(16) 7 | if s==nil then return end 8 | io.write(string.format("%08X ",offset)) 9 | string.gsub(s,"(.)", 10 | function (c) io.write(string.format("%02X ",string.byte(c))) end) 11 | io.write(string.rep(" ",3*(16-string.len(s)))) 12 | io.write(" ",string.gsub(s,"%c","."),"\n") 13 | offset=offset+16 14 | end 15 | -------------------------------------------------------------------------------- /SDLMain.h: -------------------------------------------------------------------------------- 1 | /* SDLMain.m - main entry point for our Cocoa-ized SDL app 2 | Initial Version: Darrell Walisser 3 | Non-NIB-Code & other changes: Max Horn 4 | 5 | Feel free to customize this file to suit your needs 6 | */ 7 | 8 | #ifndef _SDLMain_h_ 9 | #define _SDLMain_h_ 10 | 11 | #import 12 | 13 | @interface SDLMain : NSObject 14 | @end 15 | 16 | #endif /* _SDLMain_h_ */ 17 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/IncludeFunctions.txt: -------------------------------------------------------------------------------- 1 | # This script includes external functions 2 | if (WIN32) 3 | set(G_UTIL_PATH "${SCRIPT_DIR}/Win32Tools") 4 | endif (WIN32) 5 | 6 | include ("PARSE_ARGUMENTS") 7 | include ("DOWNLOAD_FILE") 8 | include ("EXTRACT_ARCHIVE") 9 | # Precompiled headers for GCC 10 | if(CMAKE_COMPILER_IS_GNUCXX) 11 | include ("GCC_PRECOMPILED_H") 12 | endif(CMAKE_COMPILER_IS_GNUCXX) 13 | include ("FIND_THIRD_PARTY") 14 | 15 | # vim:ft=cmake 16 | -------------------------------------------------------------------------------- /Source/version.h: -------------------------------------------------------------------------------- 1 | /**\file version.h 2 | * \author Chris Thielen 3 | * \author and others 4 | * \date Saturday, November 21, 2009 5 | * \date Saturday, November 21, 2009 6 | * \brief Epiar version 7 | * \details 8 | */ 9 | 10 | #ifndef __H_VERSION__ 11 | #define __H_VERSION__ 12 | 13 | #define EPIAR_VERSION_MAJOR 0 14 | #define EPIAR_VERSION_MINOR 5 15 | #define EPIAR_VERSION_MICRO 1 16 | #define EPIAR_VERSION_FULL "0.5.1" 17 | 18 | #endif // __H_VERSION__ 19 | -------------------------------------------------------------------------------- /Build/OS X/XCode/Epiar/Epiar.xcodeproj/project.xcworkspace/xcuserdata/cthielen.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Source/Lua/test/globals.lua: -------------------------------------------------------------------------------- 1 | -- reads luac listings and reports global variable usage 2 | -- lines where a global is written to are marked with "*" 3 | -- typical usage: luac -p -l file.lua | lua globals.lua | sort | lua table.lua 4 | 5 | while 1 do 6 | local s=io.read() 7 | if s==nil then break end 8 | local ok,_,l,op,g=string.find(s,"%[%-?(%d*)%]%s*([GS])ETGLOBAL.-;%s+(.*)$") 9 | if ok then 10 | if op=="S" then op="*" else op="" end 11 | io.write(g,"\t",l,op,"\n") 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Resources/Audio/Effects/Credits.txt: -------------------------------------------------------------------------------- 1 | Creative Commons license from Freesound.org 2 | 3 | Name: 18384__inferno__largex.wav.ogg 4 | URL: http://www.freesound.org/samplesViewSingle.php?id=18384 5 | 6 | Name: 55853__sergenious__teleport.wav 7 | URL: http://www.freesound.org/people/Sergenious/sounds/55853/ 8 | 9 | Name: 128590__corsica-s__transport-edit.wav 10 | URL: http://www.freesound.org/people/Corsica_S/sounds/128590/ 11 | Slightly modified by Christopher James Bell on 23/10/2012 12 | Email: thebellinat0r@gmail.com 13 | -------------------------------------------------------------------------------- /Build/cmake/.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | build*/* 3 | lib/* 4 | 5 | ThirdParty/*.tar.gz 6 | ThirdParty/FreeType/freetype* 7 | ThirdParty/FTGL/ftgl* 8 | ThirdParty/LibXML2/libxml2* 9 | ThirdParty/Lua51/lua* 10 | ThirdParty/LuaJIT/LuaJIT* 11 | ThirdParty/MIKMOD/libmikmod* 12 | ThirdParty/OGG/libogg* 13 | ThirdParty/PhysFS/physfs* 14 | ThirdParty/PNG/libpng* 15 | ThirdParty/SDL/SDL* 16 | ThirdParty/SDL_image/SDL_image* 17 | ThirdParty/SDL_mixer/SDL_mixer* 18 | ThirdParty/VORBIS/libvorbis* 19 | ThirdParty/Zlib/zlib* 20 | 21 | Vim/tags 22 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleExecutable 6 | Epiar 7 | CFBundleName 8 | Epiar 9 | CFBundleIdentifier 10 | com.epiar.sample 11 | CFBundleIconFile 12 | Epiar_Icon.icns 13 | 14 | 15 | -------------------------------------------------------------------------------- /Source/UI/ui_dialogs.h: -------------------------------------------------------------------------------- 1 | /**\file ui_common.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Thursday, May 5, 2011 4 | * \date Modified: Thursday, May 5, 2011 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_DIALOGS__ 10 | #define __H_DIALOGS__ 11 | 12 | #include "Graphics/image.h" 13 | #include "UI/ui.h" 14 | 15 | class Dialogs { 16 | public: 17 | static bool Confirm( const string message ); 18 | static void Alert( const string message ); 19 | static void OptionsWindow(); 20 | }; 21 | 22 | #endif // __H_DIALOGS__ 23 | -------------------------------------------------------------------------------- /Source/Utilities/resource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Filename : resource.h 3 | * Author(s) : Matt Zweig 4 | * Date Created : Saturday, December 19, 2009 5 | * Last Modified : Saturday, December 19, 2009 6 | * Purpose : 7 | * Notes : 8 | */ 9 | 10 | #include "includes.h" 11 | 12 | #ifndef __H_RESOURCE_CLASS 13 | #define __H_RESOURCE_CLASS 14 | 15 | class Resource{ 16 | public: 17 | Resource(); 18 | static void Store(string key, Resource* res); 19 | static Resource* Get(string path); 20 | private: 21 | static map values; 22 | }; 23 | 24 | #endif // __H_RESOURCE__ 25 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Deb/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # postinst script for Epiar 3 | 4 | # Abort if any command returns an error value 5 | set -e 6 | 7 | case "$1" in 8 | configure) 9 | # Create script to call Epiar in the bin directory 10 | echo '#! /bin/bash 11 | cd /usr/share/Epiar 12 | ./Epiar 13 | ' > /usr/bin/epiar 14 | chmod +x /usr/bin/epiar 15 | ;; 16 | 17 | abort-upgrade|abort-remove|abort-deconfigure) 18 | # nothing to do 19 | ;; 20 | 21 | *) 22 | echo "postinst called with unknown argument \`$1'" >&2 23 | exit 1 24 | ;; 25 | esac 26 | 27 | exit 0 28 | 29 | -------------------------------------------------------------------------------- /Resources/Simulation/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_simulationdir = $(datadir)/epiar/Resources/Simulation/default/ 2 | epiar_resources_simulation_DATA = Resources/Simulation/default/alliances-default.xml Resources/Simulation/default/gates-default.xml Resources/Simulation/default/planets-default.xml Resources/Simulation/default/weapons-default.xml Resources/Simulation/default/commodities-default.xml Resources/Simulation/default/models-default.xml Resources/Simulation/default/simulation.xml Resources/Simulation/default/engines-default.xml Resources/Simulation/default/outfits-default.xml Resources/Simulation/default/technologies-default.xml 3 | 4 | -------------------------------------------------------------------------------- /Build/OS X/XCode/Epiar/Epiar.xcodeproj/xcuserdata/cthielen.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Epiar.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4728A35D157466BF003DB6BE 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CrossCompile/Mingw_Toolchain.cmake: -------------------------------------------------------------------------------- 1 | # the name of the target operating system 2 | SET(CMAKE_SYSTEM_NAME Windows) 3 | # which compilers to use for C and C++ 4 | SET(CMAKE_C_COMPILER i486-mingw32-gcc) 5 | SET(CMAKE_CXX_COMPILER i486-mingw32-g++) 6 | # here is the target environment located 7 | SET(CMAKE_FIND_ROOT_PATH /usr/i486-mingw32 ) 8 | # adjust the default behaviour of the FIND_XXX() commands: 9 | # search headers and libraries in the target environment, search 10 | # programs in the host environment 11 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 12 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 13 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 14 | 15 | -------------------------------------------------------------------------------- /Build/cmake/CMake32on64Release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is meant to be used for cross-compiling in chroot 3 | 4 | # Build configuration 5 | BUILD="Release" 6 | DOXYGEN="OFF" 7 | TESTS="OFF" 8 | INTERNAL_LUA="OFF" 9 | LUAJIT="ON" 10 | 11 | # Cross compiling definitions 12 | CROSSFLAGS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=i686" 13 | 14 | # Intermedia directory 15 | IDIR="`pwd`/build32Release" 16 | 17 | mkdir "$IDIR" 18 | cmake -H"`pwd`" -B"$IDIR" -DCOMPILE_DOXYGEN=$DOXYGEN -DCOMPILE_TEST=$TESTS -DUSE_INTERNAL_LUA=$INTERNAL_LUA -DUSE_LUAJIT=$LUAJIT $CROSSFLAGS 19 | 20 | # We need to define Release configuration after initial generation 21 | cmake -H"`pwd`" -B"$IDIR" -DCMAKE_BUILD_TYPE=$BUILD 22 | -------------------------------------------------------------------------------- /Doxygen/Config/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $title 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/CustomModules/FindLUAJIT.cmake: -------------------------------------------------------------------------------- 1 | find_path(LUAJIT_INCLUDE_DIR luajit.h 2 | NAMES luajit.h 3 | PATH_SUFFIXES luajit-2.0) 4 | 5 | if (LUAJIT_FIND_STATIC) 6 | find_library(LUAJIT_LIBRARIES luajit.a 7 | NAMES libluajit-5.1.a) 8 | else (LUATJIT_FIND_STATIC) 9 | find_library(LUAJIT_LIBRARIES luajit 10 | NAMES luajit-5.1) 11 | endif (LUAJIT_FIND_STATIC) 12 | 13 | mark_as_advanced(LUAJIT_INCLUDE_DIR) 14 | mark_as_advanced(LUAJIT_LIBRARIES) 15 | 16 | # handle the QUIETLY and REQUIRED arguments and set LUAJIT_FOUND to TRUE if 17 | # all listed variables are TRUE 18 | INCLUDE(FindPackageHandleStandardArgs) 19 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(LUAJIT DEFAULT_MSG LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) 20 | 21 | -------------------------------------------------------------------------------- /Source/Tests/tests.h: -------------------------------------------------------------------------------- 1 | /**\file tests.h 2 | * \author Maoserr 3 | * \date Created: Saturday, March 20, 2010 4 | * \date Modified: Saturday, March 20, 2010 5 | * \brief Tests framework. 6 | * \details 7 | * This file sets-up the functionality to test individual components of Epiar 8 | */ 9 | 10 | // Function pointer to the test function 11 | typedef int (*testFunc)(int argc, char **argv); 12 | 13 | class Test{ 14 | public: 15 | Test( const string& testname ); 16 | int RunTest( int argc, char **argv); 17 | 18 | private: 19 | void LoadRequirements( void ); 20 | void UnloadRequirements( void ); 21 | void GameLoop( void ); 22 | 23 | map > tests; 24 | string testname; 25 | }; 26 | -------------------------------------------------------------------------------- /Source/Engine/starfield.h: -------------------------------------------------------------------------------- 1 | /**\file starfield.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified : Saturday, January 5, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #include "Engine/camera.h" 10 | 11 | #ifndef __h_starfield__ 12 | #define __h_starfield__ 13 | 14 | class Starfield { 15 | public: 16 | Starfield( int num ); 17 | ~Starfield( void ); 18 | 19 | void Draw( void ); 20 | void Update( Camera *camera ); 21 | void drawStar( float x, float y, float brightness); 22 | 23 | private: 24 | struct _stars { 25 | float x, y; 26 | float clr; 27 | } *stars; 28 | 29 | int num; // number of stars 30 | }; 31 | 32 | #endif // __h_starfield__ 33 | 34 | -------------------------------------------------------------------------------- /Source/UI/ui_frame.h: -------------------------------------------------------------------------------- 1 | /**\file ui_frame.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: August 24, 2010 4 | * \date Modified: August 24, 2010 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_FRAME__ 10 | #define __H_FRAME__ 11 | 12 | #include "Graphics/image.h" 13 | #include "UI/ui.h" 14 | 15 | class Frame : public Container { 16 | public: 17 | Frame( int x, int y, int w, int h ); 18 | Frame *AddChild( Widget *widget ); 19 | void Draw( int relx = 0, int rely = 0 ); 20 | 21 | string GetType( void ) { return string("Frame"); } 22 | virtual int GetMask( void ) { return WIDGET_FRAME | WIDGET_CONTAINER; } 23 | 24 | private: 25 | Image *bitmaps[9]; 26 | }; 27 | 28 | #endif // __H_FRAME__ 29 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/InstallResources/Deb/prerm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # prerm file for Epiar 3 | 4 | # Abort if any command returns an error value 5 | set -e 6 | 7 | case "$1" in 8 | remove) 9 | # This package about to be removed. 10 | rm /usr/bin/epiar 11 | ;; 12 | deconfigure) 13 | ;; 14 | upgrade) 15 | # Prepare to upgrade FROM THIS VERSION of this package to version $2. 16 | ;; 17 | failed-upgrade) 18 | # Prepare to upgrade from version $2 of this package TO THIS VERSION. 19 | # This is only used if the old version's prerm couldn't handle it, 20 | # and returned non-zero. (Fix old prerm bugs here.) 21 | ;; 22 | *) echo "$0: didn't understand being called with \`$1'" 1>&2 23 | exit 0;; 24 | esac 25 | 26 | exit 0 27 | 28 | -------------------------------------------------------------------------------- /Source/UI/widgets.h: -------------------------------------------------------------------------------- 1 | /**\file widgets.h 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Saturday, June 25, 2011 4 | * \brief List of Widgets 5 | * \details 6 | */ 7 | 8 | #include "UI/ui_action.h" 9 | #include "UI/ui_button.h" 10 | #include "UI/ui_checkbox.h" 11 | #include "UI/ui_container.h" 12 | #include "UI/ui_dialogs.h" 13 | #include "UI/ui_dropdown.h" 14 | #include "UI/ui_frame.h" 15 | #include "UI/ui_label.h" 16 | #include "UI/ui_lua.h" 17 | #include "UI/ui_map.h" 18 | #include "UI/ui_paragraph.h" 19 | #include "UI/ui_picture.h" 20 | #include "UI/ui_scrollbar.h" 21 | #include "UI/ui_slider.h" 22 | #include "UI/ui_tabs.h" 23 | #include "UI/ui_textbox.h" 24 | #include "UI/ui_textarea.h" 25 | #include "UI/ui_widget.h" 26 | #include "UI/ui_window.h" 27 | -------------------------------------------------------------------------------- /Source/Lua/test/bisect.lua: -------------------------------------------------------------------------------- 1 | -- bisection method for solving non-linear equations 2 | 3 | delta=1e-6 -- tolerance 4 | 5 | function bisect(f,a,b,fa,fb) 6 | local c=(a+b)/2 7 | io.write(n," c=",c," a=",a," b=",b,"\n") 8 | if c==a or c==b or math.abs(a-b)(X)) 31 | #endif // TO_FLOAT 32 | 33 | #ifndef TO_INT 34 | #define TO_INT(X) (static_cast(X)) 35 | #endif // TO_INT 36 | 37 | #endif /*DEFINES_H_*/ 38 | -------------------------------------------------------------------------------- /Source/UI/ui_label.h: -------------------------------------------------------------------------------- 1 | /**\file ui_label.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Friday, April 25, 2008 4 | * \date Modified: Friday, April 25, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_LABEL__ 10 | #define __H_LABEL__ 11 | 12 | #include "UI/ui.h" 13 | 14 | class Label : public Widget { 15 | public: 16 | Label( int x, int y, string label, bool centered=false ); 17 | ~Label() { }; 18 | 19 | void Draw( int relx = 0, int rely = 0 ); 20 | 21 | void SetText(string text); 22 | void AppendText(string text); 23 | string GetText(){return name;} 24 | 25 | string GetType( void ) {return string("Label");} 26 | virtual int GetMask( void ) { return WIDGET_LABEL; } 27 | 28 | private: 29 | bool centered; 30 | string text; 31 | }; 32 | 33 | #endif // __H_LABEL__ 34 | -------------------------------------------------------------------------------- /Source/Engine/console.h: -------------------------------------------------------------------------------- 1 | /**\file console.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Saturday, February 21, 2009 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief Handles the Heads-Up-Display 6 | * \details 7 | */ 8 | #ifndef __h_console__ 9 | #define __h_console__ 10 | 11 | #include "Graphics/image.h" 12 | #include "includes.h" 13 | #include "Input/input.h" 14 | 15 | class Console { 16 | public: 17 | Console( lua_State *L ); 18 | 19 | void HandleInput( list & events ); 20 | void Draw(); 21 | void Update(); 22 | 23 | private: 24 | void RunCommand(); 25 | void InsertResult(string result); 26 | 27 | vector Buffer; 28 | bool enabled; 29 | string command; 30 | unsigned int cursor; 31 | lua_State *L; 32 | }; 33 | 34 | #endif // __h_console__ 35 | 36 | -------------------------------------------------------------------------------- /Source/Sprites/effects.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Filename : effect.h 3 | * Author(s) : Matt Zweig 4 | * Date Created : Tuesday, December 15, 2009 5 | * Last Modified : Tuesday, December 15, 2009 6 | * Purpose : Sprite SubClass for Animated backgrounds 7 | * Notes : 8 | */ 9 | 10 | #ifndef __H_EFFECT__ 11 | #define __H_EFFECT__ 12 | 13 | #include "Graphics/animation.h" 14 | #include "Sprites/sprite.h" 15 | #include "Graphics/image.h" 16 | #include "includes.h" 17 | 18 | class Effect : public Sprite { 19 | public: 20 | Effect(Coordinate pos, string filename, float loopPercent); 21 | ~Effect(); 22 | void Update( lua_State *L ); 23 | void Draw(void); 24 | virtual int GetDrawOrder( void ) { 25 | return( DRAW_ORDER_EFFECT); 26 | } 27 | private: 28 | Animation *visual; 29 | }; 30 | 31 | #endif // __H_EFFECT__ 32 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/EpiarFooter.txt: -------------------------------------------------------------------------------- 1 | ## Stuff that doesn't belong anywhere else 2 | 3 | if (MSVC_IDE) 4 | # Hack to get rid of putting output in Debug/Release subdirs 5 | set_target_properties (EpiarBIN PROPERTIES 6 | PREFIX "../") 7 | foreach (CURR_BUILD ${CMAKE_CONFIGURATION_TYPES}) 8 | if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${CURR_BUILD}) 9 | file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CURR_BUILD}") 10 | endif(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${CURR_BUILD}) 11 | endforeach (CURR_BUILD ${CMAKE_CONFIGURATION_TYPES}) 12 | endif (MSVC_IDE) 13 | 14 | #Precompiled headers for GCC 15 | if(CMAKE_COMPILER_IS_GNUCXX) 16 | if (COMPILE_USE_PRECOMPILED_HEADERS) 17 | ADD_PRECOMPILED_HEADER(EpiarBIN "${Epiar_SRC_DIR}/includes.h") 18 | endif (COMPILE_USE_PRECOMPILED_HEADERS) 19 | endif(CMAKE_COMPILER_IS_GNUCXX) 20 | 21 | # vim:ft=cmake 22 | -------------------------------------------------------------------------------- /Source/Lua/etc/all.c: -------------------------------------------------------------------------------- 1 | /* 2 | * all.c -- Lua core, libraries and interpreter in a single file 3 | */ 4 | 5 | #define luaall_c 6 | 7 | #include "lapi.c" 8 | #include "lcode.c" 9 | #include "ldebug.c" 10 | #include "ldo.c" 11 | #include "ldump.c" 12 | #include "lfunc.c" 13 | #include "lgc.c" 14 | #include "llex.c" 15 | #include "lmem.c" 16 | #include "lobject.c" 17 | #include "lopcodes.c" 18 | #include "lparser.c" 19 | #include "lstate.c" 20 | #include "lstring.c" 21 | #include "ltable.c" 22 | #include "ltm.c" 23 | #include "lundump.c" 24 | #include "lvm.c" 25 | #include "lzio.c" 26 | 27 | #include "lauxlib.c" 28 | #include "lbaselib.c" 29 | #include "ldblib.c" 30 | #include "liolib.c" 31 | #include "linit.c" 32 | #include "lmathlib.c" 33 | #include "loadlib.c" 34 | #include "loslib.c" 35 | #include "lstrlib.c" 36 | #include "ltablib.c" 37 | 38 | #include "lua.c" 39 | -------------------------------------------------------------------------------- /Source/Lua/test/factorial.lua: -------------------------------------------------------------------------------- 1 | -- function closures are powerful 2 | 3 | -- traditional fixed-point operator from functional programming 4 | Y = function (g) 5 | local a = function (f) return f(f) end 6 | return a(function (f) 7 | return g(function (x) 8 | local c=f(f) 9 | return c(x) 10 | end) 11 | end) 12 | end 13 | 14 | 15 | -- factorial without recursion 16 | F = function (f) 17 | return function (n) 18 | if n == 0 then return 1 19 | else return n*f(n-1) end 20 | end 21 | end 22 | 23 | factorial = Y(F) -- factorial is the fixed point of F 24 | 25 | -- now test it 26 | function test(x) 27 | io.write(x,"! = ",factorial(x),"\n") 28 | end 29 | 30 | for n=0,16 do 31 | test(n) 32 | end 33 | -------------------------------------------------------------------------------- /Source/UI/ui_paragraph.h: -------------------------------------------------------------------------------- 1 | /**\file ui_paragraph.h 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Friday, April 25, 2008 4 | * \date Modified: Friday, April 25, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_PARAGRAPH__ 10 | #define __H_PARAGRAPH__ 11 | 12 | #include "UI/ui.h" 13 | #include "UI/ui_text.h" 14 | 15 | class Paragraph : public Widget { 16 | public: 17 | Paragraph( int x, int y, int w, int h, string text ); 18 | ~Paragraph() { }; 19 | 20 | void Draw( int relx = 0, int rely = 0 ); 21 | 22 | void SetText(string text); 23 | void AppendText(string text); 24 | string GetText(){return name;} 25 | 26 | string GetType( void ) {return string("Paragraph");} 27 | virtual int GetMask( void ) { return WIDGET_PARAGRAPH; } 28 | 29 | private: 30 | bool centered; 31 | Text lines; 32 | }; 33 | 34 | #endif // __H_PARAGRAPH__ 35 | -------------------------------------------------------------------------------- /Source/Lua/test/trace-calls.lua: -------------------------------------------------------------------------------- 1 | -- trace calls 2 | -- example: lua -ltrace-calls bisect.lua 3 | 4 | local level=0 5 | 6 | local function hook(event) 7 | local t=debug.getinfo(3) 8 | io.write(level," >>> ",string.rep(" ",level)) 9 | if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end 10 | t=debug.getinfo(2) 11 | if event=="call" then 12 | level=level+1 13 | else 14 | level=level-1 if level<0 then level=0 end 15 | end 16 | if t.what=="main" then 17 | if event=="call" then 18 | io.write("begin ",t.short_src) 19 | else 20 | io.write("end ",t.short_src) 21 | end 22 | elseif t.what=="Lua" then 23 | -- table.foreach(t,print) 24 | io.write(event," ",t.name or "(Lua)"," <",t.linedefined,":",t.short_src,">") 25 | else 26 | io.write(event," ",t.name or "(C)"," [",t.what,"] ") 27 | end 28 | io.write("\n") 29 | end 30 | 31 | debug.sethook(hook,"cr") 32 | level=0 33 | -------------------------------------------------------------------------------- /Source/Lua/test/sieve.lua: -------------------------------------------------------------------------------- 1 | -- the sieve of of Eratosthenes programmed with coroutines 2 | -- typical usage: lua -e N=1000 sieve.lua | column 3 | 4 | -- generate all the numbers from 2 to n 5 | function gen (n) 6 | return coroutine.wrap(function () 7 | for i=2,n do coroutine.yield(i) end 8 | end) 9 | end 10 | 11 | -- filter the numbers generated by `g', removing multiples of `p' 12 | function filter (p, g) 13 | return coroutine.wrap(function () 14 | while 1 do 15 | local n = g() 16 | if n == nil then return end 17 | if math.mod(n, p) ~= 0 then coroutine.yield(n) end 18 | end 19 | end) 20 | end 21 | 22 | N=N or 1000 -- from command line 23 | x = gen(N) -- generate primes up to N 24 | while 1 do 25 | local n = x() -- pick a number until done 26 | if n == nil then break end 27 | print(n) -- must be a prime number 28 | x = filter(n, x) -- now remove its multiples 29 | end 30 | -------------------------------------------------------------------------------- /Build/mingw/mkzip.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | DLLS="iconv.dll SDL.dll SDL_image.dll SDL_mixer.dll zlib1.dll libvorbis-0.dll libxml2-2.dll libtiff-3.dll libstdc++-6.dll libpng15-15.dll libphysfs.dll libogg-0.dll libjpeg-62.dll libfreetype-6.dll libftgl-2.dll libgcc_s_sjlj-1.dll" 3 | 4 | # To be run from the Epiar source base directory. Generates an 5 | # epiar-win32 directory. 6 | make clean 7 | mingw32-configure 8 | mingw32-make 9 | mkdir -p epiar-win32 10 | cp ./epiar.exe epiar-win32/ 11 | cp -r Resources epiar-win32/ 12 | cp README NEWS LICENSE* PACKAGING AUTHORS ChangeLog epiar-win32/ 13 | rm -f epiar-win32/Resources/Graphics/*.xcf 14 | rm -f epiar-win32/Resources/Definitions/saved-games.xml 15 | 16 | # The following assumes Fedora 16-based MinGW. If this becomes a 17 | # problem (i.e. other MinGW developers), we can expand this 18 | for f in $DLLS; do cp /usr/i686-w64-mingw32/sys-root/mingw/bin/$f epiar-win32; done 19 | 20 | -------------------------------------------------------------------------------- /Source/Lua/test/trace-globals.lua: -------------------------------------------------------------------------------- 1 | -- trace assigments to global variables 2 | 3 | do 4 | -- a tostring that quotes strings. note the use of the original tostring. 5 | local _tostring=tostring 6 | local tostring=function(a) 7 | if type(a)=="string" then 8 | return string.format("%q",a) 9 | else 10 | return _tostring(a) 11 | end 12 | end 13 | 14 | local log=function (name,old,new) 15 | local t=debug.getinfo(3,"Sl") 16 | local line=t.currentline 17 | io.write(t.short_src) 18 | if line>=0 then io.write(":",line) end 19 | io.write(": ",name," is now ",tostring(new)," (was ",tostring(old),")","\n") 20 | end 21 | 22 | local g={} 23 | local set=function (t,name,value) 24 | log(name,g[name],value) 25 | g[name]=value 26 | end 27 | setmetatable(getfenv(),{__index=g,__newindex=set}) 28 | end 29 | 30 | -- an example 31 | 32 | a=1 33 | b=2 34 | a=10 35 | b=20 36 | b=nil 37 | b=200 38 | print(a,b,c) 39 | -------------------------------------------------------------------------------- /Source/Lua/src/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.1 2008/01/05 09:59:10 chris_thielen Exp $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | LUALIB_API void luaL_openlibs (lua_State *L) { 30 | const luaL_Reg *lib = lualibs; 31 | for (; lib->func; lib++) { 32 | lua_pushcfunction(L, lib->func); 33 | lua_pushstring(L, lib->name); 34 | lua_call(L, 1, 0); 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Source/UI/ui_checkbox.h: -------------------------------------------------------------------------------- 1 | /**\file ui_checkbox.h 2 | * \author Christopher Thielen (chris@epiar.net) 3 | * \date Created: Monday, December 28, 2009 4 | * \brief 5 | * \details 6 | */ 7 | 8 | #ifndef __H_CHECKBOX__ 9 | #define __H_CHECKBOX__ 10 | 11 | #include "Graphics/image.h" 12 | #include "UI/ui.h" 13 | 14 | class Checkbox : public Widget { 15 | public: 16 | Checkbox( int x, int y, bool checked, string label); 17 | ~Checkbox() { }; 18 | 19 | void Draw( int relx = 0, int rely = 0 ); 20 | 21 | bool IsChecked() {return checked;} 22 | void Set(bool val) {checked = val;} 23 | 24 | string GetType( void ) { return string("Checkbox"); } 25 | virtual int GetMask( void ) { return WIDGET_CHECKBOX; } 26 | 27 | protected: 28 | bool MouseLUp( int xi, int yi ); 29 | 30 | private: 31 | string label; 32 | bool checked; 33 | 34 | Image *check_box; 35 | Image *blank_box; 36 | }; 37 | 38 | #endif // __H_CHECKBOX__ 39 | -------------------------------------------------------------------------------- /Source/Lua/src/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.1 2008/01/05 09:59:11 chris_thielen Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /Source/Audio/audio_lua.h: -------------------------------------------------------------------------------- 1 | /**\file audio_lua.h 2 | * \author Maoserr 3 | * \date Created: Sunday, March 14, 2010 4 | * \date Modified: Sunday, March 14, 2010 5 | * \brief Lua bridge for Audio 6 | * \details 7 | */ 8 | 9 | 10 | #ifndef __H_AUDIO_LUA 11 | #define __H_AUDIO_LUA 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | # include 17 | # include 18 | # include 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #define EPIAR_AUDIO_TABLE "Epiar.Audio" 24 | #define EPIAR_AUDIO "Audio" 25 | 26 | class Audio_Lua { 27 | public: 28 | // Functions to communicate with Lua 29 | static void RegisterAudio(lua_State *L); 30 | 31 | static int setSoundVolume(lua_State *L); 32 | static int setMusicVolume(lua_State *L); 33 | static int getSoundVolume(lua_State *L); 34 | static int getMusicVolume(lua_State *L); 35 | 36 | static int playSound(lua_State *L); 37 | 38 | private: 39 | }; 40 | #endif /*__H_AUDIO_LUA*/ 41 | -------------------------------------------------------------------------------- /Source/Lua/etc/min.c: -------------------------------------------------------------------------------- 1 | /* 2 | * min.c -- a minimal Lua interpreter 3 | * loads stdin only with minimal error handling. 4 | * no interaction, and no standard library, only a "print" function. 5 | */ 6 | 7 | #include 8 | 9 | #include "lua.h" 10 | #include "lauxlib.h" 11 | 12 | static int print(lua_State *L) 13 | { 14 | int n=lua_gettop(L); 15 | int i; 16 | for (i=1; i<=n; i++) 17 | { 18 | if (i>1) printf("\t"); 19 | if (lua_isstring(L,i)) 20 | printf("%s",lua_tostring(L,i)); 21 | else if (lua_isnil(L,i)==2) 22 | printf("%s","nil"); 23 | else if (lua_isboolean(L,i)) 24 | printf("%s",lua_toboolean(L,i) ? "true" : "false"); 25 | else 26 | printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); 27 | } 28 | printf("\n"); 29 | return 0; 30 | } 31 | 32 | int main(void) 33 | { 34 | lua_State *L=lua_open(); 35 | lua_register(L,"print",print); 36 | if (luaL_dofile(L,NULL)!=0) fprintf(stderr,"%s\n",lua_tostring(L,-1)); 37 | lua_close(L); 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /Resources/Simulation/default/commodities-default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 5 5 | 0 6 | 7 | Construction Materials 8 | 60 9 | 10 | 11 | Energy Crystals 12 | 70 13 | 14 | 15 | Fuel Cells 16 | 50 17 | 18 | 19 | Gold 20 | 200 21 | 22 | 23 | Luxury Items 24 | 500 25 | 26 | 27 | Pork Bellies 28 | 1000 29 | 30 | 31 | Precious Metals 32 | 80 33 | 34 | 35 | Sheep 36 | 30 37 | 38 | 39 | -------------------------------------------------------------------------------- /Source/Utilities/timer.h: -------------------------------------------------------------------------------- 1 | /**\file timer.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Saturday, January 5, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_timer__ 10 | #define __h_timer__ 11 | 12 | #define LOGIC_FPS 50.0 13 | 14 | #include "includes.h" 15 | 16 | class Timer { 17 | public: 18 | static void Initialize( void ); 19 | static int Update( void ); 20 | static void Delay( int waitMS ); 21 | static Uint32 GetTicks( void ); 22 | static Uint32 GetRealTicks( void ); 23 | 24 | static float GetDelta( void ); 25 | 26 | static Uint32 GetLogicalFrameCount( void ); 27 | static void IncrementFrameCount ( void ); 28 | 29 | private: 30 | static Uint32 lastLoopLength; 31 | static Uint32 lastLoopTick; 32 | static Uint32 ticksPerFrame; 33 | static Uint32 logicalFrameCount; 34 | static int frame; 35 | static double virtualTime; 36 | static float logicFPS; 37 | }; 38 | 39 | #endif // __h_timer__ 40 | -------------------------------------------------------------------------------- /Source/Lua/doc/readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lua documentation 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | Lua 12 | Documentation 13 |

14 | 15 | This is the documentation included in the source distribution of Lua 5.1.2. 16 | 17 | 25 | 26 | Lua's 27 | official web site 28 | contains updated documentation, 29 | especially the 30 | reference manual. 31 |

32 | 33 |


34 | 35 | Last update: 36 | Fri Mar 23 14:19:36 BRT 2007 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Source/Lua/etc/strict.lua: -------------------------------------------------------------------------------- 1 | -- 2 | -- strict.lua 3 | -- checks uses of undeclared global variables 4 | -- All global variables must be 'declared' through a regular assignment 5 | -- (even assigning nil will do) in a main chunk before being used 6 | -- anywhere or assigned to inside a function. 7 | -- 8 | 9 | local mt = getmetatable(_G) 10 | if mt == nil then 11 | mt = {} 12 | setmetatable(_G, mt) 13 | end 14 | 15 | mt.__declared = {} 16 | 17 | local function what () 18 | local d = debug.getinfo(3, "S") 19 | return d and d.what or "C" 20 | end 21 | 22 | mt.__newindex = function (t, n, v) 23 | if not mt.__declared[n] then 24 | local w = what() 25 | if w ~= "main" and w ~= "C" then 26 | error("assign to undeclared variable '"..n.."'", 2) 27 | end 28 | mt.__declared[n] = true 29 | end 30 | rawset(t, n, v) 31 | end 32 | 33 | mt.__index = function (t, n) 34 | if not mt.__declared[n] and what() ~= "C" then 35 | error("variable '"..n.."' is not declared", 2) 36 | end 37 | return rawget(t, n) 38 | end 39 | 40 | -------------------------------------------------------------------------------- /Source/UI/ui_textarea.h: -------------------------------------------------------------------------------- 1 | /**\file ui_textbox.cpp 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Monday, November 9, 2009 4 | * \date Modified: Monday, November 9, 2009 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_TEXTAREA__ 10 | #define __H_TEXTAREA__ 11 | 12 | #include "Graphics/video.h" 13 | #include "UI/ui.h" 14 | #include "UI/ui_text.h" 15 | 16 | class Textarea : public Widget { 17 | public: 18 | Textarea( int _x, int _y, int _w, int _h, string text = "", string label = ""); 19 | 20 | void Draw( int relx, int rely = 0 ); 21 | 22 | string GetType( void ) {return string("Textarea");} 23 | virtual int GetMask( void ) { return WIDGET_TEXTAREA; } 24 | 25 | string GetText() { return lines.GetText(); } 26 | void SetText(string s) { lines.SetText(s); } 27 | 28 | protected: 29 | bool KeyPress( SDLKey key ); 30 | 31 | private: 32 | Text lines; 33 | 34 | static Color foreground; 35 | static Color background; 36 | static Color edge; 37 | }; 38 | 39 | #endif // __H_TEXTAREA__ 40 | -------------------------------------------------------------------------------- /Build/Source/mktarball.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This script performs common operations needed to transform a git repository 4 | # into the source tarball for distribution. 5 | # 6 | # This is meant to be run from the project root. 7 | 8 | # Turn on Bash's extended pattern matching 9 | shopt -s extglob 10 | 11 | # First, clean up 12 | make clean 13 | 14 | # Extract version number from Source/version.h 15 | VERSION=$(cat Source/version.h | grep EPIAR_VERSION_FULL | cut -d'"' -f2) 16 | 17 | # Make the directory that we will later tarball 18 | mkdir "epiar-$VERSION" 19 | 20 | # Copy everything into it - we'll filter out what we don't need later 21 | cp -R !(epiar-$VERSION) epiar-$VERSION 22 | rm -rf "epiar-$VERSION/autom4te.cache" 23 | rm -rf "epiar-$VERSION/Doxygen" 24 | rm epiar-$VERSION/{config.log,config.status,config.h,Makefile,Makefile.in,stamp-h1,missing,depcomp,config.sub,config.guess,install-sh} 25 | 26 | # Generate the tarball and clean up our mess 27 | tar --bzip2 -cf epiar-$VERSION.tar.bz2 epiar-$VERSION 28 | rm -rf epiar-$VERSION 29 | 30 | -------------------------------------------------------------------------------- /Resources/Blueprints/glyph-widths.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if ! which font2svg 2>&1 >/dev/null; then 4 | echo this script needs font2svg 5 | exit 1 6 | fi 7 | 8 | if [ ! -p pipe ]; then mkfifo pipe; fi 9 | 10 | FONT=FreeSans 11 | FONTPATH=../Fonts/${FONT}.ttf 12 | 13 | if [ ! -f $FONTPATH ]; then 14 | echo could not find $FONTPATH 15 | exit 1 16 | fi 17 | 18 | font2svg $FONT $FONTPATH pipe 1>&- 2>&- & 19 | 20 | perl -ne ' 21 | BEGIN { @w = (); } 22 | if(/glyph .*unicode="&#([0-9]+);" .*horiz-adv-x="([0-9\.]+)"/){ 23 | my ($dec, $width) = ($1, int($2)); 24 | if($dec >= 32 and $dec <= 126){ 25 | my $character = chr($dec); 26 | #print "$character has width $width\n"; 27 | $w[$dec] = $width; 28 | } 29 | } 30 | END { 31 | print "glyphWidths = {\n\t"; 32 | for(0..126){ 33 | next if(chr($_) !~ /^[0-9A-Za-z ,\.!\-\(\)]$/); 34 | printf("[%s%s%s] = %s, ", chr(39), chr($_), chr(39), (defined($w[$_]) ? $w[$_] : "nil")); 35 | $col++; 36 | if($col > 8){ $col = 0; print "\n\t"; } 37 | } 38 | print "\n}\n"; 39 | } 40 | ' < pipe 41 | 42 | rm -f pipe 43 | -------------------------------------------------------------------------------- /Resources/Simulation/default/simulation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 5 5 | 0 6 | default 7 | The default simulation is improving, but still needs a lot of work. 8 | commodities-default.xml 9 | planets-default.xml 10 | gates-default.xml 11 | models-default.xml 12 | engines-default.xml 13 | alliances-default.xml 14 | weapons-default.xml 15 | technologies-default.xml 16 | outfits-default.xml 17 | Resources/Definitions/saved-games.xml 18 | 19 | 20 | Antikythera 21 | Shuttle 22 | Altaire Corp. NM66 Sublight Thrusters 23 | 3000 24 | 25 | 26 | -------------------------------------------------------------------------------- /Build/cmake/CMakeScripts/EpiarFlags.txt: -------------------------------------------------------------------------------- 1 | # Some compile/linking flags 2 | if (USE_PHYSICSFS) 3 | set(epiarbin_compile_def ${epiarbin_compile_def} 4 | USE_PHYSICSFS) 5 | set(EpiarLIBS ${EpiarLIBS} 6 | ${PHYSFS_LIBRARY} 7 | ) 8 | endif (USE_PHYSICSFS) 9 | 10 | if (COMPILE_TESTS) 11 | set(epiarbin_compile_def ${epiarbin_compile_def} 12 | EPIAR_COMPILE_TESTS 13 | ) 14 | endif (COMPILE_TESTS) 15 | 16 | if (WIN32) 17 | set(epiarbin_compile_def ${epiarbin_compile_def} 18 | USE_FREETYPE 19 | FTGL_LIBRARY_STATIC 20 | LIBXML_STATIC 21 | ) 22 | if (MSVC) 23 | set(epiarbin_compile_def ${epiarbin_compile_def} 24 | _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS) 25 | if (COMPILE_USE_PRECOMPILED_HEADERS) 26 | set(epiarbin_compile_flag "/Ycincludes.h") 27 | endif (COMPILE_USE_PRECOMPILED_HEADERS) 28 | endif (MSVC) 29 | endif(WIN32) 30 | 31 | set_target_properties(EpiarBIN PROPERTIES 32 | COMPILE_DEFINITIONS_DEBUG _DEBUG 33 | COMPILE_DEFINITIONS "${epiarbin_compile_def}" 34 | COMPILE_FLAGS "${epiarbin_compile_flag}") 35 | 36 | # vim:ft=cmake 37 | -------------------------------------------------------------------------------- /Source/Lua/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.1 2008/01/05 09:59:10 chris_thielen Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Source/Audio/music.h: -------------------------------------------------------------------------------- 1 | /**\file music.h 2 | * \author Maoserr 3 | * \date Created: Saturday, February 06, 2010 4 | * \date Modified: Saturday, February 06, 2010 5 | * \brief Implements background music playing ability. 6 | * \details 7 | */ 8 | 9 | #ifndef __H_MUSIC__ 10 | #define __H_MUSIC__ 11 | 12 | #include "includes.h" 13 | #include "Audio/audio.h" 14 | 15 | class Song { 16 | public: 17 | static Song *Get( const string& filename ); 18 | Song( const string& filename ); 19 | ~Song( void ); 20 | bool Play( bool loop=true ); 21 | private: 22 | Mix_Music *song; 23 | }; 24 | 25 | 26 | class Music { 27 | public: 28 | static Music& Instance(); 29 | bool LoadPlaylist( ); 30 | bool LoadSong( const string& filename ); 31 | bool InsertSong(); 32 | bool Play(); 33 | bool Pause(); 34 | bool Stop(); 35 | 36 | private: 37 | Music(); 38 | Music(Music const&); // Copy constructor 39 | Music& operator=(Music const&); // Assignment constructor 40 | ~Music(); 41 | list playlist; 42 | }; 43 | 44 | #endif // __H_MUSIC__ 45 | -------------------------------------------------------------------------------- /Build/OS X/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | Epiar 9 | CFBundleIconFile 10 | Epiar_Icon.icns 11 | CFBundleIdentifier 12 | com.games.Epiar 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Epiar 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.5.0 21 | CFBundleSignature 22 | Epiar 23 | CFBundleVersion 24 | 19873 25 | NSMainNibFile 26 | MainMenu 27 | NSPrincipalClass 28 | NSApplication 29 | SUEnableAutomaticChecks 30 | NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /Resources/Audio/Makefile.am: -------------------------------------------------------------------------------- 1 | epiar_resources_audio_effectsdir = $(datadir)/epiar/Resources/Audio/Effects/ 2 | epiar_resources_audio_effects_DATA = Resources/Audio/Effects/18384__inferno__largex.wav.ogg 3 | 4 | epiar_resources_audio_enginesdir = $(datadir)/epiar/Resources/Audio/Engines/ 5 | epiar_resources_audio_engines_DATA = Resources/Audio/Engines/22455__nathanshadow__Thruster_Level_II.ogg 6 | 7 | epiar_resources_audio_interfacedir = $(datadir)/epiar/Resources/Audio/Interface/ 8 | epiar_resources_audio_interface_DATA = Resources/Audio/Interface/28820__junggle__btn010.ogg Resources/Audio/Interface/28853__junggle__btn043.ogg 9 | 10 | epiar_resources_audio_musicdir = $(datadir)/epiar/Resources/Audio/Music/ 11 | epiar_resources_audio_music_DATA = Resources/Audio/Music/beyond_the_network.it Resources/Audio/Music/cyberm00n.mod 12 | 13 | epiar_resources_audio_weaponsdir = $(datadir)/epiar/Resources/Audio/Weapons/ 14 | epiar_resources_audio_weapons_DATA = Resources/Audio/Weapons/flaunch.ogg Resources/Audio/Weapons/rlaunch.ogg Resources/Audio/Weapons/slimeball.ogg Resources/Audio/Weapons/iceball.ogg 15 | 16 | -------------------------------------------------------------------------------- /Build/OS X/mkbundle.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | EPIAR_VERSION_FULL=`awk '$2 == "EPIAR_VERSION_FULL" {print $3}' Source/version.h | tr -d '"'` 3 | echo "Update the version Number in the Info.plist to $EPIAR_VERSION_FULL." 4 | defaults write `pwd`/Info CFBundleShortVersionString "$EPIAR_VERSION_FULL" 5 | defaults read `pwd`/Info 6 | 7 | DMG_LOC=`pwd`/Epiar$EPIAR_VERSION_FULL/ 8 | APP_LOC=$DMG_LOC/Epiar.app/ 9 | echo "Creating Epiar.app Package at $APP_LOC" 10 | mkdir -p $APP_LOC/Contents/MacOS 11 | cp Epiar $APP_LOC/Contents/MacOS 12 | cp -r Resources $APP_LOC/Contents/ 13 | cp Info.plist $APP_LOC/Contents/ 14 | cp Resources/Icons/Epiar_Icon.icns $APP_LOC/Contents/Resources/ 15 | 16 | # The Blueprint files are used for creating the Art. 17 | echo "Removing blueprint files." 18 | rm -rf $APP_LOC/Contents/Resources/Blueprints 19 | 20 | echo "Adding README and LICENSE files." 21 | cp AUTHORS $DMG_LOC 22 | cp COPYING $DMG_LOC 23 | cp LICENSE* $DMG_LOC 24 | cp README $DMG_LOC 25 | 26 | # Package Epiar into a .dmg 27 | echo "Creating Epiar dmg..." 28 | hdiutil create Epiar$EPIAR_VERSION_FULL.dmg -srcfolder $DMG_LOC 29 | -------------------------------------------------------------------------------- /Source/Utilities/filesystem.h: -------------------------------------------------------------------------------- 1 | /**\file filesystem.h 2 | * \author Maoserr 3 | * \date Created: Wednesday, November 18, 2009 4 | * \date Modified: Wednesday, November 18, 2009 5 | * \brief Provides an abstraction to the file system 6 | * \details 7 | */ 8 | 9 | #ifndef __H_FILESYSTEM__ 10 | #define __H_FILESYSTEM__ 11 | 12 | #include "includes.h" 13 | 14 | #ifdef USE_PHYSICSFS 15 | #include 16 | #else 17 | #ifndef _WIN32 18 | #include 19 | #endif 20 | #endif 21 | 22 | class Filesystem { 23 | public: 24 | static int Init( const char* argv0 ); 25 | static int AppendPath( const string &archivename ); 26 | static int PrependPath( const string &archivename ); 27 | static list Enumerate( const string &path, const string &suffix=""); 28 | static void Version( void ); 29 | static void OutputArchivers( void ); 30 | static int Close( void ); 31 | static bool DeleteFile( const string &filename ); 32 | static bool FilenameIsSafe( const string &filename ); 33 | private: 34 | static list paths; 35 | }; 36 | 37 | #endif // __H_FILESYSTEM__ 38 | 39 | -------------------------------------------------------------------------------- /Source/Sprites/projectile.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Filename : projectile.h 3 | * Author(s) : Shawn Reynolds (eb0s@yahoo.com) 4 | * Date Created : Friday, November 21, 2009 5 | * Last Modified : Friday, November 21, 2009 6 | * Purpose : Header for Projectile class, child of sprite class, Sprite 7 | * Notes : 8 | */ 9 | 10 | #ifndef __H_PROJECTILE__ 11 | #define __H_PROJECTILE__ 12 | 13 | #include "Sprites/sprite.h" 14 | #include "Engine/weapons.h" 15 | #include "includes.h" 16 | class Projectile : 17 | public Sprite 18 | { 19 | public: 20 | Projectile(float damageBooster, float angleToFire, Coordinate worldPosition, Coordinate firedMomentum, Weapon* weapon); 21 | ~Projectile(void); 22 | void Update( lua_State *L ); 23 | void SetOwnerID(int id) { ownerID = id; } 24 | void SetTargetID(int id) { targetID = id; } 25 | int GetDrawOrder( void ) { 26 | return( DRAW_ORDER_PROJECTILE ); 27 | } 28 | private: 29 | Uint32 secondsOfLife; //time to live before projectile blows up 30 | Uint32 start; 31 | int ownerID; 32 | int targetID; 33 | float damageBoost; 34 | Weapon *weapon; 35 | }; 36 | #endif // __h_PROJECTILE__ 37 | -------------------------------------------------------------------------------- /Source/UI/ui_textbox.h: -------------------------------------------------------------------------------- 1 | /**\file ui_textbox.cpp 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Monday, November 9, 2009 4 | * \date Modified: Monday, November 9, 2009 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_TEXTBOX__ 10 | #define __H_TEXTBOX__ 11 | 12 | #include "Graphics/video.h" 13 | #include "Graphics/font.h" 14 | #include "Graphics/image.h" 15 | #include "UI/ui.h" 16 | 17 | class Textbox : public Widget { 18 | public: 19 | Textbox( int x, int y, int w, int rows, string text = "", string label = ""); 20 | 21 | void Draw( int relx, int rely = 0 ); 22 | 23 | string GetType( void ) {return string("Textbox");} 24 | virtual int GetMask( void ) { return WIDGET_TEXTBOX; } 25 | 26 | string GetText() { return text; } 27 | void SetText(string s) { text = s; } 28 | 29 | protected: 30 | bool KeyPress( SDLKey key ); 31 | 32 | private: 33 | string text; 34 | int rowPad; ///< The padding around each row of text 35 | 36 | static Font* font; 37 | static Color foreground; 38 | static Color background; 39 | static Color edge; 40 | }; 41 | 42 | #endif // __H_TEXTBOX__ 43 | -------------------------------------------------------------------------------- /Source/Lua/etc/README: -------------------------------------------------------------------------------- 1 | This directory contains some useful files and code. 2 | Unlike the code in ../src, everything here is in the public domain. 3 | 4 | If any of the makes fail, you're probably not using the same libraries 5 | used to build Lua. Set MYLIBS in Makefile accordingly. 6 | 7 | all.c 8 | Full Lua interpreter in a single file. 9 | Do "make one" for a demo. 10 | 11 | lua.hpp 12 | Lua header files for C++ using 'extern "C"'. 13 | 14 | lua.ico 15 | A Lua icon for Windows (and web sites: save as favicon.ico). 16 | Drawn by hand by Markus Gritsch . 17 | 18 | lua.pc 19 | pkg-config data for Lua 20 | 21 | luavs.bat 22 | Script to build Lua under "Visual Studio .NET Command Prompt". 23 | Run it from the toplevel as etc\luavs.bat. 24 | 25 | min.c 26 | A minimal Lua interpreter. 27 | Good for learning and for starting your own. 28 | Do "make min" for a demo. 29 | 30 | noparser.c 31 | Linking with noparser.o avoids loading the parsing modules in lualib.a. 32 | Do "make noparser" for a demo. 33 | 34 | strict.lua 35 | Traps uses of undeclared global variables. 36 | Do "make strict" for a demo. 37 | 38 | -------------------------------------------------------------------------------- /epiar.xsl: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 17 |
18 | 19 |
20 |
21 |
22 |

23 | 24 |

25 |
26 |

27 |
28 |
29 | 30 |
31 |
32 |
33 |
34 |
35 | 36 | 37 |
38 |
39 | -------------------------------------------------------------------------------- /Source/UI/ui_text.h: -------------------------------------------------------------------------------- 1 | /**\file ui_text.h 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Monday, August 22, 2011 4 | * \date Modified: Monday, August 22, 2011 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_UI_TEXT__ 10 | #define __H_UI_TEXT__ 11 | 12 | #include "Graphics/font.h" 13 | 14 | class Text { 15 | public: 16 | Text( Font* font, string text, int maxwidth ); 17 | ~Text(){}; 18 | 19 | // Manipulation 20 | void SetText(string text); 21 | void InsertText(int pos, string text); 22 | void AppendText(string text); 23 | void Erase(int delchars); 24 | 25 | // Drawing 26 | void Render( int x, int y, Font::XPos xpositioning, Font::YPos ypositioning ); 27 | 28 | // Getters 29 | string GetText(); 30 | int GetWidth() { return width; } 31 | int GetMaxWidth() { return maxwidth; } 32 | int GetHeight() { return lines.size() * font->TightHeight(); } 33 | 34 | protected: 35 | Font *font; ///< The Font used to render 36 | int maxwidth; ///< The total width of the text 37 | int width; ///< current width 38 | vector lines; ///< The lines of text 39 | }; 40 | 41 | #endif // __H_UI_TEXT__ 42 | -------------------------------------------------------------------------------- /Source/UI/ui_window.h: -------------------------------------------------------------------------------- 1 | /**\file ui_window.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_WINDOW__ 10 | #define __H_WINDOW__ 11 | 12 | #include "Graphics/image.h" 13 | #include "UI/ui.h" 14 | #include "UI/ui_button.h" 15 | 16 | class Window : public Container { 17 | public: 18 | Window( int w, int h, string caption ); 19 | Window( int x, int y, int w, int h, string caption ); 20 | ~Window(); 21 | Window *AddChild( Widget *widget ); 22 | void Draw( int relx = 0, int rely = 0 ); 23 | 24 | bool SetDragability( bool _draggable ); 25 | void AddCloseButton(); 26 | bool HasCloseButton() { return closeButton != NULL; } 27 | 28 | string GetType( void ) { return string("Window"); } 29 | virtual int GetMask( void ) { return WIDGET_WINDOW | WIDGET_CONTAINER; } 30 | 31 | protected: 32 | bool MouseDrag( int x, int y ); 33 | 34 | private: 35 | bool draggable; 36 | static void CloseWindow( void* win); 37 | 38 | Image *bitmaps[9]; 39 | Button *closeButton; 40 | }; 41 | 42 | #endif // __H_WINDOW__ 43 | -------------------------------------------------------------------------------- /Source/Audio/sound.h: -------------------------------------------------------------------------------- 1 | /**\file sound.h 2 | * \author Maoserr 3 | * \date Created: Monday, February 08, 2010 4 | * \date Modified: Monday, February 08, 2010 5 | * \brief Implements sound playing abilities. 6 | * \details 7 | */ 8 | 9 | #ifndef __H_SOUND__ 10 | #define __H_SOUND__ 11 | 12 | #include "Utilities/coordinate.h" 13 | #include "Utilities/file.h" 14 | #include "Utilities/resource.h" 15 | 16 | class Sound : public Resource { 17 | public: 18 | static Sound *Get( const string& filename ); 19 | Sound( const string& filename ); 20 | ~Sound( void ); 21 | bool Play( void ); 22 | bool Play( Coordinate offset ); 23 | bool PlayNoRestart( Coordinate offset ); 24 | bool SetVolume( float volume ); 25 | void SetFactors( double fade, float pan ); 26 | string GetPath( void ) { return pathName.GetRelativePath(); } 27 | 28 | private: 29 | Mix_Chunk *sound; 30 | File pathName; 31 | int channel; /* Last channel the sound is playing on. */ 32 | double fadefactor; // Scale factor to fade by as distance drops off 33 | float panfactor; // Scale factor to pan by, higher = more sensitive 34 | int volume; // Volume for this sound 35 | }; 36 | 37 | 38 | #endif // __H_SOUND__ 39 | -------------------------------------------------------------------------------- /Source/Lua/src/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 1.1 2008/01/05 09:59:12 chris_thielen Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Source/Engine/commodities.h: -------------------------------------------------------------------------------- 1 | /**\file commodities.h 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Wednesday, April 21, 2010 4 | * \date Modified: 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_commodities__ 10 | #define __h_commodities__ 11 | 12 | #include "includes.h" 13 | #include "Utilities/components.h" 14 | 15 | class Commodity : public Component { 16 | public: 17 | Commodity(); 18 | Commodity& operator =(const Commodity&); 19 | Commodity(string _name, int _msrp); 20 | ~Commodity(void); 21 | 22 | bool FromXMLNode( xmlDocPtr doc, xmlNodePtr node ); 23 | xmlNodePtr ToXMLNode(string componentName); 24 | 25 | int GetMSRP(void) {return msrp;} 26 | private: 27 | int msrp; 28 | }; 29 | 30 | class Commodities : public Components{ 31 | public: 32 | static Commodities *Instance(); 33 | Commodity* GetCommodity(string name) { return (Commodity*) this->Get(name); } 34 | Component* newComponent() { return new Commodity(); } 35 | 36 | protected: 37 | Commodities() {}; 38 | Commodities( const Commodities & ); 39 | Commodities& operator= (const Commodities&); 40 | 41 | private: 42 | static Commodities *pInstance; 43 | }; 44 | 45 | #endif // __h_commodities__ 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Epiar .gitignore 2 | # 3 | 4 | ### GNU Auto-Tools generated files 5 | Makefile 6 | Makefile.in 7 | autom4te.cache/ 8 | config.log 9 | config.status 10 | configure 11 | aclocal.m4 12 | depcomp 13 | install-sh 14 | missing 15 | stamp-h1 16 | config.guess 17 | config.h 18 | config.h.in 19 | config.sub 20 | config.h.in~ 21 | po 22 | m4 23 | 24 | ### KDE development files 25 | Doxyfile 26 | *.kdevelop 27 | 28 | ### Lua binaries 29 | Source/Lua/src/lua 30 | Source/Lua/src/luac 31 | 32 | ### vim development files 33 | tags 34 | luatags 35 | .vimrc 36 | 37 | ### Epiar Binaries 38 | Epiar*.exe* 39 | epiar*.pdb 40 | epiar*.ilk 41 | Epiar*.ilk 42 | epiar*.idb 43 | .deps 44 | *.o 45 | *.a 46 | Epiar 47 | Epiar_debug 48 | epiar 49 | Epiar.app/ 50 | 51 | ### Doxygen Files 52 | Doxygen/html 53 | Doxygen/latex 54 | 55 | ### Epiar Log Files 56 | Epiar-Log*.xml 57 | stdout.txt 58 | stderr.txt 59 | 60 | ### Epiar Saved Games 61 | Resources/Definitions/*.xml 62 | 63 | .DS_Store 64 | Epiar.tmproj 65 | *.swp 66 | 67 | ### Eclipse IDE files 68 | .project 69 | .cproject 70 | 71 | ### Unix-y 'local' files 72 | *~ 73 | 74 | ### MinGW development files 75 | mingw32-config.cache 76 | 77 | ### Include XCode IDE files 78 | !Build/OS X/XCode/Epiar 79 | -------------------------------------------------------------------------------- /Build/cmake/ThirdParty/OGG/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # OGG CMake build file 2 | cmake_minimum_required(VERSION 2.6) 3 | project(OGG) 4 | 5 | if (NOT OGG_SOURCE_NAME) 6 | set(OGG_SOURCE_NAME libogg-1.1.4) 7 | endif (NOT OGG_SOURCE_NAME) 8 | 9 | set(OGG_SRC_FOLDER "${PROJECT_SOURCE_DIR}/${OGG_SOURCE_NAME}") 10 | # Create variables for include and library 11 | set(OGG_INCLUDE_DIR ${OGG_SRC_FOLDER}/include CACHE STRING 12 | "OGG include directory" FORCE) 13 | set(OGG_LIBRARIES OGG CACHE STRING 14 | "OGG libraries" FORCE) 15 | set(OGG_src 16 | ${OGG_SRC_FOLDER}/src/bitwise.c 17 | ${OGG_SRC_FOLDER}/src/framing.c 18 | ${OGG_INCLUDE_DIR}/ogg/ogg.h 19 | ${OGG_INCLUDE_DIR}/ogg/os_types.h 20 | ${OGG_SRC_FOLDER}/win32/ogg.def 21 | ) 22 | 23 | include_directories(${OGG_INCLUDE_DIR}) 24 | 25 | add_library(${OGG_LIBRARIES} STATIC ${OGG_src}) 26 | set_target_properties(${OGG_LIBRARIES} PROPERTIES 27 | COMPILE_DEFINITIONS "WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBOGG_EXPORTS") 28 | if (NOT OGG_STATICLIB_OUTPUT_PATH) 29 | set(OGG_STATICLIB_OUTPUT_PATH "." CACHE STRING 30 | "OGG static lib output directory") 31 | endif (NOT OGG_STATICLIB_OUTPUT_PATH) 32 | set_target_properties(${OGG_LIBRARIES} PROPERTIES 33 | ARCHIVE_OUTPUT_DIRECTORY "${OGG_STATICLIB_OUTPUT_PATH}") 34 | 35 | -------------------------------------------------------------------------------- /Source/Lua/src/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.h,v 1.1 2008/01/05 09:59:11 chris_thielen Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /Source/Lua/src/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lfunc.h,v 1.1 2008/01/05 09:59:10 chris_thielen Exp $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /Source/Lua/test/README: -------------------------------------------------------------------------------- 1 | These are simple tests for Lua. Some of them contain useful code. 2 | They are meant to be run to make sure Lua is built correctly and also 3 | to be read, to see how Lua programs look. 4 | 5 | Here is a one-line summary of each program: 6 | 7 | bisect.lua bisection method for solving non-linear equations 8 | cf.lua temperature conversion table (celsius to farenheit) 9 | echo.lua echo command line arguments 10 | env.lua environment variables as automatic global variables 11 | factorial.lua factorial without recursion 12 | fib.lua fibonacci function with cache 13 | fibfor.lua fibonacci numbers with coroutines and generators 14 | globals.lua report global variable usage 15 | hello.lua the first program in every language 16 | life.lua Conway's Game of Life 17 | luac.lua bare-bones luac 18 | printf.lua an implementation of printf 19 | readonly.lua make global variables readonly 20 | sieve.lua the sieve of of Eratosthenes programmed with coroutines 21 | sort.lua two implementations of a sort function 22 | table.lua make table, grouping all data for the same item 23 | trace-calls.lua trace calls 24 | trace-globals.lua trace assigments to global variables 25 | xd.lua hex dump 26 | 27 | -------------------------------------------------------------------------------- /Source/UI/ui_slider.h: -------------------------------------------------------------------------------- 1 | /**\file ui_slider.h 2 | * \author Maoserr 3 | * \date Created: Saturday, March 13, 2010 4 | * \date Modified: Saturday, March 13, 2010 5 | * \brief Creates a slider widget 6 | */ 7 | 8 | #ifndef __H_SLIDER__ 9 | #define __H_SLIDER__ 10 | 11 | #include "UI/ui.h" 12 | 13 | class Slider : public Widget { 14 | public: 15 | Slider( int x, int y, int w, int h, const string& label, float value = 0.5f); 16 | 17 | float GetVal( void ){ return this->val;}; 18 | float GetMin( void ){ return this->minval;}; 19 | float GetMax( void ){ return this->maxval;}; 20 | 21 | void Draw( int relx=0, int rely = 0 ); 22 | 23 | string GetType( void ) {return string("Slider"); } 24 | virtual int GetMask( void ) { return WIDGET_SLIDER; } 25 | 26 | void SetVal( float value ); 27 | 28 | protected: 29 | bool MouseDrag( int xi, int yi ); 30 | bool MouseLDown( int xi, int yi ); 31 | bool MouseLUp( int xi, int yi ); 32 | 33 | private: 34 | // Utility functions to convert between pixel and values 35 | int ValToPixel( float value ); 36 | float PixelToVal( int pixels); 37 | 38 | float minval,maxval,val; 39 | 40 | Image *left; 41 | Image *right; 42 | Image *background; 43 | Image *bar; 44 | Image *handle; 45 | }; 46 | 47 | #endif // __H_SLIDER__ 48 | 49 | -------------------------------------------------------------------------------- /Source/Lua/src/lvm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lvm.h,v 1.1 2008/01/05 09:59:10 chris_thielen Exp $ 3 | ** Lua virtual machine 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lvm_h 8 | #define lvm_h 9 | 10 | 11 | #include "ldo.h" 12 | #include "lobject.h" 13 | #include "ltm.h" 14 | 15 | 16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 17 | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 19 | (((o) = luaV_tonumber(o,n)) != NULL)) 20 | 21 | #define equalobj(L,o1,o2) \ 22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 23 | 24 | 25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30 | StkId val); 31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 32 | StkId val); 33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Source/Utilities/argparser.h: -------------------------------------------------------------------------------- 1 | /**\file argparser.h 2 | * \author Maoserr 3 | * \date Created: Saturday, March 20, 2010 4 | * \date Modified: Saturday, March 20, 2010 5 | * \brief Command line argument parsing routines. 6 | */ 7 | 8 | typedef enum{NOTVALID,SHORTOPT,LONGOPT,VALUEOPT,ARG} argType; 9 | 10 | class ArgParser { 11 | public: 12 | ArgParser( int argc, char **argv ); 13 | void SetOpt(argType type, const string& optname, const string& optdesc); 14 | bool HaveOpt( const string& arg ); 15 | bool HaveShort( const string& arg ); 16 | bool HaveLong( const string& arg ); 17 | string HaveValue( const string& arg ); 18 | bool HaveArg( const string& arg ); 19 | void PrintUsage( void ); 20 | list GetUnused( void ); 21 | string GetPath() { return path; } 22 | 23 | private: 24 | string path; 25 | void Parse( int argc, char **argv ); 26 | argType CheckArg( const string& anarg ); 27 | 28 | map validopt; // Valid options 29 | map validopttype; // Types for valid options 30 | map opts; // Short options (I.E. -s) 31 | map longopts; // Long options (I.E. --hello) 32 | map valueopts; // Option with values (I.E. a=1) 33 | map args; // Unprocessed args (those without "-" prefix) 34 | }; 35 | -------------------------------------------------------------------------------- /Source/Engine/calendar.h: -------------------------------------------------------------------------------- 1 | /**\file calendar.h 2 | * \author Christopher Thielen (chris@epiar.net) 3 | * \date Created: Sunday, June 24, 2012 4 | * \date Modified: Sunday, June 24, 2012 5 | * \brief 6 | * \details 7 | * This represents "space time". The idea is 8 | * simply days and years. A period is a day and 9 | * an epoch is a year. There are 1000 periods to an epoch. 10 | * The game starts on Period 1 of Epoch 3002 (arbitrary lore). 11 | */ 12 | 13 | #ifndef __h_calendar__ 14 | #define __h_calendar__ 15 | 16 | #include "includes.h" 17 | #include "Utilities/quadtree.h" 18 | #include "Utilities/timer.h" 19 | 20 | #define SECONDS_PER_PERIOD 45 21 | #define LOGIC_FRAMES_PER_PERIOD (LOGIC_FPS * SECONDS_PER_PERIOD) 22 | #define PERIODS_PER_EPOCH 1000 23 | 24 | // Abstraction of a single calendar 25 | class Calendar { 26 | public: 27 | Calendar(); 28 | 29 | void Update(void); 30 | void AdvanceFromJump(float distance); 31 | void AdvanceFromLand(); 32 | 33 | string Now(void); 34 | 35 | int GetPeriod(void) { return period; } 36 | int GetEpoch(void) { return epoch; } 37 | 38 | private: 39 | int period, epoch; 40 | int ticker; 41 | 42 | void AdjustEpoch(); 43 | }; 44 | 45 | #endif // __h_calendar__ 46 | -------------------------------------------------------------------------------- /update.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | usage() { 4 | echo "USAGE: update.sh MAJOR MINOR MICRO" 5 | } 6 | 7 | if [ "$1" = "-h" ] 8 | then 9 | echo "USAGE" 10 | exit 0 11 | fi 12 | 13 | EPIAR_VERSION_OLD=`awk '$2 == "EPIAR_VERSION_FULL" {print $3}' Source/version.h | tr -d '"'` 14 | 15 | MAJOR=$1 16 | MINOR=$2 17 | MICRO=$3 18 | 19 | EPIAR_VERSION_NEW="$MAJOR.$MINOR.$MICRO" 20 | 21 | echo "Old Version: $EPIAR_VERSION_FULL" 22 | echo "New Version: $MAJOR.$MINOR.$MICRO" 23 | 24 | echo "Updating the version number in version.h" 25 | cat Source/version.h | \ 26 | sed "s/EPIAR_VERSION_MAJOR.*$/EPIAR_VERSION_MAJOR $MAJOR/" | \ 27 | sed "s/EPIAR_VERSION_MINOR.*$/EPIAR_VERSION_MINOR $MINOR/" | \ 28 | sed "s/EPIAR_VERSION_MICRO.*$/EPIAR_VERSION_MICRO $MICRO/" | \ 29 | sed "s/EPIAR_VERSION_FULL.*$/EPIAR_VERSION_FULL \"$EPIAR_VERSION_NEW\"/" \ 30 | > Source/newversion.h 31 | mv Source/newversion.h Source/version.h 32 | 33 | echo "Updating the version number in the README" 34 | sed "s/Version .*/Version $EPIAR_VERSION_NEW/" < README > README.new 35 | mv README.new README 36 | 37 | echo "Update the version Number in the Info.plist to $EPIAR_VERSION_NEW." 38 | defaults write `pwd`/Build/OS\ X/Info CFBundleShortVersionString "$EPIAR_VERSION_NEW" 39 | defaults read `pwd`/Build/OS\ X/Info 40 | 41 | echo "TODO: Update all of the .xml files to $EPIAR_VERSION_NEW." 42 | -------------------------------------------------------------------------------- /Source/Engine/mission.h: -------------------------------------------------------------------------------- 1 | /**\file mission.cpp 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Tuesday, August 24, 2010 4 | * \date Modified: Tuesday, August 24, 2010 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_MISSION__ 10 | #define __H_MISSION__ 11 | 12 | #include "includes.h" 13 | #include "common.h" 14 | 15 | class Mission{ 16 | public: 17 | Mission( lua_State *L, string _type, int _tableReference); 18 | ~Mission(); 19 | 20 | static bool ValidateMission( lua_State *L, string type, int tableReference, int expectedVersion ); 21 | 22 | bool Accept(); 23 | bool Reject(); 24 | bool Update(); 25 | bool Land(); 26 | 27 | int GetVersion(); 28 | string GetName() { return GetStringAttribute("Name"); } 29 | string GetDescription() { return GetStringAttribute("Description"); } 30 | 31 | void PushMissionTable(); 32 | 33 | static Mission* FromXMLNode( xmlDocPtr doc, xmlNodePtr node ); 34 | xmlNodePtr ToXMLNode(); 35 | 36 | private: 37 | lua_State *L; ///< Lua Pointer 38 | string type; ///< The Mission Type 39 | int tableReference; ///< A Lua table to hold 40 | 41 | bool RunFunction(string functionName, bool checkCompletion); 42 | string GetStringAttribute(string attribute); 43 | static int GetMissionType( lua_State *L, string type ); 44 | }; 45 | 46 | #endif //__H_MISSION__ 47 | -------------------------------------------------------------------------------- /Source/Lua/src/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltable.h,v 1.1 2008/01/05 09:59:11 chris_thielen Exp $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gkey(n) (&(n)->i_key.nk) 15 | #define gval(n) (&(n)->i_val) 16 | #define gnext(n) ((n)->i_key.nk.next) 17 | 18 | #define key2tval(n) (&(n)->i_key.tvk) 19 | 20 | 21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 31 | LUAI_FUNC int luaH_getn (Table *t); 32 | 33 | 34 | #if defined(LUA_DEBUG) 35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 36 | LUAI_FUNC int luaH_isdummy (Node *n); 37 | #endif 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /Source/Lua/src/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h,v 1.1 2008/01/05 09:59:13 chris_thielen Exp $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /* Key to file-handle type */ 18 | #define LUA_FILEHANDLE "FILE*" 19 | 20 | 21 | #define LUA_COLIBNAME "coroutine" 22 | LUALIB_API int (luaopen_base) (lua_State *L); 23 | 24 | #define LUA_TABLIBNAME "table" 25 | LUALIB_API int (luaopen_table) (lua_State *L); 26 | 27 | #define LUA_IOLIBNAME "io" 28 | LUALIB_API int (luaopen_io) (lua_State *L); 29 | 30 | #define LUA_OSLIBNAME "os" 31 | LUALIB_API int (luaopen_os) (lua_State *L); 32 | 33 | #define LUA_STRLIBNAME "string" 34 | LUALIB_API int (luaopen_string) (lua_State *L); 35 | 36 | #define LUA_MATHLIBNAME "math" 37 | LUALIB_API int (luaopen_math) (lua_State *L); 38 | 39 | #define LUA_DBLIBNAME "debug" 40 | LUALIB_API int (luaopen_debug) (lua_State *L); 41 | 42 | #define LUA_LOADLIBNAME "package" 43 | LUALIB_API int (luaopen_package) (lua_State *L); 44 | 45 | 46 | /* open all previous libraries */ 47 | LUALIB_API void (luaL_openlibs) (lua_State *L); 48 | 49 | 50 | 51 | #ifndef lua_assert 52 | #define lua_assert(x) ((void)0) 53 | #endif 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /Resources/Skin/skin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 4 5 | 2 6 | 7 | 8 | Resources/Fonts/FreeSans.ttf 9 | 0xFFFFFF 10 | 12 11 | 12 | 13 | Resources/Fonts/FreeSans.ttf 14 | 15 | 0xCCCCCC 16 | 0x666666 17 | 0x262626 18 | 19 | 20 | 21 | 22 | 0x393939 23 | 0x262626 24 | 25 | 26 | 27 | 6 28 | 4 29 | 30 | 31 | 32 | 33 | Resources/Fonts/FreeSans.ttf 34 | 0xFFFFFF 35 | 14 36 | 37 | 38 | Resources/Fonts/Alfphabet-IV.ttf 39 | 0xAAAAAA 40 | 8 41 | 42 | 43 | 0x004080 44 | Resources/Fonts/usuziv2.ttf 45 | 0xCCCCCC 46 | 11 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Source/Utilities/trig.h: -------------------------------------------------------------------------------- 1 | /**\file trig.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_trig__ 10 | #define __h_trig__ 11 | 12 | class Trig { 13 | public: 14 | static Trig *Instance(); 15 | 16 | double DegToRad( int i ); 17 | double DegToRad( double i ); 18 | int RadToDeg( double i ); 19 | 20 | double GetCos( int ang ); 21 | double GetCos( double ang ); 22 | double GetSin( int ang ); 23 | double GetSin( double ang ); 24 | 25 | void RotatePoint( float x, float y, float ax, float ay, float *nx, float *ny, float ang ); 26 | 27 | protected: 28 | Trig(); 29 | Trig( const Trig & ); 30 | Trig& operator= (const Trig&); 31 | 32 | private: 33 | static Trig *pInstance; 34 | 35 | double convdr; // conversion factor from degrees to radians 36 | double convrd; // conversion factor from radians to degrees 37 | 38 | double sinTable[720]; 39 | double cosTable[720]; 40 | double tanTable[720]; 41 | }; 42 | 43 | // Turns an arbitrary angle into the smallest equivalent angle 44 | inline float normalizeAngle(float angle){ 45 | angle -= floor(angle / 360.0f) * 360.0f; // Normalize to 0 to 360 46 | if(angle>180.0f) return angle -360.0f; // Normalize to -180 to 180 47 | return angle; 48 | } 49 | 50 | #endif // __h_trig__ 51 | -------------------------------------------------------------------------------- /Source/Tests/ui.cpp: -------------------------------------------------------------------------------- 1 | /**\file ui.h 2 | * \author Maoserr 3 | * \date Created: Monday, March 22, 2010 4 | * \date Modified: Monday, March 22, 2010 5 | * \brief UI demo & debugging. 6 | */ 7 | 8 | #include "includes.h" 9 | #include "UI/ui.h" 10 | #include "Input/input.h" 11 | #include "Utilities/timer.h" 12 | 13 | int test_ui(int argc, char **argv){ 14 | bool quit=false; 15 | Input inputs; 16 | Timer::Update(); 17 | 18 | Window *awin = static_cast(UI::Add(new Window(0,0,200,400,"A Window"))); 19 | Tabs *tabcont = static_cast(awin->AddChild(new Tabs(5,25,180,300,"Tabs"))); 20 | Tab *tab1 = static_cast(tabcont->AddChild(new Tab("Tab1"))); 21 | Tab *tab2 = static_cast(tabcont->AddChild(new Tab("Tab2"))); 22 | 23 | tab1->AddChild(new Picture(50,100,50,50,"Resources/Graphics/corvet.png")); 24 | tab1->AddChild(new Checkbox(10,120,true,"Hello")); 25 | tab1->AddChild(new Button(100,300,50,20,"A button")); 26 | tab1->AddChild(new Button(100,340,50,20,"A button2")); 27 | 28 | tab2->AddChild(new Slider(5,20,100,20,"Slider")); 29 | tab2->AddChild(new Textbox(5,50,100,1,"Hello","Textbox")); 30 | tab2->AddChild(new Label(5,80,"Hello")); 31 | 32 | while( !quit ) { 33 | quit = inputs.Update(); 34 | 35 | Timer::Update(); 36 | 37 | Video::Erase(); 38 | 39 | UI::Draw(); 40 | Video::Update(); 41 | Timer::Delay(); 42 | } 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /Source/UI/ui_picture.h: -------------------------------------------------------------------------------- 1 | /**\file ui_picture.h 2 | * \author Matt Zweig 3 | * \date Created: Tuesday, November 2, 2009 4 | * \date Modified: Friday, November 14, 2009 5 | * \brief Widget for displaying Images 6 | * \details 7 | */ 8 | 9 | 10 | #ifndef __H_UI_PICTURE 11 | #define __H_UI_PICTURE 12 | 13 | #include "Graphics/image.h" 14 | #include "Graphics/video.h" 15 | #include "UI/ui.h" 16 | 17 | class Picture: public Widget { 18 | public: 19 | Picture( int x, int y, int w, int h, string filename ); 20 | Picture( int x, int y, int w, int h, Image *pic, bool allow_stretching = false ); 21 | Picture( int w, int h, string filename ); 22 | Picture( int x, int y, Image *pic ); 23 | 24 | void Draw( int relx, int rely ); 25 | 26 | void Rotate( double angle ); 27 | 28 | void Set( Image *img ); 29 | void Set( string filename ); 30 | void SetColor( float r, float g, float b, float a ); 31 | 32 | Color GetColor( void ) { return color; } 33 | float GetAlpha( void ) { return alpha; } 34 | 35 | string GetType( void ) { return string("Picture"); } 36 | virtual int GetMask( void ) { return WIDGET_PICTURE; } 37 | 38 | void Center( int x, int y ); 39 | 40 | private: 41 | void Default( int x, int y, int w, int h); 42 | 43 | double rotation; 44 | Image *bitmap; 45 | Color color; 46 | float alpha; 47 | bool stretch; 48 | }; 49 | 50 | #endif // __H_UI_PICTURE 51 | 52 | -------------------------------------------------------------------------------- /Source/UI/ui_button.h: -------------------------------------------------------------------------------- 1 | /**\file ui_button.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Friday, April 25, 2008 4 | * \date Modified: Friday, April 25, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __H_BUTTON__ 10 | #define __H_BUTTON__ 11 | 12 | #include "Audio/sound.h" 13 | #include "Graphics/image.h" 14 | #include "UI/ui.h" 15 | 16 | class Button : public Widget { 17 | public: 18 | Button( int x, int y, int w, int h, string label, string lua_code=""); 19 | Button( int x, int y, int w, int h, string label, void (*clickCallBack)()); 20 | Button( int x, int y, int w, int h, string label, void (*clickCallBack)(void*), void *callBackValue); 21 | ~Button(); 22 | 23 | void Draw( int relx = 0, int rely = 0 ); 24 | 25 | void SetText(string text) { this->name = text; } 26 | string GetText() { return this->name; } 27 | 28 | virtual string GetType( void ) {return string("Button");} 29 | virtual int GetMask( void ) { return WIDGET_BUTTON; } 30 | 31 | protected: 32 | bool MouseLDown( int xi, int yi ); 33 | bool MouseLUp( int xi, int yi ); 34 | bool MouseLRelease( void ); 35 | bool MouseEnter( int xi, int yi ); 36 | bool MouseLeave( void ); 37 | 38 | private: 39 | void Initialize( int x, int y, int w, int h, string label); 40 | Image *bitmap_current, *bitmap_normal, *bitmap_mouseover, *bitmap_pressed; 41 | }; 42 | 43 | #endif // __H_BUTTON__ 44 | -------------------------------------------------------------------------------- /Source/Utilities/options.h: -------------------------------------------------------------------------------- 1 | /**\file options.h 2 | * \author Matt Zweig 3 | * \date Created: Sunday, May 29, 2011 4 | * \date Modified: Sunday, May 29, 2011 5 | * \brief Global Options 6 | * \details 7 | */ 8 | 9 | #ifndef __H_OPTIONS 10 | #define __H_OPTIONS 11 | 12 | #include "Utilities/xml.h" 13 | #include "Utilities/string_convert.h" 14 | 15 | // To simply access options 16 | #define OPTION(T, path) ( convertTo( Options::Get(path) )) 17 | #define SETOPTION(path, value) (Options::Set((path),(value)) ) 18 | 19 | class Options 20 | { 21 | public: 22 | static void Initialize( const string& path ); 23 | 24 | static bool IsLoaded(); 25 | 26 | static void Unlock(); 27 | 28 | static bool Save( const string& path = "" ); 29 | 30 | static void AddDefault( const string& path, const string& value ); 31 | static void AddDefault( const string& path, const float value ); 32 | static void AddDefault( const string& path, const int value ); 33 | 34 | static void RestoreDefaults(); 35 | 36 | static string Get( const string& path ); 37 | 38 | static void Set( const string& path, const string& value ); 39 | static void Set( const string& path, const float value ); 40 | static void Set( const string& path, const int value ); 41 | 42 | 43 | private: 44 | static bool locked; 45 | static XMLFile *optionsfile; 46 | static XMLFile *defaults; 47 | }; 48 | 49 | #endif // __H_OPTIONS 50 | -------------------------------------------------------------------------------- /Source/Utilities/string_convert.h: -------------------------------------------------------------------------------- 1 | /**\file string_convert.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Monday, April 21, 2008 4 | * \date Modified: Monday, April 21, 2008 5 | * \brief Converts a std::string into the template type (such as an int) 6 | * \details 7 | * Code learnt at http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.2 8 | */ 9 | 10 | #ifndef __H_STRING_CONVERT__ 11 | #define __H_STRING_CONVERT__ 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | template inline std::string stringify( const T& x ) { 20 | std::ostringstream o; 21 | 22 | if (!(o << x)) { 23 | std::cout << std::string("stringify(") << typeid(x).name() << ")"; 24 | return ""; 25 | } 26 | 27 | return o.str(); 28 | } 29 | 30 | template inline void convert(const std::string& s, T& x, bool failIfLeftoverChars = true) { 31 | std::istringstream i( s ); 32 | char c; 33 | 34 | if( !( i >> x ) || ( failIfLeftoverChars && i.get( c ) ) ) { 35 | std::cout << "ERROR Could not convert the value: '" << s << "'"< inline T convertTo(const std::string& s, bool failIfLeftoverChars = true){ 41 | T x; 42 | 43 | convert( s, x, failIfLeftoverChars ); 44 | 45 | return x; 46 | } 47 | 48 | #endif // __H_STRING_CONVERT__ 49 | -------------------------------------------------------------------------------- /Source/Graphics/animation.h: -------------------------------------------------------------------------------- 1 | /**\file animation.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_animation__ 10 | #define __h_animation__ 11 | 12 | #include "Graphics/image.h" 13 | #include "Utilities/resource.h" 14 | #include "includes.h" 15 | 16 | class Ani: public Resource { 17 | public: 18 | Ani(); 19 | Ani( string& filename ); 20 | bool Load( string& filename ); 21 | static Ani* Get(string filename); 22 | 23 | Image* GetFrame(int frameNum); 24 | int GetNumFrames() { return numFrames; } 25 | int GetDelay() { return delay; } 26 | int GetWidth() { return w; } 27 | int GetHeight() { return h; } 28 | 29 | private: 30 | Image *frames; 31 | int numFrames; 32 | Uint32 delay; 33 | int w, h; 34 | }; 35 | 36 | class Animation { 37 | public: 38 | Animation(); 39 | Animation( string filename ); 40 | bool Update( void ); 41 | void Draw( int x, int y, float ang ); 42 | void SetLoopPercent( float loopPercent ); 43 | float GetLoopPercent( void ) { return loopPercent; }; 44 | void Reset( void ); 45 | int GetHalfWidth( void ) { return ani->GetWidth() / 2; }; 46 | int GetHalfHeight( void ) { return ani->GetHeight() / 2; }; 47 | 48 | private: 49 | Ani *ani; 50 | Uint32 startTime; 51 | float loopPercent; 52 | int fnum; 53 | }; 54 | 55 | #endif // __h_animation__ 56 | 57 | -------------------------------------------------------------------------------- /Source/Lua/etc/noparser.c: -------------------------------------------------------------------------------- 1 | /* 2 | * The code below can be used to make a Lua core that does not contain the 3 | * parsing modules (lcode, llex, lparser), which represent 35% of the total core. 4 | * You'll only be able to load binary files and strings, precompiled with luac. 5 | * (Of course, you'll have to build luac with the original parsing modules!) 6 | * 7 | * To use this module, simply compile it ("make noparser" does that) and list 8 | * its object file before the Lua libraries. The linker should then not load 9 | * the parsing modules. To try it, do "make luab". 10 | * 11 | * If you also want to avoid the dump module (ldump.o), define NODUMP. 12 | * #define NODUMP 13 | */ 14 | 15 | #define LUA_CORE 16 | 17 | #include "llex.h" 18 | #include "lparser.h" 19 | #include "lzio.h" 20 | 21 | LUAI_FUNC void luaX_init (lua_State *L) { 22 | UNUSED(L); 23 | } 24 | 25 | LUAI_FUNC Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { 26 | UNUSED(z); 27 | UNUSED(buff); 28 | UNUSED(name); 29 | lua_pushliteral(L,"parser not loaded"); 30 | lua_error(L); 31 | return NULL; 32 | } 33 | 34 | #ifdef NODUMP 35 | #include "lundump.h" 36 | 37 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) { 38 | UNUSED(f); 39 | UNUSED(w); 40 | UNUSED(data); 41 | UNUSED(strip); 42 | #if 1 43 | UNUSED(L); 44 | return 0; 45 | #else 46 | lua_pushliteral(L,"dumper not loaded"); 47 | lua_error(L); 48 | #endif 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /Source/Tests/graphics.cpp: -------------------------------------------------------------------------------- 1 | /**\file graphics.cpp 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Saturday, January 31, 2009 4 | * \date Modified: Sunday, November 22, 2009 5 | * \brief Graphics demo & debugging 6 | * \details 7 | */ 8 | 9 | #include "includes.h" 10 | #include "common.h" 11 | #include "Graphics/image.h" 12 | #include "Graphics/video.h" 13 | 14 | int test_graphics(int argc, char **argv) { 15 | 16 | int cnt=5; 17 | do{ 18 | Video::Erase(); 19 | 20 | // draw a grid 21 | // -- draw the horizontal lines 22 | for(int j = 50; j < Video::GetHeight(); j += 50) { 23 | Video::DrawRect(0, j, Video::GetWidth(), 1, .4f, .4f, .4f); 24 | } 25 | // -- draw the vertical lines 26 | for(int i = 50; i < Video::GetWidth(); i += 50) { 27 | Video::DrawRect(i, 0, 1, Video::GetHeight(), .4f, .4f, .4f); 28 | } 29 | 30 | // draw four test circles 31 | Video::DrawCircle(50, 50, 50, 1., 1., 1., 1.); 32 | Video::DrawCircle(50, 550, 50, 1., 1., 1., 1.); 33 | Video::DrawCircle(750, 50, 50, 1., 1., 1., 1.); 34 | Video::DrawCircle(750, 550, 50, 1., 1., 1., 1.); 35 | 36 | // load an image and draw it in the center of the screen 37 | Image planet2("Resources/Graphics/planet2.png"); 38 | planet2.DrawCentered(400+cnt*50, 300, 0.); 39 | 40 | Image frigate("Resources/Graphics/terran-frigate.png"); 41 | frigate.DrawCentered(400+cnt*50, 300, 45.); 42 | 43 | Video::Update(); 44 | 45 | SDL_Delay(1000); 46 | }while(cnt--); 47 | return 0; 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Source/Lua/README: -------------------------------------------------------------------------------- 1 | README for Lua 5.1 2 | 3 | See INSTALL for installation instructions. 4 | See HISTORY for a summary of changes since the last released version. 5 | 6 | * What is Lua? 7 | ------------ 8 | Lua is a powerful, light-weight programming language designed for extending 9 | applications. Lua is also frequently used as a general-purpose, stand-alone 10 | language. Lua is free software. 11 | 12 | For complete information, visit Lua's web site at http://www.lua.org/ . 13 | For an executive summary, see http://www.lua.org/about.html . 14 | 15 | Lua has been used in many different projects around the world. 16 | For a short list, see http://www.lua.org/uses.html . 17 | 18 | * Availability 19 | ------------ 20 | Lua is freely available for both academic and commercial purposes. 21 | See COPYRIGHT and http://www.lua.org/license.html for details. 22 | Lua can be downloaded at http://www.lua.org/download.html . 23 | 24 | * Installation 25 | ------------ 26 | Lua is implemented in pure ANSI C, and compiles unmodified in all known 27 | platforms that have an ANSI C compiler. In most Unix-like platforms, simply 28 | do "make" with a suitable target. See INSTALL for detailed instructions. 29 | 30 | * Origin 31 | ------ 32 | Lua is developed at Lua.org, a laboratory of the Department of Computer 33 | Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro 34 | in Brazil). 35 | For more information about the authors, see http://www.lua.org/authors.html . 36 | 37 | (end of README) 38 | -------------------------------------------------------------------------------- /Source/Utilities/file.h: -------------------------------------------------------------------------------- 1 | /**\file file.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Monday, April 21, 2008 4 | * \date Modified: Saturday, November 21, 2009 5 | * \brief Low level interface for file access. 6 | * \details 7 | * Use filesystem for higher level access.*/ 8 | 9 | #ifndef __H_FILE__ 10 | #define __H_FILE__ 11 | 12 | #include "includes.h" 13 | 14 | #ifdef USE_PHYSICSFS 15 | #include 16 | #else 17 | #include 18 | #endif 19 | 20 | class File { 21 | public: 22 | File( void ); 23 | File( const string& filename, bool writable = false ); 24 | ~File(); 25 | bool Read( long numBytes, char *buffer ); 26 | long GetLength( void ); 27 | bool Close(); 28 | 29 | bool OpenRead( const string& filename ); 30 | bool OpenWrite( const string& filename ); 31 | char *Read( void ); 32 | bool Write( char *buffer, const long bufsize ); 33 | long Tell( void ); 34 | bool Seek( long pos ); 35 | int SetBuffer( int bufSize ); 36 | 37 | static bool Exists( const string& filename ); 38 | static bool IsDir( const string& filename ); 39 | 40 | string GetRelativePath(); 41 | string GetAbsolutePath(); 42 | 43 | private: 44 | #ifdef USE_PHYSICSFS 45 | PHYSFS_file *fp; /** File pointer. */ 46 | #else 47 | FILE *fp; 48 | #endif 49 | static string LastErrorMessage( void ); 50 | 51 | long contentSize; /** Number of bytes in the file. */ 52 | string validName; /** Name of the file referenced (exists).*/ 53 | }; 54 | 55 | bool IsBigEndian(); 56 | 57 | #endif // __H_XML__ 58 | -------------------------------------------------------------------------------- /Source/UI/ui_scrollbar.h: -------------------------------------------------------------------------------- 1 | /**\file ui_scrollbar.h 2 | * \author Maoserr 3 | * \date Created: Tuesday, March 16, 2010 4 | * \date Modified: Tuesday, March 16, 2010 5 | * \details 6 | */ 7 | 8 | #ifndef __H_SCROLLBAR__ 9 | #define __H_SCROLLBAR__ 10 | 11 | #include "Graphics/image.h" 12 | #include "UI/ui.h" 13 | 14 | #define SCROLLBAR_SCROLL 20 ///< Amount of scrolling per click 15 | 16 | class Scrollbar : public Widget { 17 | public: 18 | Scrollbar( int x, int y, int length, int maxpos ); 19 | 20 | ~Scrollbar(); 21 | 22 | void Draw( int relx = 0, int rely = 0 ); 23 | 24 | // Use these when the encompassing window size changes 25 | void SetPosition(int x, int y) { this->x = x; this->y = y; } 26 | void SetSize(int length); 27 | 28 | 29 | string GetType( void ) { return string("Scrollbar");} 30 | virtual int GetMask( void ) { return WIDGET_SCROLLBAR; } 31 | 32 | void ScrollUp( int pix = SCROLLBAR_SCROLL ); 33 | void ScrollDown( int pix = SCROLLBAR_SCROLL ); 34 | 35 | int GetPos() { return pos; } 36 | 37 | protected: 38 | bool MouseLDown( int xi, int yi ); 39 | bool MouseDrag( int xi, int yi ); 40 | 41 | private: 42 | int GetMarkerSize( void ); 43 | int MarkerPosToPixel( void ); 44 | int MarkerPixelToPos( int xr, int yr ); 45 | int CheckPos( int newpos ); 46 | 47 | int pos; ///< The current Marker position 48 | int maxpos; ///< The Highest Marker position 49 | int markersize; ///< The Size of the Marker 50 | 51 | Image* bitmaps[6]; ///< The Scrollbar Images 52 | }; 53 | 54 | #endif // __H_SCROLLBAR__ 55 | -------------------------------------------------------------------------------- /Resources/Simulation/default/alliances-default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 5 5 | 0 6 | 7 | Autonomous Territory 8 | 0.0 9 | 0 10 | Credits 11 | 0x7E336F 12 | 13 | 14 | Independent 15 | 0.0 16 | 0 17 | Credits 18 | 0x808080 19 | 20 | 21 | Inter-Terran Conjunctive 22 | 5.0 23 | 3 24 | Confederal dollar 25 | 0xFF0000 26 | 27 | 28 | Solar Colonies 29 | 0.0 30 | 0 31 | Credits 32 | 0x00FF00 33 | 34 | 35 | Tunis Protectorate 36 | 0.0 37 | 0 38 | Credits 39 | 0xFC9007 40 | 41 | 42 | Venusian Union 43 | 0.0 44 | 0 45 | Credits 46 | 0x0000FF 47 | 48 | 49 | -------------------------------------------------------------------------------- /Build/cmake/ThirdParty/ZLIB/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Zlib CMake build file 2 | cmake_minimum_required (VERSION 2.6) 3 | project (ZLIB) 4 | 5 | if (NOT ZLIB_SOURCE_NAME) 6 | set(ZLIB_SOURCE_NAME "zlib-1.2.3" CACHE STRING "ZLIB source name") 7 | endif (NOT ZLIB_SOURCE_NAME) 8 | 9 | set(ZLIB_SRC_FOLDER "${PROJECT_SOURCE_DIR}/${ZLIB_SOURCE_NAME}") 10 | # Create variables for include and library 11 | set(ZLIB_INCLUDE_DIR "${ZLIB_SRC_FOLDER}" CACHE STRING "ZLIB include directory" FORCE) 12 | set(ZLIB_LIBRARY zlib CACHE STRING "ZLIB libraries" FORCE) 13 | set(ZLIB_LIBRARIES ${ZLIB_LIBRARY} CACHE STRING "ZLIB libraries" FORCE) 14 | set(zlib_src 15 | ${ZLIB_SRC_FOLDER}/adler32.c 16 | ${ZLIB_SRC_FOLDER}/compress.c 17 | ${ZLIB_SRC_FOLDER}/crc32.c 18 | ${ZLIB_SRC_FOLDER}/deflate.c 19 | ${ZLIB_SRC_FOLDER}/gzio.c 20 | ${ZLIB_SRC_FOLDER}/infback.c 21 | ${ZLIB_SRC_FOLDER}/inffast.c 22 | ${ZLIB_SRC_FOLDER}/inflate.c 23 | ${ZLIB_SRC_FOLDER}/inftrees.c 24 | ${ZLIB_SRC_FOLDER}/trees.c 25 | ${ZLIB_SRC_FOLDER}/uncompr.c 26 | ${ZLIB_SRC_FOLDER}/zutil.c 27 | ) 28 | 29 | add_library(zlib STATIC ${zlib_src}) 30 | if (NOT ZLIB_STATICLIB_OUTPUT_PATH) 31 | set(ZLIB_STATICLIB_OUTPUT_PATH "." CACHE STRING 32 | "Zlib static lib output directory") 33 | endif (NOT ZLIB_STATICLIB_OUTPUT_PATH) 34 | 35 | if (WIN32) 36 | if (MSVC) 37 | set_target_properties(${ZLIB_LIBRARIES} PROPERTIES 38 | COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS) 39 | endif (MSVC) 40 | endif (WIN32) 41 | 42 | set_target_properties (${ZLIB_LIBRARIES} PROPERTIES 43 | ARCHIVE_OUTPUT_DIRECTORY "${ZLIB_STATICLIB_OUTPUT_PATH}") 44 | 45 | # vim:ft=cmake 46 | -------------------------------------------------------------------------------- /Resources/Simulation/default/engines-default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 5 5 | 0 6 | 7 | Altaire Corp. NM66 Sublight Thrusters 8 | The NM66 has been established as the standard engine for all small and medium ships. 9 | 10 | It doesn't have enough force to propel large or carrier class starships. 11 | 5.0 12 | 500 13 | 0 14 | Resources/Animations/thrust.ani 15 | Resources/Audio/Engines/22455__nathanshadow__Thruster_Level_II.ogg 16 | Resources/Graphics/thruster.png 17 | 18 | 19 | Ion Engines 20 | The Ion Engine works by accelerating a stream of charged particles to near relativistic speeds before ejecting them. 21 | 22 | The Solaran Colonies have adopted Ion Engines into all of their standard ships due to their incredible acceletations. 23 | 24 | Some Carrier class starships in the Terran Navy also use Ion Engines as nothing else would be enough to move them. 25 | 20.0 26 | 2000 27 | 1 28 | Resources/Animations/thrust2.ani 29 | Resources/Audio/Engines/22455__nathanshadow__Thruster_Level_II.ogg 30 | Resources/Graphics/engine_upgrade.png 31 | 32 | 33 | -------------------------------------------------------------------------------- /Source/Sprites/effects.cpp: -------------------------------------------------------------------------------- 1 | /**\file effect.cpp 2 | * \author Matt Zweig 3 | * \date Created: Tuesday, December 15, 2009 4 | * \date Modified: Tuesday, December 15, 2009 5 | * \brief Sprite SubClass for Animated backgrounds 6 | * \details 7 | */ 8 | 9 | #include "includes.h" 10 | #include "Graphics/animation.h" 11 | #include "Graphics/image.h" 12 | #include "Sprites/spritemanager.h" 13 | #include "Sprites/sprite.h" 14 | #include "Sprites/effects.h" 15 | #include "Engine/simulation_lua.h" 16 | 17 | /** \addtogroup Sprites 18 | * @{ 19 | */ 20 | 21 | /**\class Effect 22 | * \brief Various Animation effects. 23 | */ 24 | 25 | /**\brief Creates a new Effect at specified coordinate with Animation file 26 | */ 27 | Effect::Effect(Coordinate pos, string filename, float loopPercent) { 28 | SetWorldPosition(pos); 29 | visual = new Animation(filename); 30 | visual->SetLoopPercent( loopPercent ); 31 | } 32 | 33 | /**\brief Destroy an Effect 34 | */ 35 | Effect::~Effect() { 36 | delete visual; 37 | } 38 | 39 | /**\brief Updates the Effect 40 | */ 41 | void Effect::Update( lua_State *L ) { 42 | Sprite::Update( L ); 43 | if( visual->Update() == true ) { 44 | SpriteManager *sprites = Simulation_Lua::GetSimulation(L)->GetSpriteManager(); 45 | sprites->Delete( (Sprite*)this ); 46 | } 47 | } 48 | 49 | /**\brief Draws the Effect 50 | */ 51 | void Effect::Draw( void ) { 52 | Coordinate pos = GetWorldPosition(); 53 | visual->Draw( pos.GetScreenX(), pos.GetScreenY(), this->GetAngle()); 54 | } 55 | 56 | /**\fn Effect::GetDrawOrder( ) 57 | * \brief Returns the Draw order of the Effect 58 | */ 59 | 60 | /** @} */ 61 | 62 | -------------------------------------------------------------------------------- /Source/Engine/alliances.h: -------------------------------------------------------------------------------- 1 | /**\file alliances.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Saturday, January 5, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_alliance__ 10 | #define __h_alliance__ 11 | 12 | #include "includes.h" 13 | #include "Utilities/components.h" 14 | #include "Graphics/video.h" 15 | 16 | // Abstraction of a single planet 17 | class Alliance : public Component { 18 | public: 19 | Alliance(); 20 | Alliance& operator= (const Alliance&); 21 | Alliance( string _name, short int _attackSize, float _aggressiveness, string _currency, Color _color); 22 | bool FromXMLNode( xmlDocPtr doc, xmlNodePtr node ); 23 | xmlNodePtr ToXMLNode(string componentName); 24 | 25 | short int GetAttackSize(void){ return attackSize; } 26 | float GetAggressiveness(void){ return aggressiveness; } 27 | string GetCurrency(void){ return currency; } 28 | Color GetColor(void){ return color; } 29 | 30 | private: 31 | short int attackSize; 32 | float aggressiveness; 33 | string currency; 34 | Color color; 35 | }; 36 | 37 | // Class that holds list of all planets; manages them 38 | class Alliances : public Components { 39 | public: 40 | static Alliances *Instance(); 41 | Alliance* GetAlliance(string name) { return (Alliance*) this->Get(name); } 42 | Component* newComponent() { return new Alliance(); } 43 | 44 | protected: 45 | Alliances() {}; 46 | Alliances( const Alliances & ); 47 | Alliances& operator= (const Alliances&); 48 | 49 | private: 50 | static Alliances *pInstance; 51 | }; 52 | 53 | #endif // __h_alliances__ 54 | -------------------------------------------------------------------------------- /Source/Engine/engines.h: -------------------------------------------------------------------------------- 1 | /**\file engines.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \date Created: Unknown (2006?) 4 | * \date Modified: Saturday, January 5, 2008 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_engines__ 10 | #define __h_engines__ 11 | 12 | #include "Audio/sound.h" 13 | #include "Graphics/animation.h" 14 | #include "Utilities/components.h" 15 | #include "Engine/outfit.h" 16 | #include "includes.h" 17 | 18 | // Abstraction of a single engine 19 | class Engine : public Outfit { 20 | public: 21 | Engine(); 22 | Engine& operator= (const Engine&); 23 | Engine( string _name, Image* _pic, string _description, Sound* _sound, float _forceOutput, short int _msrp, bool _foldDrive, string _flareAnimation); 24 | 25 | bool FromXMLNode( xmlDocPtr doc, xmlNodePtr node ); 26 | xmlNodePtr ToXMLNode(string componentName); 27 | 28 | string GetFlareAnimation( void ) { return flareAnimation; } 29 | short int GetFoldDrive( void ) { return foldDrive; } 30 | Sound* GetSound() { return thrustsound; } 31 | 32 | private: 33 | Sound *thrustsound; 34 | bool foldDrive; 35 | string flareAnimation; 36 | }; 37 | 38 | // Class that holds list of all planets; manages them 39 | class Engines : public Components { 40 | public: 41 | static Engines *Instance(); 42 | Engine* GetEngine(string name) { return (Engine*) this->Get(name); } 43 | Component* newComponent() { return new Engine(); } 44 | 45 | protected: 46 | Engines() {}; 47 | Engines( const Engines & ); 48 | Engines& operator= (const Engines&); 49 | 50 | private: 51 | static Engines *pInstance; 52 | }; 53 | 54 | #endif // __h_planets__ 55 | -------------------------------------------------------------------------------- /Source/Lua/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Lua License 2 | ----------- 3 | 4 | Lua is licensed under the terms of the MIT license reproduced below. 5 | This means that Lua is free software and can be used for both academic 6 | and commercial purposes at absolutely no cost. 7 | 8 | For details and rationale, see http://www.lua.org/license.html . 9 | 10 | =============================================================================== 11 | 12 | Copyright (C) 1994-2007 Lua.org, PUC-Rio. 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a copy 15 | of this software and associated documentation files (the "Software"), to deal 16 | in the Software without restriction, including without limitation the rights 17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 18 | copies of the Software, and to permit persons to whom the Software is 19 | furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in 22 | all copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 30 | THE SOFTWARE. 31 | 32 | =============================================================================== 33 | 34 | (end of COPYRIGHT) 35 | -------------------------------------------------------------------------------- /Source/Audio/audio.h: -------------------------------------------------------------------------------- 1 | /**\file audio.h 2 | * \author Maoserr 3 | * \date Created: Saturday, February 06, 2010 4 | * \date Modified: Saturday, February 06, 2010 5 | * \brief Abstraction to SDL_mixer interface. 6 | * \details 7 | * This files is responsible for overall Audio system configuration. To play 8 | * music or sound see the corresponding Music and Sound classes. 9 | */ 10 | 11 | #ifndef __H_AUDIO__ 12 | #define __H_AUDIO__ 13 | 14 | #include "includes.h" 15 | 16 | /** Maximum audio volume */ 17 | #define AUDIO_MAX_VOL 128 18 | 19 | class Audio { 20 | public: 21 | static Audio& Instance(); 22 | bool Initialize( void ); 23 | bool Shutdown( void ); 24 | void HaltAll( void ); 25 | bool SetMusicVol ( float volume ); 26 | bool SetSoundVol ( float volume ); 27 | float GetMusicVol () { return music_vol; } 28 | float GetSoundVol () { return sound_vol; } 29 | int GetFreeChannel( void ); 30 | int GetTotalChannels( void ); 31 | int PlayChannel( int chan, Mix_Chunk *chunk, int loop ); 32 | 33 | private: 34 | Audio(); 35 | Audio(Audio const&); // Copy constructor 36 | Audio& operator=(Audio const&); // Assignment constructor 37 | ~Audio(); 38 | 39 | bool initstatus; // Initialization status 40 | int audio_rate; // Samplerate 41 | Uint16 audio_format; // AUDIO_S16 42 | int audio_channels; // Stereo, etc. 43 | int audio_buffers; // Size of buffer 44 | float music_vol; // Sound volumes 45 | float sound_vol; // Sound volumes 46 | unsigned int max_chan; // Total number of channels request 47 | list lastplayed; // Queue of last used channels. 48 | }; 49 | 50 | #endif // __H_AUDIO__ 51 | -------------------------------------------------------------------------------- /Source/UI/ui_tabs.h: -------------------------------------------------------------------------------- 1 | /**\file ui_tabs.h 2 | * \author Maoserr 3 | * \date Created: Sunday, March 14, 2010 4 | * \date Modified: Sunday, March 14, 2010 5 | * \brief Implement Tab pages 6 | */ 7 | 8 | #ifndef __H_TABS__ 9 | #define __H_TABS__ 10 | 11 | #include "UI/ui.h" 12 | #include "Utilities/log.h" 13 | 14 | class Tab : public Container { 15 | public: 16 | Tab( const string& _caption ); 17 | ~Tab(); 18 | Tab *AddChild( Widget *widget ); 19 | 20 | void DrawHandle( int realx, int realy, bool active ); 21 | 22 | int GetHandleWidth( bool active ); 23 | 24 | string GetType( void ) {return string("Tab");} 25 | virtual int GetMask( void ) { return WIDGET_TAB | WIDGET_CONTAINER; } 26 | 27 | private: 28 | int capw; 29 | 30 | Image *active_left; 31 | Image *active_middle; 32 | Image *active_right; 33 | 34 | Image *inactive_left; 35 | Image *inactive_middle; 36 | Image *inactive_right; 37 | }; 38 | 39 | class Tabs : public Container { 40 | public: 41 | Tabs( int x, int y, int w, int h, const string& name ); 42 | Tabs *AddChild( Widget *widget ); 43 | Widget *DetermineMouseFocus( int relx, int rely ); 44 | 45 | void Draw( int relx = 0, int rely = 0 ); 46 | string GetType( void ) { return string("Tabs"); } 47 | virtual int GetMask( void ) { return WIDGET_TABS | WIDGET_CONTAINER; } 48 | 49 | void TabNext( void ); 50 | Tab* GetActiveTab() { return activetab; } 51 | 52 | protected: 53 | bool MouseLDown( int xi, int yi ); 54 | 55 | private: 56 | Tab* CheckTabClicked( int xr, int yr ); 57 | Tab* activetab; 58 | 59 | Color background; 60 | Color edge; 61 | }; 62 | 63 | 64 | 65 | 66 | 67 | #endif // __H_TABS__ 68 | -------------------------------------------------------------------------------- /Source/includes.h: -------------------------------------------------------------------------------- 1 | /**\file includes.h 2 | * \author Chris Thielen 3 | * \author and others 4 | * \date Saturday, November 21, 2009 5 | * \date Saturday, November 21, 2009 6 | * \brief Contains common system libraries. 7 | * \details 8 | */ 9 | 10 | #ifndef __H_INCLUDES__ 11 | #define __H_INCLUDES__ 12 | 13 | #ifdef _WIN32 14 | #define WIN32_LEAN_AND_MEAN 15 | #define _WIN32_WINNT 0x0501 16 | // The Microsoft GL header files require windows.h to be included first. 17 | #include 18 | #define snprintf _snprintf 19 | // Microsoft's math.h requires this define so that it defines M_PI etc. 20 | #define _USE_MATH_DEFINES 21 | 22 | #endif // _WIN32 23 | 24 | // Does this conflict with Log? 25 | #include 26 | 27 | // System includes 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | 43 | // Library includes 44 | #include "SDL.h" 45 | #include "SDL_thread.h" 46 | #include "SDL_image.h" 47 | #include "SDL_mixer.h" 48 | #include 49 | #include 50 | #include 51 | 52 | #if __APPLE__ 53 | #include 54 | #include 55 | #include 56 | #else 57 | #include 58 | #include 59 | //#include "GL/glext.h" 60 | #endif 61 | 62 | // Local includes 63 | #include "defines.h" 64 | #include "version.h" 65 | 66 | #include 67 | 68 | using namespace std; 69 | 70 | #endif // __H_INCLUDES__ 71 | -------------------------------------------------------------------------------- /Source/common.h: -------------------------------------------------------------------------------- 1 | /**\file common.h 2 | * \author Chris Thielen (chris@epiar.net) 3 | * \author and others. 4 | * \date Created: Saturday, January 5, 2008 5 | * \date Modified: Thursday, November 19, 2009 6 | * \brief Common variables and defines. 7 | * \details 8 | * This file contains some global variables, defines, 9 | * . 10 | */ 11 | 12 | #ifndef __H_COMMON__ 13 | #define __H_COMMON__ 14 | 15 | #include "Graphics/font.h" 16 | #include "Utilities/xml.h" 17 | #include "Utilities/options.h" 18 | 19 | // defined in main.cpp. used through the codebase 20 | extern XMLFile *skinfile; 21 | 22 | extern Font *SansSerif; 23 | extern Font *BitType; 24 | extern Font *Serif; 25 | extern Font *Mono; 26 | 27 | #define SKIN(path) (skinfile->Get(path) ) 28 | 29 | #ifndef M_PI 30 | //hey, this might be running on a computer with unusually precise 31 | //doubles. 32 | #define V_PI 3.1415926535897932384626433832795028841971693993751058209 33 | #define V_2PI 6.2831853071795864769252867665590057683943387987502116419 34 | #else 35 | #define V_PI M_PI 36 | #define V_2PI (M_PI*2) 37 | #endif 38 | 39 | #ifndef M_PI_2 40 | #define V_PI2 1.5707963267948966192313216916397514420985846996875529104 41 | #define V_3PI2 4.7123889803846898576939650749192543262957540990626587314 42 | #else 43 | #define V_PI2 M_PI_2 44 | #define V_3PI2 (M_PI_2*3) 45 | #endif 46 | 47 | #ifndef M_PI_4 48 | #define V_PI4 .78539816339744830961566084581987572104929234984377645524 49 | #else 50 | #define V_PI4 M_PI_4 51 | #endif 52 | 53 | #ifndef M_SQRT2 54 | #define V_SQRT2 1.41421356237309504880168872420969807856967187537694807 55 | #else 56 | #define V_SQRT2 M_SQRT2 57 | #endif 58 | 59 | #endif // __H_COMMON__ 60 | -------------------------------------------------------------------------------- /Source/Lua/src/lmem.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lmem.h,v 1.1 2008/01/05 09:59:10 chris_thielen Exp $ 3 | ** Interface to Memory Manager 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lmem_h 8 | #define lmem_h 9 | 10 | 11 | #include 12 | 13 | #include "llimits.h" 14 | #include "lua.h" 15 | 16 | #define MEMERRMSG "not enough memory" 17 | 18 | 19 | #define luaM_reallocv(L,b,on,n,e) \ 20 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 21 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ 22 | luaM_toobig(L)) 23 | 24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) 25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) 26 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) 27 | 28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) 29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 30 | #define luaM_newvector(L,n,t) \ 31 | cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 32 | 33 | #define luaM_growvector(L,v,nelems,size,t,limit,e) \ 34 | if ((nelems)+1 > (size)) \ 35 | ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 36 | 37 | #define luaM_reallocvector(L, v,oldn,n,t) \ 38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) 39 | 40 | 41 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 42 | size_t size); 43 | LUAI_FUNC void *luaM_toobig (lua_State *L); 44 | LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, 45 | size_t size_elem, int limit, 46 | const char *errormsg); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | If you helped contribute to Epiar and are not mentioned here, please email chris@epiar.net. 2 | 3 | Creator/Project Lead... Christopher Thielen 4 | 5 | Programmers... Matthew 'knowknowledge' Zweig 6 | Christopher 'topher' Thielen 7 | Maoserr 8 | Rikus 'rikus' Goodell 9 | Shawn 'ebos' Reynolds 10 | James 'digital-phoenix' Brownlee 11 | Gerard 'gsweeney' Sweeney 12 | 13 | Code contributions... Christopher Walton 14 | Douglas Moyes 15 | Moss Jones 16 | Dimitar 'Dido' Stanchev 17 | Doug Mirro 18 | 19 | Graphics contributions... Eric 'biggnthed' Sargent 20 | Irbis 21 | Henri Palm 22 | Adam Scott 23 | Michael Johnduff 24 | countless others (see e-mail comment at top) 25 | 26 | Website contributions... Marco Luethy 27 | Michael Helix 28 | 29 | Documentation... Leon Vayman (Black Mage) 30 | 31 | Packaging and Distro Help... Michael Helix 32 | Marco Luethy 33 | Debian packager who packages xorg (email me your name!) 34 | Rikus Goodell 35 | 36 | Special thanks... Donald Thielen 37 | Kate Barton 38 | Laura Kraft 39 | -------------------------------------------------------------------------------- /Source/UI/ui_checkbox.cpp: -------------------------------------------------------------------------------- 1 | /**\file ui_checkbox.cpp 2 | * \author Christopher Thielen (chris@epiar.net) 3 | * \date Created: Monday, December 28, 2009 4 | * \brief 5 | * \details 6 | */ 7 | 8 | #include "includes.h" 9 | #include "common.h" 10 | #include "Graphics/font.h" 11 | #include "Graphics/video.h" 12 | #include "UI/ui.h" 13 | #include "UI/ui_checkbox.h" 14 | #include "Utilities/log.h" 15 | #include "Utilities/lua.h" 16 | 17 | /** \addtogroup UI 18 | * @{ 19 | */ 20 | 21 | /**\class Checkbox 22 | * \brief UI checkbox. */ 23 | 24 | /**\brief Constructs a new Checkbox. 25 | */ 26 | Checkbox::Checkbox( int x, int y, bool checked, string label ) { 27 | blank_box = Image::Get( "Resources/Skin/ui_checkbox_blank.png" ); 28 | check_box = Image::Get( "Resources/Skin/ui_checkbox_check.png" ); 29 | 30 | this->x = x; 31 | this->y = y; 32 | this->w = UI::font->TextWidth(label) + check_box->GetWidth() + 5; 33 | this->h = ( UI::font->LineHeight() > check_box->GetHeight() ) 34 | ? UI::font->LineHeight() 35 | : check_box->GetHeight(); 36 | 37 | this->name = label; 38 | this->checked = checked; 39 | } 40 | 41 | void Checkbox::Draw( int relx, int rely ) { 42 | int x, y; 43 | 44 | x = this->x + relx; 45 | y = this->y + rely; 46 | 47 | if( checked ) { 48 | check_box->Draw( x,y ); 49 | } else { 50 | blank_box->Draw( x,y ); 51 | } 52 | 53 | // draw the label 54 | UI::font->RenderTight( x + check_box->GetWidth() + 5, y, name ); 55 | 56 | Widget::Draw(relx,rely); 57 | } 58 | 59 | bool Checkbox::MouseLUp( int xi, int yi ) { 60 | checked = !checked; 61 | Widget::MouseLUp( xi, yi ); 62 | if(OPTION(int, "options/sound/buttons")) UI::beep->Play(); 63 | return true; 64 | } 65 | 66 | /** @} */ 67 | -------------------------------------------------------------------------------- /Source/UI/ui_paragraph.cpp: -------------------------------------------------------------------------------- 1 | /**\file ui_paragraph.cpp 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Sunday, June 26, 2011 4 | * \date Modified: Sunday, June 26, 2011 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #include "includes.h" 10 | #include "common.h" 11 | #include "Graphics/video.h" 12 | #include "Graphics/font.h" 13 | #include "UI/ui.h" 14 | #include "UI/ui_paragraph.h" 15 | #include "Utilities/log.h" 16 | 17 | /** \addtogroup UI 18 | * @{ 19 | */ 20 | 21 | /**\class Paragraph 22 | * \brief UI Paragraph 23 | */ 24 | 25 | /**\brief Constructor 26 | */ 27 | Paragraph::Paragraph( int x, int y, int maxw, int h, string text ) 28 | :lines(UI::font, text, maxw ) 29 | { 30 | this->x=x; 31 | this->y=y; 32 | 33 | centered=false; 34 | 35 | SetW( lines.GetWidth() ); 36 | SetH( lines.GetHeight() ); 37 | } 38 | 39 | /**\brief Draw the Paragraph 40 | */ 41 | void Paragraph::Draw( int relx, int rely ) { 42 | int x, y; 43 | 44 | x = this->x + relx; 45 | y = this->y + rely; 46 | 47 | // draw the text 48 | Font::XPos xpositioning = (centered) ? (Font::CENTER) : (Font::LEFT); 49 | Font::YPos ypositioning = (centered) ? (Font::MIDDLE) : (Font::TOP); 50 | 51 | lines.Render( x, y, xpositioning, ypositioning ); 52 | 53 | Widget::Draw(relx,rely + UI::font->TightHeight() / 2 ); 54 | } 55 | 56 | /**\brief Set the text string of this Widget 57 | */ 58 | void Paragraph::SetText(string text) { 59 | lines.SetText( text ); 60 | SetW( lines.GetWidth() ); 61 | SetH( lines.GetHeight() ); 62 | } 63 | 64 | /**\brief Append some text to the current text 65 | */ 66 | void Paragraph::AppendText(string text) { 67 | lines.AppendText( text ); 68 | SetW( lines.GetWidth() ); 69 | SetH( lines.GetHeight() ); 70 | } 71 | 72 | /** @} */ 73 | -------------------------------------------------------------------------------- /Source/Engine/technologies.h: -------------------------------------------------------------------------------- 1 | /**\file technologies.h 2 | * \author Matt Zweig (thezweig@gmail.com) 3 | * \date Created: Saturday, February 13, 2010 4 | * \date Modified: Saturday, February 13, 2010 5 | * \brief 6 | * \details 7 | */ 8 | 9 | #ifndef __h_technologies 10 | #define __h_technologies 11 | 12 | #include "includes.h" 13 | #include "Engine/models.h" 14 | #include "Engine/engines.h" 15 | #include "Engine/weapons.h" 16 | #include "Utilities/components.h" 17 | 18 | class Technology : public Component { 19 | public: 20 | Technology(); 21 | Technology& operator= (const Technology&); 22 | Technology( string _name, list _models, list_engines, list_weapons, list_outfits); 23 | bool FromXMLNode( xmlDocPtr doc, xmlNodePtr node ); 24 | xmlNodePtr ToXMLNode(string componentName); 25 | 26 | list GetModels() { return models; } 27 | list GetEngines() { return engines; } 28 | list GetWeapons() { return weapons; } 29 | list GetOutfits() { return outfits; } 30 | 31 | private: 32 | list models; 33 | list engines; 34 | list weapons; 35 | list outfits; 36 | }; 37 | 38 | // Class that holds list of all technologies; manages them 39 | class Technologies : public Components { 40 | public: 41 | static Technologies *Instance(); 42 | Technology *GetTechnology( string& TechnologyName ) { return (Technology*) this->Get(TechnologyName); } 43 | Component* newComponent(){ return new Technology; } 44 | 45 | protected: 46 | Technologies() {}; 47 | Technologies( const Technologies & ); 48 | Technologies& operator= (const Technologies&); 49 | 50 | private: 51 | static Technologies *pInstance; 52 | }; 53 | 54 | #endif // __h_technologies 55 | -------------------------------------------------------------------------------- /Source/Lua/test/sort.lua: -------------------------------------------------------------------------------- 1 | -- two implementations of a sort function 2 | -- this is an example only. Lua has now a built-in function "sort" 3 | 4 | -- extracted from Programming Pearls, page 110 5 | function qsort(x,l,u,f) 6 | if ly end) 58 | show("after reverse selection sort",x) 59 | qsort(x,1,n,function (x,y) return x 0.5.0 62 | - Initial creation using Epiar version 0.5.0. 63 | 64 | -------------------------------------------------------------------------------- /Source/Tests/argparser.cpp: -------------------------------------------------------------------------------- 1 | /**\file argparser.cpp 2 | * \author Maoserr 3 | * \date Created: Sunday, March 21, 2010 4 | * \date Modified: Sunday, March 21, 2010 5 | * \brief Tests the command line parser. 6 | */ 7 | 8 | #include "includes.h" 9 | #include "Utilities/argparser.h" 10 | 11 | /**\brief This function tests all the available options of the ArgParser 12 | * class.*/ 13 | int test_argparser(int argc, char **argv){ 14 | // Create an artifical argc and argv for testing 15 | int test_argc = 5; 16 | char *test_argv[]={(char*)"programname.exe", 17 | (char*)"-h", 18 | (char*)"--help", 19 | (char*)"--answer=blah", 20 | (char*)"an-argument"}; 21 | ArgParser argpInst(test_argc,test_argv); 22 | 23 | // Test for arguments 24 | argpInst.SetOpt(SHORTOPT,"h","Display help screen"); 25 | argpInst.SetOpt(LONGOPT,"help","Display help screen"); 26 | argpInst.SetOpt(VALUEOPT,"answer","Display the answer to life"); 27 | 28 | if ( argpInst.HaveShort("h")) 29 | cout<<"Success: Short option."<