public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp, ccGridSize gridSize, float duration) { CCRipple3D cCRipple3D = new CCRipple3D(); if (cCRipple3D.initWithPosition(pos, r, wav, amp, gridSize, duration)) { return(cCRipple3D); } return(null); }
/// <summary> /// creates the action with radius, number of waves, amplitude, a grid size and duration /// </summary> public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp, ccGridSize gridSize, float duration) { CCRipple3D pAction = new CCRipple3D(); if (pAction.initWithPosition(pos, r, wav, amp, gridSize, duration)) { return pAction; } return null; }
public override CCObject copyWithZone(CCZone pZone) { CCRipple3D cCRipple3D = null; if (pZone == null || pZone.m_pCopyObject == null) { cCRipple3D = new CCRipple3D(); pZone = new CCZone(cCRipple3D); } else { cCRipple3D = (CCRipple3D)pZone.m_pCopyObject; } base.copyWithZone(pZone); cCRipple3D.initWithPosition(this.m_position, this.m_fRadius, this.m_nWaves, this.m_fAmplitude, this.m_sGridSize, this.m_fDuration); return(cCRipple3D); }
/** creates the action with radius, number of waves, amplitude, a grid size and duration */ public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp, ccGridSize gridSize, float duration) { CCRipple3D pAction = new CCRipple3D(); if (pAction != null) { if (pAction.initWithPosition(pos, r, wav, amp, gridSize, duration)) { // pAction->autorelease(); } else { // CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
public override object Copy(ICopyable pZone) { CCRipple3D pCopy; if (pZone != null) { //in case of being called at sub class pCopy = (CCRipple3D) (pZone); } else { pCopy = new CCRipple3D(); pZone = (pCopy); } base.Copy(pZone); pCopy.InitWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCRipple3D pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCRipple3D)(pZone.m_pCopyObject); } else { pCopy = new CCRipple3D(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, Duration); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCRipple3D pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCRipple3D)(pZone.m_pCopyObject); } else { pCopy = new CCRipple3D(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration); return(pCopy); }
public static CCRipple3D Create(CCPoint pos, float r, int wav, float amp, CCGridSize gridSize, float duration) { var pAction = new CCRipple3D(); pAction.InitWithPosition(pos, r, wav, amp, gridSize, duration); return pAction; }