Class: RuneRb::Network::RS377::MouseClickMessage::Click

Inherits:
Struct
  • Object
show all
Includes:
System::Log
Defined in:
app/network/protocol/rs377/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


9
10
11
# File 'app/network/protocol/rs377/incoming/click.rb', line 9

def delay
  @delay
end

#right?Object

Returns the value of attribute right?

Returns:

  • (Object)

    the current value of right?


9
10
11
# File 'app/network/protocol/rs377/incoming/click.rb', line 9

def right?
  @right?
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x


9
10
11
# File 'app/network/protocol/rs377/incoming/click.rb', line 9

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y


9
10
11
# File 'app/network/protocol/rs377/incoming/click.rb', line 9

def y
  @y
end

Instance Method Details

#inspectObject

Since:

  • 0.9.3


12
13
14
15
16
# File 'app/network/protocol/rs377/incoming/click.rb', line 12

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