C# 클래스 RecordRobot.MovingObjects.Robot

상속: Mover
파일 보기 프로젝트 열기: scastle/EECS290_Project1 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IsInvincible bool
Lives int
NextDirection Direction
RobotFlashing bool

공개 메소드들

메소드 설명
LoseLife ( ) : void
Robot ( int x, int y ) : System

Creates a new member of the Robot class

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

메소드 상세

LoseLife() 공개 메소드

public LoseLife ( ) : void
리턴 void

Robot() 공개 메소드

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
리턴 System

SetInvincible() 공개 메소드

public SetInvincible ( System.TimeSpan time ) : void
time System.TimeSpan
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

IsInvincible 공개적으로 프로퍼티

public bool IsInvincible
리턴 bool

Lives 공개적으로 프로퍼티

public int Lives
리턴 int

NextDirection 공개적으로 프로퍼티

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

RobotFlashing 공개적으로 프로퍼티

public bool RobotFlashing
리턴 bool