C# Class RecordRobot.MovingObjects.Robot

Inheritance: Mover
显示文件 Open project: scastle/EECS290_Project1 Class Usage Examples

Public Properties

Property Type Description
IsInvincible bool
Lives int
NextDirection Direction
RobotFlashing bool

Public Methods

Method Description
LoseLife ( ) : void
Robot ( int x, int y ) : System

Creates a new member of the Robot class

SetInvincible ( System.TimeSpan time ) : void
Update ( ) : void

Method Details

LoseLife() public method

public LoseLife ( ) : void
return void

Robot() public method

Creates a new member of the Robot class
public Robot ( int x, int y ) : System
x int The x position of the robot
y int The y position of the robot
return System

SetInvincible() public method

public SetInvincible ( System.TimeSpan time ) : void
time System.TimeSpan
return void

Update() public method

public Update ( ) : void
return void

Property Details

IsInvincible public_oe property

public bool IsInvincible
return bool

Lives public_oe property

public int Lives
return int

NextDirection public_oe property

The direction the robot will go at the next intersection
public Direction NextDirection
return Direction

RobotFlashing public_oe property

public bool RobotFlashing
return bool