]> git.nickg.me.uk Git - traingame.git/log
traingame.git
14 years agoStart getting the train to go uphill
Nick Gasson [Tue, 2 Mar 2010 21:25:21 +0000 (21:25 +0000)]
Start getting the train to go uphill

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Tue, 2 Mar 2010 08:25:16 +0000 (08:25 +0000)]
Merge branch 'master' into slope_track

14 years agoRemove signal handler as it seems to upset X
Nick Gasson [Tue, 2 Mar 2010 08:24:58 +0000 (08:24 +0000)]
Remove signal handler as it seems to upset X

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Sun, 28 Feb 2010 22:33:28 +0000 (22:33 +0000)]
Merge branch 'master' into slope_track

14 years agoSome tabs had snuck in
Nick Gasson [Sun, 28 Feb 2010 22:25:31 +0000 (22:25 +0000)]
Some tabs had snuck in

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Sun, 28 Feb 2010 22:15:31 +0000 (22:15 +0000)]
Merge branch 'master' into slope_track

14 years agoRemove SEGV workaround: this isn't the problem
Nick Gasson [Sun, 28 Feb 2010 22:15:01 +0000 (22:15 +0000)]
Remove SEGV workaround: this isn't the problem

14 years agoNo need to store `flip' field for SlopeTrack
Nick Gasson [Sun, 28 Feb 2010 22:00:55 +0000 (22:00 +0000)]
No need to store `flip' field for SlopeTrack

14 years agoLoad sloped track from XML
Nick Gasson [Sun, 28 Feb 2010 21:59:53 +0000 (21:59 +0000)]
Load sloped track from XML

14 years agoDo some fancy maths to make the slopes line up nicely
Nick Gasson [Sun, 28 Feb 2010 21:25:21 +0000 (21:25 +0000)]
Do some fancy maths to make the slopes line up nicely

14 years agoSimple upward slopes working
Nick Gasson [Sun, 28 Feb 2010 20:44:00 +0000 (20:44 +0000)]
Simple upward slopes working

14 years agoMake SlopeTrack work like a proper track segment
Nick Gasson [Sun, 28 Feb 2010 20:28:29 +0000 (20:28 +0000)]
Make SlopeTrack work like a proper track segment

14 years agoGenerate sloped track
Nick Gasson [Sun, 28 Feb 2010 19:48:06 +0000 (19:48 +0000)]
Generate sloped track

14 years agoAdd stub SlopeTrack class
Nick Gasson [Sun, 28 Feb 2010 18:00:36 +0000 (18:00 +0000)]
Add stub SlopeTrack class

14 years agoCalculate slope before and after sloped section
Nick Gasson [Sun, 28 Feb 2010 17:03:20 +0000 (17:03 +0000)]
Calculate slope before and after sloped section

14 years agoDetect slopes and warn they're not supported
Nick Gasson [Sun, 28 Feb 2010 16:53:12 +0000 (16:53 +0000)]
Detect slopes and warn they're not supported

14 years agoOnly allow track to be placed on level ground
Nick Gasson [Sun, 28 Feb 2010 16:47:29 +0000 (16:47 +0000)]
Only allow track to be placed on level ground

14 years agoAdd start of loading/unloading window
Nick Gasson [Sun, 28 Feb 2010 13:53:20 +0000 (13:53 +0000)]
Add start of loading/unloading window

14 years agoPrevent planting of trees over track or other scenery
Nick Gasson [Sun, 28 Feb 2010 13:37:28 +0000 (13:37 +0000)]
Prevent planting of trees over track or other scenery

14 years agoAdd some trees to the goods_demo map
Nick Gasson [Sun, 28 Feb 2010 13:31:56 +0000 (13:31 +0000)]
Add some trees to the goods_demo map

14 years agoAdd lots of trees to the figure8 map
Nick Gasson [Sun, 28 Feb 2010 13:30:42 +0000 (13:30 +0000)]
Add lots of trees to the figure8 map

14 years agoScatter trees randomly in dragged area
Nick Gasson [Sun, 28 Feb 2010 13:30:30 +0000 (13:30 +0000)]
Scatter trees randomly in dragged area

14 years agoRename `throttle' to `power' in GUI
Nick Gasson [Sun, 28 Feb 2010 13:23:19 +0000 (13:23 +0000)]
Rename `throttle' to `power' in GUI

14 years agoHaving both placeBuilding and addScenery is pointless
Nick Gasson [Sat, 27 Feb 2010 22:43:38 +0000 (22:43 +0000)]
Having both placeBuilding and addScenery is pointless

14 years agoStoring trees and buildings separately is pointless
Nick Gasson [Sat, 27 Feb 2010 22:41:30 +0000 (22:41 +0000)]
Storing trees and buildings separately is pointless

14 years agoUse boot::program_options to parse command line
Nick Gasson [Sat, 27 Feb 2010 21:41:23 +0000 (21:41 +0000)]
Use boot::program_options to parse command line

14 years agoAdd support for non-square maps
Nick Gasson [Sat, 27 Feb 2010 20:54:55 +0000 (20:54 +0000)]
Add support for non-square maps

14 years agoMake scenery picker generic
Nick Gasson [Sat, 27 Feb 2010 20:12:42 +0000 (20:12 +0000)]
Make scenery picker generic

14 years agoRename BuildingPicker to SceneryPicker
Nick Gasson [Sat, 27 Feb 2010 17:32:19 +0000 (17:32 +0000)]
Rename BuildingPicker to SceneryPicker

14 years agoMake buildings implement IScenery and remove IBuilding
Nick Gasson [Sat, 27 Feb 2010 17:27:18 +0000 (17:27 +0000)]
Make buildings implement IScenery and remove IBuilding

14 years agoHave Building track its own location
Nick Gasson [Sat, 27 Feb 2010 17:20:06 +0000 (17:20 +0000)]
Have Building track its own location

14 years agoAllow deleting trees
Nick Gasson [Sat, 27 Feb 2010 17:12:23 +0000 (17:12 +0000)]
Allow deleting trees

14 years agoDisallow raising terrain over track
Nick Gasson [Sat, 27 Feb 2010 15:40:14 +0000 (15:40 +0000)]
Disallow raising terrain over track

14 years agoAdjust land height in figure8 map
Nick Gasson [Sat, 27 Feb 2010 14:10:28 +0000 (14:10 +0000)]
Adjust land height in figure8 map

14 years agoTweak sea and beach colours
Nick Gasson [Sat, 27 Feb 2010 14:10:18 +0000 (14:10 +0000)]
Tweak sea and beach colours

14 years agoFix speed issue when reversing
Nick Gasson [Sat, 27 Feb 2010 13:51:57 +0000 (13:51 +0000)]
Fix speed issue when reversing

14 years agoChange control method to use up/down keys
Nick Gasson [Sat, 27 Feb 2010 13:24:48 +0000 (13:24 +0000)]
Change control method to use up/down keys

14 years agoStop including all of SDL with IScreen.hpp
Nick Gasson [Sat, 27 Feb 2010 13:20:53 +0000 (13:20 +0000)]
Stop including all of SDL with IScreen.hpp

14 years agoFix smoke trail visual artefacts
Nick Gasson [Sat, 27 Feb 2010 13:17:17 +0000 (13:17 +0000)]
Fix smoke trail visual artefacts

14 years agoUndo last change: was pointless
Nick Gasson [Fri, 26 Feb 2010 19:24:58 +0000 (19:24 +0000)]
Undo last change: was pointless

14 years agoMake Map::eraseTile safer
Nick Gasson [Fri, 26 Feb 2010 19:24:12 +0000 (19:24 +0000)]
Make Map::eraseTile safer

14 years agoUse Colour struct rather than HighlightColour everywhere
Nick Gasson [Fri, 26 Feb 2010 19:20:43 +0000 (19:20 +0000)]
Use Colour struct rather than HighlightColour everywhere

14 years agoReduce state changes in renderHighlightedTiles
Nick Gasson [Fri, 26 Feb 2010 19:13:30 +0000 (19:13 +0000)]
Reduce state changes in renderHighlightedTiles

14 years agoTweak goods_demo map
Nick Gasson [Fri, 26 Feb 2010 19:11:24 +0000 (19:11 +0000)]
Tweak goods_demo map

14 years agoFix display of editor drag highlights
Nick Gasson [Fri, 26 Feb 2010 19:11:09 +0000 (19:11 +0000)]
Fix display of editor drag highlights

14 years agoUse right bit for saving depth mask
Nick Gasson [Fri, 26 Feb 2010 17:54:19 +0000 (17:54 +0000)]
Use right bit for saving depth mask

14 years agoFix graphical artefacts in highlighted tiles
Nick Gasson [Fri, 26 Feb 2010 08:52:15 +0000 (08:52 +0000)]
Fix graphical artefacts in highlighted tiles

14 years agoTidy up the Building class to be more like Tree
Nick Gasson [Thu, 25 Feb 2010 20:28:30 +0000 (20:28 +0000)]
Tidy up the Building class to be more like Tree

14 years agoOverload loadTree with normal and unserialise variants
Nick Gasson [Wed, 24 Feb 2010 22:38:35 +0000 (22:38 +0000)]
Overload loadTree with normal and unserialise variants

14 years agoUse Point<int> rather than two ints to track location in map loader
Nick Gasson [Wed, 24 Feb 2010 22:34:21 +0000 (22:34 +0000)]
Use Point<int> rather than two ints to track location in map loader

14 years agoBe consitent: use `load' for resources not `make'
Nick Gasson [Wed, 24 Feb 2010 22:27:35 +0000 (22:27 +0000)]
Be consitent: use `load' for resources not `make'

14 years agoMethods to serialise/unserialise trees from XML
Nick Gasson [Wed, 24 Feb 2010 22:17:33 +0000 (22:17 +0000)]
Methods to serialise/unserialise trees from XML

14 years agoRename ModelTree to just Tree
Nick Gasson [Wed, 24 Feb 2010 21:38:48 +0000 (21:38 +0000)]
Rename ModelTree to just Tree

14 years agoDelete old tree code
Nick Gasson [Wed, 24 Feb 2010 21:34:32 +0000 (21:34 +0000)]
Delete old tree code

14 years agoAdd an IXMLSerialisable interface for everything we can write to an XML file
Nick Gasson [Wed, 24 Feb 2010 21:29:08 +0000 (21:29 +0000)]
Add an IXMLSerialisable interface for everything we can write to an XML file

14 years agoAdd a new pie tree model
Nick Gasson [Wed, 24 Feb 2010 20:12:57 +0000 (20:12 +0000)]
Add a new pie tree model

14 years agoTry to add some protection against SEGV GLX death
Nick Gasson [Sat, 20 Feb 2010 21:21:27 +0000 (21:21 +0000)]
Try to add some protection against SEGV GLX death

14 years agoLoad and save trees from XML file
Nick Gasson [Sat, 20 Feb 2010 20:59:27 +0000 (20:59 +0000)]
Load and save trees from XML file

14 years agoLoad copies of a single cached tree
Nick Gasson [Sat, 20 Feb 2010 20:29:40 +0000 (20:29 +0000)]
Load copies of a single cached tree

14 years agoA cute 3D tree model
Nick Gasson [Sat, 20 Feb 2010 19:54:53 +0000 (19:54 +0000)]
A cute 3D tree model

14 years agoSome modifications to tree generation algorithm
Nick Gasson [Sat, 20 Feb 2010 15:33:08 +0000 (15:33 +0000)]
Some modifications to tree generation algorithm

14 years agoNeat fading out messages
Nick Gasson [Wed, 17 Feb 2010 22:24:44 +0000 (22:24 +0000)]
Neat fading out messages

14 years agoFix GUI window location bug with border attribute
Nick Gasson [Mon, 15 Feb 2010 21:27:25 +0000 (21:27 +0000)]
Fix GUI window location bug with border attribute

14 years agoAutomatic centering and growing of widgets
Nick Gasson [Mon, 15 Feb 2010 21:07:22 +0000 (21:07 +0000)]
Automatic centering and growing of widgets

14 years agoCenter widgets in the screen by default
Nick Gasson [Mon, 15 Feb 2010 20:36:21 +0000 (20:36 +0000)]
Center widgets in the screen by default

14 years agoYet more re-indenting
Nick Gasson [Sun, 14 Feb 2010 18:43:22 +0000 (18:43 +0000)]
Yet more re-indenting

14 years agoRe-indent another couple of files ltree
Nick Gasson [Sun, 14 Feb 2010 18:42:15 +0000 (18:42 +0000)]
Re-indent another couple of files

14 years agoMove back to 3-space indent
Nick Gasson [Sun, 14 Feb 2010 18:41:19 +0000 (18:41 +0000)]
Move back to 3-space indent

14 years agoTidy up trees a little bit
Nick Gasson [Sun, 14 Feb 2010 18:36:32 +0000 (18:36 +0000)]
Tidy up trees a little bit

14 years agoMuch better tree generation
Nick Gasson [Sun, 14 Feb 2010 18:23:44 +0000 (18:23 +0000)]
Much better tree generation

14 years agoReasonable looking trees
Nick Gasson [Sun, 14 Feb 2010 17:19:27 +0000 (17:19 +0000)]
Reasonable looking trees

14 years agoAlternative ltrees
Nick Gasson [Sun, 14 Feb 2010 17:03:18 +0000 (17:03 +0000)]
Alternative ltrees

14 years agoTry to optimise LTree rendering a bit
Nick Gasson [Sun, 7 Feb 2010 17:21:10 +0000 (17:21 +0000)]
Try to optimise LTree rendering a bit

14 years agoRender tree to display list
Nick Gasson [Sun, 7 Feb 2010 13:50:05 +0000 (13:50 +0000)]
Render tree to display list

14 years agoChange the colour of trees
Nick Gasson [Sun, 7 Feb 2010 13:12:58 +0000 (13:12 +0000)]
Change the colour of trees

14 years agoOnly draw points arrow when we are near it
Nick Gasson [Sun, 7 Feb 2010 12:57:19 +0000 (12:57 +0000)]
Only draw points arrow when we are near it

14 years agoSome cosmetic improvements to arrows
Nick Gasson [Sun, 7 Feb 2010 12:48:11 +0000 (12:48 +0000)]
Some cosmetic improvements to arrows

14 years agoDraw a better arrow on points
Nick Gasson [Sun, 7 Feb 2010 12:06:10 +0000 (12:06 +0000)]
Draw a better arrow on points

14 years agoSimplify and fix point state changing
Nick Gasson [Sun, 7 Feb 2010 10:58:15 +0000 (10:58 +0000)]
Simplify and fix point state changing

14 years agoRestore old signal handlers after ours have fired once
Nick Gasson [Sun, 7 Feb 2010 10:39:10 +0000 (10:39 +0000)]
Restore old signal handlers after ours have fired once

14 years agoOnly allowing setting of points when choice possible
Nick Gasson [Sat, 6 Feb 2010 21:42:22 +0000 (21:42 +0000)]
Only allowing setting of points when choice possible

14 years agoBasic setting of points
Nick Gasson [Sat, 6 Feb 2010 21:29:45 +0000 (21:29 +0000)]
Basic setting of points

14 years agoRemove choice code
Nick Gasson [Sat, 6 Feb 2010 21:08:06 +0000 (21:08 +0000)]
Remove choice code

14 years agoLet track segments have multiple states
Nick Gasson [Sat, 6 Feb 2010 20:58:40 +0000 (20:58 +0000)]
Let track segments have multiple states

14 years agoDraw an arrow on points
Nick Gasson [Sat, 6 Feb 2010 11:17:09 +0000 (11:17 +0000)]
Draw an arrow on points

14 years agoIndent another file
Nick Gasson [Sat, 6 Feb 2010 09:45:44 +0000 (09:45 +0000)]
Indent another file

14 years agoRe-tabify more files
Nick Gasson [Fri, 5 Feb 2010 22:14:34 +0000 (22:14 +0000)]
Re-tabify more files

14 years agoRe-indent some files to 4-spaces
Nick Gasson [Fri, 5 Feb 2010 22:06:38 +0000 (22:06 +0000)]
Re-indent some files to 4-spaces

14 years agoEditor button for placing trees
Nick Gasson [Fri, 5 Feb 2010 21:53:00 +0000 (21:53 +0000)]
Editor button for placing trees

14 years agoBetter tree generation
Nick Gasson [Mon, 18 Jan 2010 08:10:34 +0000 (08:10 +0000)]
Better tree generation

14 years agoRender an actual L-system tree!
Nick Gasson [Mon, 18 Jan 2010 07:42:46 +0000 (07:42 +0000)]
Render an actual L-system tree!

14 years agoBasic L-system generation
Nick Gasson [Sat, 16 Jan 2010 12:30:57 +0000 (12:30 +0000)]
Basic L-system generation

14 years agoAdd stub LTree implementation
Nick Gasson [Sat, 16 Jan 2010 09:55:19 +0000 (09:55 +0000)]
Add stub LTree implementation

14 years agoStub for LTree demo screen
Nick Gasson [Sat, 16 Jan 2010 09:46:36 +0000 (09:46 +0000)]
Stub for LTree demo screen

14 years agoRemove duplicate calls to makeSDLWindow
Nick Gasson [Sat, 16 Jan 2010 09:41:27 +0000 (09:41 +0000)]
Remove duplicate calls to makeSDLWindow

14 years agoFix some cases of flipLeader - still borked though
Nick Gasson [Tue, 12 Jan 2010 08:47:07 +0000 (08:47 +0000)]
Fix some cases of flipLeader - still borked though

14 years agoForgot to set sa_mask in struct sigaction
Nick Gasson [Tue, 12 Jan 2010 06:30:53 +0000 (06:30 +0000)]
Forgot to set sa_mask in struct sigaction

14 years agoAdd some debugging for reversing on points issue
Nick Gasson [Sun, 10 Jan 2010 16:19:58 +0000 (16:19 +0000)]
Add some debugging for reversing on points issue

14 years agoHandle SIGINTs
Nick Gasson [Sun, 10 Jan 2010 15:36:53 +0000 (15:36 +0000)]
Handle SIGINTs

14 years agoDetect stopping at stations
Nick Gasson [Sun, 10 Jan 2010 15:12:00 +0000 (15:12 +0000)]
Detect stopping at stations