frame: the number of animation frames used (1 is the 1st frame)
icon_state: a specific icon_state to use (may be null)
dir: a specific direction of this icon to use
moving: non-zero for only movement states, 0 for non-movement states, or null (default) for either
var/icon/I = new('player.dmi')
See the usefulness?