Class: RuneRb::Network::RS317::MouseClickMessage::Click

Inherits:
Struct
  • Object
show all
Includes:
System::Log
Defined in:
app/network/protocol/rs317/incoming/click.rb

Overview

A mouse click event

Since:

  • 0.9.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Instance Attribute Details

#delayObject

Returns the value of attribute delay

Returns:

  • (Object)

    the current value of delay


4
5
6
# File 'app/network/protocol/rs317/incoming/click.rb', line 4

def delay
  @delay
end

#right?Object

Returns the value of attribute right?

Returns:

  • (Object)

    the current value of right?


4
5
6
# File 'app/network/protocol/rs317/incoming/click.rb', line 4

def right?
  @right?
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x


4
5
6
# File 'app/network/protocol/rs317/incoming/click.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y


4
5
6
# File 'app/network/protocol/rs317/incoming/click.rb', line 4

def y
  @y
end

Instance Method Details

#inspectObject

Since:

  • 0.9.3


7
8
9
10
11
12
# File 'app/network/protocol/rs317/incoming/click.rb', line 7

def inspect
  log! RuneRb::GLOBAL[:COLOR].blue("[DELAY_SINCE:] #{self.delay}"),
       self.right? ? RuneRb::GLOBAL[:COLOR].cyan.bold("[X:] #{self.x}") : RuneRb::GLOBAL[:COLOR].blue.bold("[X:] #{self.x}"),
       self.right? ? RuneRb::GLOBAL[:COLOR].cyan.bold("[X:] #{self.x}") : RuneRb::GLOBAL[:COLOR].blue.bold("[X:] #{self.x}")

end