Class cc.Waves

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Waves action

Method Summary

Class Detail

cc.Waves()
cc.Waves action

Method Detail

  • <static> {cc.Waves} cc.Waves.create(duration, gridSize, waves, amplitude, horizontal, vertical)
    initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} waves
    {Number} amplitude
    {Boolean} horizontal
    {Boolean} vertical
    Returns:
    {cc.Waves}
  • {Number} getAmplitude()
    get amplitude
    Returns:
    {Number}
  • {Number} getAmplitudeRate()
    get amplitude rate
    Returns:
    {Number}
  • {Boolean} initWithDuration(duration, gridSize, waves, amplitude, horizontal, vertical)
    initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} waves
    {Number} amplitude
    {Boolean} horizontal
    {Boolean} vertical
    Returns:
    {Boolean}
  • setAmplitude(amplitude)
    set amplitude
    Parameters:
    {Number} amplitude
  • setAmplitudeRate(amplitudeRate)
    set amplitude rate
    Parameters:
    {Number} amplitudeRate