LibCT 2.1
Posted in Code, Portfolio on April 24th, 2011 by PyrokaWork has begun on LibCT version 2.1, after a while considering what improvements I wanted to make to LibCT I think I’ve come up with a decent enough list to warrant a new (minor) version of both the editor and the library, the current plans are:
EdCT
- Add the ability to double-click on the labels to bring up and edit dialogue
- Add a ‘delete’ button to the labels
- Add ‘Insert Variable’ button to Choice and Phase text entry
LibCT
- Re-factor connections
- Implement ConversationInstance to make using conversations easier
As they stand at the moment, all nodes have two connections, but only the Decision nodes actually use two (Conversation and Choice nodes have 1, and Phase nodes do not have any), the plan is to create a template-class which will take an integer parameter specifying how many connections there should be with functions to access and set the connections, then the nodes will inherit from that class. This will prevent the current waste of memory that is incurred by all nodes having an array of two connections.
At the moment, it if fairly easy to keep track of conversations (as the sample code shows) however, the implementation of a simple helper class ‘ConversationInstance’ can easily hide the remaining complications helping to reduce bugs and speed up implementations, it also reinforces the idea that conversations can be used in parallel.
I’ve no doubt that in the process of making these improvements I will come up with even more to throw in, you can keep track of my progress on the LibCT Roadmap.