{"action":"created","comment":{"url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/comments/90567349","pull_request_review_id":11086080,"id":90567349,"diff_hunk":"@@ -0,0 +1,32 @@\n+package io.infectnet.server.engine.content.system.hijack;\n+\n+\n+import io.infectnet.server.engine.content.system.health.HealthModificationRequest;\n+import io.infectnet.server.engine.core.entity.wrapper.Action;\n+import io.infectnet.server.engine.core.script.Request;\n+import io.infectnet.server.engine.core.system.ActionOnlyProcessor;\n+import io.infectnet.server.engine.core.util.ListenableQueue;\n+\n+public class HijackSystem extends ActionOnlyProcessor {\n+\n+  private static final int MODIFICATION_NUMBER = 3;\n+\n+  private final ListenableQueue<Request> requestQueue;\n+\n+  public HijackSystem(\n+      ListenableQueue<Request> requestQueue) {\n+    this.requestQueue = requestQueue;\n+  }\n+\n+  @Override\n+  public void registerActionListeners(ListenableQueue<Action> actionQueue) {\n+    actionQueue.addListener(HijackAction.class, this::consumeHijackAction);\n+  }\n+\n+  private void consumeHijackAction(Action action) {\n+    HijackAction hijackAction = (HijackAction) action;","path":"server-core/engine/src/main/java/io/infectnet/server/engine/content/system/hijack/HijackSystem.java","position":27,"original_position":27,"commit_id":"e6106b10a8399f8fc42254334b046f1e4287341b","original_commit_id":"e6106b10a8399f8fc42254334b046f1e4287341b","user":{"login":"battila7","id":11032092,"avatar_url":"https://avatars.githubusercontent.com/u/11032092?v=3","gravatar_id":"","url":"https://api.github.com/users/battila7","html_url":"https://github.com/battila7","followers_url":"https://api.github.com/users/battila7/followers","following_url":"https://api.github.com/users/battila7/following{/other_user}","gists_url":"https://api.github.com/users/battila7/gists{/gist_id}","starred_url":"https://api.github.com/users/battila7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battila7/subscriptions","organizations_url":"https://api.github.com/users/battila7/orgs","repos_url":"https://api.github.com/users/battila7/repos","events_url":"https://api.github.com/users/battila7/events{/privacy}","received_events_url":"https://api.github.com/users/battila7/received_events","type":"User","site_admin":false},"body":"Maybe we should check if the target of the action is a worker, a fighter or a building. Resources and specials should not be hijacked if you agree.","created_at":"2016-12-02T00:29:53Z","updated_at":"2016-12-02T00:31:57Z","html_url":"https://github.com/infectnet/infectnet-server/pull/90#discussion_r90567349","pull_request_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/comments/90567349"},"html":{"href":"https://github.com/infectnet/infectnet-server/pull/90#discussion_r90567349"},"pull_request":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90","id":96198266,"html_url":"https://github.com/infectnet/infectnet-server/pull/90","diff_url":"https://github.com/infectnet/infectnet-server/pull/90.diff","patch_url":"https://github.com/infectnet/infectnet-server/pull/90.patch","issue_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/90","number":90,"state":"open","locked":false,"title":"Create basic entities - closes #69","user":{"login":"battila7","id":11032092,"avatar_url":"https://avatars.githubusercontent.com/u/11032092?v=3","gravatar_id":"","url":"https://api.github.com/users/battila7","html_url":"https://github.com/battila7","followers_url":"https://api.github.com/users/battila7/followers","following_url":"https://api.github.com/users/battila7/following{/other_user}","gists_url":"https://api.github.com/users/battila7/gists{/gist_id}","starred_url":"https://api.github.com/users/battila7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battila7/subscriptions","organizations_url":"https://api.github.com/users/battila7/orgs","repos_url":"https://api.github.com/users/battila7/repos","events_url":"https://api.github.com/users/battila7/events{/privacy}","received_events_url":"https://api.github.com/users/battila7/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T00:18:57Z","updated_at":"2016-12-02T00:31:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23ddf540a0ad970afcb613b0f44874f967469ea1","assignee":{"login":"daergoth","id":4593542,"avatar_url":"https://avatars.githubusercontent.com/u/4593542?v=3","gravatar_id":"","url":"https://api.github.com/users/daergoth","html_url":"https://github.com/daergoth","followers_url":"https://api.github.com/users/daergoth/followers","following_url":"https://api.github.com/users/daergoth/following{/other_user}","gists_url":"https://api.github.com/users/daergoth/gists{/gist_id}","starred_url":"https://api.github.com/users/daergoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daergoth/subscriptions","organizations_url":"https://api.github.com/users/daergoth/orgs","repos_url":"https://api.github.com/users/daergoth/repos","events_url":"https://api.github.com/users/daergoth/events{/privacy}","received_events_url":"https://api.github.com/users/daergoth/received_events","type":"User","site_admin":false},"assignees":[{"login":"daergoth","id":4593542,"avatar_url":"https://avatars.githubusercontent.com/u/4593542?v=3","gravatar_id":"","url":"https://api.github.com/users/daergoth","html_url":"https://github.com/daergoth","followers_url":"https://api.github.com/users/daergoth/followers","following_url":"https://api.github.com/users/daergoth/following{/other_user}","gists_url":"https://api.github.com/users/daergoth/gists{/gist_id}","starred_url":"https://api.github.com/users/daergoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daergoth/subscriptions","organizations_url":"https://api.github.com/users/daergoth/orgs","repos_url":"https://api.github.com/users/daergoth/repos","events_url":"https://api.github.com/users/daergoth/events{/privacy}","received_events_url":"https://api.github.com/users/daergoth/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/infectnet/infectnet-server/milestones/1","html_url":"https://github.com/infectnet/infectnet-server/milestones/Alpha%20Version","labels_url":"https://api.github.com/repos/infectnet/infectnet-server/milestones/1/labels","id":2029227,"number":1,"title":"Alpha Version","description":"The alpha version consists of the following features:\r\n\r\n * Login/Register/Continue\r\n * Working game loop\r\n * Proof of Concept DSL\r\n * One working worker (pun intended)","creator":{"login":"battila7","id":11032092,"avatar_url":"https://avatars.githubusercontent.com/u/11032092?v=3","gravatar_id":"","url":"https://api.github.com/users/battila7","html_url":"https://github.com/battila7","followers_url":"https://api.github.com/users/battila7/followers","following_url":"https://api.github.com/users/battila7/following{/other_user}","gists_url":"https://api.github.com/users/battila7/gists{/gist_id}","starred_url":"https://api.github.com/users/battila7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battila7/subscriptions","organizations_url":"https://api.github.com/users/battila7/orgs","repos_url":"https://api.github.com/users/battila7/repos","events_url":"https://api.github.com/users/battila7/events{/privacy}","received_events_url":"https://api.github.com/users/battila7/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":74,"state":"open","created_at":"2016-09-26T15:39:58Z","updated_at":"2016-12-02T00:22:25Z","due_on":"2016-12-20T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90/commits","review_comments_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90/comments","review_comment_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/90/comments","statuses_url":"https://api.github.com/repos/infectnet/infectnet-server/statuses/e6106b10a8399f8fc42254334b046f1e4287341b","head":{"label":"infectnet:create-basic-entities-#69","ref":"create-basic-entities-#69","sha":"e6106b10a8399f8fc42254334b046f1e4287341b","user":{"login":"infectnet","id":22404572,"avatar_url":"https://avatars.githubusercontent.com/u/22404572?v=3","gravatar_id":"","url":"https://api.github.com/users/infectnet","html_url":"https://github.com/infectnet","followers_url":"https://api.github.com/users/infectnet/followers","following_url":"https://api.github.com/users/infectnet/following{/other_user}","gists_url":"https://api.github.com/users/infectnet/gists{/gist_id}","starred_url":"https://api.github.com/users/infectnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectnet/subscriptions","organizations_url":"https://api.github.com/users/infectnet/orgs","repos_url":"https://api.github.com/users/infectnet/repos","events_url":"https://api.github.com/users/infectnet/events{/privacy}","received_events_url":"https://api.github.com/users/infectnet/received_events","type":"Organization","site_admin":false},"repo":{"id":69064135,"name":"infectnet-server","full_name":"infectnet/infectnet-server","owner":{"login":"infectnet","id":22404572,"avatar_url":"https://avatars.githubusercontent.com/u/22404572?v=3","gravatar_id":"","url":"https://api.github.com/users/infectnet","html_url":"https://github.com/infectnet","followers_url":"https://api.github.com/users/infectnet/followers","following_url":"https://api.github.com/users/infectnet/following{/other_user}","gists_url":"https://api.github.com/users/infectnet/gists{/gist_id}","starred_url":"https://api.github.com/users/infectnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectnet/subscriptions","organizations_url":"https://api.github.com/users/infectnet/orgs","repos_url":"https://api.github.com/users/infectnet/repos","events_url":"https://api.github.com/users/infectnet/events{/privacy}","received_events_url":"https://api.github.com/users/infectnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infectnet/infectnet-server","description":"The game server of InfectNet.","fork":false,"url":"https://api.github.com/repos/infectnet/infectnet-server","forks_url":"https://api.github.com/repos/infectnet/infectnet-server/forks","keys_url":"https://api.github.com/repos/infectnet/infectnet-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infectnet/infectnet-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infectnet/infectnet-server/teams","hooks_url":"https://api.github.com/repos/infectnet/infectnet-server/hooks","issue_events_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/events{/number}","events_url":"https://api.github.com/repos/infectnet/infectnet-server/events","assignees_url":"https://api.github.com/repos/infectnet/infectnet-server/assignees{/user}","branches_url":"https://api.github.com/repos/infectnet/infectnet-server/branches{/branch}","tags_url":"https://api.github.com/repos/infectnet/infectnet-server/tags","blobs_url":"https://api.github.com/repos/infectnet/infectnet-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infectnet/infectnet-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infectnet/infectnet-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/infectnet/infectnet-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infectnet/infectnet-server/statuses/{sha}","languages_url":"https://api.github.com/repos/infectnet/infectnet-server/languages","stargazers_url":"https://api.github.com/repos/infectnet/infectnet-server/stargazers","contributors_url":"https://api.github.com/repos/infectnet/infectnet-server/contributors","subscribers_url":"https://api.github.com/repos/infectnet/infectnet-server/subscribers","subscription_url":"https://api.github.com/repos/infectnet/infectnet-server/subscription","commits_url":"https://api.github.com/repos/infectnet/infectnet-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/infectnet/infectnet-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/infectnet/infectnet-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/infectnet/infectnet-server/contents/{+path}","compare_url":"https://api.github.com/repos/infectnet/infectnet-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infectnet/infectnet-server/merges","archive_url":"https://api.github.com/repos/infectnet/infectnet-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infectnet/infectnet-server/downloads","issues_url":"https://api.github.com/repos/infectnet/infectnet-server/issues{/number}","pulls_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls{/number}","milestones_url":"https://api.github.com/repos/infectnet/infectnet-server/milestones{/number}","notifications_url":"https://api.github.com/repos/infectnet/infectnet-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infectnet/infectnet-server/labels{/name}","releases_url":"https://api.github.com/repos/infectnet/infectnet-server/releases{/id}","deployments_url":"https://api.github.com/repos/infectnet/infectnet-server/deployments","created_at":"2016-09-23T22:13:08Z","updated_at":"2016-10-27T13:01:34Z","pushed_at":"2016-12-02T00:22:25Z","git_url":"git://github.com/infectnet/infectnet-server.git","ssh_url":"git@github.com:infectnet/infectnet-server.git","clone_url":"https://github.com/infectnet/infectnet-server.git","svn_url":"https://github.com/infectnet/infectnet-server","homepage":"","size":581,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":4,"default_branch":"master"}},"base":{"label":"infectnet:develop","ref":"develop","sha":"3b966c1ebc4e508276d908a9a4760f15fd64fbcb","user":{"login":"infectnet","id":22404572,"avatar_url":"https://avatars.githubusercontent.com/u/22404572?v=3","gravatar_id":"","url":"https://api.github.com/users/infectnet","html_url":"https://github.com/infectnet","followers_url":"https://api.github.com/users/infectnet/followers","following_url":"https://api.github.com/users/infectnet/following{/other_user}","gists_url":"https://api.github.com/users/infectnet/gists{/gist_id}","starred_url":"https://api.github.com/users/infectnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectnet/subscriptions","organizations_url":"https://api.github.com/users/infectnet/orgs","repos_url":"https://api.github.com/users/infectnet/repos","events_url":"https://api.github.com/users/infectnet/events{/privacy}","received_events_url":"https://api.github.com/users/infectnet/received_events","type":"Organization","site_admin":false},"repo":{"id":69064135,"name":"infectnet-server","full_name":"infectnet/infectnet-server","owner":{"login":"infectnet","id":22404572,"avatar_url":"https://avatars.githubusercontent.com/u/22404572?v=3","gravatar_id":"","url":"https://api.github.com/users/infectnet","html_url":"https://github.com/infectnet","followers_url":"https://api.github.com/users/infectnet/followers","following_url":"https://api.github.com/users/infectnet/following{/other_user}","gists_url":"https://api.github.com/users/infectnet/gists{/gist_id}","starred_url":"https://api.github.com/users/infectnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectnet/subscriptions","organizations_url":"https://api.github.com/users/infectnet/orgs","repos_url":"https://api.github.com/users/infectnet/repos","events_url":"https://api.github.com/users/infectnet/events{/privacy}","received_events_url":"https://api.github.com/users/infectnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infectnet/infectnet-server","description":"The game server of InfectNet.","fork":false,"url":"https://api.github.com/repos/infectnet/infectnet-server","forks_url":"https://api.github.com/repos/infectnet/infectnet-server/forks","keys_url":"https://api.github.com/repos/infectnet/infectnet-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infectnet/infectnet-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infectnet/infectnet-server/teams","hooks_url":"https://api.github.com/repos/infectnet/infectnet-server/hooks","issue_events_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/events{/number}","events_url":"https://api.github.com/repos/infectnet/infectnet-server/events","assignees_url":"https://api.github.com/repos/infectnet/infectnet-server/assignees{/user}","branches_url":"https://api.github.com/repos/infectnet/infectnet-server/branches{/branch}","tags_url":"https://api.github.com/repos/infectnet/infectnet-server/tags","blobs_url":"https://api.github.com/repos/infectnet/infectnet-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infectnet/infectnet-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infectnet/infectnet-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/infectnet/infectnet-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infectnet/infectnet-server/statuses/{sha}","languages_url":"https://api.github.com/repos/infectnet/infectnet-server/languages","stargazers_url":"https://api.github.com/repos/infectnet/infectnet-server/stargazers","contributors_url":"https://api.github.com/repos/infectnet/infectnet-server/contributors","subscribers_url":"https://api.github.com/repos/infectnet/infectnet-server/subscribers","subscription_url":"https://api.github.com/repos/infectnet/infectnet-server/subscription","commits_url":"https://api.github.com/repos/infectnet/infectnet-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/infectnet/infectnet-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/infectnet/infectnet-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/infectnet/infectnet-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/infectnet/infectnet-server/contents/{+path}","compare_url":"https://api.github.com/repos/infectnet/infectnet-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infectnet/infectnet-server/merges","archive_url":"https://api.github.com/repos/infectnet/infectnet-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infectnet/infectnet-server/downloads","issues_url":"https://api.github.com/repos/infectnet/infectnet-server/issues{/number}","pulls_url":"https://api.github.com/repos/infectnet/infectnet-server/pulls{/number}","milestones_url":"https://api.github.com/repos/infectnet/infectnet-server/milestones{/number}","notifications_url":"https://api.github.com/repos/infectnet/infectnet-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infectnet/infectnet-server/labels{/name}","releases_url":"https://api.github.com/repos/infectnet/infectnet-server/releases{/id}","deployments_url":"https://api.github.com/repos/infectnet/infectnet-server/deployments","created_at":"2016-09-23T22:13:08Z","updated_at":"2016-10-27T13:01:34Z","pushed_at":"2016-12-02T00:22:25Z","git_url":"git://github.com/infectnet/infectnet-server.git","ssh_url":"git@github.com:infectnet/infectnet-server.git","clone_url":"https://github.com/infectnet/infectnet-server.git","svn_url":"https://github.com/infectnet/infectnet-server","homepage":"","size":581,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90"},"html":{"href":"https://github.com/infectnet/infectnet-server/pull/90"},"issue":{"href":"https://api.github.com/repos/infectnet/infectnet-server/issues/90"},"comments":{"href":"https://api.github.com/repos/infectnet/infectnet-server/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infectnet/infectnet-server/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/infectnet/infectnet-server/statuses/e6106b10a8399f8fc42254334b046f1e4287341b"}}}}
{"actor":{"display_login":"battila7"}}