Commit Graph

440 Commits

Author SHA1 Message Date
Austen McDonald 6988c3bd7a Add missing documentation to EventManager constructor 2016-05-14 21:06:23 -07:00
Austen McDonald 6d962453b6 Fix up typos and syntax errors and add tests to Event system 2016-05-14 21:06:23 -07:00
Austen McDonald 9ac276ca37 Add EventManager and related classes 2016-05-14 21:06:23 -07:00
Austen McDonald 8b8b7e5299 Add ModuleManager and basic module handling functionality 2016-05-14 21:06:23 -07:00
Austen McDonald 86816f8666 Add Module model and tests 2016-05-14 21:06:23 -07:00
Basilius Sauter 0ff9958830 Adds MotD and Message model as well as tests
This commit adds the MotD model for storing and retrieving
messages-of-the-day.

It also adds a model for messages. Messages have an author as well as a
thread they belong to, the thread can be read by a specific number of
authors. FUrthermore, the message model supports system messages.

This commit introduces a number of needed changes:
- Character is now implementing the CharacterInterface
- MissingCharacter and SystemCharacter are supporting "pseudo-characters"
- trait MockCharacter implements non-implemented methods for
  MissingCharacter and SytemCharacter
- Characters are now soft-deletable. Models wanting to load soft-deleted
  characters need to fetch them eagerly.

Closes #17
2016-05-12 11:04:04 +02:00
Basilius Sauter 53d82646bf Refactored CharacterScene as CharacterViewpoint
closes #15
2016-04-29 19:03:48 +02:00
Basilius Sauter 2bb9bca69e Fix for dicebag test
dicebag tests asserts now for >= and <= instead of > and < since the edge
cases can happen from time to time as well.

closes #14
2016-04-28 22:58:05 +02:00
Basilius Sauter 5b86099bcc Adds GameConfiguration Model
Adds GameConfiguration Model which itself is a container for the
GameConfigurationElement entity. The GameConfiguration model makes use of
the introduces OneToManyCollection which implements the Collection
interface of the Doctrine library.

Closes PR #13
2016-04-28 18:35:46 +02:00
Basilius Sauter 7b21baee37 Introduction of the GameConfiguration model
This commit introduces the GameConfiguration, a model that is not an
entity. It also introduces GameConfigurationElement which is a doctrine
entity.
The two models make use of the traits introduced for CharacterProperty.
They also use the new OneToManyCollection class, which implements the
doctrine collection interface to a certain, limited extend. It mimicks
doctrine's PersisentCollection.
2016-04-27 22:51:16 +02:00
Basilius Sauter d59c08b60d Added a comment 2016-04-25 19:53:16 +02:00
Basilius Sauter 0692a977f2 Added additional tests to test the change of Scene. 2016-04-25 19:38:59 +02:00
Basilius Sauter dddaebbe0b Added additional test 2016-04-25 19:30:55 +02:00
Basilius Sauter 6edd4cf9b1 Implemented Character->getCharacterModel() 2016-04-25 19:25:25 +02:00
Basilius Sauter 7590247f89 Basic CharacterScene model
Moved basic Scene data to SceneBasics, created CharacterScene and a
getter for the Character model.
2016-04-21 07:32:57 +02:00
Basilius Sauter 9986420b10 Minor fixes and changes
The tests are now using sqlite inside of the memory. This ensures a
creation of the database every time the tests are run.
Added some additional tests for probing database persistance.
Removed outdated code.
2016-04-20 18:11:59 +02:00
Basilius Sauter 7643277cf7 Changed phpunit configuration back 2016-04-19 21:58:44 +02:00
Basilius Sauter 6a72a43cda Model changes
Adds basic Scene model
Extends Character model with reusable properties (Using the two traits
Properties and PropertyManager).
2016-04-19 21:51:40 +02:00
Austen McDonald 15ff6e8898 Make DiceBag and TimeKeeper conform to PSR2
closes #9
2016-04-18 21:02:14 -07:00
Basilius Sauter 001e4e9718 Closes 8 and resolved conflict
Conflicts:
	phpunit.xml
2016-04-18 07:23:07 +02:00
Basilius Sauter bd254f262e Closes #8 2016-04-18 07:06:34 +02:00
Austen McDonald 230e29963f Add Contributing section to the README
closes #5
2016-04-16 13:28:51 -07:00
Austen McDonald aa666d616b Add TimeKeeper and associated tests.
closes #6
2016-04-16 13:20:13 -07:00
Austen McDonald a1196c2ec3 Add DiceBag and tests
closes #7
2016-04-16 13:16:00 -07:00
Basilius Sauter f4a75607d7 Removed setsuites from phpunit 2016-04-16 09:17:56 +02:00
Basilius Sauter 9fe3582ffb Merge remote-tracking branch 'refs/remotes/origin/master' into feature/models 2016-04-16 09:17:39 +02:00
Basilius Sauter 3fbfc7692f Improved Tests and CharacterModel 2016-04-16 09:13:07 +02:00
Basilius Sauter ac7c845d07 Added Deletor trait. 2016-04-16 07:30:03 +02:00
Austen McDonald 8b6b60a31a Add .travis.yml
closes #4
2016-04-15 21:20:02 -07:00
Austen McDonald 3f1e4a2c55 Adding test script, in case we add additional checks 2016-04-15 16:19:39 -07:00
Basilius Sauter 7afa27246b Added strict_types=1 and added test 2016-04-15 18:56:08 +02:00
Basilius Sauter 5a405fc2db Model support for character creation 2016-04-15 18:16:35 +02:00
Basilius Sauter 980ce8d7f7 Merge branch 'fixups' 2016-04-15 17:40:00 +02:00
Basilius Sauter 254bd9516d Merge branch 'master' into fixups 2016-04-15 17:36:03 +02:00
Basilius Sauter d2e3cad3dc Merge pull request #2 from lotgd/add-README
Porting over some basic README verbiage
2016-04-15 17:34:28 +02:00
Basilius Sauter 6942722c46 Fixed Test 2016-04-15 07:40:11 +02:00
Austen McDonald 15942fa640 Porting over some basic README verbiage 2016-04-14 21:38:21 -07:00
Austen McDonald a7d761d4da Cleanup formatting in composer.json and rename Tests to tests 2016-04-14 21:31:22 -07:00
Basilius Sauter 5e06171bec Basic commit
Added meta data files (gitattribute to normalize line ending,
gitignore), as well as a simple Model and non-working tests.
2016-04-14 23:57:17 +02:00
Austen McDonald be01f8c1b6 Initial commit 2016-04-12 17:30:34 -07:00