Commit Graph

17 Commits

Author SHA1 Message Date
Basilius Sauter 38068dd0a5 Completed basic battle system.
The class Battle takes two participants (player and monster) that both
need to implement the FighterInterface. Right now, rounds are
completed by the fightNRounds method.

Since all enemies in the old code follow the same default scaling,
monsters and masters use a AutoScaleFighter trait for now.
2016-05-25 22:13:15 +02:00
Austen McDonald f06299cc7f Change Module to have createdAt field 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 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 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 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
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
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
Austen McDonald a7d761d4da Cleanup formatting in composer.json and rename Tests to tests 2016-04-14 21:31:22 -07:00