summaryrefslogtreecommitdiff
path: root/lib/sampling/manual.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-26 23:45:25 -0400
committernfoy <nfoy@purdue.edu>2014-04-26 23:45:25 -0400
commit6f19b51f0adf95b1d9bd8317388ecdbcb3756be7 (patch)
treec4be583ba9db126ef58db7a1900468ec0929df25 /lib/sampling/manual.rb
parent9d8d6b023ce3390f3ccf9808e630505a15ebebe6 (diff)
parent9dd899559e4533c61089c3f9429574d2de20925e (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/sampling/manual.rb')
-rw-r--r--lib/sampling/manual.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/sampling/manual.rb b/lib/sampling/manual.rb
new file mode 100644
index 0000000..17c8104
--- /dev/null
+++ b/lib/sampling/manual.rb
@@ -0,0 +1,35 @@
+module Sampling
+ module HostEntry
+ def self.works_with?(game)
+ return true
+ end
+
+ def self.uses_remote?
+ return false
+ end
+
+ def self.set_remote_name(user, game, value)
+ raise "This sampling method doesn't use remote usernames."
+ end
+
+ def self.get_remote_name(value)
+ raise "This sampling method doesn't use remote usernames."
+ end
+
+ def self.sampling_start(match)
+ # TODO
+ end
+
+ def self.sampling_done?(match)
+ # TODO
+ end
+
+ def self.render_user_interaction(match, user)
+
+ end
+
+ def self.handle_user_interaction(match, user, sampling_params)
+ match.statistics.create(user: nil, name: "blowout",
+ end
+ end
+end