package base

import "mongo.games.com/goserver/core/netlib"

type IScene interface {
	GetAIMode() int32
	SetAIMode(aiMode int32)
	GetRoomId() int32
	GetRoomMode() int32
	GetGameId() int32
	GetPlayerByPos(pos int32) IPlayer
	GetPlayerBySnid(snid int32) IPlayer
	GetMe(s *netlib.Session) IPlayer
	AddPlayer(p IPlayer)
	DelPlayer(snid int32)
	IsFull() bool
	IsMatchScene() bool
	Update(ts int64)
}

type BaseScene struct {
	AIMode          int32
	RobotTypeAIName map[int]string
}

func (this *BaseScene) GetAIMode() int32 {
	return this.AIMode
}

func (this *BaseScene) SetAIMode(aiMode int32) {
	this.AIMode = aiMode
}
