lib/greygoo/player.rb
# Send a message to another player
#
# @param [GreyGoo::Player] other_player
# @param [String] msg
Send a message to another player
Send a message to another player
def send_to(other_player, msg)
			m = GreyGoo::Message.new({ from: self, to: other_player, text: msg })
			m.save!
			other_player.send_message(m)
		end
def send_to ( other_player , msg ) m = GreyGoo :: Message . new ( { from : self , to : other_player , text : msg } ) m . save! other_player . send_message ( m ) end
Send a message to another player
Send a message to another player
other_player
msg
None