Erik Ogenvik
e85f0831b2
Restructure rule classes.
...
Classes under "rulesets" have been moved to "rules", and split up into
futher subdirectories matching their library. As a result we can now
better separate the python bindings, so that things that belongs to the
simulation are separeted from things that belongs to the ai.
2018-10-31 21:38:35 +01:00
Erik Ogenvik
800d6f3d2c
Put operations in separate directory.
2018-10-30 20:12:45 +01:00
Erik Ogenvik
d39a1a461a
Fixed incorrect signature.
2018-10-29 21:38:19 +01:00
Erik Ogenvik
e0b45800ef
Fix broken tests.
2018-10-29 21:11:23 +01:00
Erik Ogenvik
599095bfd4
Improve handling of visibility for types.
2018-08-19 17:15:30 +02:00
Erik Ogenvik
6a3ec31b7e
Remove Character class.
...
This is crucial since it now means that any entity can be controlled by
a mind. This makes the world much more versatile.
2018-08-14 22:25:56 +02:00
Erik Ogenvik
87cec626d3
Update creatures for new metabolizing system.
2018-08-11 20:19:07 +02:00
Erik Ogenvik
0592987f84
Remove Creator and add AdminMind.
...
The mind is instead responsible for allowing extra editing capabilities.
This makes the entity hierarchy smaller.
2018-08-08 22:27:43 +02:00
Erik Ogenvik
d744ae4660
Removed "playable" concept.
...
The only way to create entities in a world is to create spawn points for
them.
2018-08-08 20:55:48 +02:00
Erik Ogenvik
fbf50d9974
Fixed logout process.
2018-08-08 15:42:45 +02:00
Erik Ogenvik
1f4af43fd3
Refactor handling of minds.
2018-08-07 23:19:16 +02:00
Erik Ogenvik
c84f5fe926
Don't implicitly convert from Ref to ptr.
...
Since it's too easy to introduce subtle bugs.
2018-08-05 20:47:09 +02:00
Erik Ogenvik
7edaae44d2
Store all entities as Refs in base world.
2018-07-25 13:01:33 +02:00
Erik Ogenvik
4d1dc775b0
Moved BaseWorld to rulesets.
...
Since it better belongs there.
2018-07-25 00:16:09 +02:00
Erik Ogenvik
6e62796876
Reload rules in a better manner.
2018-05-10 00:21:30 +02:00
Erik Ogenvik
09090a6446
Emit Change op when a type changes.
2018-04-27 23:12:15 +02:00
Erik Ogenvik
705b691ff5
Make "Account::operation" send directly to link.
2018-04-25 21:05:59 +02:00
Erik Ogenvik
f283ffbafb
Communicate type changes to all clients.
2018-04-25 20:15:29 +02:00
Erik Ogenvik
e7fa53214b
Use nullptr instead of NULL.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
0286bcd47d
Replace "parents" with "parent".
2017-07-24 15:05:18 +02:00
Erik Ogenvik
7aaa9b9ba7
Optimize includes.
2017-03-19 21:36:52 +01:00
Erik Ogenvik
31421a46bb
Fixed issue with admin clients and spawns.
2016-12-15 18:27:42 +01:00
Olek Wojnar
9e1b3b92c3
Fix typos
...
Courtesy of lintian
2016-09-06 22:29:36 -04:00
Erik Ogenvik
c4f44bb277
Deregister possessive clients correctly.
2015-05-24 11:25:07 +02:00
Erik Ogenvik
af5c4df216
Send possession requests to the connected account.
2015-05-24 11:25:07 +02:00
Erik Ogenvik
5d11e1cbb8
Store Link instances rather than Router.
...
Note that I'm still not sure how this is done in a canonical way; I'm
learning as I go along.
2015-05-24 11:25:06 +02:00
Erik Ogenvik
ea3f12b07b
Allow clients to register as AI handlers.
...
This is done by setting the account attribute "possessive" to 1.
2015-05-24 11:25:06 +02:00
Erik Ogenvik
46c4b2c8bf
Allow for admins to create any entity in spawns.
...
This is useful when an admin character want to enter the world near a
common spawn (rather at the default origo).
2014-01-23 22:21:36 +01:00
Erik Ogenvik
d65e47c660
Use "commune" for goal info.
2013-08-22 09:54:46 +02:00
Erik Ogenvik
fb5050e784
Fixed incorrect "return".
2013-08-15 16:22:21 +02:00
Olek Wojnar
7f9ff2246d
Remove CVS $Id tags
...
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Erik Ogenvik
e63b4e9708
Removed old code.
...
Setting thoughts now happen through Creator.
2013-04-17 21:14:11 +02:00
Erik Ogenvik
4d982173bb
Allow admin client to query goals.
...
This is done in a way similar to how thoughts are queries. A Get op is
sent, containing a Goal_info op. The mind code is then responsible for
composing data about the goals, which is sent back to the client.
2013-04-01 22:18:40 +02:00
Erik Ogenvik
415a977e6c
Merge branch 'world_suspend' into authoring_improvements
...
Conflicts:
server/Admin.cpp
2013-03-31 21:08:57 +02:00
Erik Ogenvik
c1f96a0fc6
Handle correct thought ops.
2013-02-10 11:47:46 +01:00
Erik Ogenvik
e6cd3bf643
Allow setting of thoughts.
2013-02-10 11:47:46 +01:00
Erik Ogenvik
f18b0c717b
Provide ability to ask entities for their thoughts.
...
This is meant to be used for authoring. It allows admin clients to
inspect and persist the relevant parts of the minds of any NPC.
2013-02-04 20:15:29 +01:00
Alistair Riddoch
32d71ce6b8
Remove unneeded Entity.h
2013-01-18 19:41:16 +00:00
Alistair Riddoch
4a9c7078f7
Refactor to use LocatedEntity as base class
...
All IG code should use the interface of LocatedEntity when dealing
with any entity, rather than sometimes requiring Entity. Add virtual
functions to the interface where required, and modify all other interfaces
to stop them using Entity. This makes the code way cleaner, and much better
de-coupled.
2013-01-17 10:17:07 +00:00
Alistair Riddoch
f920bdb919
Fix up return values for characterError
2012-12-11 08:47:45 +00:00
Alistair Riddoch
52446052a4
Move check to as late as it can be
...
This check broke the case where an Admin account was forcing the logout of
another admin account in tests
2012-09-18 11:36:31 +01:00
Alistair Riddoch
fa386125cb
Return after calling parent method
...
If this return isn't here, LogoutOperation gets called potentially in a loop
2012-09-18 09:16:31 +01:00
Alistair Riddoch
68494ba520
Use the ruleset global less often, making code more isolated
2012-01-19 19:34:20 +00:00
Alistair Riddoch
9709784a63
Remove now obsolete Connect op handler
2010-12-09 16:10:38 +00:00
Alistair Riddoch
db5d30f8ce
Remove obsolete connecting code.
2010-12-09 15:57:33 +00:00
Alistair Riddoch
3e6f99aca0
Add a connection pointer to Juncture, and patch in connect and login code
2010-12-07 15:48:26 +00:00
Alistair Riddoch
6b16973a9e
Add code to handle creating new Juncture objects by an admin account
2010-12-06 22:26:31 +00:00
Alistair Riddoch
21086ca150
Refactor Create in Accounts to have a common handler, with a new virtual detail
2010-12-06 00:02:21 +00:00
Alistair Riddoch
b87968537d
Converge the create code in account classes
2010-12-05 18:47:04 +00:00
Alistair Riddoch
d5fa9bf68b
Simplify the fingerprint of characterError to make it easier to use
2010-12-03 21:57:39 +00:00